/* ─── Reset & tokens ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #1a1a22;
  --bg-2:     #22222c;
  --bg-3:     #2c2c38;
  --bg-4:     #363642;
  --border:   rgba(255,255,255,0.08);
  --accent:   #7a92e0;
  --accent-2: #9a7ef0;
  --accent-dim: rgba(122,146,224,0.14);
  --warm:     #e8944a;
  --text:     #e4e4ee;
  --text-2:   #9696ac;
  --text-3:   #62627a;
  --r-sm:     8px;
  --r-md:     12px;
  --r-lg:     20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

.section { padding: 7rem 0; }

/* ─── Typography ──────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #fff;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}

p { color: var(--text-2); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(122,146,224,.35);
}
.btn-primary:hover { background: #8aa2e8; box-shadow: 0 4px 28px rgba(122,146,224,.45); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.15); background: var(--bg-3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Logo ────────────────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--r-sm);
  color: #fff;
  flex-shrink: 0;
}

.logo-mark svg { width: 17px; height: 17px; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}

.nav.scrolled {
  background: rgba(26,26,34,.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-links a {
  font-size: .9rem;
  color: var(--text-2);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 1rem; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 9rem 0 6rem;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 5% 70%, rgba(122,146,224,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 15%, rgba(154,126,240,.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 60% 90%, rgba(232,148,74,.05) 0%, transparent 70%);
  pointer-events: none;
}

/* subtle grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero-text { max-width: 540px; }

.hero-text h1 { margin-bottom: 1.25rem; }

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: .8rem;
  color: var(--text-3);
}

.hero-visual { position: relative; }

/* ─── Browser frame ───────────────────────────────────────────────────────── */
.browser-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1rem;
  height: 36px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-4);
}
.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }

.browser-url {
  font-size: .72rem;
  color: var(--text-3);
  margin-left: .5rem;
}

.browser-content { display: block; }

/* ─── Placeholder frames ──────────────────────────────────────────────────── */
.placeholder-content {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  background-image:
    linear-gradient(rgba(122,146,224,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,146,224,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  display: grid;
  place-items: center;
}

.placeholder-content.tall { aspect-ratio: 4/3; }

.placeholder-label {
  font-size: .8rem;
  color: var(--text-3);
  background: var(--bg-3);
  padding: .5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ─── Section headers ─────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 { margin-bottom: .75rem; }

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-top: .75rem;
}

/* ─── Features grid ───────────────────────────────────────────────────────── */
.features { background: var(--bg-2); position: relative; }

.features::before, .features::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.features::before { top: 0; }
.features::after  { bottom: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-2);
  transition: background .2s;
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(122,146,224,.07) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.feature-card:hover { background: var(--bg-3); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 42px; height: 42px;
  background: var(--accent-dim);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-card p { font-size: .9rem; line-height: 1.65; }

/* ─── Screenshots ─────────────────────────────────────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.screenshot-wrap:nth-child(1) { transform: rotate(-1.5deg) translateY(12px); }
.screenshot-wrap:nth-child(3) { transform: rotate(1.5deg) translateY(12px); }
.screenshot-wrap { transition: transform .3s ease; }
.screenshot-wrap:hover { transform: rotate(0) translateY(-4px) !important; }

/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.pricing { background: var(--bg-2); position: relative; }
.pricing::before, .pricing::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.pricing::before { top: 0; }
.pricing::after  { bottom: 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 1.5rem;
  justify-content: center;
}

.pricing-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.pricing-card.pro {
  border-color: rgba(122,146,224,.35);
  background: linear-gradient(140deg, var(--bg-3) 0%, rgba(122,146,224,.05) 100%);
  box-shadow: 0 0 0 1px rgba(122,146,224,.12), 0 20px 60px rgba(0,0,0,.3);
}

.pricing-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(122,146,224,.15);
  color: var(--accent);
  padding: .25rem .75rem;
  border-radius: 100px;
  border: 1px solid rgba(122,146,224,.25);
}

.pricing-tier {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-2);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}

.price-period { font-size: .85rem; color: var(--text-3); }

.pricing-desc { font-size: .9rem; }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  flex: 1;
}

.pricing-features li {
  font-size: .9rem;
  color: var(--text-2);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-features li.muted { color: var(--text-3); }
.pricing-features li.muted::before { color: var(--text-3); content: '–'; }

.pricing-card .btn { align-self: stretch; justify-content: center; margin-top: .5rem; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: .375rem;
}

.footer-brand a[href] { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: .85rem;
  color: var(--text-3);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: .78rem;
  color: var(--text-3);
}

/* ─── Reveal animation ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay  { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }

/* ─── Privacy page ────────────────────────────────────────────────────────── */
.page-hero {
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 10% 60%, rgba(122,146,224,.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.page-hero .eyebrow { margin-bottom: .5rem; }
.page-hero p { font-size: 1rem; }

.prose {
  padding: 3rem 0 7rem;
}

.prose-inner {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 .875rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: .975rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #7fa0f5; }

.prose strong { color: var(--text); font-weight: 600; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1.5rem 0;
}

.prose th {
  text-align: left;
  padding: .625rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.prose td {
  padding: .75rem 1rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.prose tr:last-child td { border-bottom: none; }

.prose ol {
  padding-left: 1.5rem;
  color: var(--text-2);
  font-size: .975rem;
  line-height: 1.75;
}

.prose ol li { margin-bottom: .375rem; }

.prose-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin: 2.5rem 0;
}

.last-updated {
  display: inline-block;
  font-size: .78rem;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: .25rem .875rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

/* ─── Coming-soon page ────────────────────────────────────────────────────── */
.cs-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}

.cs-card {
  position: relative;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.logo-mark-hero {
  width: 88px;
  height: 88px;
  background: var(--accent);
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 36px rgba(122,146,224,.28);
}

.logo-mark-hero svg { width: 44px; height: 44px; }

.cs-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(122,146,224,.12);
  color: var(--accent);
  border: 1px solid rgba(122,146,224,.25);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.cs-card h1 {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

.cs-tagline {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 2.25rem;
}

.cs-features {
  display: inline-flex;
  flex-direction: column;
  gap: .75rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

.cs-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text-2);
}

.cs-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.cs-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: .875rem;
  opacity: .6;
  cursor: not-allowed;
}

.cs-note {
  font-size: .78rem;
  color: var(--text-3);
}

.cs-chromium {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .55rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .78rem;
  color: var(--text-2);
}

.cs-chromium svg { flex-shrink: 0; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .screenshot-wrap:nth-child(1),
  .screenshot-wrap:nth-child(3) { transform: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 5rem 0; }
}
