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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-nav: rgba(10,10,10,0.85);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #5b6ef5;
  --accent-light: #7b8ef8;
  --accent-glow: rgba(91,110,245,0.25);
  --green: #3dd68c;
  --red: #f87171;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --radius: 14px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

html, body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ─── NAV ─── */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Homepage: announcement + nav stack (avoid fixed nav covering the banner) */
.site-header--with-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}
.site-header--with-banner .announcement-bar {
  position: relative;
  z-index: 1;
}
.site-header--with-banner .nav-bar {
  position: static;
  border-top: none;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* Mobile menu toggle (checkbox + label; no JS required to open/close) */
.nav-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 0;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}
.nav-burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-bar:has(.nav-toggle-checkbox:checked) .nav-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-bar:has(.nav-toggle-checkbox:checked) .nav-burger-line:nth-child(2) {
  opacity: 0;
}
.nav-bar:has(.nav-toggle-checkbox:checked) .nav-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
html:has(#nav-toggle:checked) {
  overflow: hidden;
}

.nav-cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem !important;
  transition: opacity 0.15s !important;
}
.nav-cta:hover { opacity: 0.85 !important; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: #d0d0d0;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
}

/* ─── SECTION SHARED ─── */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 12px;
}
.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
  line-height: 1.2;
}

