/* ─── GYROIDVAULT.COM — OFFICIAL WEBSITE DESIGN SYSTEM ─────────────────────── */

:root,
:root[data-theme="dark"] {
  --bg-main: #07090e;
  --bg-secondary: #0d121d;
  --bg-card: rgba(16, 23, 38, 0.75);
  --bg-card-hover: rgba(22, 32, 54, 0.9);
  --bg-glass: rgba(13, 18, 29, 0.75);
  --bg-input: #121826;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.3);
  --border-glow: rgba(37, 99, 235, 0.25);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.15);
  --accent-blue: #2563eb;
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.15);
  --accent-orange: #f97316;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1400px;
  --shadow-card: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #f1f5f9;
  --border: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(2, 132, 199, 0.45);
  --border-glow: rgba(2, 132, 199, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-cyan: #0284c7; /* WCAG 2.1 AA compliant deep cyan on white (4.6:1) */
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --accent-purple: #7c3aed;
  --accent-purple-glow: rgba(124, 58, 237, 0.2);
  --accent-orange: #ea580c;
  --accent-amber: #d97706;
  --accent-green: #059669;

  --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

[data-theme="light"] .bg-glow-container {
  opacity: 0.35;
}

[data-theme="light"] .bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0f172a 20%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Background Ambient Glow Orbs ─────────────────────────────────────────── */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
}

.glow-orb-2 {
  position: absolute;
  top: 35%;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.glow-orb-3 {
  position: absolute;
  bottom: 10%;
  left: -150px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, rgba(0, 212, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(70px);
}

/* Subtle grid overlay */
.bg-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Typography & Utilities ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-amber { color: var(--accent-amber); }

/* ─── Buttons & Badges ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #2563eb;
  color: #2563eb !important;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-primary {
  background: #2563eb;
  color: #ffffff !important;
  border: 1px solid #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb !important;
}

.btn-kofi {
  background: #f59e0b;
  color: #07090e !important;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
}

.btn-kofi:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-cyan {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

[data-theme="light"] .badge-cyan {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.3);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

[data-theme="light"] .badge-purple {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.3);
}

/* ─── Navigation Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  padding: 4px 14px 4px 0;
  margin-right: 20px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25));
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-version {
  font-size: 0.7rem;
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
}

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

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

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

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

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

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.github-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

[data-theme="light"] .github-btn {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .github-btn:hover {
  background: #f8fafc;
  border-color: #0284c7;
}

.github-star-count {
  background: rgba(37, 99, 235, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3b82f6;
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
}

[data-theme="light"] .github-star-count {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
}

.mobile-github-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
}

[data-theme="light"] .mobile-github-btn {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-pill-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: var(--transition);
}

.hero-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-1px);
}

[data-theme="light"] .hero-pill {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.25);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* ─── Hero App Preview Showcase (1:1 Studio 2.0) ──────────────────────────── */
.hero-preview-container {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(168, 85, 247, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 212, 255, 0.15);
  transition: var(--transition);
}

[data-theme="light"] .hero-preview-container {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(124, 58, 237, 0.15), rgba(0, 0, 0, 0.04));
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 0 30px rgba(2, 132, 199, 0.1);
}

.hero-preview-inner {
  background: var(--bg-secondary);
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.window-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mock-url-bar {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 5px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 400px;
  width: 100%;
}

/* ─── Authentic 1:1 GyroidVault 2.0 App Simulation ───────────────────────── */
.app-sim-window {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 660px;
  background: var(--bg-main);
  text-align: left;
}

@media (max-width: 960px) {
  .app-sim-window {
    grid-template-columns: 1fr;
  }
  .app-sim-sidebar {
    display: none;
  }
}

.app-sim-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-sim-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.app-sim-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-sim-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.app-sim-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .app-sim-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.app-sim-nav-item.active {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
}

[data-theme="light"] .app-sim-nav-item.active {
  background: rgba(2, 132, 199, 0.12);
}

.app-sim-content {
  padding: 24px;
  overflow-y: auto;
  max-height: 740px;
}

/* Breadcrumbs */
.sim-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sim-breadcrumbs span.current {
  color: var(--text-secondary);
}

/* Detail Header */
.sim-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sim-detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sim-meta-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* 2-Column Detail Layout: Main Column + Quick Specs Sidebar */
.sim-detail-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .sim-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 3D Viewport Hero Stage */
.sim-stage-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .sim-stage-box {
  background: #f1f5f9;
}

.sim-viewer-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
  gap: 8px;
  flex-wrap: wrap;
}

.viewer-pill {
  pointer-events: auto;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.viewer-pill select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: var(--font-sans);
  color-scheme: dark;
}

[data-theme="light"] .viewer-pill select {
  color-scheme: light;
  color: #0f172a;
}

.viewer-pill select option {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 8px 12px;
}

[data-theme="light"] .viewer-pill select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Authentic GyroidVault Viewer Bottom Dock */
.viewer-bottom-dock {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(13, 18, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px 10px;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  max-width: 96%;
  overflow-x: auto;
  scrollbar-width: none;
}

[data-theme="light"] .viewer-bottom-dock {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
  border-color: var(--border);
}

.viewer-bottom-dock::-webkit-scrollbar {
  display: none;
}

.viewer-tool-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.725rem;
  font-weight: 600;
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.viewer-tool-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .viewer-tool-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.viewer-tool-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.15);
}

