/* ============================================================
   Ederson Coimbra de Oliveira — Landing
   Aesthetic: "Precisão futurista" — ink dark, duotone ciano+coral
   ============================================================ */

:root {
  --ink:        #06070b;
  --ink-2:      #0b0d14;
  --surface:    rgba(255, 255, 255, 0.03);
  --stroke:     rgba(255, 255, 255, 0.08);
  --stroke-2:   rgba(255, 255, 255, 0.14);

  --text:       #eef1f7;
  --text-soft:  #9aa3b4;
  --text-dim:   #5c6577;

  --cyan:       #48f2d2;
  --cyan-deep:  #10c9a8;
  --coral:      #ff6a45;
  --coral-soft: #ff8b6b;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

::selection { background: var(--cyan); color: var(--ink); }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); font-weight: 500; }

/* ---------- Background layers ---------- */
.bg-aurora,
.bg-grid,
.bg-noise { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.bg-aurora {
  background:
    radial-gradient(45% 40% at 15% 8%, rgba(72, 242, 210, 0.16), transparent 60%),
    radial-gradient(40% 40% at 88% 20%, rgba(255, 106, 69, 0.14), transparent 60%),
    radial-gradient(55% 50% at 70% 95%, rgba(72, 242, 210, 0.10), transparent 65%);
  filter: blur(20px);
  animation: aurora 22s var(--ease) infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-3%,0) scale(1.08); }
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}

.bg-noise {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 2;
}

/* ---------- Custom cursor ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--cyan);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9999;
  transition: width .25s var(--ease), height .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  mix-blend-mode: difference;
}
.cursor-glow.is-hover {
  width: 54px; height: 54px;
  background: rgba(72, 242, 210, 0.15);
  border-color: transparent;
}
@media (max-width: 900px) { .cursor-glow { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  z-index: 999; box-shadow: 0 0 12px rgba(72,242,210,0.6);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: padding .4s var(--ease), background .4s var(--ease),
              border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__mark { color: var(--cyan); font-size: 1.4rem; filter: drop-shadow(0 0 8px rgba(72,242,210,0.5)); }
.nav__dot { color: var(--coral); }
.nav__links { display: flex; gap: 34px; font-size: 0.9rem; color: var(--text-soft); }
.nav__links a { position: relative; transition: color .25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--cyan); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
@media (max-width: 780px) { .nav__links, .nav__cta { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 24px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad); border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.94rem;
  letter-spacing: -0.01em; cursor: none; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease), color .3s;
  white-space: nowrap;
}
@media (max-width: 900px) { .btn { cursor: pointer; } }
.btn__icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(120deg, var(--cyan), var(--cyan-deep));
  color: #04231d;
  box-shadow: 0 8px 30px rgba(72,242,210,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(72,242,210,0.4); }

.btn--ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--stroke-2);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--cyan); }

.btn--lg { --pad: 18px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 3;
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  max-width: var(--maxw); margin: 0 auto;
  padding: 120px clamp(20px, 5vw, 64px) 60px;
}
.hero__inner { max-width: 900px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--text-soft); letter-spacing: 0.02em;
  padding: 8px 16px; border: 1px solid var(--stroke);
  border-radius: 999px; background: var(--surface);
  margin-bottom: 30px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(72,242,210,0.7); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(72,242,210,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(72,242,210,0); }
  100% { box-shadow: 0 0 0 0 rgba(72,242,210,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 8.2rem);
  line-height: 0.92; letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.hero__title span { display: block; }
.hero__title--accent {
  background: linear-gradient(100deg, var(--cyan) 10%, var(--coral) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__role {
  font-family: var(--font-mono); font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: var(--text); margin-bottom: 26px; letter-spacing: -0.01em;
}
.hero__role .mono { color: var(--cyan); }
.hero__role-sep { color: var(--coral); margin: 0 8px; }

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft); max-width: 640px; margin-bottom: 40px;
}
.hero__lede em { color: var(--cyan); font-style: normal; }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero__stats { display: flex; gap: clamp(28px, 6vw, 68px); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1;
  color: var(--text); letter-spacing: -0.03em;
}
.stat__label { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.2em;
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--cyan); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { top: -50%; } 100% { top: 100%; } }
@media (max-width: 780px) { .hero__scroll { display: none; } }

/* ---------- Sections ---------- */
.section {
  position: relative; z-index: 3;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 12vh, 150px) clamp(20px, 5vw, 64px);
}
.section__head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 54px; }
.section__index { font-family: var(--font-mono); font-size: 0.9rem; color: var(--coral); }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1;
}
.section__title::after { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--cyan); border-radius: 2px; margin-left: 12px; box-shadow: 0 0 14px var(--cyan); }

/* ---------- Sobre ---------- */
.sobre__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.sobre__lead p { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-soft); margin-bottom: 22px; }
.sobre__lead strong { color: var(--text); font-weight: 600; }
.sobre__facts { list-style: none; display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.sobre__facts li {
  font-size: 1rem; color: var(--text-soft);
  padding: 16px 18px; border: 1px solid var(--stroke);
  border-radius: 14px; background: var(--surface);
  display: flex; align-items: center; gap: 12px;
  transition: border-color .3s, transform .3s var(--ease), color .3s;
}
.sobre__facts li:hover { border-color: var(--cyan); transform: translateX(6px); color: var(--text); }
.sobre__facts .mono { color: var(--cyan); }
@media (max-width: 820px) { .sobre__grid { grid-template-columns: 1fr; } }

/* ---------- Trajetória / Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--cyan), rgba(255,106,69,0.4), transparent);
}
.tl {
  position: relative; padding: 0 0 42px;
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start;
}
.tl:last-child { padding-bottom: 0; }
.tl__node {
  position: absolute; left: -40px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(72,242,210,0.12), 0 0 16px rgba(72,242,210,0.55);
}
.tl__period { color: var(--coral); font-size: 0.9rem; padding-top: 2px; }
.tl__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.tl__role { display: block; color: var(--cyan); font-size: 0.92rem; font-weight: 600; margin-bottom: 10px; }
.tl__body p { color: var(--text-soft); font-size: 0.98rem; max-width: 620px; }
.tl__body strong { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .tl__period { padding-top: 0; }
}

/* ---------- Stack cards ---------- */
.stack__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; overflow: hidden;
  padding: 34px 30px 30px; border-radius: 20px;
  border: 1px solid var(--stroke); background: var(--ink-2);
  transition: transform .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-8px); border-color: var(--stroke-2); }
