/* ==========================================================================
   FLESHNOTE IDE — CORE DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep charcoal IDE canvas, gold amber accents, Rovás glyphs,
   tactile terminal cards, and literary typography.
   ========================================================================== */

/* ── Typography & Font Declarations ─────────────────────────────────────── */
@font-face {
  font-family: 'Noto Sans Old Hungarian';
  src: url('../assets/fonts/NotoSansOldHungarian-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+10C80-U+10CFF;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('../assets/fonts/CrimsonPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('../assets/fonts/CrimsonPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Pro';
  src: url('../assets/fonts/CrimsonPro-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ── Theme Tokens & Variables ───────────────────────────────────────────── */
:root {
  /* Color Palette matching Desktop IDE */
  --bg-deep: #08090c;
  --bg-base: #0f1116;
  --bg-surface: #15181f;
  --bg-elevated: #1c202a;
  --bg-hover: #252a37;
  
  --border-subtle: #222633;
  --border-default: #313647;
  --border-bright: #4a5168;
  --border-amber-dim: rgba(212, 160, 82, 0.25);
  --border-amber: rgba(212, 160, 82, 0.6);

  --text-primary: #ebe8e1;
  --text-secondary: #a19d93;
  --text-tertiary: #6b6760;
  --text-dim: #4d4a45;

  --accent-amber: #d4a052;
  --accent-amber-hover: #e5b367;
  --accent-amber-dim: rgba(212, 160, 82, 0.12);
  --accent-amber-glow: rgba(212, 160, 82, 0.28);

  --accent-red: #c45c5c;
  --accent-red-dim: rgba(196, 92, 92, 0.16);
  --accent-green: #5c9e6e;
  --accent-green-dim: rgba(92, 158, 110, 0.16);
  --accent-blue: #5c8ec4;
  --accent-blue-dim: rgba(92, 142, 196, 0.16);
  --accent-purple: #8b6ec4;
  --accent-purple-dim: rgba(139, 110, 196, 0.16);

  /* Fonts */
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;
  --font-runes: 'Noto Sans Old Hungarian', serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
  --radius-sm: 2px;
  --radius-md: 4px;
}

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

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

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-amber);
  color: var(--bg-deep);
}

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--accent-amber-hover);
}

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

img, svg, video {
  display: block;
  max-width: 100%;
}

/* ── Custom Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-default);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

/* ── Runic Utilities & Font Classes ─────────────────────────────────────── */
.font-runes {
  font-family: var(--font-runes);
  letter-spacing: 0.05em;
}

.font-mono {
  font-family: var(--font-mono);
}

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

.rune-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-amber);
  background: var(--accent-amber-dim);
  border: 1px solid var(--border-amber-dim);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rune-symbol {
  font-family: var(--font-runes);
  font-size: 14px;
  color: var(--accent-amber);
}

/* ── Background Dither & Overlay Grid ───────────────────────────────────── */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(rgba(212, 160, 82, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 9, 12, 0.4) 0%, rgba(8, 9, 12, 0.85) 100%);
  background-size: 24px 24px, 100% 100%;
}

.scanline-effect {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  opacity: 0.35;
}

/* ── Site Layout Wrap ───────────────────────────────────────────────────── */
.site-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ── Navigation Bar ─────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent-amber);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-logo-icon {
  width: 28px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-brand:hover .nav-logo-icon {
  transform: scale(1.08);
}

.nav-brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nav-brand-title {
  color: var(--text-primary);
}

.nav-brand-runes {
  font-family: var(--font-runes);
  font-size: 13px;
  color: var(--accent-amber);
}

.nav-brand-version {
  font-size: 10px;
  color: var(--text-tertiary);
  border: 1px solid var(--border-default);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-amber);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-amber);
}

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

.btn-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px var(--accent-amber-glow);
  transition: all 0.2s ease;
}

.btn-nav-download:hover {
  background: var(--accent-amber-hover);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(212, 160, 82, 0.4);
}

.btn-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.mobile-nav-dropdown {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
}

.mobile-nav-dropdown.open {
  display: flex;
}

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero-section {
  padding-block: 64px 48px;
  text-align: center;
  position: relative;
}

.hero-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
}

