/* ==========================================================================
   Cinedrape — Official Website Styles
   Themes, layouts and calm mode for YouTube™
   ========================================================================== */

:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Brand Colors */
  --bg-primary: #0a0b0e;
  --bg-secondary: #111318;
  --bg-surface: #161821;
  --bg-surface-elevated: #1e202d;
  --bg-card: rgba(22, 24, 33, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f4f5f8;
  --text-muted: #9aa0b0;
  --text-faint: #636a7d;

  --accent-gold: #e8b04a;
  --accent-gold-hover: #f3be5d;
  --accent-gold-glow: rgba(232, 176, 74, 0.25);
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;

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

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px var(--accent-gold-glow);

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1240px;
}

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

html {
  color-scheme: dark;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 176, 74, 0.12), transparent),
    radial-gradient(circle 600px at 85% 20%, rgba(56, 189, 248, 0.05), transparent),
    radial-gradient(circle 800px at 15% 70%, rgba(232, 176, 74, 0.04), transparent);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 96px;
  position: relative;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(232, 176, 74, 0.1);
  border: 1px solid rgba(232, 176, 74, 0.25);
  border-radius: 999px;
  color: var(--accent-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-title .text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #d99a30);
  color: #0b0b0f;
  box-shadow: 0 4px 16px rgba(232, 176, 74, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover), #e8a635);
  box-shadow: 0 6px 24px rgba(232, 176, 74, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-muted);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

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

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 11, 14, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 16px rgba(232, 176, 74, 0.3);
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #ffffff;
}

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

.mobile-toggle {
  display: none;
  padding: 8px;
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  padding-top: 72px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 36px;
}

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

.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  color: var(--accent-gold);
}

/* Interactive Simulator Section */
.simulator-section {
  padding-top: 40px;
  padding-bottom: 96px;
}

.simulator-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

/* Simulator Controls Bar */
.sim-controls-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sim-theme-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-control-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-right: 4px;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.theme-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-pill.active {
  background: rgba(232, 176, 74, 0.15);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 0 14px var(--accent-gold-glow);
}

.swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.sim-toggles {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.toggle-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: #ffffff;
}

.toggle-btn.active .toggle-status {
  background: var(--accent-emerald);
}

.toggle-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background var(--transition-fast);
}

/* Mock YouTube Canvas */
.mock-viewport {
  --mock-bg: #0b0b0f;
  --mock-surface: #16161d;
  --mock-text: #f2f2f5;
  --mock-muted: #a3a3b2;
  --mock-accent: #e8b04a;
  --mock-border: #353642;
  --mock-radius: 10px;

  background-color: var(--mock-bg);
  color: var(--mock-text);
  min-height: 520px;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  font-size: 14px;
  position: relative;
}

/* Mock Navbar */
.mock-nav {
  height: 56px;
  background: var(--mock-surface);
  border-bottom: 1px solid var(--mock-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px;
  gap: 20px;
}

.mock-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.mock-logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--mock-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.mock-search {
  flex: 1;
  max-width: 440px;
  height: 36px;
  background: var(--mock-bg);
  border: 1px solid var(--mock-border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding-inline: 14px;
  gap: 10px;
  color: var(--mock-muted);
  font-size: 0.8125rem;
}

.mock-user-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mock-accent);
  opacity: 0.85;
}

