:root {
  --bg: #090c12;
  --bg-deep: #06080d;
  --bg-surface: #101622;
  --bg-elev: #161e2e;
  --bg-glass: rgba(14, 20, 32, 0.84);
  --border: #283349;
  --border-soft: rgba(243, 237, 224, 0.1);
  --border-gold: rgba(229, 193, 88, 0.42);
  --ink: #f3ede0;
  --ink-muted: #c6beb0;
  --ink-soft: #9e9689;
  --gold: #e5c158;
  --gold-bright: #f5d882;
  --gold-bronze: #9a7b2c;
  --gold-dim: rgba(229, 193, 88, 0.14);
  --ok: #6be0a1;
  --ok-bg: rgba(17, 45, 30, 0.9);
  --ok-border: #2a704a;
  --discord: #4a55d1;
  --discord-hover: #3c46b8;
  --paypal-bg: #ffc439;
  --paypal-hover: #ffd15c;
  --paypal-text: #003087;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --container-max: 1180px;
  --shadow-window: 0 28px 65px rgba(3, 5, 10, 0.72), 0 0 0 1px rgba(229, 193, 88, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-bright);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #090c12;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 12, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--bg-elev);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tricolour-rule {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(31, 107, 59, 0.65) 28%,
    rgba(232, 224, 207, 0.45) 50%,
    rgba(143, 37, 37, 0.65) 72%,
    transparent 100%
  );
  opacity: 0.72;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
}

.mobile-nav {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding-block: 1rem 1.25rem;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mobile-nav-inner nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  border-color: var(--border-gold);
}

.mobile-nav-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.btn:hover {
  color: var(--ink);
  border-color: var(--gold-bronze);
  background: #202b3f;
}

.btn-sm {
  padding: 0.48rem 0.92rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.88rem 1.45rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #f2d16b 0%, #d4aa3c 100%);
  border-color: #f3d77f;
  color: #090c12;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(229, 193, 88, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f8de88 0%, #e1b849 100%);
  border-color: #faeaad;
  color: #090c12;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(229, 193, 88, 0.3);
}

.btn-glass {
  background: rgba(22, 30, 46, 0.76);
  border-color: rgba(243, 237, 224, 0.2);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(32, 43, 64, 0.92);
  border-color: var(--gold);
}

.btn-discord {
  background: var(--discord);
  border-color: var(--discord);
  color: #ffffff;
}

.btn-discord:hover {
  background: var(--discord-hover);
  border-color: var(--discord-hover);
  color: #ffffff;
}

.btn-paypal {
  background: var(--paypal-bg);
  border-color: var(--paypal-bg);
  color: var(--paypal-text);
  font-weight: 700;
}

.btn-paypal:hover {
  background: var(--paypal-hover);
  border-color: var(--paypal-hover);
  color: var(--paypal-text);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.26rem 0.68rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}

.badge-ok {
  border: 1px solid var(--ok-border);
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-gold {
  border: 1px solid rgba(229, 193, 88, 0.38);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0.92;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 18, 0.94) 0%, rgba(9, 12, 18, 0.78) 42%, rgba(9, 12, 18, 0.25) 76%, rgba(9, 12, 18, 0.42) 100%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.42) 0%, transparent 25%, rgba(9, 12, 18, 0.94) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.92fr);
  gap: 2.75rem;
  align-items: center;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ok-border);
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

h1 {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.35vw, 2.82rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.015em;
  color: var(--ink);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.075rem;
  color: var(--ink-muted);
  max-width: 56ch;
}

.hero-lead strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Interactive Patcher Window */
.patcher-window {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(6, 8, 13, 0.82);
  border-bottom: 1px solid var(--border);
}

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

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334059;
}

.window-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.window-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ok);
  padding: 0.12rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ok-border);
  background: var(--ok-bg);
}

.window-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 1rem 0;
  background: rgba(10, 14, 22, 0.65);
  border-bottom: 1px solid var(--border);
}

.window-tab {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px 8px 0 0;
  color: var(--ink-soft);
}