.hero-logo-wrapper {
  position: relative;
  width: 140px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(212, 160, 82, 0.14) 0%, transparent 75%);
  border: 1px solid var(--border-amber-dim);
  padding: 16px;
  box-shadow: 0 0 40px rgba(212, 160, 82, 0.12);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.hero-logo-wrapper:hover {
  transform: scale(1.03);
  border-color: var(--accent-amber);
  box-shadow: 0 0 50px rgba(212, 160, 82, 0.22);
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(212, 160, 82, 0.35));
}

/* Corner bracket accents */
.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--accent-amber);
  pointer-events: none;
}
.corner-tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

/* Animated Rovás-to-Latin Title */
.hero-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  user-select: none;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-primary);
  display: inline-flex;
  gap: 0.3em;
  flex-wrap: wrap;
  justify-content: center;
}

.title-word {
  display: inline-flex;
}

.animated-char {
  display: inline-block;
  transition: opacity 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.animated-char.rovas-state {
  font-family: var(--font-runes);
  color: var(--accent-amber);
  font-size: 0.94em;
  text-shadow: 0 0 12px var(--accent-amber-glow);
}

.animated-char.latin-state {
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.animated-char.exit-state {
  opacity: 0;
  transform: scaleY(0.3) translateY(-6px);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--accent-amber);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lead-text {
  max-width: 780px;
  margin-inline: auto;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  border-left: 2px solid var(--accent-amber);
  border-right: 2px solid var(--accent-amber);
  padding-inline: 20px;
  background: linear-gradient(90deg, rgba(212,160,82,0.03), transparent, rgba(212,160,82,0.03));
}

.hero-lead-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero CTA Buttons */
.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-amber);
  color: #090a0d;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 0 25px var(--accent-amber-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-amber-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(212, 160, 82, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: var(--accent-amber);
  border-color: var(--border-amber-dim);
}

.hero-meta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* ── Hero IDE Showcase Preview ──────────────────────────────────────────── */
.hero-ide-preview {
  margin-top: 48px;
  position: relative;
}

.ide-window-frame {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 160, 82, 0.08);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
}

.ide-window-frame:hover {
  border-color: var(--border-amber-dim);
}

.ide-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding-inline: 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

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

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-default);
}
.window-dot.red { background: rgba(196, 92, 92, 0.6); }
.window-dot.yellow { background: rgba(212, 160, 82, 0.6); }
.window-dot.green { background: rgba(92, 158, 110, 0.6); }

.window-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

.ide-preview-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.96);
}

.ide-preview-image:hover {
  filter: brightness(1.02);
}

.preview-click-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(8, 9, 12, 0.85);
  border: 1px solid var(--border-amber-dim);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-amber);
  border-radius: var(--radius-sm);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Terminal Card Component ────────────────────────────────────────────── */
.terminal-card {
  position: relative;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.terminal-card.glowing {
  border-color: var(--border-amber-dim);
  box-shadow: 0 0 20px rgba(212, 160, 82, 0.08);
}

.terminal-card:hover {
  border-color: var(--accent-amber);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(212, 160, 82, 0.06);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.terminal-dot.dim { background: rgba(212, 160, 82, 0.3); }
.terminal-dot.med { background: rgba(212, 160, 82, 0.6); }
.terminal-dot.bright { background: var(--accent-amber); }

.terminal-body {
  padding: 16px;
  position: relative;
  z-index: 2;
}

/* ── Section Titles & Headers ───────────────────────────────────────────── */
.section {
  padding-block: 72px;
  position: relative;
}

.section-header {
  margin-bottom: 48px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-top: 10px;
  line-height: 1.6;
}

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

.feature-card {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 24px;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 160, 82, 0.08);
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-amber-dim);
  border: 1px solid var(--border-amber-dim);
  color: var(--accent-amber);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
}

