/* ===== Tokens ===== */
:root {
  --bg: #07080f;
  --bg-alt: #0d0f1a;
  --surface: #121527;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf3;
  --muted: #9aa0b8;
  --primary: #6366f1;
  --primary-2: #06b6d4;
  --radius: 16px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .7);
}
.btn--ghost { border-color: var(--border); background: rgba(255,255,255,.03); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--primary-2); margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc, var(--primary-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 8, 15, .8); backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; letter-spacing: .06em; }
.logo__text small { font-size: 9px; font-weight: 600; letter-spacing: .32em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 90px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -200px 0 auto; height: 700px; pointer-events: none;
  background:
    radial-gradient(600px 300px at 30% 30%, rgba(99,102,241,.35), transparent 70%),
    radial-gradient(500px 300px at 70% 40%, rgba(6,182,212,.25), transparent 70%);
  filter: blur(20px);
}
.hero__inner { position: relative; }
.hero__title { font-size: clamp(36px, 6vw, 68px); font-weight: 800; max-width: 920px; margin: 0 auto 24px; }
.hero__sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 660px; margin: 0 auto 36px; }
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.trusted { margin-top: 80px; }
.trusted p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.trusted__logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px;
  font-size: 20px; font-weight: 700; color: rgba(255,255,255,.35); letter-spacing: -0.01em;
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.section__sub { color: var(--muted); font-size: 17px; }

/* Positioning */
.positioning__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.positioning__copy p { color: var(--muted); font-size: 17px; }

/* Stats */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.stat__label { color: var(--muted); font-size: 15px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.product::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent);
  opacity: .8;
}
.product:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.product--featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  background: radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--surface);
}
.product__main { display: flex; flex-direction: column; }
.product--featured h3 { font-size: 34px; margin-bottom: 4px; }
.product__tagline { color: var(--accent) !important; font-weight: 600; flex: 0 !important; margin-bottom: 12px; }
.product__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  padding: 16px 20px 16px 48px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.02);
  position: relative;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 18px; top: 16px; color: var(--accent); font-weight: 800;
}
.checklist strong { display: block; font-size: 15px; }
.checklist span { color: var(--muted); font-size: 14px; }
.badge {
  align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
  background: rgba(255,255,255,.06); color: var(--muted);
}
.badge--live { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.product .badge:not(.badge--live) { position: absolute; top: 24px; right: 24px; margin: 0; }
.product__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); margin-bottom: 20px;
}
.product__icon svg { width: 26px; height: 26px; }
.product h3 { font-size: 24px; }
.product p { color: var(--muted); flex: 1; }
.tags { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.product__link { font-weight: 600; color: var(--accent); }

/* Solutions */
.solutions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.solution { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.solution h3 { font-size: 19px; }
.solution p { color: var(--muted); margin: 0; font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.feature { background: var(--bg); padding: 40px; }
.feature__num { font-size: 14px; font-weight: 700; color: var(--primary-2); }
.feature h3 { font-size: 22px; margin-top: 12px; }
.feature p { color: var(--muted); margin: 0; }

/* Testimonial */
.testimonial { max-width: 860px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0 0 32px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.testimonial small { color: var(--muted); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

/* Careers */
.careers { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perks li { padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.perks strong { display: block; margin-bottom: 4px; }
.perks span { color: var(--muted); font-size: 15px; }

/* CTA / Contact */
.cta { background: radial-gradient(800px 400px at 20% 50%, rgba(99,102,241,.18), transparent 70%), var(--bg-alt); }
.cta__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.form { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); }
.form .is-invalid { border-color: #ef4444; }
.form__status { margin: 0; font-size: 14px; min-height: 1.4em; }
.form__status.ok { color: #22c55e; }
.form__status.err { color: #ef4444; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 72px 0 24px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 16px; }
.footer__grid > div > a { display: block; color: var(--muted); margin-bottom: 10px; }
.footer__grid a:hover { color: var(--text); }
.footer__brand p, .footer address { color: var(--muted); font-style: normal; margin: 16px 0; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); font-weight: 700; font-size: 14px;
}
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer__bottom p { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .product--featured { grid-template-columns: 1fr; gap: 28px; }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px 24px;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .positioning__grid, .careers, .cta__inner { grid-template-columns: 1fr; gap: 32px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .features { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section__title br { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 130px 0 64px; }
  .products, .solutions { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form, .feature, .product { padding: 24px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