.window-tab small {
  font-size: 0.72em;
  opacity: 0.85;
}

.window-tab.is-active {
  background: rgba(20, 27, 41, 0.95);
  color: var(--gold);
  border: 1px solid var(--border);
  border-bottom-color: transparent;
}

.window-body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.window-app-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.mascot-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  object-fit: cover;
  flex-shrink: 0;
}

.window-app-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  line-height: 1.25;
}

.window-app-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.mockup-modules {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(22, 30, 46, 0.88);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mockup-row:hover {
  border-color: var(--gold-bronze);
  background: rgba(29, 39, 59, 0.95);
}

.mockup-row.is-locked {
  cursor: default;
}

.mockup-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.mockup-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.mockup-row.is-locked input[type="checkbox"] {
  cursor: default;
}

.mockup-check strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.25;
}

.pill-inline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.05rem 0.42rem;
  margin-left: 0.25rem;
}

.row-meta {
  display: block;
  font-size: 0.77rem;
  color: var(--ink-soft);
}

.window-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mockup-summary {
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}

.mockup-summary strong {
  color: var(--gold-bright);
}

/* Editorial Stats Strip */
.stats-strip {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding-block: 1.85rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
  padding-inline: 1.25rem;
  border-right: 1px solid rgba(229, 193, 88, 0.22);
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  padding-right: 0;
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Shared Section Chrome */
.section {
  padding-block: 4.5rem;
  position: relative;
}

.section-head {
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.section-sub {
  margin: 0;
  color: var(--ink-muted);
  max-width: 66ch;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--ink);
}

/* Chronicle Canon Showcase */
.chronicle-section {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.chronicle-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.chronicle-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.6;
}

.chronicle-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 52%, rgba(9, 12, 18, 0.36) 0%, rgba(6, 8, 13, 0.93) 68%),
    linear-gradient(180deg, var(--bg-deep) 0%, transparent 20%, transparent 80%, var(--bg) 100%);
}

.chronicle-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.75rem;
  align-items: start;
}

.lead-copy {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

.muted-copy {
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.editorial-points {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.editorial-points li::marker {
  color: var(--gold);
}

.showcase-card {
  background: rgba(14, 20, 32, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.showcase-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem;
  background: rgba(7, 10, 16, 0.85);
  border-bottom: 1px solid var(--border);
}

.showcase-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.showcase-tab:hover {
  color: var(--ink);
  background: var(--bg-elev);
}

.showcase-tab.is-active {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold-bright);
}

.showcase-panel {
  padding: 1.5rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare-col {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(9, 12, 18, 0.72);
  border: 1px solid var(--border);
}

.compare-it {
  border-color: rgba(229, 193, 88, 0.42);
  background: rgba(22, 26, 36, 0.85);
}

.lang-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.lang-tag-gold {
  color: var(--gold-bright);
}

.lore-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink);
}

.lore-en {
  color: var(--ink-muted);
}

.glossary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.g-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 0.34rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(9, 12, 18, 0.75);
  border: 1px solid var(--border);
}

.g-chip strong {
  color: var(--gold-bright);
}

.tooltip-preview {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(7, 10, 16, 0.9);
  border: 1px solid rgba(229, 193, 88, 0.36);
}

.tooltip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.tooltip-head strong {
  color: var(--gold-bright);
  font-size: 1rem;
}

.tooltip-head span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.tooltip-body {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  color: var(--ink);
}

.hl-gold {
  color: var(--gold-bright);
  font-weight: 700;
}

.hl-ok {
  color: var(--ok);
  font-weight: 700;
}

.tooltip-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.gender-switch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.gender-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-deep);
  border: 1px solid var(--border);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.seg-btn.is-active {
  background: var(--gold);
  color: #090c12;
}

.title-table {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(9, 12, 18, 0.72);
  border: 1px solid var(--border);
}