.feature-rune-tag {
  font-family: var(--font-runes);
  font-size: 18px;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.feature-card:hover .feature-rune-tag {
  color: var(--accent-amber);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.feature-image-wrapper {
  margin-top: auto;
  border: 1px solid var(--border-subtle);
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.feature-image-wrapper img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.feature-image-wrapper:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.feature-expand-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(8, 9, 12, 0.85);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 6px;
  border: 1px solid var(--border-amber-dim);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

.feature-image-wrapper:hover .feature-expand-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ── Interactive Pentimento Pitch Spotlight ─────────────────────────────── */
.pentimento-spotlight {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--accent-amber);
  padding: 36px;
  border-radius: var(--radius-sm);
  margin-block: 48px;
  position: relative;
}

.pentimento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.pentimento-sample {
  background: #0b0d12;
  border: 1px solid var(--border-subtle);
  padding: 24px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.pentimento-sample .del {
  color: var(--accent-red);
  text-decoration: line-through;
  opacity: 0.75;
  background: var(--accent-red-dim);
  padding: 1px 4px;
}

.pentimento-sample .rev {
  color: var(--accent-amber);
  background: var(--accent-amber-dim);
  padding: 1px 4px;
}

.pentimento-sample .flow {
  color: var(--accent-green);
  background: var(--accent-green-dim);
  padding: 1px 4px;
}

.pentimento-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-chip .box { width: 10px; height: 10px; border-radius: 2px; }
.legend-chip.flow .box { background: var(--accent-green); }
.legend-chip.rev .box { background: var(--accent-amber); }
.legend-chip.del .box { background: var(--accent-red); }

/* ── Screenshot & Media Gallery ─────────────────────────────────────────── */
.gallery-filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-tab-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.filter-tab-btn:hover, .filter-tab-btn.active {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  background: var(--bg-elevated);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.gallery-item:hover {
  border-color: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.gallery-item-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-img {
  opacity: 1;
  transform: scale(1.03);
}

.gallery-item-info {
  padding: 12px 16px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-item-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.gallery-item-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-amber);
  border: 1px solid var(--border-amber-dim);
  padding: 2px 6px;
}

/* ── Mobile Companion App Showcase ──────────────────────────────────────── */
.companion-banner {
  background: linear-gradient(135deg, rgba(212, 160, 82, 0.08) 0%, rgba(15, 17, 22, 0.95) 100%);
  border: 1px solid var(--border-amber-dim);
  border-radius: var(--radius-sm);
  padding: 40px;
  position: relative;
  margin-block: 48px;
}

.companion-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.companion-features-list {
  list-style: none;
  margin-block: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.companion-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.companion-features-list li strong {
  color: var(--text-primary);
}

.companion-features-list .rune-bullet {
  font-family: var(--font-runes);
  color: var(--accent-amber);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Image Lightbox Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-container {
  position: relative;
  max-width: 1100px;
  max-height: 90vh;
  background: var(--bg-base);
  border: 1px solid var(--accent-amber);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 160, 82, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-amber);
  text-transform: uppercase;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--accent-amber);
}

.modal-img-wrapper {
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: auto;
}

.modal-img {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  object-fit: contain;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding-block: 48px 32px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 380px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

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

.footer-nav-list a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.footer-runic-flourish {
  font-family: var(--font-runes);
  color: var(--accent-amber);
  letter-spacing: 0.15em;
  opacity: 0.7;
}

/* ── Responsive Queries ─────────────────────────────────────────────────── */
/* Status Pills & Version Indicators */
.badge-stable {
  background: var(--accent-amber-dim);
  border: 1px solid var(--border-amber-dim);
  color: var(--accent-amber);
}

.badge-dev {
  background: rgba(224, 130, 60, 0.16);
  border: 1px solid rgba(224, 130, 60, 0.45);
  color: #f59e5b;
}

.badge-android {
  background: rgba(92, 158, 110, 0.16);
  border: 1px solid rgba(92, 158, 110, 0.45);
  color: #7cd992;
}

/* ── Dual Track / Split View Patchnotes Layout ───────────────────────────── */
.split-view-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}

.track-column {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.track-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.patch-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.patch-card-item:hover {
  border-color: var(--border-amber-dim);
}

.patch-card-item.in-dev {
  border-left: 3px solid #f59e5b;
}

.patch-card-item.latest-stable {
  border-left: 3px solid var(--accent-amber);
}

.patch-card-item.android-dev {
  border-left: 3px solid #7cd992;
}

@media (max-width: 900px) {
  .split-view-container {
    grid-template-columns: 1fr;
  }
}

