:root {
  --ink: #0B1020;
  --ink-2: #141B33;
  --text: #1F2437;
  --muted: #5B6178;
  --line: #E4E6EF;
  --bg: #FFFFFF;
  --bg-soft: #F5F6FB;
  --violet: #6D5CFF;
  --teal: #22D3B6;
  --grad: linear-gradient(120deg, var(--violet), var(--teal));
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(11, 16, 32, .25);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(109, 92, 255, .7); }
.btn--ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 14px;
}
.eyebrow--light { color: var(--teal); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Topbar */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .2s ease, box-shadow .2s ease;
}
.topbar.is-scrolled { background: rgba(11, 16, 32, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-size: 19px; font-weight: 500; }
.brand strong { font-weight: 700; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn):hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 140px 0 110px;
}
.hero__glow {
  position: absolute; inset: -30% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(109,92,255,.45), transparent),
              radial-gradient(closest-side at 70% 70%, rgba(34,211,182,.25), transparent);
  filter: blur(20px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.2vw, 60px); }
.hero .lead { margin-top: 22px; font-size: 18px; color: rgba(255,255,255,.72); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero__chips li {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7);
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
}

/* Mock dashboard */
.hero__visual { position: relative; }
.mock {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F2F7; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5D8E3; }
.mock__bar span { margin-left: 12px; font-size: 11px; color: var(--muted); background: #fff; padding: 3px 10px; border-radius: 6px; }
.mock__body { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.mock__side { background: var(--ink-2); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.mock__side b { height: 28px; border-radius: 8px; background: rgba(255,255,255,.08); }
.mock__side b.on { background: var(--grad); }
.mock__main { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mock__kpis small { display: block; font-size: 10px; color: var(--muted); }
.mock__kpis strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.mock__kpis em { font-style: normal; font-size: 10px; color: #0E9F86; font-weight: 600; }
.mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.mock__chart span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, rgba(109,92,255,.35), var(--violet)); }
.mock__chart span:last-child { background: var(--grad); }
.mock__rows { display: grid; gap: 8px; }
.mock__rows i { height: 12px; border-radius: 4px; background: #EEF0F6; }
.mock__rows i:nth-child(2) { width: 80%; }
.mock__rows i:nth-child(3) { width: 60%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(20, 27, 51, .92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 12px 16px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.8);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
}
.float-card b { color: #fff; }
.float-card--ai { left: -28px; bottom: -34px; max-width: 280px; }
.float-card--app { right: -18px; top: -26px; }
.float-card .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(34,211,182,.2); }
.phone { flex: none; width: 26px; height: 42px; border-radius: 6px; border: 2px solid rgba(255,255,255,.5); padding: 5px 4px; display: grid; gap: 3px; align-content: start; }
.phone i { height: 4px; border-radius: 2px; background: var(--teal); }
.phone i:nth-child(2) { background: var(--violet); }

/* Sections */
.section { padding: 110px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.75); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head--left { text-align: left; margin: 0; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section__head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(109,92,255,.12), rgba(34,211,182,.12));
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Tech */
.section--tight { padding: 90px 0; }
.tech { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech li {
  padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 15px;
}

/* IA */
.ia { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.ia__copy h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 20px; }
.ia__copy p { font-size: 17px; margin-bottom: 32px; }
.ia__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ia__list li {
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
}
.ia__list li::before {
  content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 16px;
}
.ia__list h3 { font-size: 18px; margin-bottom: 8px; }
.ia__list p { font-size: 14.5px; color: rgba(255,255,255,.65); }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  position: relative; overflow: hidden;
}
.case::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.case__tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--violet);
  background: rgba(109,92,255,.08); padding: 5px 10px; border-radius: 999px; margin-bottom: 18px;
}
.case h3 { font-size: 22px; margin-bottom: 12px; }
.case > p { color: var(--muted); font-size: 15px; }
.case__features { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; font-size: 14.5px; }
.case__features li { display: flex; gap: 10px; }
.case__features li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: rgba(34,211,182,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E9F86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.case--soon { background: var(--bg-soft); border-style: dashed; justify-content: center; }
.case--soon::before { display: none; }
.case__link { margin-top: 20px; font-weight: 600; color: var(--violet); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps__n { font-family: var(--font-head); font-size: 34px; font-weight: 700; display: block; margin-bottom: 14px; }
.steps__n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: #fff; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); font-size: 15px; }

/* CTA */
.section--cta { background: var(--ink); position: relative; overflow: hidden; }
.section--cta::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(109,92,255,.4), transparent 70%);
}
.cta { position: relative; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); }
.cta p { margin-top: 16px; color: rgba(255,255,255,.72); font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* Footer */
.footer { background: #070B17; color: rgba(255,255,255,.55); padding: 44px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand--light { font-size: 17px; }
.footer__mail { color: rgba(255,255,255,.85); font-weight: 500; }
.footer__mail:hover { color: var(--teal); }

/* Form page */
.topbar.is-solid { position: sticky; background: var(--ink); }
.topbar__back { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; }
.topbar__back:hover { color: #fff; }
.page-form { background: var(--bg-soft); }
.form-page { padding: 56px 0 96px; }
.form-page__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.form-page__intro { position: sticky; top: 100px; }
.form-page__intro h1 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 16px; }
.form-page__intro > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.form-page__perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.form-page__perks li { display: flex; gap: 10px; font-weight: 500; }
.form-page__perks li::before,
.lead-success__icon {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: rgba(34,211,182,.15); color: #0E9F86;
}

.lead-form, .lead-success {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; box-shadow: var(--shadow);
}
.lead-form fieldset { border: 0; margin: 0 0 28px; padding: 0; }
.lead-form legend { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 18px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label, .field__label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 12px 14px; border: 1px solid #D4D7E3; border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,92,255,.15);
}
.field__err { display: none; color: #D93A4A; font-size: 13px; margin-top: 6px; }
.is-invalid .field__err { display: block; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: #D93A4A; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-soft); margin-bottom: 20px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11,16,32,.08); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--violet); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border: 1px solid #D4D7E3; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.chips input { accent-color: var(--violet); margin: 0; }
.chips label:has(input:checked) { border-color: var(--violet); background: rgba(109,92,255,.07); color: var(--ink); }
.is-invalid .chips label { border-color: #F0B4BB; }

.consents { display: grid; gap: 12px; margin-bottom: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--violet); flex: none; }
.check a { color: var(--violet); font-weight: 600; text-decoration: underline; }
.check.is-invalid span { color: #D93A4A; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin-bottom: 16px; }
.form-msg { background: #FDECEE; color: #B42334; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.lead-success { text-align: center; padding: 56px 36px; }
.lead-success__icon { width: 64px; height: 64px; font-size: 28px; margin: 0 auto 20px; }
.lead-success h2 { font-size: 30px; margin-bottom: 12px; }
.lead-success p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }
.form-page__grid > [hidden] { display: none; }

/* Legal page */
.legal { padding: 56px 0 96px; }
.legal article { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px; }
.legal h1 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 15.5px; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--violet); font-weight: 600; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid, .ia, .faq { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 20px auto 0; width: 100%; }
  .cards, .cases { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .faq { gap: 32px; }
  .form-page__grid { grid-template-columns: 1fr; gap: 32px; }
  .form-page__intro { position: static; }
}

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--ink); padding: 12px 16px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; }
  .nav .btn { margin-top: 8px; }
  .topbar:has(.nav.is-open) { background: var(--ink); }
}

@media (max-width: 640px) {
  .hero { padding: 112px 0 90px; }
  .section { padding: 76px 0; }
  .cards, .cases, .steps, .ia__list { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .mock__body { min-height: 240px; }
  .float-card--ai { left: 8px; right: 8px; bottom: -40px; max-width: none; }
  .float-card--app { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .lead-form, .legal article { padding: 24px 18px; }
  .form-page, .legal { padding: 32px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
