/* ==========================================================================
   Loodi · loodi.dev
   Cores, tipografia e raios do Manual da marca v1.0. Site todo no fundo noite.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green: #10B981;       /* Verde Loodi */
  --mint: #34D399;        /* Menta: destaque de texto sobre noite (9,9:1) */
  --cyan: #06B6D4;        /* Ciano */
  --ink: #062A2E;         /* Tinta: texto sobre os verdes */
  --night: #0B1020;       /* Noite: fundo */
  --white: #FFFFFF;

  --bg: var(--night);
  --bg-alt: #0F1628;
  --surface: rgb(255 255 255 / .035);
  --surface-hover: rgb(255 255 255 / .06);
  --line: rgb(255 255 255 / .09);
  --fg: #F4F7F6;
  --muted: #A3ADB8;
  --subtle: #7B8794;

  /* Raios do manual: 6 etiquetas, 12 botões e campos, 20 cartões, 28 blocos */
  --r-tag: 6px;
  --r-btn: 12px;
  --r-card: 20px;
  --r-block: 28px;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
strong { font-weight: 500; color: var(--fg); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: var(--r-tag); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Tipografia ---------- */
.display {
  font-size: clamp(38px, 6.4vw, 68px); font-weight: 400; line-height: 1.08; letter-spacing: -.03em;
  text-wrap: balance;
}
.title-1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 400; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.title-2 { font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
.title-3 { font-size: 19px; font-weight: 400; line-height: 1.3; letter-spacing: -.01em; }
.label   { font-size: 16px; font-weight: 400; }
.accent  { color: var(--mint); }
.display .accent { display: block; }
.overline { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--muted); max-width: 58ch; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- Ícones e símbolo ---------- */
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn .icon, .link-btn .icon { width: 16px; height: 16px; }
.oo { height: .53em; width: auto; aspect-ratio: 555 / 316; --ld-l: var(--green); --ld-d: var(--green); }

/* Logotipo branco: "L" e "di" brancos, "oo" em verde Loodi */
.wordmark {
  display: inline-block; white-space: nowrap;
  font-size: 28px; font-weight: 700; line-height: 1;
  color: var(--white); text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
/* Medidas do logotipo oficial: "oo" com 76% da altura do "L", apoiado na mesma base,
   respiro curto depois do "L" e maior antes do "d". */
.wordmark { letter-spacing: 0; }
.wordmark .oo { vertical-align: 0; margin: 0 .04em 0 .01em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .25s var(--ease), translate .2s var(--ease);
}
.btn:hover { text-decoration: none; translate: 0 -1px; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
/* Texto sobre verde é sempre tinta */
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #4ADEA9; box-shadow: 0 0 0 4px rgb(52 211 153 / .15), 0 10px 30px -10px rgb(52 211 153 / .6); }
.btn-outline { background: transparent; color: var(--fg); border-color: rgb(52 211 153 / .5); }
.btn-outline:hover { background: rgb(52 211 153 / .08); border-color: var(--mint); }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--mint); font-weight: 400; font-size: 14px;
}
.link-btn .icon { transition: translate .2s var(--ease); }
.link-btn:hover .icon { translate: 3px 0; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 10px; background: transparent; border: 1px solid var(--line); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-hover); border-color: rgb(255 255 255 / .2); }
.icon-btn-sm { width: 36px; height: 36px; }
.icon-btn-sm .icon { width: 16px; height: 16px; }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: var(--r-tag);
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
}
.tag-green { background: var(--mint); color: var(--ink); border-color: transparent; }

/* ---------- Barra de progresso (scroll-driven) ---------- */
.progress {
  position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--mint));
  transform-origin: 0 50%; scale: 0 1;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { scale: 1 1; } }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgb(11 16 32 / .72);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: var(--fg); font-weight: 400; font-size: 14px; opacity: .85; transition: opacity .2s, color .2s; }
.menu a:hover { opacity: 1; text-decoration: none; }
.menu a[aria-current="true"] { color: var(--mint); opacity: 1; }
.menu .menu-cta { color: var(--ink); opacity: 1; margin-left: 4px; }
.menu-btn { display: none; }

