:root {
  --bg: #070a14;
  --bg-elevated: #0d1220;
  --surface: #12182a;
  --surface-2: #171e33;
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #7c6cff;
  --accent-bright: #9b8cff;
  --accent-deep: #4f46e5;
  --accent-soft: rgba(124, 108, 255, 0.16);
  --glow: rgba(124, 108, 255, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --max: 720px;
  --max-wide: 1120px;
  --header-h: 72px;
  --focus: 0 0 0 3px rgba(155, 140, 255, 0.45);
  --ease: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(124, 108, 255, 0.22), transparent 58%),
    radial-gradient(900px 480px at 92% 8%, rgba(79, 70, 229, 0.14), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #c4b5fd;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 0 0 var(--radius-sm) 0;
}

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

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 20, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--bg);
  }
}

.site-header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(124, 108, 255, 0.28);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  padding: 0.35rem 0;
  transition: color var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-nav {
  min-height: 40px;
  padding: 13px 23px;
  min-width: 108px;
  white-space: nowrap;
  background: var(--accent-deep);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

/* Beat `.nav a` padding (higher specificity) so the CTA keeps horizontal room. */
.nav a.btn-nav {
  padding: 13px 23px;
  min-width: 108px;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--accent);
  color: #fff !important;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.42);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.btn-large {
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

/* ——— Home hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 1rem;
}

.hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.35rem 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 2rem;
  align-items: center;
}

.hero-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 750;
}

.accent-text {
  background: linear-gradient(120deg, #c4b5fd 10%, var(--accent-bright) 45%, #818cf8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede,
.section-lede {
  margin: 0 0 1.6rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
}

.hero-glow {
  position: absolute;
  inset: 8% 5% 0;
  background: radial-gradient(circle at 50% 35%, var(--glow), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.phone-stack {
  position: relative;
  width: min(100%, 420px);
  height: 540px;
}

.phone {
  margin: 0;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3148, #0b0f1a);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  background: #000;
}

.phone-back {
  position: absolute;
  width: 58%;
  left: 0;
  top: 36px;
  transform: rotate(-8deg);
  opacity: 0.92;
}

.phone-front {
  position: absolute;
  width: 64%;
  right: 0;
  top: 0;
  transform: rotate(4deg);
  z-index: 2;
}

.phone-solo {
  width: min(100%, 320px);
  margin: 0 auto;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.35rem;
}

.section-label {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

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

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 108, 255, 0.28);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-bright);
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

.feature-card h3,
.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-split {
  background: linear-gradient(180deg, transparent, rgba(124, 108, 255, 0.04), transparent);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.section-split.reverse .split-copy {
  order: 2;
}

.section-split.reverse .phone-solo {
  order: 1;
}

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

.point-list li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 550;
  font-size: 0.95rem;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

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

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  margin-bottom: 0.9rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.use-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 550;
  font-size: 0.95rem;
}

.cta-panel {
  padding: 1rem 1.35rem 5rem;
}

.cta-panel-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 1.75rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(155, 140, 255, 0.28), transparent 60%),
    linear-gradient(160deg, #17132f 0%, #0d1020 55%, #12103a 100%);
  border: 1px solid rgba(124, 108, 255, 0.28);
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.cta-panel p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: var(--muted);
}

.cta-fine {
  margin: 1rem 0 0 !important;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ——— Shared page shells ——— */
.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.site-main.wide {
  max-width: var(--max-wide);
}

.page-shell {
  padding-top: 2rem;
  padding-bottom: 4.5rem;
}

.page-shell-narrow {
  max-width: 560px;
}

.page-intro {
  margin: 0 0 1.75rem;
  padding: 0.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.page-eyebrow.centered {
  text-align: center;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-surface,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .legal-surface {
    padding: 2rem 2.15rem 2.25rem;
  }
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--accent-bright);
}

.help-topics {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.help-topics article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.help-topics h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.help-topics ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.help-topics li {
  margin-bottom: 0.35rem;
}

.support-contact {
  margin: 1.5rem 0 2rem;
  padding: 1.35rem 1.4rem;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 108, 255, 0.28);
  border-radius: var(--radius);
}

.support-contact p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.section-legacy {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.section-legacy h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
  color: var(--muted);
}

.open-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.28);
}

.open-panel {
  text-align: center;
  padding: 2.5rem 1.35rem 2rem;
  max-width: 28rem;
  margin: 1rem auto 0;
}

.open-panel h1 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.open-panel p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.open-panel .btn {
  width: 100%;
  max-width: 280px;
}

.open-panel .secondary-link {
  display: inline-block;
  margin-top: 1.15rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
}

.open-panel .secondary-link:hover {
  color: var(--text);
}

.open-panel .cta-row {
  justify-content: center;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 2.75rem;
  background: rgba(0, 0, 0, 0.22);
}

.site-footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-copy {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .phone-stack {
    width: min(100%, 360px);
    height: 460px;
    margin: 0 auto;
  }

  .section-split.reverse .split-copy,
  .section-split.reverse .phone-solo {
    order: initial;
  }

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

@media (max-width: 720px) {
  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.1rem 1rem;
    background: rgba(10, 14, 26, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid var(--border);
  }

  .nav .btn-nav,
  .nav a.btn-nav {
    margin-top: 0.65rem;
    width: 100%;
    min-width: 0;
    padding: 13px 23px;
    white-space: nowrap;
  }

  .feature-grid,
  .point-list {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .phone-stack {
    height: 420px;
  }

  .phone-back {
    width: 54%;
    top: 48px;
  }

  .phone-front {
    width: 62%;
  }
}

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

  .btn,
  .feature-card,
  .nav a {
    transition: none;
  }

  .btn-primary:hover,
  .feature-card:hover {
    transform: none;
  }
}