/* Mock Hero Banner (Cinema Mode) */
.mock-hero {
  margin: 20px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--mock-surface), var(--mock-bg));
  border: 1px solid var(--mock-border);
  border-radius: calc(var(--mock-radius) * 1.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.mock-hero-left {
  max-width: 540px;
}

.mock-hero-tag {
  color: var(--mock-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mock-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--mock-text);
}

.mock-hero-desc {
  color: var(--mock-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.mock-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--mock-accent);
  color: #0b0b0f;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: var(--mock-radius);
  transition: opacity var(--transition-fast);
}

.mock-hero-preview {
  width: 280px;
  height: 158px;
  border-radius: var(--mock-radius);
  background: #191c24;
  border: 1px solid var(--mock-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.mock-hero-preview svg {
  width: 44px;
  height: 44px;
  color: var(--mock-accent);
  opacity: 0.9;
}

/* Mock Grid Cards */
.mock-feed {
  padding: 0 20px 24px;
}

.mock-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mock-feed-title {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mock-muted);
}

.mock-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.mock-card {
  background: var(--mock-surface);
  border: 1px solid var(--mock-border);
  border-radius: var(--mock-radius);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.mock-card:hover {
  transform: translateY(-3px);
  border-color: var(--mock-accent);
}

.mock-thumb {
  height: 135px;
  background: #1b1e28;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-thumb svg {
  opacity: 0.3;
}

.mock-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.mock-card-body {
  padding: 12px;
}

.mock-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--mock-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mock-card-meta {
  color: var(--mock-muted);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Calm Mode specific styling in mock */
.calm-mode-active .mock-distractions {
  display: none !important;
}

.calm-mode-active .mock-card-meta .mock-metrics {
  display: none !important;
}

.calm-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  margin-top: 4px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 176, 74, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 176, 74, 0.3);
  box-shadow: var(--shadow-md), 0 0 30px rgba(232, 176, 74, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(232, 176, 74, 0.12);
  border: 1px solid rgba(232, 176, 74, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 22px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

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

.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-chip {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-faint);
}

/* Gallery Showcase */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.gallery-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111216;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-badge {
  padding: 8px 16px;
  background: rgba(232, 176, 74, 0.9);
  color: #0b0b0f;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gallery-info {
  padding: 20px 24px;
}

.gallery-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

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

/* Architecture & Privacy Table */
.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: #ffffff;
}

.cinedrape-col {
  color: var(--accent-gold);
  background: rgba(232, 176, 74, 0.03);
  font-weight: 600;
}

.pill-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-emerald);
}

.pill-cross {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ef4444;
}

/* Install Guide Section */
.install-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-gold-glow);
}

.tab-pane {
  display: none;
}

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

.install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232, 176, 74, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.code-box {
  background: #07080a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-box code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #38bdf8;
  overflow-x: auto;
}

.copy-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Store Install Links */
.store-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}

.store-btn-text small {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.store-btn-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn.edge:hover {
  border-color: #00a4ef;
  box-shadow: 0 0 18px rgba(0, 164, 239, 0.25);
}

.store-btn.firefox:hover {
  border-color: #ff7139;
  box-shadow: 0 0 18px rgba(255, 113, 57, 0.25);
}

.store-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

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

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  padding-inline: 24px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 22px;
}

/* CTA Banner */
.cta-section {
  padding-block: 80px;
}

.cta-box {
  background: linear-gradient(135deg, rgba(232, 176, 74, 0.12), rgba(17, 19, 24, 0.95)), var(--bg-surface);
  border: 1px solid rgba(232, 176, 74, 0.3);
  border-radius: var(--radius-xl);
  padding: 64px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(232, 176, 74, 0.08);
}

.cta-box h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Modal Lightbox */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 1100px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-gold);
  color: #0b0b0f;
}

.modal-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}

.modal-caption {
  padding: 16px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.9375rem;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding-block: 64px 36px;
  color: var(--text-muted);
}

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

.footer-brand p {
  margin-top: 14px;
  max-width: 340px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.footer-store-link {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-store-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-store-link.edge:hover {
  border-color: #00a4ef;
  box-shadow: 0 0 14px rgba(0, 164, 239, 0.25);
}

.footer-store-link.firefox:hover {
  border-color: #ff7139;
  box-shadow: 0 0 14px rgba(255, 113, 57, 0.25);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 18px;
}

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

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.disclaimer-text {
  max-width: 760px;
  line-height: 1.5;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 18px;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 64px;
  }

  .hero-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sim-controls-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-hero {
    flex-direction: column;
    padding: 20px;
  }

  .mock-hero-preview {
    width: 100%;
    height: 180px;
  }

  .trust-bar {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