[data-theme="light"] .viewer-tool-btn.active {
  background: rgba(2, 132, 199, 0.12);
}

.viewer-dock-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0;
}

.viewer-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.viewer-swatch:hover {
  transform: scale(1.25);
}

.viewer-swatch.active {
  border-color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .viewer-swatch.active {
  border-color: #0f172a;
}

.sim-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 0.725rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

/* Tabs */
.sim-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sim-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
  white-space: nowrap;
}

.sim-tab-btn:hover {
  color: var(--text-primary);
}

.sim-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-cyan);
}

/* Print Tips Box */
.sim-tips-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Sidebar Quick Specs */
.sim-spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.sim-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sim-spec-item {
  background: var(--bg-input);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sim-spec-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.sim-spec-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sim-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.775rem;
}

.sim-info-row:last-child {
  border-bottom: none;
}

/* ─── App Screenshot Showcase Gallery ─────────────────────────────────────── */
.gallery-section {
  position: relative;
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.gallery-tab-btn.active {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

[data-theme="light"] .gallery-tab-btn.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.2);
}

.gallery-display-card {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}

[data-theme="light"] .gallery-section {
  background: #ffffff;
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .gallery-display-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.gallery-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

[data-theme="light"] .gallery-window-header {
  background: #f8fafc;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.gallery-pane {
  display: none;
  animation: galleryFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-pane.active {
  display: block;
}

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

.screenshot-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.gallery-caption-box {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 8px;
}

.gallery-caption-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gallery-caption-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 750px;
  line-height: 1.5;
}

/* ─── Stats Strip ──────────────────────────────────────────────────────────── */
.stats-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

[data-theme="light"] .stats-strip {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

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

/* ─── Bento Grid Features Section ─────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

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

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

@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.span-3 {
  grid-column: span 3;
}

@media (max-width: 992px) {
  .bento-card.span-2 {
    grid-column: span 2;
  }
  .bento-card.span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento-card.span-2,
  .bento-card.span-3 {
    grid-column: span 1;
  }
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.icon-purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); border-color: rgba(168, 85, 247, 0.25); }
.icon-orange { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); border-color: rgba(249, 115, 22, 0.25); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); border-color: rgba(16, 185, 129, 0.25); }
.icon-amber { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); border-color: rgba(245, 158, 11, 0.25); }

.bento-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-card-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* ─── Installation Hub Section ─────────────────────────────────────────────── */
#install {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] #install {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

.install-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .install-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.install-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.install-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.install-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.install-tab-btn.active {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(0, 212, 255, 0.3);
}

.code-box {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .code-box {
  background: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

[data-theme="light"] .code-header {
  background: #1e293b;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-cyan);
}

.code-pre {
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* ─── Support & Community Banner ───────────────────────────────────────────── */
.support-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
}

[data-theme="light"] .support-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(2, 132, 199, 0.06));
  border-color: rgba(245, 158, 11, 0.3);
}

.support-content {
  flex: 1;
  min-width: 300px;
}

.support-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ─── FAQ Accordion ────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-main);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

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

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ─── Toast Notification ──────────────────────────────────────────────────── */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-drawer-actions {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .nav-wrap {
    gap: 8px;
  }
  .nav-actions {
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
  .nav-menu { display: none; }
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-menu.mobile-open .mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
  }
  [data-theme="light"] .mobile-toggle {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
  }
  .theme-toggle-btn {
    width: 38px;
    height: 38px;
  }
  .hero-preview-container { padding: 4px; border-radius: var(--radius-md); }
  .app-sim-content { padding: 16px 12px; }
  .sim-detail-title { font-size: 1.25rem; }
  .viewer-bottom-dock {
    width: 95%;
    gap: 3px;
    padding: 3px 6px;
  }
  .viewer-tool-btn { padding: 3px 5px; font-size: 0.675rem; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .hero-cta-row .btn { width: 100%; }
  .install-card { padding: 24px 16px; }
  .support-banner { padding: 28px 20px; }
  .gallery-section { padding: 60px 0; }
  .gallery-display-card { padding: 8px; }
}

/* ─── Comparison Section ─────────────────────────────────────────────────── */
#compare {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-top: 30px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 1100px;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table thead th {
  background: var(--bg-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  z-index: 2;
}

.compare-table thead th.col-highlight {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-cyan);
  border-bottom: 2px solid var(--accent-blue);
  box-shadow: inset 0 -2px 0 var(--accent-blue);
}

[data-theme="light"] .compare-table thead th.col-highlight {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
}

.compare-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .compare-table tbody tr:hover td {
  background: rgba(15, 23, 42, 0.02);
}

.compare-table tbody td.col-highlight {
  background: rgba(37, 99, 235, 0.05);
  font-weight: 600;
}

[data-theme="light"] .compare-table tbody td.col-highlight {
  background: rgba(37, 99, 235, 0.04);
}

.compare-group-row td {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

[data-theme="light"] .compare-group-row td {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-secondary);
}

.status-yes {
  color: #34d399;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-no {
  color: #94a3b8;
  opacity: 0.7;
}

.status-partial {
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-note-box {
  margin-top: 30px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .compare-note-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

