/* ===================================================================
   HYDEOUT — estúdio de desenvolvimento web
   Tema escuro premium · acentos derivados do logótipo
=================================================================== */

:root {
  /* base escura */
  --bg:        #0A0C0F;
  --bg-2:      #0E1116;
  --surface:   #12161C;
  --surface-2: #171C24;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);

  /* texto */
  --text:      #EDF1F4;
  --muted:     #8A96A0;
  --faint:     #566069;

  /* acentos (logo) — usados com contenção */
  --teal:      #34B7DE;
  --teal-soft: #6FD0EC;
  --amber:     #F5B70A;
  --orange:    #E8792B;

  --grad: linear-gradient(100deg, var(--teal) 0%, var(--amber) 55%, var(--orange) 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

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

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #04121a; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .mono-label { color: var(--teal); }
.section-head h2 { margin-top: 16px; max-width: 16ch; }

/* ---------- Overlays globais ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.spotlight {
  position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none;
  width: 480px; height: 480px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(52,183,222,0.14), transparent 62%);
  filter: blur(30px);
  opacity: 0; transition: opacity 0.4s ease;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(52,183,222,0.6);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 24px; border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--text); background: transparent;
  cursor: pointer; position: relative;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn-lg { padding: 16px 30px; font-size: 0.95rem; }
.btn-xl { padding: 20px 40px; font-size: 1.05rem; font-family: var(--font-display); font-weight: 500; }

.btn-accent {
  background: var(--text); color: #06090c; border-color: transparent;
}
.btn-accent:hover {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 18px 40px -12px rgba(52,183,222,0.5);
  background: #fff;
}
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-soft); }

/* ===================================================================
   HEADER
=================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,12,15,0.6);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }

.nav { display: flex; gap: 34px; }
.nav a {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted);
  display: inline-flex; align-items: baseline; gap: 6px;
  transition: color 0.2s;
}
.nav a span { color: var(--faint); font-size: 0.68rem; }
.nav a:hover { color: var(--text); }
.nav a:hover span { color: var(--teal); }

/* Botão hambúrguer → X */
.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; position: relative; z-index: 120; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transform-origin: center; transition: transform 0.4s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ===== MENU OVERLAY ANIMADO ===== */
body.menu-open { overflow: hidden; }

.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 32px 56px;
  background: rgba(8,10,13,0.92);
  backdrop-filter: blur(24px) saturate(140%);
  opacity: 0; visibility: hidden;
  clip-path: circle(0% at calc(100% - 44px) 42px);
  transition: clip-path 0.7s var(--ease), opacity 0.4s ease, visibility 0s linear 0.55s;
}
body.menu-open .menu-overlay {
  opacity: 1; visibility: visible;
  clip-path: circle(160% at calc(100% - 44px) 42px);
  transition: clip-path 0.75s var(--ease), opacity 0.3s ease, visibility 0s;
}
.menu-overlay::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 82% 22%, rgba(52,183,222,0.22), transparent 62%),
    radial-gradient(50% 40% at 18% 88%, rgba(232,121,43,0.16), transparent 62%);
}
.menu-panel { width: 100%; max-width: var(--maxw); margin-inline: auto; }

.menu-list { list-style: none; display: flex; flex-direction: column; }
.menu-list li { overflow: hidden; }
.menu-list a {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 12vw, 3.6rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--text);
  transform: translateY(120%); opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s ease, color 0.3s;
}
body.menu-open .menu-list a { transform: translateY(0); opacity: 1; }
body.menu-open .menu-list li:nth-child(1) a { transition-delay: 0.12s; }
body.menu-open .menu-list li:nth-child(2) a { transition-delay: 0.18s; }
body.menu-open .menu-list li:nth-child(3) a { transition-delay: 0.24s; }
body.menu-open .menu-list li:nth-child(4) a { transition-delay: 0.30s; }

.menu-idx { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; color: var(--teal); align-self: flex-start; margin-top: 6px; }
.menu-text { flex: 1; }
.menu-arrow { font-size: 1.6rem; color: var(--faint); transition: color 0.3s, transform 0.35s var(--ease); }
.menu-list a:hover { color: var(--teal-soft); }
.menu-list a:hover .menu-arrow { color: var(--teal); transform: translate(6px, -6px); }

.menu-footer {
  margin-top: 44px; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease 0.42s, transform 0.6s var(--ease) 0.42s;
}
body.menu-open .menu-footer { opacity: 1; transform: none; }
.menu-email { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--text); transition: color 0.3s; }
.menu-email:hover { color: var(--teal-soft); }
.menu-tag { color: var(--muted); }

