/* ============================================================
   ARKI-42 — style.css
   High-Tech · Swiss Precision · Modern Minimal
   ============================================================ */

/* ── 1. CSS VARIABLES ─────────────────────────────────────── */

:root {
  --bg-primary:     #0a0a0f;
  --bg-secondary:   #111118;
  --bg-card:        #16161e;
  --border:         rgba(255, 255, 255, 0.08);
  --text-primary:   #f0f0f5;
  --text-secondary: #8888a0;
  --accent:         #6C63FF;
  --accent-hover:   #8B85FF;
  --accent-subtle:  rgba(108, 99, 255, 0.12);
  --claude-color:   #D4A96A;
  --success:        #3ecf8e;

  --font-headline: 'Space Grotesk', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 0 1px var(--accent), 0 4px 24px rgba(108, 99, 255, 0.2);

  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  --max-width: 1200px;
  --section-gap: 120px;
  --nav-height: 72px;
}

[data-theme="light"] {
  --bg-primary:     #fafafa;
  --bg-secondary:   #f0f0f5;
  --bg-card:        #ffffff;
  --border:         rgba(0, 0, 0, 0.08);
  --text-primary:   #0a0a0f;
  --text-secondary: #666680;
  --accent:         #5B52EE;
  --accent-hover:   #4A41DD;
  --accent-subtle:  rgba(91, 82, 238, 0.08);
  --claude-color:   #B8893A;
  --success:        #22a870;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 0 1px var(--accent), 0 4px 24px rgba(91, 82, 238, 0.15);
}

/* ── 2. RESET & BASE ─────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: var(--font-body);
}

/* ── 3. TYPOGRAPHY ───────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 4. UTILITIES ────────────────────────────────────────── */

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