/* ─── HERO ─── */
.hero {
  padding: 72px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(91,110,245,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 640px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-hint {
  margin: 20px 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ─── STATS ─── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 32px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 48px;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 160px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── macOS INTEGRATION STRIP (homepage) ─── */
.macos-kernel {
  padding: 72px 32px;
  border-bottom: 1px solid var(--border);
}
.macos-kernel-inner {
  max-width: 800px;
  margin: 0 auto;
}
.macos-kernel-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.macos-kernel-list li {
  margin: 0;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.macos-kernel-list li strong {
  color: var(--text);
  font-weight: 600;
}
.macos-kernel-foot {
  margin: 24px 0 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ─── DEMO VIDEOS ─── */
.demos {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.demo-card:hover {
  border-color: var(--border-strong);
}
.demo-card--wide {
  grid-column: 1 / -1;
}
.demo-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.demo-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.demo-video {
  width: 100%;
  border-radius: 8px;
  background: var(--bg);
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .demos { padding: 48px 0; }
}

/* ─── FEATURES ─── */
.features-intro-link {
  margin: -32px 0 40px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 100%;
  padding: 0 4px;
  line-height: 1.55;
}
.features-intro-link a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}
.features-intro-link a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .features-intro-link {
    margin: -20px 0 28px;
    font-size: 0.875rem;
  }
}

.features {
  padding: 100px 0;
}
.feature-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);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.feature-card--wide {
  grid-column: span 2;
}
.feature-card--highlight {
  border-color: rgba(91,110,245,0.35);
  box-shadow: 0 0 0 1px rgba(91,110,245,0.15);
}
.feature-card--highlight:hover {
  border-color: rgba(91,110,245,0.5);
  box-shadow: 0 0 0 1px rgba(91,110,245,0.25);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(91,110,245,0.12);
  border: 1px solid rgba(91,110,245,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-light);
}
.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ─── COMPAT ─── */
.compat {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.compat-inner {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;  /* table side gets the extra room */
  gap: 56px;
  align-items: start;
}
.compat-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.compat-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}
.compat-table-wrap {
  overflow-x: auto;
}
.compat-table {
  width: 100%;
  min-width: 680px;            /* keep columns readable; wrap parent scrolls on narrow */
  border-collapse: collapse;
  font-size: 0.875rem;
  table-layout: fixed;
}
/* 6 columns: Feature + 5 IDE columns. LingCode gets a touch more width for emphasis. */
.compat-table th:first-child,
.compat-table td:first-child { width: 28%; word-break: break-word; }
.compat-table th:nth-child(2),
.compat-table td:nth-child(2) { width: 16%; }   /* LingCode */
.compat-table th:nth-child(n+3),
.compat-table td:nth-child(n+3) { width: 14%; }  /* Xcode, Android Studio, VS Code, Cursor */
.compat-table th:nth-child(n+2),
.compat-table td:nth-child(n+2) { text-align: center; }
.compat-table th {
  padding: 10px 12px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  word-break: break-word;
}
.compat-table td:first-child { color: var(--text); text-align: left; }
.compat-table tr:last-child td { border-bottom: none; }
.compat-table .yes { color: var(--green); font-weight: 600; }
.compat-table .no { color: var(--text-dim); }

/* ─── TESTIMONIALS ─── */
.testimonials {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.quote-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.7;
}
.quote-attr {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── DOWNLOAD CTA ─── */
.download-cta {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-cta::before {
  content: "";
  position: absolute;
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(91,110,245,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.download-inner {
  position: relative;
}
.download-inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}
.download-inner > p {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 1.0625rem;
}
.download-meta {
  margin: 16px 0 0 !important;
  font-size: 0.8125rem !important;
  color: var(--text-dim) !important;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  max-width: 100%;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Inner pages (support, remote-control, features, etc.) — shared spacing */
@media (max-width: 768px) {
  .page-hero {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .page-content,
  .support-content,
  .features-page {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--wide { grid-column: span 2; }
  .compat-inner { grid-template-columns: 1fr; gap: 40px; }
  .quote-grid { grid-template-columns: 1fr; }
  .stat { padding: 16px 28px; }
}

/* Nav: hamburger below ~960px so tablets in portrait are covered */
@media (max-width: 960px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 56px;
    padding: 10px 20px;
    row-gap: 0;
  }
  .nav-burger {
    display: flex;
    margin-left: auto;
  }
  .nav-logo { flex-shrink: 0; }
  .nav-links {
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.2s ease, margin 0.2s ease;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }
  .nav-bar:has(.nav-toggle-checkbox:checked) .nav-links {
    max-height: min(75vh, 440px);
    opacity: 1;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 6px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
  }
}

@media (max-width: 768px) {
  .nav-cta { padding: 6px 12px; font-size: 0.8125rem !important; }
  .section-container { padding: 0 20px; }
  .stats-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .stat {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child { border-bottom: none; }
  .stat-num { font-size: 1.5rem; margin-top: 0; min-width: 4rem; }
  .stat-label { margin-top: 0; max-width: none; font-size: 0.875rem; }
  .stat-divider { display: none; }
  .hero { padding: 56px 20px 64px; }
  .hero-hint { font-size: 0.75rem; margin-top: 16px; line-height: 1.5; }
  .compat-table { font-size: 0.8125rem; }
  .compat-table th,
  .compat-table td { padding: 8px 10px; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .page-hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .page-content,
  .support-content,
  .features-page {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .nav-inner { padding: 10px 16px; }
  .hero { padding: 48px 16px 48px; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .hero-sub { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions .btn { padding: 12px 20px; font-size: 0.9375rem; }
  .hero-hint { font-size: 0.75rem; padding: 0 8px; }
  .stats { padding: 24px 16px; }
  .stat { padding: 16px 12px; gap: 10px; }
  .stat-num { font-size: 1.25rem; min-width: 3.5rem; }
  .stat-label { font-size: 0.8125rem; }
  .section-container { padding: 0 16px; }
  .section-heading { margin-bottom: 32px; font-size: 1.5rem; }
  .features { padding: 60px 0; }
  .feature-card { padding: 20px; }
  .compat { padding: 60px 0; }
  .testimonials { padding: 60px 0; }
  .download-cta { padding: 60px 0; }
  .download-inner h2 { font-size: 1.5rem; }
  .footer { padding: 24px 16px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .footer-links {
    justify-content: center;
    gap: 10px 14px;
  }
  .hero-br { display: none; }
}

/* Button groups stack on mobile */
@media (max-width: 480px) {
  .btn-row {
    flex-direction: column;
    width: 100%;
  }
  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── ANNOUNCEMENT BAR ─── */
.announcement-bar {
  position: relative;
  z-index: 0;
  background: linear-gradient(90deg, rgba(91,110,245,0.15) 0%, rgba(91,110,245,0.08) 100%);
  border-bottom: 1px solid rgba(91,110,245,0.25);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.announcement-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.announcement-bar strong { color: var(--text); }
.announcement-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.announcement-link:hover { text-decoration: underline; }

/* ─── HERO BADGE (animated dot) ─── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ─── SCROLL FADE ANIMATIONS ─── */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── WHAT'S NEW ─── */
.whats-new {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.changelog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.changelog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s;
}
.changelog-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.changelog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
}
.changelog-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}
.changelog-card code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", monospace;
  font-size: 0.8em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
.changelog-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
}
.changelog-tag--feature {
  background: rgba(91,110,245,0.15);
  color: var(--accent-light);
  border: 1px solid rgba(91,110,245,0.25);
}
.changelog-tag--security {
  background: rgba(61,214,140,0.12);
  color: var(--green);
  border: 1px solid rgba(61,214,140,0.25);
}
.changelog-tag--improvement {
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.2);
}
@media (max-width: 900px) {
  .changelog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .changelog-grid { grid-template-columns: 1fr; }
  .whats-new { padding: 60px 0; }
}

/* ─── SECURITY SECTION ─── */
.security-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(61,214,140,0.03) 50%, transparent 100%);
}
.security-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.security-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.security-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.65;
}
.security-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.security-link:hover { text-decoration: underline; }
.security-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.security-layer {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.security-layer:last-child { border-bottom: none; }
.security-layer:hover { background: var(--bg-card); }
.security-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  opacity: 0.7;
  min-width: 24px;
  padding-top: 2px;
}
.security-layer strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.security-layer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.security-layer code {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.8em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
@media (max-width: 900px) {
  .security-inner { grid-template-columns: 1fr; gap: 40px; }
  .security-section { padding: 60px 0; }
}

/* ─── TESTIMONIALS: stars ─── */
.quote-stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.quote-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .quote-grid { grid-template-columns: 1fr; }
}

/* ─── PRICING ─── */
.pricing-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 36px;
  position: relative;
}
.pricing-card--free {
  background: var(--bg-card);
  border-color: rgba(91,110,245,0.4);
  box-shadow: 0 0 0 1px rgba(91,110,245,0.1), 0 8px 40px rgba(91,110,245,0.08);
}
.pricing-card--pro {
  background: var(--bg-card);
  opacity: 0.75;
}
.pricing-badge-coming {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 3px 10px;
  color: var(--text-muted);
}
.pricing-tier {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.pricing-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}
.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.65;
}
.pricing-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.pricing-list li::first-letter { color: var(--green); }
.pricing-btn { width: 100%; justify-content: center; }
.pricing-foot {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-dim);
}
@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-section { padding: 60px 0; }
}

/* ─── FOOTER (revamped) ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-inner { padding: 32px 16px 28px; }
  .footer-bottom { padding: 16px; justify-content: center; text-align: center; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   WORLD-CLASS INTERACTIVE EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO: Animated mesh gradient background ─── */
.hero::before {
  width: 1200px;
  height: 800px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(91,110,245,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(123,142,248,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 40%, rgba(61,214,140,0.08) 0%, transparent 60%);
  background-size: 400% 400%;
  animation: hero-gradient 15s ease infinite;
}
@keyframes hero-gradient {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

/* ─── HERO: Gradient shimmer text ─── */
.hero h1 {
  background: linear-gradient(
    120deg,
    #ffffff 0%, #ffffff 30%,
    var(--accent-light) 50%,
    #ffffff 70%, #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 4s linear infinite;
}
@keyframes text-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ─── GRAIN TEXTURE OVERLAY ─── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── CARD 3D TILT + GLOW ─── */
.feature-card,
.changelog-card,
.demo-card,
.quote-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.changelog-card::before,
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mouse-x, -300px) var(--mouse-y, -300px),
    rgba(91,110,245,0.1),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.feature-card.card-hovering::before,
.changelog-card.card-hovering::before,
.quote-card.card-hovering::before {
  opacity: 1;
}

/* ─── STAGGERED ENTRANCE ANIMATIONS ─── */
.fade-section .changelog-card,
.fade-section .feature-card,
.fade-section .demo-card,
.fade-section .quote-card,
.fade-section .stat,
.fade-section .security-layer,
.fade-section .pricing-card,
.fade-section .macos-kernel-list li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-section .changelog-card.stagger-visible,
.fade-section .feature-card.stagger-visible,
.fade-section .demo-card.stagger-visible,
.fade-section .quote-card.stagger-visible,
.fade-section .stat.stagger-visible,
.fade-section .security-layer.stagger-visible,
.fade-section .pricing-card.stagger-visible,
.fade-section .macos-kernel-list li.stagger-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAVIGATION: Scroll shrink + active indicator ─── */
.site-header {
  transition: box-shadow 0.3s ease;
}
.site-header--scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.site-header--scrolled .announcement-bar {
  display: none;
}
.site-header--scrolled .nav-bar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Active nav link indicator */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a.nav-active {
  color: var(--text);
}
.nav-links a.nav-active::after {
  transform: scaleX(1);
}
/* Don't apply underline effect to CTA buttons */
.nav-links a.nav-cta::after {
  display: none;
}

/* ─── COMPARISON TABLE ENHANCEMENTS ─── */
.compat-table tbody tr {
  transition: background 0.15s ease;
}
.compat-table tbody tr:hover {
  background: rgba(91,110,245,0.04);
}
.compat-table td.yes svg,
.compat-table td.no svg {
  transition: transform 0.2s ease;
}
.compat-table tbody tr:hover td.yes svg {
  transform: scale(1.15);
}
.compat-table td:nth-child(2) {
  border-left: 2px solid rgba(91,110,245,0.2);
}

/* ─── VIDEO PLAY OVERLAY + LIGHTBOX ─── */
.video-wrapper {
  position: relative;
  display: block;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 2;
}
.video-play-overlay:hover {
  background: rgba(0,0,0,0.45);
}
.video-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Lightbox */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.video-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.video-lightbox-content {
  position: relative;
  width: 90vw;
  max-width: 1100px;
}
.video-lightbox-video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  display: block;
}
.video-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  line-height: 1;
  padding: 4px 8px;
}
.video-lightbox-close:hover {
  opacity: 1;
}

/* ─── AMBIENT BACKGROUND ORBS ─── */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.ambient-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(91,110,245,0.07), transparent 70%);
  top: 2200px;
  left: -200px;
  animation: float-orb 25s ease-in-out infinite;
}
.ambient-orb--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61,214,140,0.05), transparent 70%);
  top: 4000px;
  right: -200px;
  animation: float-orb 30s ease-in-out infinite reverse;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── BUTTON MICRO-INTERACTIONS ─── */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}
