:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f8f8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-text-dim: #888888;
  --color-accent: #2d2d2d;
  --color-accent-hover: #444444;
  --color-border: #e5e5e5;
  --color-border-strong: #d0d0d0;
  --radius: 8px;
  --radius-sm: 6px;
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1rem;
}

.brand-dot {
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  transition: color 120ms ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease,
    color 120ms ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-alt);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04) 0,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* Glitch heading */
.glitch {
  position: relative;
}

.glitch span {
  position: relative;
  display: inline-block;
}

.glitch span::before,
.glitch span::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0;
}

.glitch span::before {
  color: #ff2e63;
  mix-blend-mode: screen;
  animation: glitch-r 2s infinite steps(1);
}

.glitch span::after {
  color: #00e5ff;
  mix-blend-mode: screen;
  animation: glitch-c 2s infinite steps(1);
  animation-delay: 0.05s;
}

.glitch span:nth-child(3)::before,
.glitch span:nth-child(3)::after {
  animation-delay: -0.9s;
}

@keyframes glitch-r {
  0%, 40% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  41% { opacity: 0.85; transform: translate(-3px, 1px); clip-path: inset(10% 0 70% 0); }
  43% { opacity: 0.85; transform: translate(2px, -2px); clip-path: inset(55% 0 20% 0); }
  45% { opacity: 0; transform: translate(0, 0); }
  85% { opacity: 0; transform: translate(0, 0); }
  86% { opacity: 0.85; transform: translate(-2px, 0); clip-path: inset(30% 0 45% 0); }
  88% { opacity: 0.85; transform: translate(3px, 1px); clip-path: inset(70% 0 10% 0); }
  90%, 100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes glitch-c {
  0%, 40% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  41% { opacity: 0.85; transform: translate(3px, -1px); clip-path: inset(60% 0 15% 0); }
  43% { opacity: 0.85; transform: translate(-2px, 2px); clip-path: inset(15% 0 65% 0); }
  45% { opacity: 0; transform: translate(0, 0); }
  85% { opacity: 0; transform: translate(0, 0); }
  86% { opacity: 0.85; transform: translate(2px, 1px); clip-path: inset(40% 0 35% 0); }
  88% { opacity: 0.85; transform: translate(-3px, -1px); clip-path: inset(20% 0 55% 0); }
  90%, 100% { opacity: 0; transform: translate(0, 0); }
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-alt);
  margin-bottom: 20px;
}

.lede {
  max-width: 640px;
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats dt {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.hero-stats dd {
  margin: 0;
  font-size: 0.96rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--color-border);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 150ms ease, transform 150ms ease;
}

.feature:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-accent);
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
}

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

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.96rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.steps li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step-num {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-grid-single {
  max-width: 420px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.pricing-grid-dual {
  max-width: 760px;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
  .pricing-grid-dual {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border-color: var(--color-accent);
  border-width: 1.5px;
}

.price-card h3 {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price {
  margin: 14px 0 0;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price span {
  font-size: 0.86rem;
  color: var(--color-text-dim);
  font-weight: 400;
  letter-spacing: 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.price-card li {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  padding-left: 22px;
  position: relative;
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* FAQ */
.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq details[open] summary {
  color: var(--color-text);
}

.faq summary {
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-text-muted);
  transition: transform 150ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin-top: 12px;
  font-size: 0.98rem;
}

/* CTA */
.cta {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.cta-inner {
  max-width: 620px;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta p {
  margin: 18px auto 32px;
  font-size: 1.05rem;
}

.cta .eyebrow {
  margin-bottom: 20px;
}

.cta-note {
  margin: 24px auto 0 !important;
  font-size: 0.88rem !important;
  color: var(--color-text-dim) !important;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-tag {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-legal {
  font-size: 0.84rem;
  color: var(--color-text-dim);
}

/* Responsive */
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .section {
    padding: 72px 0;
  }
  .cta {
    padding: 80px 0;
  }
}

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