/* ==============================================================================
   A FILM BY — DESKTOP-FIRST PRODUCT WEBSITE STYLES
   Inspired by Celtx & Final Draft presentation standards with an original cinematic aesthetic.
   Color Palette: Deep Canvas (#121110), Panel (#191815), Antique Gold (#C5A059),
   Warm Screenplay Paper (#FAF6ED, #F4EEDD), Text (#EDE8DF, #9E988E).
   ============================================================================== */

:root {
  /* Core brand surfaces */
  --bg-canvas: #121110;
  --bg-card: #191815;
  --bg-card-alt: #161513;
  --bg-panel: #22201C;
  --bg-elevated: #26241F;

  /* Screenplay paper metaphor */
  --paper-cream: #FAF6ED;
  --paper-card: #F4EEDD;
  --paper-border: #DED6C4;
  --paper-text: #1C1A17;
  --paper-muted: #6B655B;

  /* Accents & Brand Gold */
  --accent-gold: #C5A059;
  --accent-gold-light: #DEC38B;
  --accent-gold-dark: #997736;
  --border-gold: rgba(197, 160, 89, 0.28);
  --border-gold-subtle: rgba(197, 160, 89, 0.12);
  --border-dark: #2B2923;

  /* Typography Colors */
  --text-primary: #EDE8DF;
  --text-secondary: #9E988E;
  --text-muted: #78736B;
  --text-white: #FFFFFF;

  /* Vibrant Feature Tints */
  --tint-gold: #D4AF37;
  --tint-blue: #4A90E2;
  --tint-emerald: #2EAA7B;
  --tint-violet: #9B6BCC;
  --tint-orange: #E58732;
  --tint-coral: #E05344;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Courier Prime', Courier, monospace;
  --font-serif: 'Playfair Display', Georgia, serif;
  /* Editor canvas stack; keep in sync with workspace.css --screenplay-font-family. */
  --screenplay-font-family: 'Droid Sans Mono', 'Roboto Mono', 'Consolas', 'SF Mono', 'Menlo', 'DejaVu Sans Mono', 'Liberation Mono', 'Noto Sans Mono', ui-monospace, monospace, 'Noto Sans Telugu', 'Noto Sans Devanagari', 'Noto Sans Kannada', 'Noto Sans Tamil', 'Noto Sans Malayalam', 'Noto Sans', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Site Container */
.site-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==============================================================================
   1. Top Announcement Bar
   ============================================================================== */
.top-announcement-bar {
  background-color: #0c0b0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-badge {
  background: rgba(197, 160, 89, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.announcement-text {
  font-size: 12.5px;
}

.announcement-link {
  color: var(--accent-gold-light);
  font-weight: 500;
  font-size: 12.5px;
}

.announcement-link:hover {
  color: var(--text-white);
}

/* ==============================================================================
   2. Full-Width Navigation Header
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  height: 44px;
  width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 11.5px;
  color: #8A8478;
  letter-spacing: 0.5px;
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-item {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav-item:hover,
.nav-item.active-nav {
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary-gold {
  background: var(--accent-gold);
  color: #121110;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.25);
  transition: all 0.2s ease;
}

.btn-primary-gold:hover {
  background: #d4af65;
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.4);
  transform: translateY(-1px);
}

.btn-secondary-header {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-secondary-header:hover {
  color: var(--accent-gold);
  border-color: var(--border-gold);
  background: rgba(197, 160, 89, 0.06);
}

.btn-icon-svg {
  width: 16px;
  height: 16px;
}

.btn-arrow {
  width: 16px;
  height: 16px;
}

.gold-glow {
  background: var(--accent-gold) !important;
  color: #121110 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.3) !important;
}

.hero-sub-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-dark);
}

/* ==============================================================================
   3. Cinematic Hero Section
   ============================================================================== */
.hero-section {
  position: relative;
  padding: 90px 0 100px 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, rgba(18, 17, 16, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--accent-gold-light);
  margin-bottom: 26px;
}

.gold-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  /* ch scales with font-size, so the two-word break point holds on every screen. */
  max-width: 18ch;
  margin-bottom: 24px;
  text-wrap: balance;
}

.text-gold {
  color: var(--accent-gold);
}

.italic-title {
  font-style: italic;
  font-family: var(--font-serif);
}

.hero-subhead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 38px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 46px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary {
  background: var(--accent-gold);
  color: #121110;
  border-radius: 8px;
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
  transition: all 0.2s ease;
  text-align: left;
}

.btn-hero-primary:hover {
  background: #d4af65;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(197, 160, 89, 0.45);
}

.hero-btn-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-text-block {
  display: flex;
  flex-direction: column;
}

.btn-action-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.btn-sub-label {
  font-size: 11px;
  opacity: 0.85;
}

.btn-hero-secondary {
  background: #1c1a17;
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.btn-hero-secondary:hover {
  border-color: var(--accent-gold);
  background: #24221d;
  color: var(--accent-gold-light);
}

.btn-arrow-right {
  width: 16px;
  height: 16px;
}

/* Proof Strip */
.hero-proof-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 70px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.proof-number {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-mono);
}

.proof-label {
  color: #8A8478;
  font-size: 13px;
}

.proof-sep {
  width: 1px;
  height: 16px;
  background: var(--border-dark);
}

/* ==============================================================================
   Screenplay Stage Mockup (Desktop View of Real Screenplay Format)
   ============================================================================== */
.hero-showcase {
  width: 100%;
  max-width: 860px;
}

.screenplay-stage-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-align: left;
}

.stage-top-bar {
  background: #151412;
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-window-controls {
  display: flex;
  gap: 7px;
}

.ctrl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ctrl-dot.red { background: #ff5f56; }
.ctrl-dot.yellow { background: #ffbd2e; }
.ctrl-dot.green { background: #27c93f; }

.stage-tab-title {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.stage-tag {
  font-size: 10.5px;
  background: #25231e;
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Physical Screenplay Paper */
.screenplay-paper-sheet {
  background: var(--paper-cream);
  color: var(--paper-text);
  padding: 48px 60px 48px 60px;
  font-family: var(--screenplay-font-family);
  position: relative;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.03);
}

.paper-watermark-stamp {
  position: absolute;
  top: 18px;
  left: 28px;
  font-size: 10px;
  color: var(--paper-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
}

.paper-page-number {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 12px;
  font-weight: 700;
  color: var(--paper-text);
  font-family: var(--screenplay-font-family);
}

.script-content {
  font-size: 15px;
  line-height: 22px;
}

.scene-heading {
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 18px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.action-para {
  margin-bottom: 14px;
  max-width: 650px;
}

.shot-heading {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 18px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-align: left;
}

.character-dialogue-block {
  margin: 18px 0;
}

.character-name {
  font-weight: 700;
  text-align: center;
  max-width: 480px;
  margin: 0 auto 3px auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.parenthetical {
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  max-width: 420px;
  margin: 4px auto 4px auto;
  color: var(--paper-muted);
  font-style: italic;
}

.dialogue-speech {
  font-size: 15px;
  line-height: 21px;
  max-width: 380px;
  margin: 0 auto 4px auto;
  text-align: left;
}
.dialogue-speech:last-child {
  margin-bottom: 0;
}

.transition-slug {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-align: right;
  margin-top: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.transition-slug.top-transition {
  text-align: left;
  margin-top: 0;
  margin-bottom: 16px;
}

.stage-floating-chip {
  margin-top: 36px;
  background: #181714;
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
}

.chip-accent {
  background: rgba(197, 160, 89, 0.2);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

/* ==============================================================================
   4. Features Section
   ============================================================================== */
.features-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-dark);
  background: var(--bg-card-alt);
}

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

.section-eyebrow {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.box-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.icon-gold { background: rgba(212, 175, 55, 0.15); color: var(--tint-gold); }
.icon-violet { background: rgba(155, 107, 204, 0.15); color: var(--tint-violet); }
.icon-emerald { background: rgba(46, 170, 123, 0.15); color: var(--tint-emerald); }
.icon-orange { background: rgba(229, 135, 50, 0.15); color: var(--tint-orange); }
.icon-blue { background: rgba(74, 144, 226, 0.15); color: var(--tint-blue); }
.icon-coral { background: rgba(224, 83, 68, 0.15); color: var(--tint-coral); }

.box-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.box-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.box-meta-tag {
  font-size: 11.5px;
  color: var(--accent-gold);
  font-weight: 500;
  letter-spacing: 0.2px;
  font-family: var(--font-sans);
}

/* ==============================================================================
   5. Deep Dive Sections
   ============================================================================== */
.deep-dive-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-dark);
}

.deep-dive-section.bg-alt {
  background: var(--bg-card);
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.reverse-grid {
  direction: rtl;
}

.reverse-grid > * {
  direction: ltr;
}

.deep-dive-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.deep-dive-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
}

.deep-dive-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.flow-step-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.flow-step-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-gold);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Terminal Card */
.terminal-card {
  background: #0f0e0d;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: #171614;
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 18px;
}

.term-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.code-preview {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #d8d4cc;
}

.c-comment { color: #6b665c; }
.c-gold { color: var(--accent-gold); font-weight: 700; }
.c-blue { color: #4a90e2; font-weight: 700; }
.c-violet { color: #9b6bcc; font-weight: 700; }
.c-emerald { color: #2eaa7b; font-weight: 700; }
.c-orange { color: #e58732; font-weight: 700; }
.c-coral { color: #e05344; font-weight: 700; }

/* Languages Wall */
.languages-badge-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lang-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.lang-chip.active-lang {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.08);
  color: var(--accent-gold);
}

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

.tag-pill {
  background: #201f1a;
  border: 1px solid var(--border-dark);
  color: var(--text-primary);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

/* ==============================================================================
   7. Disaster Recovery .afilmby Section
   ============================================================================== */
.afilmby-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-dark);
  background: #141311;
}

.backup-banner {
  background: linear-gradient(135deg, #1b1915 0%, #151411 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.backup-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 16px 0;
}

.backup-title code {
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

.backup-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 28px;
}

.backup-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bf-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.bf-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

/* ==============================================================================
   8. Download & Distribution Section
   ============================================================================== */
.download-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-dark);
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.download-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

.btn-download-apk {
  background: var(--accent-gold);
  color: #121110;
  border-radius: 8px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.35);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 440px;
}

.btn-download-apk:hover {
  background: #d4af65;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5);
}

.apk-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.apk-text {
  display: flex;
  flex-direction: column;
}

.apk-action {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.apk-info {
  font-size: 12px;
  opacity: 0.9;
}

/* ==============================================================================
   Android App Screenshot Gallery (Compact Horizontal Thumbnail Carousel)
   ============================================================================== */
.app-screenshots-container {
  margin-top: 28px;
  background: #141311;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 440px;
}

.screenshots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.screenshots-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screenshots-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--border-gold-subtle);
  padding: 2px 8px;
  border-radius: 12px;
}

.screenshots-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.3px;
}

.gallery-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-nav-btn {
  background: #1e1d19;
  border: 1px solid var(--border-dark);
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.gallery-nav-btn svg {
  width: 14px;
  height: 14px;
}

.gallery-nav-btn:hover {
  background: #2b2923;
  color: var(--accent-gold);
  border-color: var(--border-gold);
}

.app-screenshots-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.3) transparent;
}

.app-screenshots-gallery::-webkit-scrollbar {
  height: 4px;
}

.app-screenshots-gallery::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.25);
  border-radius: 2px;
}

.screenshot-item {
  flex: 0 0 102px;
  width: 102px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #181715;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.screenshot-img {
  width: 102px;
  height: 220px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
  background: #0d0c0b;
}

.screenshot-caption {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  padding: 4px 2px;
  background: #121110;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .stage-top-bar {
    padding: 10px 14px;
    gap: 8px;
  }
  .stage-tab-title {
    font-size: 11px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .stage-tag {
    font-size: 9.5px;
    padding: 2px 5px;
    white-space: nowrap;
  }
  .screenplay-paper-sheet {
    padding: 38px 18px 24px 18px;
  }
  .paper-watermark-stamp {
    left: 18px;
    top: 14px;
    font-size: 8.5px;
    letter-spacing: 0.5px;
    max-width: calc(100% - 50px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .paper-page-number {
    right: 18px;
    top: 14px;
    font-size: 11px;
  }
  .script-content {
    font-size: 13px;
    line-height: 1.45;
  }
  .shot-heading,
  .parenthetical,
  .transition-slug {
    font-size: 12px;
    line-height: 1.45;
  }
  .dialogue-speech {
    max-width: 100%;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.4;
  }
  .stage-floating-chip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 12px;
    font-size: 11px;
  }
  .app-screenshots-container {
    max-width: 100%;
    padding: 14px;
  }
  .screenshot-item {
    flex: 0 0 95px;
    width: 95px;
  }
  .screenshot-img {
    width: 95px;
    height: 205px;
  }
}

/* Android Phone Showcase Composition */
.download-phones {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 52 / 70;
  margin: 0 auto;
}
.download-phones::before {
  content: "";
  position: absolute;
  inset: -6% -10%;
  background: radial-gradient(closest-side, rgba(197, 160, 89, 0.1), rgba(197, 160, 89, 0.03) 55%, transparent 78%);
  pointer-events: none;
}
.phone {
  position: absolute;
}
.phone--rear {
  top: 0;
  right: 0;
  width: 52%;
  transform: rotate(4deg);
  z-index: 1;
}
.phone--front {
  top: 5%;
  left: 0;
  width: 56%;
  transform: rotate(-3deg);
  z-index: 2;
}
.phone-frame {
  padding: 7px;
  background: #0b0a09;
  border: 1px solid rgba(197, 160, 89, 0.38);
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.62), 0 4px 14px rgba(0, 0, 0, 0.5);
}
.phone--rear .phone-frame {
  border-color: rgba(197, 160, 89, 0.24);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
}
.phone-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.side-note-box {
  background: #171613;
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 8px;
  padding: 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.side-note-box strong {
  color: var(--accent-gold);
}

/* ==============================================================================
   9. Privacy & Security Section
   ============================================================================== */
.security-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-dark);
  background: #141311;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sec-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.sec-p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==============================================================================
   10. Structured Professional Footer
   ============================================================================== */
.site-footer {
  border-top: 1px solid var(--border-dark);
  background: #0b0a09;
  padding: 60px 0 40px 0;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-gold);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 16px;
  max-width: 320px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--text-secondary);
  font-size: 13.5px;
}

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

/* ==============================================================================
   11. Interactive Toast
   ============================================================================== */
.web-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #22201C;
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.web-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==============================================================================
   12. Responsive Adjustments
   ============================================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-card {
    grid-template-columns: 1fr;
  }
  .download-phones {
    max-width: 460px;
    margin-top: 8px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-nav.active {
    display: block;
  }
  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding: 20px 28px;
    gap: 14px;
  }
  .mob-link {
    font-size: 15px;
    color: var(--text-primary);
    padding: 6px 0;
  }
  .mob-cta {
    background: var(--accent-gold);
    color: #121110;
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
  }
  .hero-headline {
    font-size: 38px;
  }
  .screenplay-paper-sheet {
    padding: 30px 24px;
  }
  .deep-dive-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .deep-dive-visual {
    min-width: 0;
  }
  .terminal-card {
    max-width: 100%;
    min-width: 0;
  }
  .code-preview {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .backup-features {
    grid-template-columns: 1fr;
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
  .download-card {
    padding: 32px 20px;
  }
  .download-content {
    min-width: 0;
  }
  .app-screenshots-container {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .app-screenshots-gallery {
    max-width: 100%;
    min-width: 0;
  }
  .btn-download-apk {
    max-width: 100%;
  }
  .download-phones {
    max-width: 400px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .phone-frame {
    padding: 5px;
    border-radius: 24px;
  }
  .phone-screen {
    border-radius: 18px;
  }
}

/* ==============================================================================
   Install List Typography
   ============================================================================== */
.install-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==============================================================================
   Contact Section & Card
   ============================================================================== */
.contact-section {
  padding: 60px 0 80px;
  background-color: #0d0c0b;
  border-top: 1px solid var(--border-dark);
}
.contact-box {
  background: linear-gradient(180deg, #181714 0%, #131210 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 44px 36px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.contact-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--border-gold-subtle);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.contact-heading {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: var(--font-serif);
}
.contact-subtext {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.contact-details {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f0e0d;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  margin-bottom: 28px;
  user-select: all;
}
.contact-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-email {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.3px;
}
.contact-email:hover {
  color: var(--accent-gold-light);
  text-decoration: underline;
}
.contact-details-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  margin-bottom: 0;
}
.contact-details-row .contact-details {
  margin-bottom: 0;
}
.contact-divider {
  flex: none;
  width: 1px;
  height: 34px;
  background-color: var(--border-dark);
}
.contact-instagram {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.contact-instagram svg {
  flex: none;
}
@media (max-width: 600px) {
  .contact-details-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  /* Stacking the label above the value keeps each pill inside the card,
     which a side-by-side label cannot do at 390px. */
  .contact-details-row .contact-details {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 12px 16px;
  }
  .contact-divider {
    width: 64px;
    height: 1px;
    align-self: center;
  }
}

/* ==============================================================================
   Dedicated Privacy Policy Page Styles
   ============================================================================== */
.privacy-body,
.about-body,
.terms-body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
}
.privacy-container {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}
.privacy-header-card {
  background: linear-gradient(180deg, #1a1815 0%, #141311 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 36px;
}
.privacy-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-gold-subtle);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.privacy-title {
  font-size: 34px;
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-bottom: 12px;
}
.privacy-meta {
  font-size: 14px;
  color: var(--text-muted);
}
.privacy-content {
  background: #161513;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 44px 40px;
  line-height: 1.75;
}
.privacy-section {
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.privacy-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 14px;
  font-family: var(--font-serif);
}
.privacy-section p {
  color: #c9c3b8;
  font-size: 15px;
  margin-bottom: 14px;
}
.privacy-section ul {
  margin: 12px 0 16px 24px;
  color: #c9c3b8;
  font-size: 15px;
}
.privacy-section li {
  margin-bottom: 8px;
}
.privacy-section code {
  background: #24221d;
  color: var(--accent-gold-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.contact-highlight-box {
  background: #1b1916;
  border-left: 3px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
.contact-highlight-box p {
  margin: 4px 0;
  color: var(--text-primary);
}
.privacy-link {
  color: var(--accent-gold);
  text-decoration: underline;
}
.privacy-link:hover {
  color: var(--accent-gold-light);
}
.privacy-back-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* Accessible Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

