:root {
  --bg: #000000;
  --surface: #111111;
  --border: #222222;
  --text: #ffffff;
  --text-2: #999999;
  --text-3: #757575;
  --accent: #ff6b2b;
  --accent-hover: #e55a1f;
  --teal: #00e5a0;
  --teal-dim: rgba(0, 229, 160, 0.08);
  --ice: #f0f2f5;
  --red: #ff3b3b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Accessibility: focus styles */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Skip navigation link */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  text-decoration: none;
}
.skip-nav:focus { top: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #000; }

/* ── Header ───────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 56px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 32px; }

nav a {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ─────────────────────── */
.hero {
  text-align: center;
  padding: 160px 24px 120px;
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Buttons ──────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 24px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  text-decoration: none;
  color: #000;
}

.btn:active { transform: scale(0.98); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #1a1a1a;
  color: var(--text);
  border-color: #333;
}

/* ── Divider ──────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1080px;
  margin: 0 auto 0;
  padding: 0 24px;
  background-clip: content-box;
}

/* ── Features ─────────────────── */
.features {
  padding: 96px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.features h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Pricing ──────────────────── */
.pricing {
  padding: 96px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pricing > p {
  text-align: center;
  color: var(--text-3);
  font-size: 0.9375rem;
  margin-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing-amount .dollar {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-amount .cents {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-2);
}

.pricing-period {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-bottom: 20px;
}

.pricing-desc {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-list {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-list li {
  font-size: 0.8125rem;
  color: var(--text-2);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5L6.5 11.5L2.5 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5L6.5 11.5L2.5 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pricing-card .btn,
.pricing-card .btn-secondary {
  width: 100%;
}

.pricing-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #000;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

/* ── Steps ────────────────────── */
.steps-section {
  padding: 96px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.steps-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step:first-child { border-top: 1px solid var(--border); }

.step-num {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 24px;
  flex-shrink: 0;
  padding-top: 2px;
}

.step > div {
  flex: 1;
  min-width: 0;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-2);
}

/* ── FAQ ──────────────────────── */
.faq {
  padding: 96px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.faq h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* ── Footer ───────────────────── */
footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

footer a { color: var(--text-3); }
footer a:hover { color: var(--text-2); text-decoration: none; }

/* ── Legal pages ──────────────── */
.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p, .legal li { font-size: 0.875rem; line-height: 1.8; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.legal li { padding: 2px 0; }
.legal strong { color: var(--text); }

.legal code {
  font-size: 0.8125rem;
  color: var(--accent);
  background: rgba(255, 107, 43, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Thank-you page ───────────── */
.thankyou {
  text-align: center;
  padding: 160px 24px 120px;
  max-width: 520px;
  margin: 0 auto;
}

.thankyou .status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.thankyou .status-icon.success {
  border-color: var(--accent);
  background: rgba(255, 107, 43, 0.08);
}

.thankyou .status-icon svg { width: 24px; height: 24px; }

.thankyou h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.thankyou p { font-size: 0.9375rem; margin-bottom: 12px; }

.license-box {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 32px;
  margin: 28px 0;
}

.license-box label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.license-key {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  word-break: break-all;
}

.download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.spinner {
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 24px auto;
}

/* ── Scroll animations ────────── */
.animate-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.3s; }
noscript .animate-up { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────── */

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
  header { padding: 0 32px; }
  nav { gap: 24px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .hero { padding: 140px 24px 100px; }
}

/* Tablet portrait / large phone */
@media (max-width: 768px) {
  header {
    padding: 0 20px;
    padding-top: env(safe-area-inset-top, 0);
  }
  nav { gap: 20px; }
  nav a {
    font-size: 0.75rem;
    padding: 8px 0; /* 44px touch target with line-height */
  }

  .hero { padding: 120px 20px 72px; }
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero p { font-size: 0.9375rem; margin-bottom: 28px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 320px; }

  .features { padding: 56px 20px; }
  .features h2 { margin-bottom: 40px; }
  .features-grid { grid-template-columns: 1fr; gap: 28px; }

  .pricing { padding: 56px 20px; }
  .pricing > p { margin-bottom: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card { padding: 28px 24px; }

  .steps-section { padding: 56px 20px; }
  .steps-section h2 { margin-bottom: 32px; }

  .faq { padding: 56px 20px; }
  .faq h2 { margin-bottom: 32px; }
  .faq-question {
    font-size: 0.875rem;
    padding: 18px 0;
    min-height: 44px; /* touch target */
  }

  .download-buttons { flex-direction: column; align-items: center; }
  .download-buttons .btn,
  .download-buttons .btn-secondary { width: 100%; max-width: 320px; }

  .divider { padding: 0 20px; }

  .legal { padding: 100px 20px 60px; }
  .legal h1 { font-size: 1.5rem; }

  .thankyou { padding: 120px 20px 80px; }
  .thankyou h1 { font-size: 1.5rem; }
  .license-box { padding: 24px 20px; }
  .license-key { font-size: 1.1rem; }

  footer { padding: 36px 20px; }
}

/* Small phone */
@media (max-width: 480px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0));
    gap: 8px;
  }
  nav { gap: 14px; flex-wrap: wrap; justify-content: center; }

  .hero { padding: 110px 16px 56px; }
  .hero h1 { font-size: 1.625rem; }
  .hero p { font-size: 0.875rem; }
  .hero-buttons .btn { max-width: 100%; }

  .features { padding: 48px 16px; }
  .feature h3 { font-size: 0.9375rem; }
  .feature p { font-size: 0.8125rem; }

  .pricing { padding: 48px 16px; }
  .pricing h2 { font-size: 1.5rem; }
  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 24px 20px; }
  .pricing-amount .dollar { font-size: 2rem; }
  .pricing-amount .cents { font-size: 1rem; }
  .pricing-tag { top: 12px; right: 12px; font-size: 0.625rem; }

  .steps-section { padding: 48px 16px; }
  .steps-section h2 { font-size: 1.5rem; }
  .step { gap: 16px; padding: 20px 0; }

  .faq { padding: 48px 16px; }
  .faq h2 { font-size: 1.5rem; }

  .divider { padding: 0 16px; }

  footer p { font-size: 0.6875rem; }
}
