:root {
  --ink: #172033;
  --muted: #566277;
  --surface: #f7f8fc;
  --line: #dce2ed;
  --brand: #5a43d6;
  --brand-dark: #34258b;
  --night: #10172a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.55 Inter, "Segoe UI", sans-serif; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a[href="./security.html"] { display: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #8d7dff; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: .65rem 1rem; color: white; background: var(--night); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(220,226,237,.9); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 158px; height: auto; }
.brand span { display: none; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 1.35rem; font-size: .93rem; font-weight: 650; }
.nav-links a:hover { color: var(--brand); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1rem; border: 1px solid transparent; border-radius: 7px; font-weight: 750; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--brand); box-shadow: 0 9px 20px rgba(90,67,214,.2); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { border-color: #c9d1e2; background: white; }
.button-secondary:hover { border-color: var(--brand); color: var(--brand); }

.hero { padding: 88px 0 76px; background: linear-gradient(118deg, #f4f1ff 0%, #f8fbff 47%, #eef7f8 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr); align-items: center; gap: clamp(32px, 7vw, 92px); }
.eyebrow { margin: 0 0 16px; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.045em; line-height: 1.05; }
h1 { max-width: 750px; font-size: clamp(2.8rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
h3 { font-size: 1.25rem; }
.hero-copy { margin: 24px 0 30px; max-width: 620px; color: #344055; font-size: clamp(1.08rem, 1.5vw, 1.26rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { overflow: hidden; min-height: 370px; border: 1px solid rgba(90,67,214,.12); border-radius: 18px; background: #222b4e; box-shadow: 0 28px 60px rgba(28,37,75,.18); }
.hero-media video { width: 100%; height: 100%; min-height: 370px; object-fit: cover; }

.section { padding: 88px 0; }
.section-soft { background: var(--surface); }
.section-dark { color: white; background: var(--night); }
.section-heading { display: grid; grid-template-columns: .9fr 1fr; gap: 48px; margin-bottom: 44px; align-items: end; }
.section-heading p:last-child { margin: 0; max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-heading p:last-child, .section-dark .card p { color: #c6cddd; }
.grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.section-dark .card { border-color: #34405b; background: #182136; }
.card p { margin: 13px 0 0; color: var(--muted); }
.step { color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.metric { padding: 28px 0; border-top: 1px solid var(--line); }
.metric strong { display: block; margin-bottom: 8px; font-size: 1.2rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 26px; }
.feature-list li::before { position: absolute; left: 0; color: var(--brand); content: "✓"; font-weight: 800; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.billing-toggle { display: inline-flex; gap: 4px; margin: 0 0 32px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.billing-toggle button { padding: .5rem .85rem; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font: 750 .86rem/1 Inter, sans-serif; }
.billing-toggle button[aria-pressed="true"] { color: white; background: var(--brand); }
.billing-save { margin-left: 8px; color: #24754d; font-size: .82rem; font-weight: 750; }
.plan { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgba(90,67,214,.14); }
.badge { position: absolute; top: -13px; left: 24px; padding: 4px 9px; border-radius: 999px; color: white; background: var(--brand); font-size: .72rem; font-weight: 800; }
.price { margin: 32px 0 26px; color: #000; font: 800 clamp(1.5435rem, 2.695vw, 2.352rem)/.9 "Space Grotesk", sans-serif; letter-spacing: -.07em; }
.price .price-value { color: #000; font: inherit; letter-spacing: inherit; }
.price .price-context { color: var(--muted); font: 500 .92rem/1.3 Inter, sans-serif; letter-spacing: 0; }
.price-note { min-height: 48px; margin: 0 0 23px; color: var(--muted); }
.plan ul { min-height: 190px; padding: 0; list-style: none; }
.plan li { margin: 9px 0; padding-left: 21px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.comparison { width: 100%; border-collapse: collapse; font-size: .94rem; }
.comparison th, .comparison td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.notice { margin-top: 24px; padding: 16px 18px; border-left: 4px solid var(--brand); background: #f2f0ff; color: #35405b; }

.cta { padding: 74px 0; color: white; background: linear-gradient(118deg, #36249a, #654edb); }
.cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.cta p { max-width: 630px; margin: 16px 0 0; color: #e3dfff; font-size: 1.08rem; }
.cta .button-primary { color: var(--brand-dark); background: white; box-shadow: none; }
.site-footer { padding: 38px 0; color: #b4bfd2; background: #0c1220; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; }
.footer-links a:hover { color: white; }

@media (max-width: 850px) {
  .nav-links { display: none; }
  .hero-grid, .section-heading { grid-template-columns: 1fr; }
  .grid-3, .plan-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-media, .hero-media video { min-height: 260px; }
  .cta-inner, .footer-grid { align-items: flex-start; flex-direction: column; }
  .plan ul { min-height: auto; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav { min-height: 64px; }
  .brand img { width: 132px; }
  .nav-actions .button { display: none; }
  .grid-4, .feature-list { grid-template-columns: 1fr; }
  .section, .hero { padding: 62px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