@media (width < 880px) {
  .menu-btn { display: inline-grid; }
  .menu {
    inset: 64px var(--gutter) auto auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    min-width: 240px; padding: 10px;
    background: #121A2E; color: var(--fg);
    border: 1px solid var(--line); border-radius: var(--r-card);
    box-shadow: 0 20px 50px -20px rgb(0 0 0 / .7);
    opacity: 0; translate: 0 -8px;
    transition: opacity .25s var(--ease), translate .25s var(--ease),
                display .25s allow-discrete, overlay .25s allow-discrete;
  }
  .menu:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { .menu:popover-open { opacity: 0; translate: 0 -8px; } }
  .menu a { padding: 10px 12px; border-radius: 10px; font-size: 15px; }
  .menu a:hover { background: var(--surface-hover); }
  .menu .menu-cta { margin: 6px 0 0; }
  .menu .menu-cta:hover { background: #4ADEA9; }
}
@media (width >= 880px) {
  .menu { display: flex !important; position: static; inset: auto; margin: 0; border: 0; padding: 0; background: none; overflow: visible; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: min(100svh, 920px);
  display: grid; align-items: center;
  padding-block: 120px 72px;
}
.hero-glow {
  /* Brilho verde que segue o ponteiro (--gx/--gy atualizadas pelo JS) */
  --gx: 40%; --gy: 25%;
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at var(--gx) var(--gy), rgb(16 185 129 / .22), transparent 70%),
    radial-gradient(900px 600px at 50% 0%, rgb(16 185 129 / .10), transparent 70%),
    radial-gradient(500px 400px at 85% 70%, rgb(6 182 212 / .07), transparent 70%);
  transition: background-position .3s;
}
.hero::after {
  /* Grade sutil que some nas bordas */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { display: grid; justify-items: center; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 400; color: var(--mint);
  background: rgb(52 211 153 / .08); border: 1px solid rgb(52 211 153 / .22);
}
.pill .icon { width: 15px; height: 15px; }
.hero .display { margin-top: 24px; }
.hero .lead { margin-top: 20px; max-width: 52ch; }
.hero .actions { justify-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center;
  gap: 16px clamp(24px, 7vw, 88px); margin-top: 56px;
}
.stat { display: grid; justify-items: center; gap: 4px; }
.stat dt { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(20px, 2.6vw, 24px); font-weight: 500; color: var(--mint); letter-spacing: -.01em; }
.stat dt .icon { width: 18px; height: 18px; }
.stat dd { font-size: 13px; color: var(--muted); }
@media (width < 560px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Faixa de pilares ---------- */
.band { background: var(--bg-alt); border-block: 1px solid var(--line); padding-block: 56px; }
.band-grid { display: grid; gap: 32px; text-align: center; }
@media (width >= 720px) { .band-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-title { font-size: 20px; font-weight: 400; color: var(--mint); letter-spacing: -.01em; }
.pillar p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 32ch; margin-inline: auto; }

/* ---------- Seções ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 128px); }
.section-alt { background: var(--bg-alt); }
.section-head { display: grid; justify-items: center; text-align: center; }
.section-head .lead { margin-inline: auto; }
.overline + .title-1 { margin-top: 14px; }
.title-1 + .lead { margin-top: 16px; }

#diferenciais, #como, #sobre, #contato { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* ---------- Cartões com brilho que segue o ponteiro ---------- */
.feature, .step {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color .3s, translate .3s var(--ease), background-color .3s;
}
.feature::before, .step::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgb(52 211 153 / .10), transparent 60%);
}
@media (hover: hover) {
  .feature:hover, .step:hover { border-color: rgb(52 211 153 / .3); }
  .feature:hover::before, .step:hover::before { opacity: 1; }
  .feature:hover { translate: 0 -3px; }
}

/* ---------- Passos ---------- */
.steps { display: grid; gap: 16px; margin-top: 48px; }
@media (width >= 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.step p { color: var(--muted); font-size: 15px; }
.step-num { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 400; letter-spacing: .1em; color: var(--subtle); }
.step-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; margin-bottom: 8px;
  border-radius: var(--r-btn); color: var(--mint);
  background: rgb(52 211 153 / .08); border: 1px solid rgb(52 211 153 / .2);
}
.step-icon .oo { height: 13px; --ld-l: var(--mint); --ld-d: var(--mint); }

/* ---------- Duas colunas ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (width >= 880px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Diferenciais */
.features { display: grid; gap: 16px; margin-top: 48px; }
@media (width >= 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (width >= 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Sobre: símbolo no círculo com bolinhas flutuando ---------- */
.values { display: grid; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.values li { position: relative; padding-left: 22px; }
.values li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 3px; background: var(--mint);
}

.orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.orbit-circle {
  position: absolute; inset: 6%; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgb(52 211 153 / .14), transparent 60%),
    #0C2A2E;
  border: 1px solid rgb(52 211 153 / .18);
  box-shadow: 0 0 0 14px rgb(52 211 153 / .03), 0 0 0 28px rgb(52 211 153 / .02), 0 40px 80px -30px rgb(0 0 0 / .7);
}
.orbit-symbol { width: 54%; height: auto; }
.dot { position: absolute; border-radius: 50%; animation: bob 7s ease-in-out infinite; }
.dot-1 { width: 15%; aspect-ratio: 1; top: 0; right: 6%; background: rgb(6 182 212 / .35); }
.dot-2 { width: 10%; aspect-ratio: 1; bottom: 4%; left: 4%; background: rgb(52 211 153 / .35); animation-delay: -2.5s; }
.dot-3 { width: 6%; aspect-ratio: 1; top: 18%; left: 0; background: rgb(16 185 129 / .5); animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ---------- Contato ---------- */
.contact { overflow: clip; isolation: isolate; }
.contact-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 400px at 20% 100%, rgb(16 185 129 / .12), transparent 70%);
}
.contact-email { display: flex; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; color: var(--mint); }
.contact-email a { font-size: 19px; font-weight: 400; }
.copy-status { font-size: 13px; color: var(--muted); }
.contact-place { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 15px; }

.contact-form {
  display: grid; gap: 16px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-weight: 300; color: var(--fg); width: 100%;
  padding: 11px 14px; border-radius: var(--r-btn);
  background: rgb(0 0 0 / .2); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { field-sizing: content; min-height: 6lh; resize: vertical; }
.field ::placeholder { color: var(--subtle); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgb(52 211 153 / .18);
}
.field:has(:user-invalid) input, .field:has(:user-invalid) textarea { border-color: #F87171; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form .btn[disabled] { opacity: .65; cursor: progress; translate: none; box-shadow: none; }
.contact-form.is-sent .field, .contact-form.is-sent .btn, .contact-form.is-sent .form-hint { display: none; }
.contact-form.is-sent .form-status { font-size: 17px; }
.form-status:empty { display: none; }
.form-status { font-size: 14px; color: var(--mint); }
.form-status.is-error { color: #FCA5A5; }
.form-hint { font-size: 13px; color: var(--subtle); }
.contact-form .btn { justify-self: start; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--fg); text-decoration: none; }
.footer-legal { width: 100%; color: var(--subtle); font-size: 13px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Revelação ao rolar ---------- */
@keyframes reveal { from { opacity: 0; translate: 0 24px; filter: blur(4px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  /* O hero já está na tela: entra por tempo, em cascata */
  .hero .reveal { animation: reveal .9s var(--ease) both; animation-timeline: auto; }
}
@supports not (animation-timeline: view()) {
  .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
  .reveal.is-visible { opacity: 1; translate: 0 0; }
}
.hero .reveal:nth-child(2) { animation-delay: .1s; }
.hero .reveal:nth-child(3) { animation-delay: .2s; }
.hero .reveal:nth-child(4) { animation-delay: .3s; }
.hero .reveal:nth-child(5) { animation-delay: .45s; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; filter: none; }
  .progress { display: none; }
}