.btn.btn-ripple::after {
  animation: btn-ripple-anim 0.6s ease-out forwards;
}
@keyframes btn-ripple-anim {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Primary button hover glow */
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(240,240,240,0.15), 0 0 60px rgba(240,240,240,0.05);
}

/* ─── HEADING SHIMMER ON SCROLL ENTRY ─── */
.section-heading,
.section-eyebrow {
  background-size: 200% auto;
}
.section-heading.shimmer-active {
  background: linear-gradient(
    120deg,
    var(--text) 0%, var(--text) 35%,
    var(--accent-light) 50%,
    var(--text) 65%, var(--text) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heading-shimmer 2s ease forwards;
}
@keyframes heading-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.section-eyebrow.shimmer-active {
  animation: eyebrow-glow 1.5s ease forwards;
}
@keyframes eyebrow-glow {
  0% { opacity: 0.5; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.5); }
  100% { opacity: 1; filter: brightness(1); }
}

/* ─── FOOTER LINK HOVER UNDERLINES ─── */
.footer-col a {
  position: relative;
}
.footer-col a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-col a:hover::after {
  transform: scaleX(1);
}

/* ─── QUOTE STARS HOVER ─── */
.quote-card {
  transition: transform 0.3s ease, border-color 0.2s, background 0.2s;
}
.quote-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION — disable ALL effects
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-links { transition: none; }
  .nav-burger-line { transition: none; }
  .fade-section { opacity: 1; transform: none; transition: none; }
  .announcement-dot { animation: none; }
  .hero-badge-dot { animation: none; }

  /* Disable all new animations */
  .hero::before { animation: none; }
  .hero h1 {
    animation: none;
    -webkit-text-fill-color: var(--text);
    background: none;
  }
  body::after { display: none; }
  .feature-card, .changelog-card, .demo-card, .quote-card {
    transform: none !important;
    transition: border-color 0.2s, background 0.2s;
  }
  .feature-card::before, .changelog-card::before, .quote-card::before {
    display: none;
  }
  .fade-section .changelog-card,
  .fade-section .feature-card,
  .fade-section .demo-card,
  .fade-section .quote-card,
  .fade-section .stat,
  .fade-section .security-layer,
  .fade-section .pricing-card,
  .fade-section .macos-kernel-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .section-heading.shimmer-active {
    animation: none;
    -webkit-text-fill-color: var(--text);
    background: none;
  }
  .section-eyebrow.shimmer-active { animation: none; }
  .ambient-orb { animation: none; }
  .btn::after { display: none; }
  .nav-links a::after { transition: none; }
  .footer-col a::after { transition: none; }
}
