/* ==========================================================================
   ALITKEN — Landing Page Design System & Stylesheet
   High-Performance GPU Precision · Windows 11 Mica / Acrylic Glassmorphism
   Obsidian Dark & Titanium Slate Light Theme Engine
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Obsidian Dark Theme (Default) */
  --bg-core: #080a10;
  --bg-deep: #040508;
  --bg-surface: rgba(16, 20, 32, 0.72);
  --bg-surface-elevated: rgba(22, 28, 45, 0.82);
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-island: rgba(14, 18, 30, 0.88);
  --bg-pill: rgba(255, 255, 255, 0.08);
  --bg-pill-hover: rgba(255, 255, 255, 0.14);

  /* Brand Accents */
  --accent-primary: #6366f1; /* Electric Indigo */
  --accent-primary-hover: #4f46e5;
  --accent-primary-glow: rgba(99, 102, 241, 0.28);

  --accent-cyan: #06b6d4; /* Cyber Cyan */
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);

  --accent-emerald: #10b981; /* Lossless Speed */
  --accent-emerald-glow: rgba(16, 185, 129, 0.22);

  --accent-amber: #f59e0b; /* The Rant / Warning */
  --accent-amber-glow: rgba(245, 158, 11, 0.22);

  --accent-rose: #f43f5e; /* Bloatware / Danger */
  --accent-rose-glow: rgba(244, 63, 94, 0.22);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-on-accent: #ffffff;
  --text-dark-btn: #090c13;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(99, 102, 241, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-primary: 0 0 30px rgba(99, 102, 241, 0.25), 0 12px 35px rgba(0, 0, 0, 0.5);

  /* Ambient Lighting */
  --ambient-1: rgba(99, 102, 241, 0.15);
  --ambient-2: rgba(6, 182, 212, 0.12);
  --ambient-grid: rgba(255, 255, 255, 0.025);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1220px;
  --header-height: 72px;

  /* Animation Timings */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-smooth);
  --transition-normal: 0.28s var(--ease-smooth);
}

/* Light Theme Tokens */
[data-theme="light"] {
  --bg-core: #f5f7fc;
  --bg-deep: #ebf0f7;
  --bg-surface: rgba(255, 255, 255, 0.90);
  --bg-surface-elevated: rgba(255, 255, 255, 0.98);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-island: rgba(255, 255, 255, 0.94);
  --bg-pill: rgba(15, 23, 42, 0.06);
  --bg-pill-hover: rgba(15, 23, 42, 0.10);

  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-primary-glow: rgba(79, 70, 229, 0.18);

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.16);

  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.16);

  --accent-amber: #d97706;
  --accent-amber-glow: rgba(217, 119, 6, 0.16);

  --accent-rose: #e11d48;
  --accent-rose-glow: rgba(225, 29, 72, 0.16);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-on-accent: #ffffff;
  --text-dark-btn: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-glow: rgba(79, 70, 229, 0.35);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --shadow-primary: 0 0 30px rgba(79, 70, 229, 0.16), 0 12px 35px rgba(15, 23, 42, 0.08);

  --ambient-1: rgba(79, 70, 229, 0.08);
  --ambient-2: rgba(2, 132, 199, 0.07);
  --ambient-grid: rgba(15, 23, 42, 0.03);
}

/* System preference sync when no explicit choice set */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-core: #f5f7fc;
    --bg-deep: #ebf0f7;
    --bg-surface: rgba(255, 255, 255, 0.90);
    --bg-surface-elevated: rgba(255, 255, 255, 0.98);
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: #ffffff;
    --bg-island: rgba(255, 255, 255, 0.94);
    --bg-pill: rgba(15, 23, 42, 0.06);
    --bg-pill-hover: rgba(15, 23, 42, 0.10);

    --accent-primary: #4f46e5;
    --accent-primary-hover: #4338ca;
    --accent-primary-glow: rgba(79, 70, 229, 0.18);

    --accent-cyan: #0284c7;
    --accent-cyan-glow: rgba(2, 132, 199, 0.16);

    --accent-emerald: #059669;
    --accent-emerald-glow: rgba(5, 150, 105, 0.16);

    --accent-amber: #d97706;
    --accent-amber-glow: rgba(217, 119, 6, 0.16);

    --accent-rose: #e11d48;
    --accent-rose-glow: rgba(225, 29, 72, 0.16);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --text-on-accent: #ffffff;
    --text-dark-btn: #ffffff;

    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-medium: rgba(15, 23, 42, 0.16);
    --border-glow: rgba(79, 70, 229, 0.35);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
    --shadow-primary: 0 0 30px rgba(79, 70, 229, 0.16), 0 12px 35px rgba(15, 23, 42, 0.08);

    --ambient-1: rgba(79, 70, 229, 0.08);
    --ambient-2: rgba(2, 132, 199, 0.07);
    --ambient-grid: rgba(15, 23, 42, 0.03);
  }
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-core);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-core);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   3. View Transitions API Theme Ripple Animation
   -------------------------------------------------------------------------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 9999;
}

