/* ============================================================
   264 Pro Video Editor — Landing Site Stylesheet
   Dark SaaS theme. Indigo/Violet accent palette.
   ============================================================ */

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

:root {
  --bg:          #08080e;
  --bg-1:        #0f0f1a;
  --bg-2:        #13131f;
  --bg-card:     #111120;
  --bg-card-h:   #16162a;
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(99,102,241,0.4);

  --primary:     #6366f1;
  --primary-h:   #818cf8;
  --secondary:   #8b5cf6;
  --accent:      #a78bfa;

  --text:        #e8e8f0;
  --text-2:      #9b9bb5;
  --text-3:      #5a5a7a;

  --green:       #22c55e;
  --amber:       #f59e0b;
  --red:         #ef4444;

  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.25);

  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', 'Fira Mono', Consolas, monospace;

  --nav-h:       64px;
  --max-w:       1200px;
  --section-gap: 120px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}
kbd { border-bottom-width: 2px; }

/* ── Utilities ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hidden { display: none !important; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled,
.nav.scrolled-forced {
  background: rgba(8,8,14,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo strong { color: var(--primary); }
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--primary-h); transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(8,8,14,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 1.25rem 2rem;
  gap: 0.5rem;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
}
.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link.primary {
  color: var(--primary);
  font-weight: 600;
}
.nav-mobile-link:hover { color: var(--text); }

/* ── Section commons ───────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Scroll-triggered animations */
.observe-me { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.observe-me.in-view { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  bottom: 10%; right: 10%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-meta {
  font-size: 0.83rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-icon-arrow { font-size: 1.1em; }
.btn-os-icon { font-size: 1.15em; line-height: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-h);
  transform: translateY(-1px);
}

/* Mobile CTA message */
.mobile-cta-message {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber);
  font-size: 0.95rem;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* ── Hero Visual / App Mockup ──────────────────────────────── */
.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto 0;
}
.app-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.mockup-chrome span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #444;
}
.mockup-chrome span:nth-child(1) { background: #ff5f57; }
.mockup-chrome span:nth-child(2) { background: #ffbd2e; }
.mockup-chrome span:nth-child(3) { background: #28c840; }
.mockup-body { padding: 0; }

/* Mock editor layout */
.mock-editor {
  display: flex;
  height: 360px;
}
.mock-sidebar {
  width: 120px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-media-item {
  height: 58px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: background 0.2s;
}
.mock-media-item.active {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
}
.mock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mock-viewer {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mock-video-frame {
  width: 90%;
  height: 80%;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 50%, #111 100%);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-play-icon {
  font-size: 2rem;
  color: rgba(255,255,255,0.4);
}
.mock-transport {
  padding: 8px 12px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-timecode {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ccc;
  letter-spacing: 0.08em;
  min-width: 90px;
}
.mock-transport-btn {
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}
.mock-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}
.mock-timeline {
  height: 80px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.mock-ruler {
  display: flex;
  justify-content: space-between;
  padding: 4px 12px;
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.mock-track {
  position: absolute;
  top: 26px;
  left: 12px;
  right: 12px;
  height: 28px;
}
.mock-clip {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(99,102,241,0.4);
  border: 1px solid rgba(99,102,241,0.6);
  border-radius: 4px;
  font-size: 10px;
  color: #c7c7ff;
  display: flex;
  align-items: center;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
}
.mock-clip.ai-suggested {
  background: rgba(139,92,246,0.35);
  border-color: rgba(139,92,246,0.6);
}
.mock-playhead {
  position: absolute;
  top: 20px;
  width: 2px;
  height: calc(100% - 20px);
  background: #e55;
  transform: translateX(-50%);
  z-index: 2;
}
.mock-playhead::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: 6px solid #e55;
}
.mock-ai-marker {
  position: absolute;
  top: 18px;
  font-size: 11px;
  transform: translateX(-50%);
  color: var(--accent);
  cursor: pointer;
  z-index: 3;
}

/* ── Scroll hint ────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  padding: 0.5rem 3rem;
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-unit {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-2);
  margin-left: 2px;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ══════════════════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════════════════ */
.features {
  padding: var(--section-gap) 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card-large {
  grid-column: span 2;
}
.feature-card-ai {
  background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(139,92,246,0.06) 100%);
  border-color: rgba(99,102,241,0.2);
  position: relative;
  overflow: hidden;
}
.feature-card-ai::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.feature-icon {
  width: 56px; height: 56px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(167,139,250,0.3);
  background: rgba(167,139,250,0.08);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
}
.feature-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.feature-detail span {
  font-size: 0.78rem;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
}

/* ══════════════════════════════════════════════════════════════
   WORKFLOW
   ══════════════════════════════════════════════════════════════ */
.workflow {
  padding: var(--section-gap) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.workflow-step {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.workflow-step-reverse {
  grid-template-columns: 60px 1fr 1fr;
  direction: rtl;
}
.workflow-step-reverse > * { direction: ltr; }
.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(99,102,241,0.2);
  letter-spacing: -0.05em;
  line-height: 1;
}
.step-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.step-content p {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.step-detail {
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
}
.step-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
/* Step visuals */
.step-vis-import { display: flex; flex-direction: column; gap: 0.6rem; }
.vis-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.vis-file span { font-size: 0.75rem; color: var(--text-3); font-family: var(--font-mono); }
.step-vis-timeline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vis-clip {
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.vis-clip.a { background: rgba(99,102,241,0.25); border: 1px solid rgba(99,102,241,0.5); color: #c7c7ff; }
.vis-clip.b { background: rgba(139,92,246,0.25); border: 1px solid rgba(139,92,246,0.5); color: #ddd6ff; }
.vis-cut { font-size: 1.1rem; color: var(--accent); padding: 0 2px; }
.step-vis-ai { display: flex; flex-direction: column; gap: 0.6rem; }
.vis-ai-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-2);
  padding: 0.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}
.ai-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ai-dot.high { background: var(--green); }
.ai-dot.med  { background: var(--amber); }
.ai-conf {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}
.step-vis-export { display: flex; flex-direction: column; gap: 0.75rem; }
.vis-export-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.vis-export-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 2s cubic-bezier(0.4,0,0.2,1);
}
.vis-export-info { font-size: 0.82rem; color: var(--text-2); }
.vis-export-output {
  font-size: 0.82rem;
  color: var(--green);
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════════════════════
   KEYBOARD SHORTCUTS
   ══════════════════════════════════════════════════════════════ */
.shortcuts-section {
  padding: var(--section-gap) 0;
}
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.shortcut-item:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}
.shortcut-item kbd {
  font-size: 0.9rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 2px solid rgba(255,255,255,0.18);
}
.shortcut-item span {
  font-size: 0.82rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════════════════
   TECH STACK
   ══════════════════════════════════════════════════════════════ */
.tech-section {
  padding: var(--section-gap) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tech-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.2s;
}
.tech-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}
.tech-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.tech-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.tech-card p {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   DOWNLOAD SECTION (on landing page)
   ══════════════════════════════════════════════════════════════ */
.download-section {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
}
.download-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center top,
    rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.download-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.download-hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.download-hero p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Download card ──────────────────────────────────────────── */
.download-card {
  max-width: 520px;
  margin: 0 auto 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  position: relative;
}

/* Detection state */
.detect-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-2);
  font-size: 0.95rem;
}
.detect-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Detected badge */
.detected-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

/* Primary download button */
.btn-download-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-bottom: 1rem;
}
.btn-download-primary:hover {
  background: var(--primary-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.4);
}
.btn-icon { font-size: 1.4em; line-height: 1; }
.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.btn-title { font-size: 1rem; font-weight: 700; }
.btn-sub { font-size: 0.75rem; font-weight: 400; opacity: 0.8; }
.btn-arrow { font-size: 1.2em; margin-left: auto; }

.btn-wrong-platform {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}
.btn-wrong-platform:hover { color: var(--text-2); }

/* Unsupported */
.download-unsupported {
  padding: 1.5rem;
  text-align: center;
}
.unsupported-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.download-unsupported h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.download-unsupported p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 1.25rem; }
.unsupported-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-dl:hover {
  border-color: var(--primary);
  background: rgba(99,102,241,0.1);
  transform: translateY(-2px);
}
.btn-dl.small { font-size: 0.8rem; padding: 0.45rem 0.85rem; }

/* ── Manual download options ────────────────────────────────── */
.manual-download {
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.manual-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-3);
  padding: 0.6rem 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.manual-header:hover { color: var(--text-2); }
.manual-header.open { color: var(--text-2); }
.manual-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.manual-options.expanded { max-height: 400px; }
.manual-opt {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.manual-opt:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateX(4px);
}
.manual-opt-icon { font-size: 1.5rem; line-height: 1; }
.manual-opt-info { flex: 1; min-width: 0; }
.manual-opt-title { display: block; font-size: 0.92rem; font-weight: 600; }
.manual-opt-sub { display: block; font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
.manual-opt-dl {
  font-size: 1.1rem;
  color: var(--text-3);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  flex-shrink: 0;
}
.manual-opt:hover .manual-opt-dl { color: var(--primary); background: rgba(99,102,241,0.1); }

/* Highlighted by JS after detection */
.manual-opt-active {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.07);
}
.manual-opt-active .manual-opt-dl { color: var(--primary); }

/* Tiny refining indicator next to detected-badge */
.detect-refining {
  width: 8px; height: 8px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 4px;
  display: inline-block;
  flex-shrink: 0;
}

/* ── System Requirements ────────────────────────────────────── */
.sys-req {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.sys-req-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.sys-req-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sys-req-col li {
  font-size: 0.83rem;
  color: var(--text-2);
  padding-left: 1em;
  position: relative;
}
.sys-req-col li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
}
.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-logo strong { color: var(--primary); }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 0.5rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy p {
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: right;
}
.footer-version {
  font-family: var(--font-mono);
  margin-top: 4px;
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════════════════
   DOWNLOAD PAGE (standalone /download/choose)
   ══════════════════════════════════════════════════════════════ */
.page-download body,
body.page-download {
  background: var(--bg);
}
.dl-page-main {
  max-width: 840px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 2rem 5rem;
}
.dl-page-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.dl-page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0.75rem 0;
}
.dl-page-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.6;
}
.detected-hint {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-top: 0.5rem;
  display: inline-block;
}
.detected-hint strong { color: var(--primary); }

/* Download cards grid */
.dl-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.dl-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}
.dl-card-recommended {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.05);
}
.dl-card-recommended:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15), var(--shadow-sm);
}
.dl-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.dl-card-icon {
  flex-shrink: 0;
  width: 56px;
}
.dl-card-info { flex: 1; min-width: 0; }
.dl-card-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.dl-card-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.6rem;
}
.dl-card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.dl-meta-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
}
.dl-card-arrow {
  color: var(--text-3);
  transition: color 0.2s, transform 0.2s;
}
.dl-card:hover .dl-card-arrow {
  color: var(--primary);
  transform: translateY(2px);
}

