/* ============================================================
   Company Builder · Sistema visual compartilhado
   Paleta dark glass · Apple HIG · Inter · Blue accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&display=swap');

:root {
  --bg-0: #06070A;
  --bg-1: #0A0C12;
  --bg-2: #11141C;
  --ink: #050608;
  --paper: #F5F5F7;
  --paper-2: rgba(245, 245, 247, 0.74);
  --paper-3: rgba(245, 245, 247, 0.46);
  --paper-4: rgba(245, 245, 247, 0.20);
  --rule: rgba(245, 245, 247, 0.08);
  --rule-2: rgba(245, 245, 247, 0.16);
  --blue: #0A84FF;
  --blue-hover: #2A95FF;
  --green: #30D158;
  --red: #FF453A;

  --max:    980px;
  --max-md: 1140px;
  --max-lg: 1440px;
  --pad-x:  clamp(22px, 5vw, 64px);
  --ease:   cubic-bezier(0.42, 0, 0.58, 1);
  --eo:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-0); }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  color: var(--paper);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.47;
  overflow-x: hidden;
  font-feature-settings: 'kern', 'cv11';
}
::selection { background: var(--blue); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.container.md { max-width: var(--max-md); }
.container.lg { max-width: var(--max-lg); }

/* ============== AMBIENT BACKGROUND ============== */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(140px);
  will-change: transform;
}
.ambient::before {
  width: 60vw; height: 60vw; left: -10vw; top: -10vw;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.20), transparent 70%);
  opacity: 0.6;
  animation: drift1 26s ease-in-out infinite alternate;
}
.ambient::after {
  width: 70vw; height: 70vw; right: -15vw; bottom: -20vw;
  background: radial-gradient(circle, rgba(245, 245, 247, 0.10), transparent 70%);
  opacity: 0.55;
  animation: drift2 32s ease-in-out infinite alternate;
}
.ambient .ambient-3 {
  position: absolute; width: 50vw; height: 50vw; left: 30vw; top: 70vh;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.08), transparent 70%);
  border-radius: 50%; filter: blur(160px); opacity: 0.5;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { 0% { transform: translate(0, 0); } 100% { transform: translate(20vw, 30vh); } }
@keyframes drift2 { 0% { transform: translate(0, 0); } 100% { transform: translate(-25vw, -20vh); } }
@keyframes drift3 { 0% { transform: translate(0, 0); } 100% { transform: translate(15vw, -25vh); } }

