/* Converte — site. Escuro por omissão, secções claras com [data-theme="light"]. */
:root {
  --bg: #07090a; --bg-2: #0d1112; --ink: #f4f6f5; --ink-2: #b9c2bf; --mute: #7d8884; --line: rgba(255,255,255,.09);
  --brand: #00ba7f; --brand-2: #2ef0a8; --brand-deep: #067a56; --brand-soft: rgba(0,186,127,.12);
  --light: #eef2ef; --light-2: #e3e9e5; --light-ink: #0b0f0d; --light-ink-2: #3c4743; --light-mute: #6c7773; --light-line: rgba(0,0,0,.09);
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.025em; line-height: 1.05; font-weight: 500; }
p { margin: 0; }
em { font-style: normal; color: var(--brand-2); }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.muted { color: var(--mute); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #001b13; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

/* camada 3D e brilho de fundo */
#core { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(55vw 45vw at 82% 8%, rgba(0,186,127,.32), transparent 62%),
  radial-gradient(40vw 30vw at 8% 92%, rgba(0,186,127,.10), transparent 70%); transition: opacity .6s var(--ease); }
main, .footer, .nav { position: relative; z-index: 1; }

/* navegação */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--gutter); transition: background .3s, backdrop-filter .3s, transform .4s var(--ease); }
.nav.scrolled { background: rgba(7,9,10,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.on-light { background: rgba(238,242,239,.75); color: var(--light-ink); border-bottom-color: var(--light-line); }
.nav.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px var(--head); letter-spacing: -.02em; }
.brand .dot { color: var(--brand); }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: inherit; opacity: .78; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 10px; font: 600 15px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #001b13; box-shadow: 0 10px 30px -10px rgba(0,186,127,.6); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: rgba(255,255,255,.18); color: var(--ink); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* tipografia de secção */
.kicker { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 22px; }
.display { font-size: clamp(42px, 7.2vw, 96px); }
.title { font-size: clamp(34px, 5vw, 64px); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 560px; margin-top: 26px; line-height: 1.55; }
.lead.small { font-size: 17px; }
.side { color: var(--ink-2); max-width: 380px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; will-change: transform; }

/* 1. hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 40px; }
.hero .display { max-width: 820px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(0,186,127,.35); border-radius: 99px; background: rgba(0,186,127,.08); font: 500 14px var(--body); color: var(--ink); }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }
.hero-line { height: 1px; background: var(--line); margin-top: auto; position: relative; top: 30px; }

/* 2. pedido em palavras */
.tokens { position: relative; padding: 13vh 0 0; height: 100vh; min-height: 620px; overflow: hidden; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.split-head .title { max-width: 680px; }
.token-stage { margin-top: 8vh; display: flex; flex-direction: column; align-items: center; }
.token-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 900px; padding: 0 var(--gutter); }
.tok { position: relative; display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(13,17,18,.7); font: 500 clamp(15px, 1.6vw, 19px) var(--head); color: var(--ink); backdrop-filter: blur(6px); }
.tok::before { content: attr(data-tag); position: absolute; left: 6px; top: -16px; font: 500 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
/* No sítio do núcleo no preset "tokens" (70% da altura do ecrã), com a secção fixa no topo. */
.token-result { position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 32px); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 26px; border: 1px solid rgba(0,186,127,.35); border-radius: 14px; background: rgba(0,186,127,.08); backdrop-filter: blur(8px); opacity: 0; }
.token-result strong { font: 600 clamp(17px, 2vw, 22px) var(--head); }

/* 3. seis tarefas */
.modules { padding: 14vh 0; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-head .title { max-width: 900px; }
.center-head .lead { margin-inline: auto; }
.module-grid { position: relative; display: grid; grid-template-columns: 1fr minmax(160px, 30%) 1fr; margin-top: 8vh; min-height: 520px; }
.module-col { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative; z-index: 1; }
.module { padding: 18px 20px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(13,17,18,.75), rgba(13,17,18,.2)); backdrop-filter: blur(6px); }
.module h3 { font-size: 22px; margin: 6px 0 6px; }
.module p { color: var(--ink-2); font-size: 15px; }
.module-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.module-lines path { fill: none; stroke: rgba(0,186,127,.45); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
@media (max-width: 860px) {
  .module-grid { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
  .module-gap { height: 200px; }
  .module-lines { display: none; }
}

/* 4. frase */
.statement { padding: 16vh 0 22vh; min-height: 90vh; display: flex; align-items: center; }
.statement-inner { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 26px; }
.statement .display { max-width: 820px; font-size: clamp(38px, 6vw, 82px); }

/* 4b. projetos reais */
.proof { padding: 6vh 0 18vh; }
.proof .title { max-width: 820px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.proof-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(13,17,18,.82), rgba(13,17,18,.45)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, transform .35s var(--ease); }
.proof-card:hover { border-color: rgba(0,186,127,.4); transform: translateY(-4px); }
.proof-card h3 { font-size: 26px; }
.proof-card p { color: var(--ink-2); font-size: 15px; }
.proof-link { margin-top: auto; padding-top: 8px; color: var(--brand-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.proof-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }

/* secções claras */
.light { background: var(--light); color: var(--light-ink); }
.light em { color: var(--brand-deep); }
.light .lead, .light .side { color: var(--light-ink-2); }
.light .mono { color: var(--brand-deep); }
.light .muted { color: var(--light-mute); }

/* 5. camadas */
.layers { padding: 16vh 0; border-radius: 28px 28px 0 0; }
.layers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; min-height: 80vh; }
.stack { position: relative; height: 460px; perspective: 1400px; }
.plate { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 14px; background: var(--light-ink); color: #cfd8d4; transform: translateY(var(--y, 0)) rotateX(58deg) rotateZ(-45deg); transform-style: preserve-3d; box-shadow: 0 30px 50px -20px rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 18px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.plate:nth-child(1) { --y: 105px; } .plate:nth-child(2) { --y: 35px; } .plate:nth-child(3) { --y: -35px; } .plate:nth-child(4) { --y: -105px; background: var(--brand); color: #00261a; }
.plate b { font-weight: 600; }
.layer-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 4px; }
.layer-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--light-line); opacity: .38; transition: opacity .4s var(--ease); }
.layer-list li.on { opacity: 1; }
.layer-list h3 { font-size: 20px; margin-bottom: 4px; }
.layer-list p { color: var(--light-ink-2); font-size: 15px; }
@media (max-width: 860px) { .layers-grid { grid-template-columns: 1fr; } .stack { height: 340px; transform: scale(.78); } .layer-list li { opacity: 1; } }

/* 6. setores */
.sectors { padding: 6vh 0 14vh; }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.sector { background: #fff; border: 1px solid var(--light-line); border-radius: 18px; padding: 26px; transition: transform .35s var(--ease), box-shadow .35s; }
.sector:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.25); }
.sector h3 { font-size: 24px; margin: 12px 0 16px; }
.sector ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--light-ink-2); font-size: 15px; }
.sector li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 10px; vertical-align: 2px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.principles div { border-left: 3px solid var(--brand); padding-left: 14px; }
.principles strong { display: block; font-family: var(--head); font-size: 17px; }
.principles span { color: var(--light-mute); font-size: 14px; }
@media (max-width: 860px) { .sector-grid, .principles { grid-template-columns: 1fr; } }