.section {
  padding: var(--section-gap) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header-left {
  text-align: left;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header-left .section-subtitle {
  margin: 0;
}

/* ── 5. BUTTONS ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-xl {
  padding: 18px 48px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-nav {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

/* ── 6. NAVIGATION ───────────────────────────────────────── */

.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: background var(--transition-slow);
}

[data-theme="light"] .nav-wrapper {
  background: rgba(250, 250, 250, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5B52CC;
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  margin-left: 9px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav-link-active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.lang-btn {
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 4px;
  transition: all var(--transition);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.lang-btn:hover,
.lang-btn[aria-pressed="true"] {
  color: var(--text-primary);
}

.lang-btn[aria-pressed="true"] {
  background: var(--accent-subtle);
  color: var(--accent);
}

.lang-sep {
  color: var(--border);
  user-select: none;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

.theme-toggle:hover {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

.theme-icon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

/* Dark mode: show moon, hide sun */
[data-theme="dark"] .icon-sun  { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0deg); }

/* Light mode: show sun, hide moon */
[data-theme="light"] .icon-sun  { opacity: 1; transform: rotate(0deg); }
[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(-90deg); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--accent-subtle);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 7. HERO ─────────────────────────────────────────────── */

.hero {
  padding: 96px 0 112px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.7s ease both;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  background: var(--bg-card);
  letter-spacing: 0.03em;
  animation: fadeInUp 0.7s 0.1s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  margin-bottom: 20px;
  animation: fadeInUp 0.7s 0.15s ease both;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.7s 0.25s ease both;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.3s ease both;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.flag-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

/* Provider Row */
.provider-row {
  animation: fadeInUp 0.7s 0.35s ease both;
}

.provider-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  position: relative;
}

.provider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.provider-badge.provider-claude {
  border-color: var(--claude-color);
  color: var(--claude-color);
}

.provider-dot-claude { background: var(--claude-color); }
.provider-dot-openai { background: #74b9ff; }
.provider-dot-gemini { background: #a8e6cf; }

.provider-recommended {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: var(--claude-color);
  color: #0a0a0f;
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 600;
}

.provider-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ── 8. FEATURES GRID ────────────────────────────────────── */

.features {
  background: var(--bg-secondary);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
  animation: fadeInUp 0.5s ease both;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--accent);
}

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

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Stagger feature cards */
.feature-card:nth-child(1)  { animation-delay: 0.05s; }
.feature-card:nth-child(2)  { animation-delay: 0.10s; }
.feature-card:nth-child(3)  { animation-delay: 0.15s; }
.feature-card:nth-child(4)  { animation-delay: 0.20s; }
.feature-card:nth-child(5)  { animation-delay: 0.25s; }
.feature-card:nth-child(6)  { animation-delay: 0.30s; }
.feature-card:nth-child(7)  { animation-delay: 0.35s; }
.feature-card:nth-child(8)  { animation-delay: 0.40s; }
.feature-card:nth-child(9)  { animation-delay: 0.45s; }
.feature-card:nth-child(10) { animation-delay: 0.50s; }
.feature-card:nth-child(11) { animation-delay: 0.55s; }
.feature-card:nth-child(12) { animation-delay: 0.60s; }
.feature-card:nth-child(13) { animation-delay: 0.65s; }
.feature-card:nth-child(14) { animation-delay: 0.70s; }
.feature-card:nth-child(15) { animation-delay: 0.75s; }
.feature-card:nth-child(16) { animation-delay: 0.80s; }
.feature-card:nth-child(17) { animation-delay: 0.85s; }
.feature-card:nth-child(18) { animation-delay: 0.90s; }

/* ── 9. PRIVACY ──────────────────────────────────────────── */

.privacy {
  background: var(--bg-primary);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.privacy-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.privacy-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--accent);
  background: var(--accent-subtle);
}

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

.privacy-item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.privacy-text p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ── 10. USE CASES ───────────────────────────────────────── */

.usecases {
  background: var(--bg-secondary);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
}

.usecase-card:hover {
  border-color: rgba(108, 99, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.usecase-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.usecase-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.usecase-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.usecase-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}

.usecase-step {
  counter-increment: steps;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.usecase-step::before {
  content: counter(steps);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  min-width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-user {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
  display: inline-block;
}

.step-arki {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: inline-block;
  padding-top: 2px;
}

/* ── 11. PROVIDER CARDS ──────────────────────────────────── */

.providers {
  background: var(--bg-primary);
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: all var(--transition);
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.provider-card-featured {
  border: 2px solid var(--claude-color);
  box-shadow: 0 4px 24px rgba(212, 169, 106, 0.12);
}

.provider-card-featured:hover {
  box-shadow: 0 8px 32px rgba(212, 169, 106, 0.2);
}

.provider-card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0f;
  background: var(--claude-color);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.provider-card-header {
  margin-bottom: 16px;
}

.provider-card-name {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.provider-name-claude { color: var(--claude-color); }
.provider-name-openai { color: #74b9ff; }
.provider-name-gemini { color: #a8e6cf; }

.provider-card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.provider-card-text {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.providers-footnote {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── 12. PRICING ─────────────────────────────────────────── */

.pricing {
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.pricing-card-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-glow);
}

.pricing-card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.pricing-card-badge-limited {
  background: var(--claude-color);
  color: #0a0a0f;
}

.pricing-card-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-tier {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-amount {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-annual {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-family: var(--font-mono);
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--success);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── 13. BETA ────────────────────────────────────────────── */

.beta {
  background: var(--bg-primary);
}

.beta-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.beta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.beta-content {
  position: relative;
}

.beta-inner .section-header {
  margin-bottom: 36px;
}

.beta-form {
  width: 100%;
}

.beta-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.beta-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  min-width: 0;
}

.beta-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.beta-input::placeholder {
  color: var(--text-secondary);
}

.beta-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.beta-hint-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.beta-newsletter-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 12px;
}
.beta-newsletter-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.beta-redownload {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: -8px;
}
.beta-redownload a {
  color: var(--primary);
  text-decoration: underline;
}

.beta-feedback-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.beta-feedback-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
}

.beta-feedback-link:hover {
  color: var(--accent-hover);
}

/* ── 14. ROADMAP ─────────────────────────────────────────── */

.roadmap {
  background: var(--bg-secondary);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: all var(--transition);
  position: relative;
}

.roadmap-card:hover {
  border-color: var(--claude-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 169, 106, 0.1);
}

.roadmap-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--claude-color);
  margin-bottom: 12px;
  opacity: 0.8;
}

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

.roadmap-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--claude-color);
  border: 1px solid var(--claude-color);
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.roadmap-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.roadmap-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ── 15. FAQ ─────────────────────────────────────────────── */

.faq {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(108, 99, 255, 0.3);
}

.faq-question {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--transition);
  user-select: none;
}

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

.faq-question:hover {
  background: var(--accent-subtle);
}

.faq-question::after {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--text-secondary);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9' stroke='currentColor' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9' stroke='currentColor' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ── 16. DOWNLOAD CTA ────────────────────────────────────── */

.download {
  background: var(--bg-secondary);
  text-align: center;
}

.download-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.download-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.download-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0;
}

.download-requirements {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin: 0;
}

/* ── 17. FOOTER ──────────────────────────────────────────── */

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-sep {
  color: var(--border);
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-flag {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

/* ── 18. ANIMATIONS ──────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Intersection-observer driven animation class */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── 19. SCREENSHOTS ─────────────────────────────────────── */

.screenshots {
  background: var(--bg-primary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.screenshot-card {
  text-align: center;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
  overflow: hidden;
}

.screenshot-placeholder:hover {
  border-color: var(--accent);
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.screenshot-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.screenshot-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox--open {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}

.placeholder-icon {
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  opacity: 0.5;
}

.screenshot-caption {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ── 20. DEMO VIDEOS ─────────────────────────────────────── */

.demos {
  background: var(--bg-primary);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.demo-card {
  text-align: center;
}

.demo-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.demo-placeholder:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.demo-placeholder:hover .placeholder-icon {
  color: var(--accent);
  opacity: 1;
}

.demo-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.demo-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 12px;
}

/* ── 21. FEEDBACK ────────────────────────────────────────── */

.feedback {
  background: var(--bg-secondary);
}

.feedback-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.feedback-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.feedback-panel {
  position: relative;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9' stroke='%238888a0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

.feedback-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.feedback-logout-btn {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.feedback-logout-btn:hover {
  background: var(--accent-subtle);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 22. FORM STATUS MESSAGES ────────────────────────────── */

.form-status {
  font-size: 0.9rem;
  padding: 0;
  min-height: 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-align: center;
}

.form-status:empty {
  display: none;
}

.form-status-success {
  display: block;
  color: var(--success);
  background: rgba(62, 207, 142, 0.08);
  padding: 10px 16px;
  border: 1px solid rgba(62, 207, 142, 0.2);
}

.form-status-error {
  display: block;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
  padding: 10px 16px;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

/* ── 23. BETA FORM UPDATED ───────────────────────────────── */

.beta-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid     { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .privacy-grid     { grid-template-columns: 1fr; gap: 24px; }
  .usecases-grid    { grid-template-columns: 1fr; }
  .providers-grid   { grid-template-columns: 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .roadmap-grid     { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: 1fr; }
  .demos-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 72px;
    --nav-height: 64px;
  }

  /* Nav mobile */
  .nav {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-height);
    padding: 12px 0;
    position: relative;
    gap: 0;
  }

  .nav-logo {
    flex: 1;
  }

  .nav-actions {
    order: 2;
  }

  .hamburger {
    display: flex;
    order: 3;
  }

  .nav-links {
    order: 4;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
    padding: 8px 0 12px;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
  }

  .nav-links.nav-open {
    max-height: 300px;
    padding: 12px 0;
  }

  .nav-link {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    padding: 64px 0 80px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Features */
  .features-grid  { grid-template-columns: 1fr; }
  .roadmap-grid   { grid-template-columns: 1fr 1fr; }

  /* Beta form */
  .beta-inner,
  .feedback-inner {
    padding: 40px 28px;
  }

  .beta-input-row {
    flex-direction: column;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 56px;
  }

  .container {
    padding: 0 16px;
  }

  .roadmap-grid { grid-template-columns: 1fr; }

  .btn-xl {
    width: 100%;
    padding: 16px 24px;
  }

  .pricing-card {
    padding: 24px 20px;
  }
}

/* ── 20. LEGAL PAGES ─────────────────────────────────────── */

.legal-page {
  padding: var(--section-gap) 0;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.legal-page .legal-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  display: block;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
}

.legal-page p {
  margin-bottom: 16px;
  max-width: 700px;
}

.legal-content {
  max-width: 720px;
}

.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.contact-grid dt {
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-grid dd {
  color: var(--text-primary);
}