/* ===================================================================
   HERO
=================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center;
  padding-block: 120px 80px;
}
.hero-inner { position: relative; z-index: 2; }
.hero-orb {
  position: absolute; z-index: 0;
  top: 45%; left: 62%; transform: translate(-50%, -50%);
  width: min(720px, 90vw); aspect-ratio: 1;
  background:
    radial-gradient(circle at 38% 40%, rgba(52,183,222,0.55), transparent 55%),
    radial-gradient(circle at 62% 55%, rgba(245,183,10,0.35), transparent 55%),
    radial-gradient(circle at 55% 68%, rgba(232,121,43,0.4), transparent 55%);
  filter: blur(60px);
  opacity: 0.7;
  animation: orbFloat 14s ease-in-out infinite;
  will-change: transform;
}
@keyframes orbFloat {
  0%,100% { transform: translate(-50%, -50%) scale(1); }
  50%     { transform: translate(-48%, -54%) scale(1.08); }
}

.hero-eyebrow { margin-bottom: 26px; color: var(--teal); }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: 0.98;
  letter-spacing: -0.03em; margin-bottom: 30px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word {
  display: inline-block; transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.hero-title.in .word { transform: translateY(0); }
.hero-title .word:nth-child(1) { transition-delay: 0.05s; }
.hero-title .word:nth-child(2) { transition-delay: 0.12s; }
.hero-title .word:nth-child(3) { transition-delay: 0.19s; }
.hero-title .line:last-child .word:nth-child(1) { transition-delay: 0.26s; }
.hero-title .line:last-child .word:nth-child(2) { transition-delay: 0.33s; }
.hero-title .line:last-child .word:nth-child(3) { transition-delay: 0.40s; }

.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 52ch; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-meta { display: inline-flex; align-items: center; gap: 10px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #38d39f; box-shadow: 0 0 0 0 rgba(56,211,159,0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56,211,159,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(56,211,159,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,211,159,0); }
}

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--teal), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--teal); animation: scrollDown 1.8s var(--ease) infinite; }
@keyframes scrollDown { 0% { top: -50%; } 100% { top: 100%; } }

/* ===================================================================
   MARQUEE
=================================================================== */
.marquee-wrap { border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 22px; }
.marquee { overflow: hidden; }
.marquee-track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--text); }
.marquee-track i { color: var(--teal); font-style: normal; font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================================================================
   STATEMENT
=================================================================== */
.statement .big-statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3.3rem); line-height: 1.18;
  letter-spacing: -0.02em; max-width: 20ch; margin-top: 22px;
}
.reveal-word { display: inline-block; opacity: 0.12; transition: opacity 0.5s var(--ease); }
.reveal-word.muted { color: var(--muted); }
.statement .mono-label { color: var(--teal); }

/* ===================================================================
   STATS
=================================================================== */
.stats { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 90px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { display: flex; flex-direction: column; gap: 12px; padding-right: 20px; }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.stat:nth-child(1) .stat-num { color: var(--teal-soft); }
.stat:nth-child(2) .stat-num { color: var(--amber); }
.stat:nth-child(3) .stat-num { color: var(--orange); }
.stat-label { color: var(--muted); font-size: 0.95rem; max-width: 22ch; }

/* ===================================================================
   SERVIÇOS
=================================================================== */
.services .section-head h2 { max-width: none; }
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 60px 1.1fr 1.4fr 40px;
  align-items: center; gap: 20px;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  position: relative; transition: padding 0.4s var(--ease);
}
.service-row::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(52,183,222,0.06), transparent);
  transition: width 0.5s var(--ease); z-index: -1;
}
.service-row:hover { padding-left: 24px; }
.service-row:hover::before { width: 100%; }
.service-row:hover .service-idx { color: var(--teal); }
.service-row:hover h3 { color: var(--teal-soft); }
.service-row:hover .service-arrow { color: var(--teal); transform: translate(4px, -4px); }
.service-idx { transition: color 0.3s; }
.service-row h3 { transition: color 0.3s; }
.service-row p { color: var(--muted); font-size: 0.98rem; }
.service-arrow { font-size: 1.4rem; color: var(--faint); text-align: right; transition: color 0.3s, transform 0.3s var(--ease); }

/* ===================================================================
   PROCESSO
=================================================================== */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.process-step { background: var(--bg-2); padding: 34px 26px; transition: background 0.3s; }
.process-step:hover { background: var(--surface); }
.step-num { display: block; color: var(--teal); margin-bottom: 44px; font-size: 0.9rem; }
.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* ===================================================================
   CTA FINAL
=================================================================== */
.cta-final { text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(52,183,222,0.18), rgba(245,183,10,0.08) 40%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-inner .mono-label { color: var(--teal); }
.cta-title { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 20px 0 22px; letter-spacing: -0.03em; }
.cta-sub { color: var(--muted); font-size: 1.15rem; max-width: 42ch; margin-bottom: 40px; }

/* ===================================================================
   FOOTER
=================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-bottom: 40px; flex-wrap: wrap; gap: 24px; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--teal-soft); }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 10px; }

/* ===================================================================
   REVEAL
=================================================================== */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-title .word, .reveal-word { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ===================================================================
   RESPONSIVO
=================================================================== */
@media (max-width: 940px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 40px 1fr 28px; }
  .service-row p { display: none; }
  /* Hero: sem indicador de scroll (tátil) e altura ajustada */
  .hero { min-height: auto; padding-block: 112px 76px; }
  .scroll-cue { display: none; }
  .hero-actions { margin-bottom: 36px; }
  .hero-meta { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .spotlight { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
