:root {
  /* =========================================================================
     LOREWRIGHT STUDIOS LLC — BRAND DESIGN SYSTEM
     Colors extracted directly from the Dragon & Quill Crest:
     - Sapphire Wing Hue:      #2563eb / #38bdf8
     - Royal Dragon Violet:    #7c3aed / #9333ea
     - Imperial Quill Plum:    #c026d3 / #f43f5e
     - Void Canvas:            #060713
     - Elevated Glass Surface: #0c0e22
     - Card Background:        rgba(15, 18, 42, 0.78)
     ========================================================================= */
  --bg-void: #060713;
  --bg-surface: #0a0c1e;
  --bg-card: rgba(13, 16, 38, 0.72);
  --bg-card-hover: rgba(18, 22, 50, 0.88);
  --bg-stage: #050610;
  --bg-glass: rgba(6, 7, 19, 0.82);

  --border-subtle: rgba(124, 58, 237, 0.16);
  --border-hover: rgba(192, 38, 211, 0.38);
  --border-active: rgba(56, 189, 248, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #818cf8;

  --brand-sapphire: #38bdf8;
  --brand-violet: #a855f7;
  --brand-plum: #f43f5e;

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #f43f5e 100%);
  --gradient-glow: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(56, 189, 248, 0.1) 45%, transparent 70%);

  /* App Specific Colors */
  --toro-color: #f59e0b;
  --toro-glow: rgba(245, 158, 11, 0.14);
  --flow-color: #38bdf8;
  --flow-glow: rgba(56, 189, 248, 0.14);
  --skyline-color: #fb923c;
  --skyline-glow: rgba(251, 146, 60, 0.14);
  --weaver-color: #e879f9;
  --weaver-glow: rgba(232, 121, 249, 0.14);
  --rctimer-color: #22d3ee;
  --rctimer-glow: rgba(34, 211, 238, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-ui: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Canvas & Ambient Mesh */
#constellation-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
}

.ambient-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(244, 63, 94, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.07) 0%, transparent 55%);
}

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

/* ============================================================================
   STICKY HEADER (CLEAN, POLISHED, FULLY RESPONSIVE)
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.35));
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

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

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-llc-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  letter-spacing: 0.08em;
}

.brand-motto {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Desktop Navigation Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.desktop-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.12);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.2), rgba(244, 63, 94, 0.2));
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-launcher:hover {
  border-color: var(--brand-violet);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
}

/* Launcher Dropdown Menu */
.launcher-dropdown-wrap {
  position: relative;
}

.launcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: rgba(10, 13, 30, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.launcher-menu.open {
  display: flex;
  animation: dropFade 0.18s ease-out;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.launcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.18s ease;
}

.launcher-item:hover {
  background: rgba(168, 85, 247, 0.15);
}

.launcher-item-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.86rem;
  display: block;
}

.launcher-item-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Mobile Menu Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile Slide Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 14, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-app-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================================
   HERO SECTION (BESPOKE, CONFIDENT, CLEAN)
   ============================================================================ */
.hero-section {
  padding: 56px 0 44px;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-crest-wrap {
  position: relative;
  margin-bottom: 24px;
  display: inline-block;
}

.hero-crest-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--gradient-glow);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero-crest-img {
  width: min(340px, 78vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(124, 58, 237, 0.35));
  transition: transform 0.3s ease;
}

.hero-crest-img:hover {
  transform: scale(1.02);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero-headline .gradient-span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtext {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 32px;
}

/* Quick Jump Dock: 5 Clean Cards on Desktop / Horizontal Scroll on Mobile */
.quick-dock {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.dock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: left;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.dock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dock-accent, var(--brand-sapphire));
}

.dock-card:hover {
  transform: translateY(-3px);
  border-color: var(--dock-accent, var(--brand-violet));
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.dock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dock-accent, var(--text-primary));
}

.dock-card-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
}

.dock-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================================
   SECTION CONTROLS & FILTER BAR
   ============================================================================ */
.section-wrap {
  padding: 64px 0;
}

.section-head-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-plum);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 620px;
  font-size: 0.98rem;
}

/* Category Filter Pills */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 36px;
}

.filter-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
}

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

.filter-pill-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.25));
  border-color: var(--brand-violet);
  color: var(--text-primary);
}

