/* descubrase.ia, landing. Tokens do handoff (docs/handoff.md). */
:root {
  --grafite: #1C1D21;
  --grafite-2: #222328;
  --borda: #2A2B30;
  --borda-2: #3A3B40;
  --laranja: #FF5A1F;
  --off: #E9E6E0;
  --cinza: #A9AAB0;
  --cinza-claro: #55565C;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grafite); color: var(--off); font-family: 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
input, textarea, button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.accent { color: var(--laranja); }
.white { color: #fff; }
.muted { color: var(--cinza); }
.muted-light { color: var(--cinza-claro); }
.stack-10, .stack-16, .stack-20, .stack-28, .stack-48 { display: flex; flex-direction: column; }
.stack-10 { gap: 10px; } .stack-16 { gap: 16px; } .stack-20 { gap: 20px; } .stack-28 { gap: 28px; } .stack-48 { gap: 48px; }
.row-12 { display: flex; gap: 12px; flex-wrap: wrap; }

h1, h2, h3 { margin: 0; font-family: 'Michroma', sans-serif; font-weight: 400; }
h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .14em; }
.eyebrow-sm { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .1em; }
.lead { max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--cinza); }
.sub { font-size: 17px; line-height: 1.6; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; transition: background-color .18s, color .18s, border-color .18s; cursor: pointer; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 15px 22px; font-size: 15px; }
.btn-block { width: 100%; padding: 16px; font-size: 15px; border: none; }
.btn-primary { background: var(--laranja); color: var(--grafite); font-weight: 800; }
.btn-primary:hover { background: var(--off); color: var(--grafite); }
.btn-ghost { border: 1px solid var(--borda-2); color: var(--off); }
.btn-ghost.btn-sm { padding: 9px 16px; }
.btn-ghost.btn-lg { padding: 14px 22px; }
.btn-ghost:hover { border-color: var(--off); }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: var(--grafite); border-bottom: 1px solid var(--borda); }
.header-row { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: 'Michroma', sans-serif; font-size: 15px; color: var(--off); }
.brand-sm { font-size: 13px; }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--cinza); }
.nav-links { display: flex; gap: 28px; flex-wrap: wrap; }
.nav-links a:hover { color: var(--off); }
.nav-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .nav-links { order: 2; width: 100%; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--grafite); }
.hero-grid { position: relative; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.hero h1 { color: var(--off); }
.floor { position: absolute; left: -25%; right: -25%; bottom: -5%; height: 55%; pointer-events: none;
  background-image: linear-gradient(rgba(233,230,224,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(233,230,224,.08) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(500px) rotateX(68deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: dsGrid 3s linear infinite; }
@keyframes dsGrid { from { background-position: 0 0; } to { background-position: 0 56px; } }
.logo3d-wrap { display: flex; justify-content: center; }
.logo3d { width: 100%; max-width: 440px; perspective: 1100px; }
.logo3d-rig { position: relative; width: 100%; aspect-ratio: 130 / 120; transform-style: preserve-3d; will-change: transform; transform: rotateX(12deg) rotateY(-20deg); }
.logo3d-half { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.logo3d-half svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* Seções */
.sec-dark { background: var(--grafite); }
.sec-dark h2 { color: var(--off); }
.sec-light { background: var(--off); color: var(--grafite); }
.sec-orange { background: var(--laranja); color: var(--grafite); }
.sec-dark > .container, .sec-light > .container { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }

.about-grid { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 64px; align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; font-weight: 500; }
.about-close { padding-top: 16px; border-top: 1px solid var(--grafite); font-weight: 800; font-size: 18px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.service { background: var(--grafite); border: 1px solid var(--borda); border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; min-height: 340px; transition: background-color .2s; }
.service:hover { background: var(--grafite-2); }
.service-n { font-family: 'Michroma', sans-serif; font-size: 52px; line-height: 1; color: var(--laranja); }
.service-body { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.service h3 { font-size: 18px; line-height: 1.35; color: var(--off); }
.service p { font-size: 15px; line-height: 1.6; }
.service .service-lead { line-height: 1.45; font-weight: 800; color: var(--laranja); }

.verticals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.vertical { border-radius: 16px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.vertical-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.vertical h3 { font-size: 22px; }
.vertical-health { background: var(--laranja); }
.vertical-edu { background: #fff; }
.product { border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.product-name { font-size: 17px; font-weight: 800; }
.product-text { font-size: 14px; line-height: 1.5; }
.vertical-health .product { background: var(--grafite); }
.vertical-health .product-name { color: var(--off); }
.vertical-health .product-text { color: var(--cinza); }
.vertical-edu .product { background: var(--off); }
.vertical-edu .product-name { color: var(--grafite); }
.vertical-edu .product-text { color: var(--cinza-claro); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.step { border-top: 2px solid var(--laranja); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.step-n { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--laranja); }
.step-title { font-family: 'Michroma', sans-serif; font-size: 18px; color: var(--off); }

.contact-grid { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: start; }
.contact-lead { font-size: 17px; line-height: 1.6; font-weight: 500; }
.form, .form-sent { background: var(--grafite); border-radius: 16px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.form input, .form textarea { background: var(--borda); border: 1px solid var(--borda-2); border-radius: 8px; padding: 14px 16px; font-size: 15px; color: var(--off); outline: none; width: 100%; }
.form input::placeholder, .form textarea::placeholder { color: var(--cinza); }
.form input:focus, .form textarea:focus { border-color: var(--laranja); }
.form textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--cinza); text-align: center; }
.form-sent { gap: 12px; padding: 36px; font-size: 15px; line-height: 1.6; }
.form-sent-title { font-family: 'Michroma', sans-serif; font-size: 20px; color: var(--off); }

.footer { background: var(--grafite); border-top: 1px solid var(--borda); }
.footer-row { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-tag { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--cinza); }

/* Animação de entrada: só com JS ligado e sem "reduzir movimento". */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floor { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