/* System requirements (download page) */
.dl-sysreq {
  margin-bottom: 3rem;
}
.dl-sysreq h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.dl-sysreq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.dl-sysreq-col {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.dl-sysreq-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.dl-sysreq-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dl-sysreq-col li {
  font-size: 0.83rem;
  color: var(--text-2);
  padding-left: 1em;
  position: relative;
}
.dl-sysreq-col li::before { content: '·'; position: absolute; left: 0; color: var(--primary); }

/* Help section (download page) */
.dl-help {
  padding: 2rem;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.dl-help h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.dl-help p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   RELEASES PAGE
   ══════════════════════════════════════════════════════════════ */
.page-releases .releases-main {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
}
.page-releases h1 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
}
.release-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.release-card header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.release-version {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}
.release-date { font-size: 0.82rem; color: var(--text-3); }
.release-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.release-badge.latest {
  color: var(--green);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
}
.release-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.release-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.release-card li {
  font-size: 0.88rem;
  color: var(--text-2);
}
.download-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-large { grid-column: span 2; }
  .tech-grid { grid-template-columns: 1fr 1fr 1fr; }
  .shortcuts-grid { grid-template-columns: repeat(4, 1fr); }
  .workflow-step { grid-template-columns: 48px 1fr 1fr; }
  .dl-sysreq-grid { grid-template-columns: 1fr 1fr; }
}

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

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-title { font-size: 2.5rem; }
  .hero { padding-bottom: 3rem; }

  .mock-editor { height: 260px; }
  .mock-sidebar { display: none; }

  .stats-inner { gap: 0; }
  .stat-item { padding: 0.5rem 1.5rem; }
  .stat-divider { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card-large { grid-column: span 1; }

  .workflow-step,
  .workflow-step-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .step-num { display: none; }

  .shortcuts-grid { grid-template-columns: repeat(2, 1fr); }

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

  .sys-req { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-copy p { text-align: left; }

  .dl-sysreq-grid { grid-template-columns: 1fr; }
  .dl-card { padding: 1.25rem; }
  .dl-card-icon { width: 44px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .shortcuts-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }

  .download-card { padding: 1.5rem; }
  .manual-opt { padding: 0.85rem 1rem; }
}