.filter-search-box {
  background: var(--bg-stage);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  width: 240px;
  outline: none;
  transition: border-color 0.2s ease;
}

.filter-search-box:focus {
  border-color: var(--brand-violet);
}

/* ============================================================================
   CURATED APP SHOWCASE CARDS (BALANCED, IMMERSIVE, CLEAN)
   ============================================================================ */
.showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-card:hover {
  border-color: var(--app-accent, var(--border-hover));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.app-card-top-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--app-accent, var(--brand-sapphire)), transparent);
}

.app-card-content {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

/* Left: Information, Overview & How it Works Stepper */
.app-meta-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.app-num-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--app-accent, var(--text-primary));
  border: 1px solid var(--border-subtle);
}

.app-cat-tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--app-glow);
  color: var(--app-accent);
}

.app-domain-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.app-domain-link:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.app-title-group {
  margin-bottom: 12px;
}

.app-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.app-main-subtitle {
  font-family: var(--font-ui);
  font-size: 0.94rem;
  color: var(--app-accent);
  font-weight: 600;
  margin-top: 2px;
}

.app-overview-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Clean "How It Works" Stepper */
.stepper-panel {
  background: rgba(5, 7, 18, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.stepper-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-card:hover,
.step-card.active {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--app-accent, var(--brand-violet));
}

.step-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.step-num-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--app-accent, var(--brand-violet));
  color: #060713;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-name-text {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.step-body-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding-left: 28px;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-launch-primary {
  background: var(--app-accent, var(--gradient-brand));
  color: #060713;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-launch-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-preview-modal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-preview-modal:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--app-accent, var(--border-hover));
}

/* Right: Interactive Sandbox Playground & Specs */
.app-playground-column {
  background: var(--bg-stage);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.playground-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Interactive Modules */
.interactive-box {
  background: rgba(15, 18, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.interactive-box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--app-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Lantern Faces */
.lantern-face-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.lantern-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 2px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lantern-tab-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fde68a;
}

.lantern-preview-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid #f59e0b;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 0.8rem;
  color: #fef3c7;
  font-style: italic;
  line-height: 1.45;
}

/* Flow Tank */
.flow-tank-meter {
  height: 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin: 10px 0;
}

.flow-tank-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  width: 64%;
  transition: width 0.3s ease;
}

.flow-action-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.flow-btn {
  flex: 1;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.flow-btn:hover {
  background: rgba(56, 189, 248, 0.22);
}

/* Skyline Stats */
.skyline-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.skyline-stat-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(251, 146, 60, 0.25);
  padding: 8px 6px;
  border-radius: 6px;
  text-align: center;
}

/* WorldWeaver Diff */
.diff-view-box {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 6px;
  line-height: 1.5;
}

.diff-del {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  text-decoration: line-through;
  padding: 1px 3px;
}

.diff-add {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 1px 3px;
}

/* RC Lap Timer */
.rc-screen-box {
  background: #060810;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.rc-digits {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  color: #22d3ee;
}

/* 2x2 Specs Grid */
.specs-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.spec-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.spec-node-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.spec-node-val {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
  display: block;
}

/* ============================================================================
   COMPARISON TABLE SECTION
   ============================================================================ */
.table-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.table-responsive-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  box-sizing: border-box;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px;
}

.matrix-table th,
.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.matrix-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-violet);
  background: rgba(10, 13, 30, 0.6);
}

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

.matrix-table-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--brand-sapphire);
  text-decoration: none;
}

.matrix-table-link:hover {
  text-decoration: underline;
}

/* ============================================================================
   FOUNDRY CHARTER & CONTACT SECTION
   ============================================================================ */