.card__glow {
  position: absolute; inset: -1px; border-radius: 20px; opacity: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(72,242,210,0.18), transparent 70%);
  transition: opacity .4s; pointer-events: none;
}
.card:hover .card__glow { opacity: 1; }
.card__num { color: var(--text-dim); font-size: 0.85rem; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 14px 0 12px; letter-spacing: -0.02em; }
.card p { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--cyan);
  padding: 6px 12px; border: 1px solid rgba(72,242,210,0.24);
  border-radius: 999px; background: rgba(72,242,210,0.05);
}
@media (max-width: 880px) { .stack__grid { grid-template-columns: 1fr; } }

/* ---------- Estudo de caso ---------- */
.caso__panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px);
  align-items: center;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid var(--stroke); border-radius: 28px;
  background: linear-gradient(150deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.caso__glow {
  position: absolute; width: 60%; height: 120%; top: -20%; right: -15%;
  background: radial-gradient(closest-side, rgba(255,106,69,0.18), transparent);
  filter: blur(30px); pointer-events: none;
}
.caso__content { position: relative; z-index: 2; }
.caso__badge {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--coral); padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,106,69,0.3); background: rgba(255,106,69,0.06);
  margin-bottom: 20px;
}
.caso__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(100deg, var(--cyan), var(--coral));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.caso__tagline { font-size: 1.15rem; color: var(--text); font-weight: 500; margin-bottom: 16px; }
.caso__desc { color: var(--text-soft); margin-bottom: 24px; }
.caso__desc strong { color: var(--text); font-weight: 600; }
.caso__features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 32px; }
.caso__features li { font-size: 0.92rem; color: var(--text-soft); display: flex; gap: 10px; align-items: center; }
.caso__features .mono { color: var(--cyan); font-size: 0.7rem; }
.caso__tech { margin-bottom: 28px; }
.caso__tech-label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; color: var(--text-dim); margin-bottom: 10px; }
@media (max-width: 900px) { .caso__panel { grid-template-columns: 1fr; } .caso__features { grid-template-columns: 1fr; } }

/* ---------- Browser mockup ---------- */
.caso__mock { position: relative; z-index: 2; perspective: 1200px; }
.browser {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--stroke-2);
  background: #0e1119;
  box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.caso__mock:hover .browser { transform: rotateY(0deg) rotateX(0deg); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #151a24; border-bottom: 1px solid var(--stroke); }
.browser__dot { width: 10px; height: 10px; border-radius: 50%; background: #333a48; }
.browser__dot:nth-child(1) { background: var(--coral); }
.browser__dot:nth-child(2) { background: #f5c451; }
.browser__dot:nth-child(3) { background: var(--cyan); }
.browser__url {
  margin-left: 12px; flex: 1; font-size: 0.72rem; color: var(--text-dim);
  background: #0b0e15; padding: 6px 12px; border-radius: 7px; text-align: center;
}
.browser__screen { padding: 26px 22px; background: radial-gradient(120% 80% at 30% 0%, rgba(72,242,210,0.08), transparent 60%), #0b0e15; }
.mock-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
.mock-pin { font-size: 1.8rem; filter: drop-shadow(0 0 10px rgba(255,106,69,0.5)); animation: bob 3s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mock-line { height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(72,242,210,0.5), rgba(255,106,69,0.3)); }
.mock-line--lg { width: 70%; }
.mock-line--md { width: 45%; height: 8px; opacity: 0.5; }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-card { background: #121722; border: 1px solid var(--stroke); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-card:nth-child(odd) { animation: floaty 4s var(--ease) infinite; }
.mock-card:nth-child(even) { animation: floaty 4s var(--ease) infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.mock-thumb { height: 44px; border-radius: 7px; background: linear-gradient(135deg, rgba(72,242,210,0.25), rgba(255,106,69,0.18)); }
.mock-card span { height: 7px; width: 60%; border-radius: 4px; background: var(--stroke-2); }

/* ---------- Contato ---------- */
.contato { text-align: center; }
.contato__inner { max-width: 760px; margin: 0 auto; }
.contato .section__index { display: block; margin-bottom: 20px; }
.contato__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.98; letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.contato__title--accent {
  background: linear-gradient(100deg, var(--cyan), var(--coral));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contato__lede { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 42px; max-width: 520px; margin-inline: auto; }
.contato__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 3;
  max-width: var(--maxw); margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 64px) 40px;
  border-top: 1px solid var(--stroke);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-dim); flex-wrap: wrap; gap: 10px;
}

/* ---------- Reveal animations ---------- */
.reveal, .reveal-up { opacity: 0; }
.reveal { transform: translateY(24px); animation: revealIn .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes revealIn { to { opacity: 1; transform: translateY(0); } }

.reveal-up { transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .reveal-up { opacity: 1 !important; transform: none !important; }
}
