/* ==========================================================================
   ApexCut Video Studio - Modern Cinematic Dark Theme
   Designed for High Performance, Accessibility, and Professional Elegance
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #090b10;
  --bg-secondary: #0f131c;
  --bg-tertiary: #161c2b;
  --bg-card: rgba(22, 28, 43, 0.7);
  --bg-card-hover: rgba(29, 37, 56, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.3);
  --border-focus: #06b6d4;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Brand Accents */
  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-cyan-hover: #0891b2;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Spacing Scale (4px / 0.25rem base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, Monaco, monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px -4px rgba(99, 102, 241, 0.35);
  --shadow-glow-cyan: 0 0 24px -4px rgba(6, 182, 212, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(6, 182, 212, 0.08), transparent),
    var(--bg-primary);
}

/* Focus styles for keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { color: var(--text-muted); font-size: 1.05rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Header Banner */
.announcement-banner {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  position: relative;
  z-index: 50;
}

.banner-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.banner-link {
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.banner-link:hover { text-decoration: underline; }

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 11, 16, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-icon-box svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-title {
  background: linear-gradient(135deg, #fff 40%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  padding: 8px;
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-menu-btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 28px -2px rgba(99, 102, 241, 0.5);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: #fff;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-cyan:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: var(--space-6);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  margin-bottom: var(--space-6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #fff 30%, var(--accent-cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto var(--space-8);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

.download-meta-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: var(--space-12);
}

.download-meta-hero span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Interactive Video Editor Mockup / Workspace
   ========================================================================== */
.editor-mockup-wrapper {
  margin: 0 auto var(--space-20);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 40px -10px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  max-width: 1140px;
}

/* Window Titlebar */
.editor-titlebar {
  background: #0d1017;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.titlebar-dots {
  display: flex;
  gap: 6px;
}

.titlebar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.titlebar-dot.red { background: #ef4444; }
.titlebar-dot.yellow { background: #f59e0b; }
.titlebar-dot.green { background: #10b981; }

.titlebar-filename {
  font-weight: 500;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.titlebar-stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.fps-badge {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Main Workspace Grid */
.editor-workspace {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  background: #0b0e14;
  height: 480px;
}

@media (max-width: 1024px) {
  .editor-workspace {
    grid-template-columns: 1fr;
    height: auto;
  }
  .workspace-sidebar, .workspace-inspector {
    display: none;
  }
}

/* Left Sidebar (Media Pool) */
.workspace-sidebar {
  background: #0d111a;
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.panel-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
}

.media-pool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.media-thumb {
  background: #161c2b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.media-thumb:hover, .media-thumb.active {
  border-color: var(--accent-cyan);
  background: #1c2438;
}

.media-preview-box {
  height: 44px;
  background: #232c42;
  border-radius: 2px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--accent-cyan);
}

/* Central Viewport */
.workspace-center {
  display: flex;
  flex-direction: column;
  background: #090c12;
  position: relative;
}

.viewport-display {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

#editorCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewport-overlay-info {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.viewport-center-play {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  transition: transform 0.2s ease;
}

.viewport-center-play:hover {
  transform: scale(1.1);
}

/* Right Inspector (Color Grading & LUTs) */
.workspace-inspector {
  background: #0d111a;
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 0.8rem;
}

.lut-selector-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lut-btn {
  background: #161c2b;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: left;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.lut-btn:hover {
  background: #1d2538;
  color: #fff;
}

.lut-btn.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
}

.audio-meter-panel {
  margin-top: auto;
  background: #121622;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.audio-meters {
  display: flex;
  gap: 6px;
  height: 60px;
  align-items: flex-end;
}

.meter-channel {
  flex: 1;
  background: #1f273b;
  height: 100%;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.meter-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #10b981 60%, #f59e0b 85%, #ef4444);
  transition: height 0.08s ease;
  height: 45%;
}

/* Bottom Multitrack Timeline */
.editor-timeline-section {
  background: #0d1017;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px 14px;
}

.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  background: #161c2b;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-btn:hover {
  background: #20283d;
  color: #fff;
}

.timecode-display {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: #090c12;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.timeline-ruler {
  height: 18px;
  background: #131722;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  user-select: none;
}

/* Scrub Track */
.timeline-tracks-container {
  background: #090b10;
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
  padding: 6px 0;
  cursor: pointer;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  z-index: 10;
  left: 28%;
  pointer-events: none;
}

.timeline-playhead::after {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 8px;
  background: #ef4444;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.timeline-track-row {
  display: flex;
  align-items: center;
  height: 28px;
  margin-bottom: 4px;
  padding: 0 8px;
  gap: 8px;
}

.track-label {
  width: 45px;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 600;
}

.track-clips {
  flex: 1;
  display: flex;
  height: 100%;
  gap: 4px;
}

.clip-block {
  border-radius: 3px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-video-1 { background: #3b82f6; width: 45%; }
.clip-video-2 { background: #6366f1; width: 35%; }
.clip-fx { background: #8b5cf6; width: 25%; }
.clip-audio { background: #10b981; width: 85%; }
.clip-subs { background: #f59e0b; width: 60%; }

/* ==========================================================================
   Features Section
   ========================================================================== */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.section-title {
  margin-bottom: var(--space-4);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--accent-cyan);
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  margin-bottom: var(--space-3);
  font-size: 1.2rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Download Hub Section
   ========================================================================== */
.download-section {
  background: linear-gradient(180deg, transparent, rgba(15, 19, 28, 0.9) 30%, transparent);
}

.download-card-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.download-card-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan), var(--accent-emerald));
}

.download-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .download-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.download-title-group h3 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.download-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  background: #090c12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .download-details-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.download-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.spec-val {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* SHA256 Box */
.checksum-box {
  background: #0d1017;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 640px) {
  .checksum-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.checksum-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.checksum-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

.checksum-hash {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: #1c2438;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #25304a;
  border-color: var(--accent-cyan);
}

.download-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.direct-download-btn {
  width: 100%;
  max-width: 480px;
  padding: 1.1rem 2rem;
  font-size: 1.15rem;
}

.download-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   System Requirements Table
   ========================================================================== */
.specs-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th, .specs-table td {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.specs-table th {
  background: #0f1420;
  color: var(--text-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specs-table td {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table td strong {
  color: var(--text-main);
}

/* ==========================================================================
   Installation Guide Steps
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-glow);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-chevron {
  transition: transform 0.2s ease;
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-6);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: var(--space-5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #06080c;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) 0 var(--space-8);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-desc {
  max-width: 340px;
  margin-top: var(--space-3);
  font-size: 0.88rem;
}

.footer-col-title {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.admin-link-pill {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-link-pill:hover {
  background: rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   Modals & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #161c2b;
  border: 1px solid var(--accent-emerald);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}