/* 7. perguntas */
.faq { padding: 4vh 0 16vh; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6vw; }
.faq-list details { border-top: 1px solid var(--light-line); }
.faq-list details:last-child { border-bottom: 1px solid var(--light-line); }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 20px; gap: 10px; align-items: baseline; padding: 20px 0; font: 500 18px var(--head); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand-deep); font-size: 22px; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px 54px; color: var(--light-ink-2); max-width: 620px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-list details p { padding-left: 0; } }

/* 8. contacto */
.cta { padding: 18vh 0 16vh; border-radius: 0 0 28px 28px; background: transparent; }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6vw; align-items: start; }
.cta .display { font-size: clamp(38px, 5.4vw, 72px); }
.contact-lines { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.contact-lines li { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; }
.contact-lines a { text-decoration: none; font: 500 18px var(--head); }
.form { background: rgba(13,17,18,.72); border: 1px solid var(--line); border-radius: 20px; padding: 26px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
input, textarea { width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 12px 14px; color: var(--ink); font: 15px var(--body); transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 6px 0 18px; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--brand-2); }
.form-status.err { color: #ff8b8b; }
@media (max-width: 860px) { .cta-grid, .row { grid-template-columns: 1fr; } }

/* rodapé */
.footer { padding: 70px 0 24px; overflow: hidden; }
.brand.dark { color: var(--light-ink); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-top p { margin-top: 10px; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { text-decoration: none; color: var(--light-ink-2); font-size: 15px; }
.footer-cols a:hover { color: var(--light-ink); }
.wordmark { font: 700 clamp(90px, 23vw, 340px)/.8 var(--head); letter-spacing: -.06em; color: rgba(11,15,13,.06); text-align: center; margin: 60px 0 10px; user-select: none; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--light-mute); font-size: 13px; border-top: 1px solid var(--light-line); padding-top: 18px; }
.footer-bottom a { color: inherit; }

/* revelar ao entrar */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.no-motion [data-reveal], .no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .btn, .sector, .nav { transition: none; }
  .token-result { opacity: 1; margin-top: 40px; }
}

/* páginas legais */
.legal-page { background: var(--light); color: var(--light-ink); }
.legal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.legal { max-width: 760px; padding: 40px 0 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p { color: var(--light-ink-2); margin-bottom: 10px; }
.legal a { color: var(--brand-deep); }
.legal-page .footer { padding-top: 0; }