/* --------------------------------------------------------------------------
   4. Ambient Mica Grid & Aurora Lighting
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, var(--ambient-1), transparent 70%),
    radial-gradient(ellipse 50% 35% at 80% 30%, var(--ambient-2), transparent 70%),
    radial-gradient(circle 400px at 50% 85%, var(--ambient-1), transparent 80%);
  transition: background var(--transition-normal);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, var(--ambient-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ambient-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 85%);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   5. Scroll-Reveal Animation Engine
   -------------------------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* --------------------------------------------------------------------------
   6. Header Navigation Island
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
}

.nav-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  padding: 0.5rem 0.85rem;
  gap: 0.65rem;
  background: var(--bg-island);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  background: var(--bg-pill);
  color: var(--accent-cyan);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-pill);
}

.nav-chevron {
  display: none;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.nav-mobile-cta {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

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

/* Theme Toggle Button - Modern Fluent Toolbar Style (Resilient & Non-Squishable) */
.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-pill);
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  transition: all var(--transition-fast);
}

.btn-theme:hover {
  background: var(--bg-pill-hover);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.btn-theme svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: auto;
  transition: transform var(--transition-normal);
}

.btn-theme .icon-sun {
  display: none !important;
}
.btn-theme .icon-moon {
  display: block !important;
}

[data-theme="light"] .btn-theme .icon-sun {
  display: block !important;
}
[data-theme="light"] .btn-theme .icon-moon {
  display: none !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-theme .icon-sun {
    display: block !important;
  }
  :root:not([data-theme="dark"]) .btn-theme .icon-moon {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

/* Official Microsoft Store Button */
.btn-msstore {
  background: var(--bg-pill);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-msstore:hover {
  background: rgba(0, 120, 215, 0.15);
  border-color: rgba(0, 120, 215, 0.45);
  color: #38bdf8;
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  box-shadow: 0 4px 18px var(--accent-primary-glow);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-primary-glow);
}

.btn-secondary {
  background: var(--bg-pill);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-pill-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 4.5rem);
  padding-bottom: 5.5rem;
  text-align: center;
  position: relative;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  max-width: 900px;
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-cyan) 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-actions .btn {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
}

/* Hero Showcase Desktop Frame */
.hero-mockup-wrapper {
  max-width: 1040px;
  margin-inline: auto;
  position: relative;
}

.hero-mockup-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-primary);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform var(--transition-normal);
}

.hero-mockup-frame:hover {
  transform: translateY(-4px);
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 0.45rem;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-medium);
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-app-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.mockup-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Telemetry Chips */
.telemetry-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 10;
  white-space: nowrap;
  animation: float-chip 4s ease-in-out infinite alternate;
}

.telemetry-chip.chip-nvenc {
  top: -1.25rem;
  left: 2rem;
  color: var(--accent-cyan);
}

.telemetry-chip.chip-speed {
  bottom: 2rem;
  right: -1.25rem;
  color: var(--accent-emerald);
  animation-delay: -2s;
}

.telemetry-chip.chip-zero {
  bottom: -1.25rem;
  left: 3rem;
  color: var(--accent-amber);
  animation-delay: -1s;
}

@keyframes float-chip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   8. The Manifesto (The Rant) Section
   -------------------------------------------------------------------------- */
.manifesto-section {
  padding-block: 6rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* The Quote Callout */
.manifesto-intro-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 2.75rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.manifesto-intro-quote {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.manifesto-intro-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* The 4 Rant Cards Grid (Balanced 2x2 on Desktop) */
.rant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .rant-grid {
    grid-template-columns: 1fr;
  }
}

.rant-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.rant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent-rose));
  opacity: 0.7;
}