.noise { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

main { position: relative; z-index: 2; }

/* ============== TYPOGRAPHY ============== */
.eyebrow { font-size: 13px; font-weight: 500; color: var(--paper-3); letter-spacing: 0; margin-bottom: 18px; display: inline-block; }
.h-display { font-weight: 600; font-size: clamp(44px, 7.2vw, 112px); line-height: 1.02; letter-spacing: -0.035em; }
.h-display .thin { font-weight: 600; color: var(--paper-3); display: block; letter-spacing: -0.03em; }
.h-headline { font-weight: 600; font-size: clamp(34px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.026em; }
.h-section { font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.022em; }
.h-card { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.14; letter-spacing: -0.014em; }
.h-display em, .h-headline em, .h-section em, .h-card em, .statement-text em, .cta-final h2 em {
  font-style: normal; font-weight: inherit;
  background: linear-gradient(180deg, #f5f5f7 0%, #86868b 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.36; font-weight: 400; color: var(--paper-2); max-width: 36ch; }
.body { font-size: 17px; line-height: 1.5; font-weight: 400; color: var(--paper-2); }
.small { font-size: 13px; line-height: 1.5; color: var(--paper-3); }

/* ============== GLASS COMPONENT ============== */
.glass {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 4px 24px rgba(0, 0, 0, 0.24);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}

/* ============== CTAs ============== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit; font-weight: 500; border-radius: 980px; padding: 14px 26px; font-size: 16px; line-height: 1.18; cursor: pointer; border: none; transition: all 0.25s var(--ease); letter-spacing: -0.005em; text-align: center; }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-glass { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--paper); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.22); }
.btn-blue { background: var(--blue); color: var(--paper); }
.btn-blue:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--paper); padding: 14px 8px; font-weight: 500; }
.btn-secondary::after { content: '›'; margin-left: 4px; transition: transform 0.25s var(--ease); display: inline-block; font-weight: 400; }
.btn-secondary:hover::after { transform: translateX(4px); }
.btn-blue-link { background: transparent; color: var(--blue); padding: 14px 8px; font-weight: 500; }
.btn-blue-link::after { content: '›'; margin-left: 4px; transition: transform 0.25s var(--ease); display: inline-block; font-weight: 400; }
.btn-blue-link:hover { color: var(--blue-hover); }
.btn-blue-link:hover::after { transform: translateX(4px); }
.actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.actions.center { justify-content: center; }

/* ============== NAV ============== */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 999; max-width: 1100px; width: calc(100% - 32px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 18px 10px 22px; border-radius: 999px; background: rgba(20, 22, 28, 0.55); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 24px rgba(0,0,0,0.4); }
.nav-brand { font-weight: 500; font-size: 16px; letter-spacing: -0.012em; color: var(--paper); flex: none; display: inline-flex; align-items: center; gap: 10px; }
.nav-brand .dot { color: var(--paper-3); }
.nav-brand .mark { width: 24px; height: 24px; display: block; flex: none; }
.nav-list { display: flex; gap: 22px; flex: 1; justify-content: center; font-size: 13px; color: var(--paper-2); }
.nav-list a { transition: color 0.18s var(--ease); }
.nav-list a:hover { color: var(--paper); }
@media (max-width: 900px) { .nav-list { display: none; } }
.nav-cta { font-size: 13px; font-weight: 500; color: var(--ink); background: var(--paper); padding: 7px 16px; border-radius: 999px; flex: none; transition: all 0.2s var(--ease); }
.nav-cta:hover { background: rgba(255,255,255,0.92); }

/* ============== FOOTER ============== */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--rule); font-size: 12px; line-height: 1.5; color: var(--paper-3); }
.footer .container.lg { max-width: var(--max-lg); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--paper); margin-bottom: 14px; letter-spacing: -0.005em; }
.footer-col h4.brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-col h4.brand img { display: block; flex: none; }
.footer-col h4 .dot { color: var(--paper-3); }
.footer-col a, .footer-col span.line { display: block; padding: 5px 0; color: var(--paper-3); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 16px; color: var(--paper-3); font-size: 11px; }

/* ============== LOADER ============== */
.loader { position: fixed; inset: 0; background: var(--bg-0); z-index: 9000; display: flex; align-items: center; justify-content: center; pointer-events: all; }
.loader-text { font-weight: 500; font-size: 22px; color: var(--paper); letter-spacing: -0.018em; opacity: 0; }
.loader-text .dot { color: var(--paper-3); }

/* ============== SECTION BASE ============== */
section.s { padding: clamp(96px, 14vh, 140px) 0; position: relative; }
.label-row { display: flex; align-items: center; gap: 14px; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--paper-3); margin-bottom: 36px; }

/* ============== REVEAL ============== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--eo), transform 1s var(--eo); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============== INPUTS ============== */
.field { margin-bottom: 22px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .field-pair { grid-template-columns: 1fr; } }
.input-label { font-size: 12px; font-weight: 500; color: var(--paper-3); margin-bottom: 8px; display: block; letter-spacing: 0; }
.input-label .req { color: var(--blue); }
.input-text, textarea, select {
  width: 100%; padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  font-family: inherit; font-weight: 400; font-size: 17px; color: var(--paper);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  letter-spacing: -0.005em;
}
.input-text:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); background: rgba(255, 255, 255, 0.06); }
.input-text::placeholder, textarea::placeholder { color: var(--paper-4); }
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2386868b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; cursor: pointer; }
select option { background: var(--bg-1); color: var(--paper); }

/* ============== LGPD CHECKBOX ============== */
.lgpd-row { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; margin: 12px 0 24px; cursor: pointer; }
.lgpd-row.checked { border-color: var(--blue); background: rgba(10, 132, 255, 0.08); }
.lgpd-row input { display: none; }
.lgpd-row .check { width: 18px; height: 18px; border: 1.5px solid var(--paper-4); border-radius: 4px; flex: none; margin-top: 2px; transition: all 0.2s ease; }
.lgpd-row.checked .check { border-color: var(--blue); background: var(--blue); position: relative; }
.lgpd-row.checked .check::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -65%) rotate(-45deg); width: 9px; height: 5px; border: 2px solid var(--paper); border-top: none; border-right: none; }
.lgpd-row .lgpd-text { font-size: 14px; line-height: 1.5; color: var(--paper-2); flex: 1; }
.lgpd-row a { text-decoration: underline; color: var(--paper); }
.lgpd-row a:hover { color: var(--blue); }

/* ============== ALERT ============== */
.alert { padding: 14px 18px; background: rgba(255, 69, 58, 0.10); border: 1px solid rgba(255, 69, 58, 0.30); border-radius: 10px; font-size: 14px; color: var(--red); margin-bottom: 16px; display: none; }
.alert.show { display: block; }

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