:root {
  color-scheme: dark;
  --bg: #0a0d16;
  --bg-2: #0f1524;
  --surface: #141b2c;
  --surface-2: #1b2338;
  --ink: #eef2fb;
  --ink-2: #b9c3d8;
  --muted: #8493ab;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --accent: #7c6cff;
  --accent-strong: #6a58f5;
  --accent-bright: #a99bff;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --emerald: #34d399;
  --cyan: #67e8f9;
  --code-bg: #0b1120;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 20px 45px -26px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 42px 90px -44px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(124, 108, 255, 0.35), 0 24px 60px -32px rgba(124, 108, 255, 0.55);
  --container: 72rem;
  --pad: max(1.25rem, calc((100vw - var(--container)) / 2));
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 22, 0.72);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(150deg, var(--accent-bright) 0%, var(--accent-strong) 100%);
  box-shadow: 0 6px 16px -8px rgba(124, 108, 255, 0.9);
}

.brand-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-2);
}

.site-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.nav-cta {
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-strong);
  outline: none;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 34px -14px rgba(124, 108, 255, 0.8);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
  outline: none;
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-bright);
  outline: none;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 3.5rem;
  padding: 5.5rem var(--pad) 5rem;
  background:
    radial-gradient(60rem 40rem at 78% -10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(50rem 30rem at 10% 120%, rgba(103, 232, 249, 0.07) 0%, transparent 60%),
    var(--bg);
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.hero-copy h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero-lede {
  max-width: 34rem;
  margin: 1.4rem 0 0;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-standards li {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* Hero visual */

.hero-visual {
  display: grid;
  justify-items: end;
  gap: 1.1rem;
}

.auth-card {
  width: min(23rem, 100%);
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--glow);
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: 1.02rem;
}

.auth-card-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--cyan), var(--accent));
}

.auth-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.auth-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.auth-input {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.92rem;
  color: var(--ink-2);
}

.auth-input-dots {
  letter-spacing: 0.15em;
}

.auth-submit {
  display: block;
  margin-top: 0.4rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.auth-alt {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.auth-alt span {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.code-card {
  width: min(22rem, 100%);
  margin-right: -1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--code-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.code-verb {
  font-weight: 700;
  color: var(--cyan);
}

.code-path {
  color: #cbd5e1;
}

.code-status {
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: var(--emerald);
  font-weight: 700;
}

.code-body {
  margin: 0;
  padding: 0.95rem 1.1rem 1.15rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre;
  overflow-x: auto;
}

.c-key { color: #93c5fd; }
.c-str { color: #86efac; }
.c-num { color: #fcd34d; }
.c-punc { color: #94a3b8; }

/* ---------- Trust band ---------- */

.trust-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.25rem;
  padding: 1.6rem var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.trust-lead {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 5px;
  background: rgba(52, 211, 153, 0.16);
  color: var(--emerald);
  font-size: 0.72rem;
  font-weight: 800;
}

/* ---------- Shared section heads ---------- */

.platform,
.ownership,
.migration,
.proof,
.cta {
  padding: 5.5rem var(--pad);
}

.section-head {
  max-width: 42rem;
}

.section-head h2,
.cta h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-sub {
  margin: 1rem 0 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- Platform modules ---------- */

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
}

.module {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.module:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 108, 255, 0.5);
  box-shadow: var(--shadow-md);
}

.module-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-bright);
}

.module h3 {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.module p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Security & compliance ---------- */

.security {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.security-grid li {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.check {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.16);
  position: relative;
}

.check::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.44rem;
  width: 0.42rem;
  height: 0.78rem;
  border: solid var(--emerald);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.security-grid strong {
  display: block;
  margin: 0.9rem 0 0.4rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.security-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- Migration ---------- */

.migration {
  background:
    radial-gradient(60rem 32rem at 8% 0%, var(--accent-soft) 0%, transparent 58%),
    var(--bg);
}

.migration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.timeline-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.timeline-item strong {
  display: block;
  font-size: 1.08rem;
}

.timeline-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Proof ---------- */

.proof {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
}

.proof-item {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.proof-item strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.proof-item p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- CTA ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(48rem 26rem at 88% 120%, rgba(124, 108, 255, 0.4) 0%, transparent 60%),
    linear-gradient(145deg, #17123a 0%, #0f1524 60%);
}

.cta .eyebrow {
  color: var(--accent-bright);
}

.cta p {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
  font-size: 1.05rem;
}

/* ---------- Simple page (privacy) ---------- */

.page-band {
  max-width: 46rem;
  margin: 0 auto;
  padding: 5rem var(--pad) 5.5rem;
}

.page-band h1 {
  margin: 0.7rem 0 1.5rem;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.page-band p {
  margin: 0 0 1.1rem;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 1.05rem;
}

.page-band a {
  color: var(--accent-bright);
  font-weight: 600;
}

.page-band a:hover {
  color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg);
}

.brand-mark-footer {
  font-size: 1rem;
}

.footer-brand p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--accent-bright);
}

.footer-copy {
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .migration-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.5rem 0.55rem;
    font-size: 0.88rem;
  }

  .module-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .cta .button {
    flex: 1 1 auto;
  }

  .hero-visual {
    justify-items: stretch;
  }

  .auth-card,
  .code-card {
    width: 100%;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