.rant-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.rant-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.rant-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg, rgba(244, 63, 94, 0.12));
  color: var(--icon-color, var(--accent-rose));
  flex-shrink: 0;
}

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

.rant-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.rant-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* The 5 Pillars of Alitken Box */
.pillars-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.pillars-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.75rem;
  color: var(--text-main);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.pillar-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition-fast);
}

.pillar-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.pillar-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.pillar-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Comparison Matrix Section
   -------------------------------------------------------------------------- */
.comparison-section {
  padding-block: 6rem;
}

.matrix-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}

.matrix-table th,
.matrix-table td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.matrix-table td {
  font-size: 0.92rem;
  color: var(--text-muted);
  vertical-align: middle;
}

.matrix-table td.col-feature {
  font-weight: 600;
  color: var(--text-main);
}

.matrix-table td.col-alitken {
  font-weight: 700;
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.08);
  min-width: 140px;
}

.matrix-table th.col-alitken-head {
  color: var(--accent-cyan);
  background: rgba(99, 102, 241, 0.15);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  min-width: 140px;
}

.matrix-pill {
  display: inline-block;
  text-align: center;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  max-width: 100%;
}

.matrix-pill.pill-good {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.matrix-pill.pill-bad {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

.matrix-pill.pill-warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

/* --------------------------------------------------------------------------
   10. Core Capabilities & Interactive Demos
   -------------------------------------------------------------------------- */
.capabilities-section {
  padding-block: 6rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

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

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Bottom Image Box with Gradual Fade-In Mask */
.feature-media-box {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
}

.feature-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 25%, rgba(0, 0, 0, 1) 85%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 25%, rgba(0, 0, 0, 1) 85%);
  transition: transform 0.4s var(--ease-smooth);
}

.feature-card:hover .feature-media-box img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   11. Application Gallery Grid
   -------------------------------------------------------------------------- */
.gallery-section {
  padding-block: 6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2rem;
}

.gallery-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

.gallery-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-smooth);
}

.gallery-item:hover .gallery-image-wrap img {
  transform: scale(1.02);
}

.gallery-content {
  padding: 1.5rem;
}

.gallery-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

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

/* --------------------------------------------------------------------------
   12. Tech Specs & Architecture Section
   -------------------------------------------------------------------------- */
.specs-section {
  padding-block: 6rem;
}

.specs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.spec-cell {
  border-left: 2px solid var(--accent-primary);
  padding-left: 1rem;
}

.spec-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.spec-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.spec-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Architecture Pipeline Bento Grid */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pipeline-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: all var(--transition-fast);
}

.pipeline-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.pipeline-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.pipeline-card-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.pipeline-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. Formats & System Compatibility (Centered & Larger)
   -------------------------------------------------------------------------- */
.formats-section {
  padding-block: 4rem;
  text-align: center;
}

.format-group {
  margin-bottom: 2rem;
}

.format-group:last-child {
  margin-bottom: 0;
}

.format-group-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  text-align: center;
}

.format-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.format-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.52rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.format-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

/* --------------------------------------------------------------------------
   14. Download & Support Hub
   -------------------------------------------------------------------------- */
.download-section {
  padding-block: 6rem;
  text-align: center;
}

.download-island {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  max-width: 900px;
  margin-inline: auto;
  box-shadow: var(--shadow-primary);
  backdrop-filter: blur(20px);
}

.download-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.download-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.download-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.support-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.support-link:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.support-link svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   16. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    left: 1rem;
    right: 1rem;
    max-width: 400px;
    margin-inline: auto;
    background: var(--bg-island);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 101;
  }

  .nav-menu.is-active {
    display: flex;
    animation: nav-drop 0.22s var(--ease-smooth) forwards;
  }

  @keyframes nav-drop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
  }

  .nav-link:hover {
    background: var(--bg-pill);
    color: var(--accent-primary);
    padding-left: 18px;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  /* When on mobile/tablet view, hide desktop 'Get Alitken' button from the island so header never clips */
  .btn-nav {
    display: none;
  }

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

  .telemetry-chip {
    display: none; /* Hide floating chips on smaller viewports to prevent horizontal overflow */
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .download-btns {
    flex-direction: column;
    width: 100%;
  }

  .download-btns .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