.charter-card {
  background: linear-gradient(135deg, rgba(13, 16, 38, 0.9), rgba(10, 13, 30, 0.95));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.charter-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.charter-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.charter-pillar-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.charter-pillar-item h4 {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.charter-pillar-item p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.contact-box {
  background: rgba(6, 8, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.contact-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  background: rgba(15, 18, 42, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--brand-violet);
}

.btn-contact-submit {
  background: var(--gradient-brand);
  border: none;
  color: #060713;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-contact-submit:hover {
  filter: brightness(1.15);
}

/* ============================================================================
   MODAL SANDBOX
   ============================================================================ */
.preview-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 5, 14, 0.88);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.preview-modal-backdrop.open {
  display: flex;
}

.preview-modal-window {
  width: 100%;
  max-width: 1180px;
  height: 86vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.preview-iframe-container {
  flex: 1;
  background: #060713;
}

.preview-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================================
   SITE FOOTER
   ============================================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0 32px;
  background: rgba(5, 6, 16, 0.8);
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--brand-sapphire);
}

/* ============================================================================
   RESPONSIVE LAYOUT & MOBILE OPTIMIZATIONS
   ============================================================================ */
@media (max-width: 1024px) {
  .app-card-content,
  .charter-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 28px;
  }
  .quick-dock {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Prevent any element from exceeding 100vw */
  *, *::before, *::after {
    max-width: 100%;
  }

  .container {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Header Compact Mode */
  .site-header {
    width: 100%;
    overflow: hidden;
  }

  .header-inner {
    height: 60px;
    gap: 8px;
  }

  .desktop-nav {
    display: none;
  }

  .launcher-dropdown-wrap {
    display: none; /* Quick launch links are cleanly located in mobile drawer & quick dock */
  }

  .brand-link {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-logo-img {
    height: 32px;
    flex-shrink: 0;
  }

  .brand-text-block {
    min-width: 0;
  }

  .brand-title {
    font-size: 0.96rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-llc-pill {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  .brand-motto {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1.2rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 24px 0 20px;
    width: 100%;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
  }

  .hero-crest-img {
    width: min(200px, 58vw);
    height: auto;
  }

  .status-badge {
    font-size: 0.64rem;
    padding: 4px 10px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }

  .hero-headline {
    font-size: clamp(1.45rem, 6.2vw, 1.95rem);
    line-height: 1.22;
    margin-bottom: 12px;
    word-break: break-word;
  }

  .hero-subtext {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 20px;
    padding: 0 4px;
  }

  /* Horizontal Snap Dock on Mobile */
  .quick-dock {
    width: 100%;
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 4px 4px 12px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .dock-card {
    flex: 0 0 160px;
    min-width: 160px;
    max-width: 160px;
    scroll-snap-align: start;
    padding: 10px 12px;
  }

  .dock-card-name {
    font-size: 0.85rem;
  }

  .dock-card-sub {
    font-size: 0.68rem;
  }

  /* Filter Toolbar */
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    margin-bottom: 24px;
  }

  .filter-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .filter-pill-btn {
    font-size: 0.74rem;
    padding: 5px 10px;
    flex: 1 1 auto;
    text-align: center;
  }

  .filter-search-box {
    width: 100%;
    box-sizing: border-box;
  }

  /* Application Cards on Mobile */
  .apps-grid {
    gap: 24px;
  }

  .app-card {
    border-radius: var(--radius-md);
    width: 100%;
  }

  .app-card-content {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 18px;
  }

  .app-main-title {
    font-size: 1.4rem;
  }

  .app-main-subtitle {
    font-size: 0.86rem;
  }

  .app-overview-text {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }

  .stepper-panel {
    padding: 12px 10px;
    margin-bottom: 16px;
  }

  .step-item {
    gap: 10px;
  }

  .step-body-text {
    padding-left: 0;
    margin-top: 4px;
    font-size: 0.78rem;
  }

  .app-card-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn-launch-primary,
  .btn-preview-modal {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .app-playground-column {
    width: 100%;
    overflow: hidden;
  }

  /* Simulator Grids on Mobile */
  .lantern-face-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .skyline-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .skyline-stat-val {
    font-size: 0.95rem;
  }

  .skyline-stat-lbl {
    font-size: 0.62rem;
  }

  .specs-2x2-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Comparison Matrix */
  .table-container-card {
    border-radius: var(--radius-md);
  }

  .table-responsive-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .matrix-table {
    min-width: 620px;
    font-size: 0.8rem;
  }

  .matrix-table th,
  .matrix-table td {
    padding: 10px 12px;
  }

  /* Charter & Dispatch */
  .charter-card {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 20px;
  }

  .charter-pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-input,
  .contact-select,
  .contact-textarea {
    font-size: 0.86rem;
    padding: 9px 12px;
  }

  /* Footer */
  .site-footer {
    padding: 28px 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  /* Preview Modal on Mobile */
  .preview-modal-backdrop {
    padding: 8px;
  }

  .preview-modal-window {
    width: 100%;
    height: 94vh;
    border-radius: var(--radius-md);
  }
}
