/* ---------- Tokens ---------- */
:root {
  --grad: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.12));
  --bg: #fbfaff;
  --bg-alt: #f3f1ff;
  --surface: #ffffff;
  --ink: #0f0a1f;
  --ink-2: #4b4a63;
  --ink-3: #7c7b95;
  --line: rgba(15, 10, 31, 0.08);
  --line-2: rgba(15, 10, 31, 0.04);
  --primary: #7c3aed;
  --primary-2: #2563eb;
  --safe: #16a34a;
  --caution: #f59e0b;
  --avoid: #ef4444;
  --shadow-sm: 0 1px 2px rgba(15, 10, 31, 0.06), 0 1px 3px rgba(15, 10, 31, 0.04);
  --shadow-md: 0 6px 18px -6px rgba(31, 17, 84, 0.18), 0 2px 6px rgba(31, 17, 84, 0.06);
  --shadow-lg: 0 28px 60px -28px rgba(31, 17, 84, 0.45), 0 8px 18px rgba(31, 17, 84, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --maxw: 1160px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 4.5vw + 1rem, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.6rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0; color: var(--ink-2); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--grad-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.6);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(124, 58, 237, 0.7); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(15, 10, 31, 0.16); }

.btn-sm  { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg  { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 255, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 255, 0.85);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 32px; height: 32px; display: inline-block; }
.brand-mark svg { width: 100%; height: 100%; border-radius: 9px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 24px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(50% 50% at 10% 30%, rgba(37, 99, 235, 0.15), transparent 60%),
    radial-gradient(40% 40% at 60% 80%, rgba(236, 72, 153, 0.10), transparent 60%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

/* ---------- Hero phone art ---------- */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
}
.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: linear-gradient(180deg, #2a1f4a 0%, #131127 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #0a0818;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f6f3ff 0%, #ffffff 60%);
  border-radius: 34px;
  padding: 56px 22px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.screen-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.screen-header p {
  font-size: 0.82rem;
  color: var(--ink-3);
}
.screen-pill {
  width: 64px;
  height: 6px;
  background: var(--grad);
  border-radius: 999px;
  margin-bottom: 10px;
}
.screen-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 6px;
}
.stat {
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
}
.stat strong { display: block; font-size: 1.4rem; line-height: 1; margin-bottom: 4px; }
.stat span   { color: inherit; opacity: 0.85; }
.stat-safe    { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.stat-caution { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.stat-avoid   { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.screen-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.screen-row strong { display: block; font-size: 0.9rem; }
.screen-row span   { font-size: 0.76rem; color: var(--ink-3); }
.row-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.row-safe    .row-icon { background: rgba(22, 163, 74, 0.14); color: #16a34a; }
.row-caution .row-icon { background: rgba(245, 158, 11, 0.18); color: #d97706; }
.row-avoid   .row-icon { background: rgba(239, 68, 68, 0.14); color: #ef4444; }

.float-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  min-width: 200px;
}
.float-card strong { display: block; font-size: 0.92rem; }
.float-card span { font-size: 0.78rem; color: var(--ink-3); }
.float-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, white);
}
.float-1 { top: 8%; left: -8%; }
.float-2 { bottom: 8%; right: -6%; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.trust-row > div:first-child strong { display: block; font-size: 1rem; }
.trust-row > div:first-child span   { font-size: 0.88rem; color: var(--ink-3); }
.trust-items {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-items .num { display: block; font-size: 1.35rem; font-weight: 700; }
.trust-items .lab { font-size: 0.8rem; color: var(--ink-3); }

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head-left { margin-left: 0; text-align: left; }
.section-head p a { color: var(--primary-2); text-decoration: underline; }
.section-head p a:hover { color: var(--primary); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 10, 31, 0.12);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, white);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p  { font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.steps h3 { margin-bottom: 6px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan header { margin-bottom: 24px; }
.plan h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--ink-2); font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per    { color: var(--ink-3); font-weight: 500; }
.plan p { font-size: 0.95rem; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
  flex: 1;
}
.plan-features li {
  position: relative;
  padding-left: 28px;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-soft);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5 10 17l9-10'/></svg>"),
    var(--grad-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px, 100% 100%;
}
.plan-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow-md);
}
.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -10px rgba(124, 58, 237, 0.7);
}
.plan-fineprint {
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: 12px;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.faq-list details[open] {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p {
  margin-top: 12px;
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 0 0 96px;
}
.cta-inner {
  background: var(--grad);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { font-size: 1.9rem; margin-bottom: 8px; }
.cta-inner p  { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
.cta-inner .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.4);
}
.cta-inner .btn-primary:hover { background: #f6f3ff; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f0a1f;
  color: #cfcde6;
  padding: 64px 0 32px;
}
.site-footer .brand { color: #fff; }
.site-footer .tagline {
  margin-top: 12px;
  color: #9b98c1;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid nav a {
  color: #cfcde6;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-grid nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  color: #9b98c1;
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { min-height: 540px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(251, 250, 255, 0.97);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    margin: 0;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .hero { padding: 40px 0 64px; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 36px 28px; flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .float-1 { left: 0; }
  .float-2 { right: 0; }
  .phone { transform: scale(0.92); }
}

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