.title-en {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.title-arrow {
  color: var(--gold);
  font-weight: 700;
}

.title-it {
  color: var(--gold-bright);
  text-align: right;
  font-size: 0.95rem;
}

.chat-mock {
  border-radius: var(--radius-md);
  background: rgba(7, 10, 16, 0.92);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chat-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.chat-lines {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.chat-cmd {
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-weight: 700;
}

.chat-sys {
  color: var(--ink-muted);
}

/* Asymmetric Bento Modules */
.bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.bento-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #131b2b 0%, #0d121d 100%);
  border: 1px solid var(--border-gold);
}

.bento-main h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-bright);
  margin: 0.85rem 0 0.75rem;
}

.bento-main p {
  margin: 0;
  color: var(--ink-muted);
}

.bento-meter {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(9, 12, 18, 0.75);
  border: 1px solid var(--border);
}

.meter-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.55rem;
}

.meter-label strong {
  color: var(--ok);
}

.progress-track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.progress-fill.is-ok {
  background: linear-gradient(90deg, #32a866, #6be0a1);
}

.progress-fill.is-gold {
  background: linear-gradient(90deg, #b8912d, #f5d882);
}

.bento-highlights {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bento-highlights strong {
  color: var(--ink);
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bento-item {
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.bento-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bento-item-head h3 {
  margin: 0;
}

.bento-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.freemont-plaque {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(16, 22, 34, 0.92);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.freemont-plaque strong {
  color: var(--gold-bright);
}

.plaque-accent {
  width: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-bronze));
  flex-shrink: 0;
}

/* Interactive Chat Commands Guide */
.commands-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cmd-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.cmd-search-wrap {
  position: relative;
}

.search-ico {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.cmd-input {
  width: 100%;
  padding: 0.82rem 1rem 0.82rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.cmd-input::placeholder {
  color: var(--ink-soft);
}

.cmd-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.18);
}

.cmd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
  color: var(--ink);
  border-color: var(--gold-bronze);
}

.filter-pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #090c12;
  font-weight: 700;
}

.cmd-count {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.cmd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-height: 490px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.cmd-row[hidden] {
  display: none;
}

.cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.88rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.cmd-main {
  min-width: 0;
}

.cmd-head-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.cmd-code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.cmd-cat-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.08rem 0.48rem;
}

.cmd-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.cmd-ex {
  color: var(--ink-soft);
}

.btn-copy {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.72rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-copy:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-copy.is-copied {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}

.cmd-empty {
  margin: 1rem 0 0;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  color: var(--ink-muted);
  text-align: center;
}

/* 4-Step Timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 3rem;
  right: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bronze), var(--gold), var(--gold-bronze));
  opacity: 0.45;
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.step-medallion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 0.95rem;
  box-shadow: 0 0 0 6px var(--bg-surface);
}

.timeline-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.file-token {
  display: inline-block;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  color: var(--gold-bright);
}

.safety-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.safety-box {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}

.safety-box-ok {
  border-left-color: var(--ok);
}

.safety-box p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.16s ease;
}

.faq-item[open] {
  border-color: var(--border-gold);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.4rem 1.2rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.faq-answer p {
  margin: 0;
}

/* Community Banner & Footer */
.community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.85rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #131c2c 0%, #0d131f 100%);
  border: 1px solid var(--border-gold);
}

.community-intro {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 58ch;
}

.mascot-img-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}

.community-intro h2 {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.community-intro p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.community-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding-block: 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .chronicle-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-desktop-cta {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .stat-item {
    border-right: none;
    padding-inline: 0;
    border-bottom: 1px solid rgba(229, 193, 88, 0.16);
    padding-bottom: 0.85rem;
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cmd-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 1rem;
  }

  .hero {
    padding-block: 2.75rem 2.75rem;
  }

  .section {
    padding-block: 3rem;
  }

  .compare-grid,
  .safety-duo,
  .timeline {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(229, 193, 88, 0.16);
    padding-bottom: 0.85rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .title-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .title-arrow {
    display: none;
  }

  .title-it {
    text-align: left;
  }

  .community-intro {
    flex-direction: column;
    align-items: flex-start;
  }
}
