/* ==========================================================================
   LOOMDB BESPOKE INDUSTRIAL & EDITORIAL STYLESHEET
   Aesthetic: High-Craft Systems Engineering, Titanium Metal & Warm Amber
   Strict Rules: Zero Emojis. Zero AI-Green Matrix Tropes. Unique Typography.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,500;1,9..144,700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-abyss: #07080a;
  --bg-carbon: #0c0e13;
  --bg-surface: #12151c;
  --bg-elevated: #181d26;
  --border-subtle: #1f2532;
  --border-active: #2f384a;
  --border-highlight: #46536d;

  /* Refined Industrial Palette: Warm Precision Amber, Titanium Slate & Crisp Sky */
  --accent-amber: #e8592c;
  --accent-amber-glow: rgba(232, 89, 44, 0.22);
  --accent-flame: #f97316;
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-slate: #94a3b8;

  --text-pure: #ffffff;
  --text-primary: #eaecf1;
  --text-secondary: #9da6b7;
  --text-muted: #646d80;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #2a3346 #090b0f;
}

/* Global Industrial Dark Theme Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #090b0f;
}

::-webkit-scrollbar-thumb {
  background: #222938;
  border-radius: 4px;
  border: 2px solid #090b0f;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

::-webkit-scrollbar-corner {
  background: #090b0f;
}

html {
  background-color: var(--bg-abyss);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Ensure anchor scrolling doesn't clip under the sticky navbar */
section[id], header[id], div[id] {
  scroll-margin-top: 110px;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-abyss);
}

/* Full-width container utilizing desktop space properly */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* Reading Progress Indicator */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-flame));
  z-index: 1000;
  transition: width 0.08s linear;
}

/* Engineering Blueprint Grid Background */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: 64px 64px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  z-index: 0;
}

/* ==========================================================================
   NAVIGATION BAR (ORDER MATCHES ON-PAGE FLOW)
   ========================================================================== */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(7, 8, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  transition: background 0.2s;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-unit {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-left: 1px solid var(--border-active);
  padding-left: 8px;
}


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

.nav-item-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
}

.nav-item-link:hover {
  color: var(--text-pure);
}

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

.btn-nav-primary {
  background: var(--text-pure);
  color: #000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease-snappy);
}

.btn-nav-primary:hover {
  background: var(--accent-amber);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   SCROLL REVEAL & MOTION SYSTEM
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(3px);
  transition: opacity 0.7s var(--ease-snappy), transform 0.7s var(--ease-snappy), filter 0.7s var(--ease-snappy);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* Spotlight Interactive Mouse Glow for Cards */
.spotlight-card {
  position: relative;
  background-color: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(255, 255, 255, 0.06), transparent 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

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

/* ==========================================================================
   1. HERO SECTION (WIDE 2-COLUMN WITH METRICS & INTERACTIVE GRAPHIC)
   ========================================================================== */
.hero-section {
  min-height: calc(100vh - 62px);
  min-height: calc(100dvh - 62px);
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vh, 48px) 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.hero-section > .container {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 1100px) {
  .hero-section {
    min-height: auto;
    padding: 48px 0 64px 0;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-amber);
  background: rgba(232, 89, 44, 0.08);
  border: 1px solid rgba(232, 89, 44, 0.22);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--text-pure);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

h1.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-amber);
}

p.hero-desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

p.hero-desc code {
  font-family: var(--font-mono);
  color: #cbd5e1;
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9em;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-hero-primary {
  background: var(--accent-amber);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px var(--accent-amber-glow);
  transition: all 0.2s var(--ease-snappy);
}

.btn-hero-primary:hover {
  background: #f06437;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 89, 44, 0.4);
}

.btn-hero-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-active);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}

.btn-hero-secondary:hover {
  color: var(--text-pure);
  border-color: var(--border-highlight);
  background: var(--bg-elevated);
}

/* Metric Strip (Promotional Proof Points) */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
  .metric-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   HERO VISUAL: MULTI-MODAL PARADIGM CONVERGENCE GRAPHIC
   (Crisp Titanium Metal Badges & Dynamic Weaving SVG Pathways)
   ========================================================================== */
.hero-visual-card {
  background: var(--bg-carbon);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.visual-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.visual-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.visual-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.paradigm-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.flow-row:hover, .flow-row.active-row {
  border-color: var(--accent-amber);
  background: rgba(232, 89, 44, 0.06);
  transform: translateX(4px);
}

.flow-tag {
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 0.80rem;
  min-width: 105px;
}

.flow-engine {
  color: var(--text-secondary);
  font-size: 0.75rem;
  flex: 1;
  padding: 0 10px;
}

/* Crisp Titanium Spec Badges (Replaced Green Writings) */
.flow-badge {
  color: #e2e8f0;
  font-size: 0.70rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.flow-row:hover .flow-badge, .flow-row.active-row .flow-badge {
  color: #fff;
  border-color: var(--accent-amber);
  background: rgba(232, 89, 44, 0.15);
}

/* Dynamic Weaving SVG Connector Stream */
.weaving-connector {
  position: relative;
  height: 34px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weaving-svg {
  width: 100%;
  height: 100%;
}

.flow-stream-line {
  stroke: rgba(232, 89, 44, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: streamFlow 20s linear infinite;
}

.flow-stream-line.active-stream {
  stroke: var(--accent-amber);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px var(--accent-amber));
}

@keyframes streamFlow {
  to { stroke-dashoffset: -200; }
}

.loom-core-target {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 25px rgba(232, 89, 44, 0.15);
  position: relative;
  z-index: 2;
}

.loom-core-target strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}

.loom-core-spec {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-amber);
  font-weight: 700;
  background: rgba(232, 89, 44, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(232, 89, 44, 0.3);
}

/* Responsive screen height adjustments for short viewports/laptops */
@media (max-height: 850px) {
  .hero-section {
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
    padding: 20px 0;
  }
  h1.hero-title {
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    margin-bottom: 12px;
  }
  p.hero-desc {
    font-size: 0.96rem;
    line-height: 1.52;
    margin-bottom: 18px;
  }
  .hero-cta-group {
    margin-bottom: 20px;
  }
  .metric-strip {
    padding-top: 14px;
  }
  .metric-value {
    font-size: 1.30rem;
  }
  .hero-visual-card {
    padding: 16px 18px;
  }
  .visual-titlebar {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .flow-row {
    padding: 7px 12px;
    font-size: 0.74rem;
  }
  .weaving-connector {
    height: 26px;
    margin: 2px 0;
  }
  .loom-core-target {
    padding: 10px 14px;
  }
}


/* ==========================================================================
   2. TERMINAL SHELL (WITH SANDBOX LIMIT GATE)
   ========================================================================== */
.playground-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

h2.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

p.section-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 820px;
  margin-bottom: 36px;
}

.terminal-wrapper {
  background: #090b0f;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.terminal-titlebar {
  background: #11141b;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3140;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sandbox-quota-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-amber);
  background: rgba(232, 89, 44, 0.1);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid rgba(232, 89, 44, 0.25);
  font-weight: 600;
}

.terminal-presets {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: #0d1017;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #242c3d #0d1017;
}

.terminal-presets::-webkit-scrollbar {
  height: 5px;
}

.terminal-presets::-webkit-scrollbar-track {
  background: #0d1017;
}

.terminal-presets::-webkit-scrollbar-thumb {
  background: #242c3d;
  border-radius: 3px;
}

.terminal-presets::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

.preset-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.preset-chip:hover {
  color: var(--text-pure);
  border-color: var(--border-highlight);
}

.preset-chip.active {
  background: var(--accent-amber-glow);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  font-weight: 600;
}

.terminal-body {
  padding: 24px;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: #2b3548 #090b0f;
}

.terminal-body::-webkit-scrollbar {
  width: 7px;
}

.terminal-body::-webkit-scrollbar-track {
  background: #090b0f;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-body::-webkit-scrollbar-thumb {
  background: #222a3a;
  border-radius: 4px;
  border: 1px solid rgba(232, 89, 44, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
  border-color: var(--accent-flame);
  box-shadow: 0 0 8px rgba(232, 89, 44, 0.4);
}

.term-log {
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.term-prompt-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-prompt {
  color: var(--accent-amber);
  font-weight: 700;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #fff;
}

.terminal-gate-card {
  margin-top: 16px;
  background: #151821;
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.terminal-gate-card.active {
  display: block;
}

.gate-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-amber);
  font-weight: 700;
  margin-bottom: 8px;
}

.gate-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

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

.btn-gate-download {
  background: var(--accent-amber);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.btn-gate-reset {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   3. ANATOMY SECTION & INTERACTIVE FILE LAYOUT MAP
   ========================================================================== */
.features-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Interactive Container Layout Map */
.container-layout-map {
  background: var(--bg-carbon);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0 40px 0;
}

.layout-map-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.layout-map-blocks {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 1.2fr 1.4fr 1.1fr 1fr;
  gap: 4px;
  height: 52px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .layout-map-blocks { grid-template-columns: 1fr; height: auto; gap: 8px; }
}

.map-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 6px;
  text-align: center;
}

.map-block:hover, .map-block.active-block {
  border-color: var(--accent-amber);
  background: rgba(232, 89, 44, 0.15);
  color: #fff;
}

.map-block strong {
  color: #e2e8f0;
  font-size: 0.72rem;
}

.map-block span {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.layout-map-info {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-left: 2px solid var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .feature-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .feature-cards-grid { grid-template-columns: 1fr; }
}

.craft-card {
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s, transform 0.25s var(--ease-snappy);
}

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

.card-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-amber);
  margin-bottom: 16px;
  display: block;
  font-weight: 600;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-code {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #e2e8f0;
  overflow-x: auto;
}

/* ==========================================================================
   4. WHY LOOMDB ACROSS FIELDS (DIVERSE ENGINEERING USE CASES)
   ========================================================================== */
.fields-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.field-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s var(--ease-snappy);
}

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

.field-category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.field-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.field-comparison {
  background: var(--bg-carbon);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.field-comparison strong {
  color: #ff6838;
}

.field-advantage {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   5. BENCHMARK SECTION & INTERACTIVE COMPARISON VISUALIZER
   ========================================================================== */
.benchmark-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.benchmark-interactive-box {
  background: var(--bg-carbon);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.bench-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  overflow-x: auto;
}

.bench-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.bench-tab-btn:hover {
  color: #fff;
  border-color: var(--border-highlight);
}

.bench-tab-btn.active {
  background: var(--accent-amber-glow);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  font-weight: 600;
}

/* Animated Benchmark Bars */
.bench-bars-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bench-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

@media (max-width: 600px) {
  .bench-bar-row { grid-template-columns: 90px 1fr 80px; font-size: 0.74rem; }
}

.bench-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.bench-name.loom-name {
  color: var(--accent-amber);
  font-weight: 700;
}

.bench-track {
  height: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.bench-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  background: #334155;
  width: 0%;
  transition: width 0.85s var(--ease-snappy);
}

.bench-fill.loom-fill {
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-flame));
  box-shadow: 0 0 12px var(--accent-amber-glow);
}

.bench-score {
  color: #cbd5e1;
  text-align: right;
  font-weight: 600;
}

.bench-score.loom-score {
  color: var(--accent-amber);
}

/* Table Scroller */
.table-scroller {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-carbon);
  margin-top: 36px;
}

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

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

table.spec-table th {
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

table.spec-table td.brand-col {
  color: var(--accent-amber);
  font-weight: 700;
  font-family: var(--font-mono);
}

table.spec-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

/* ==========================================================================
   6. DEVELOPER QUICKSTART & SDK CODE EXAMPLES
   ========================================================================== */
.quickstart-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.sdk-tab-bar {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-top: 36px;
  overflow-x: auto;
}

.sdk-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.sdk-tab:hover {
  color: #fff;
  border-color: var(--border-highlight);
}

.sdk-tab.active {
  background: var(--accent-amber-glow);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  font-weight: 600;
}

.sdk-code-box {
  background: #090b0f;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  margin-top: 20px;
  overflow: hidden;
}

.sdk-code-header {
  background: #11141b;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sdk-metric-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sdk-code-content {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #e6edf3;
  overflow-x: auto;
  white-space: pre;
}

/* ==========================================================================
   7. DOWNLOAD DECK (BOTTOM PLACEMENT & HIGH CONTRAST)
   ========================================================================== */
.download-section {
  padding: 100px 0 140px 0;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-abyss) 0%, #0a0d13 100%);
}

.download-deck-wide {
  background: var(--bg-carbon);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.deck-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.detected-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.detected-platform-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-top: 4px;
}

.download-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-download {
  background: var(--accent-amber);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px var(--accent-amber-glow);
  transition: transform 0.15s var(--ease-snappy), background 0.15s, box-shadow 0.15s;
}

.btn-primary-download:hover {
  background: #f06437;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 89, 44, 0.35);
}

.btn-secondary-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.btn-secondary-link:hover {
  color: var(--text-pure);
}

.quick-install-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.command-snippet {
  color: var(--accent-cyan);
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy-cmd {
  background: var(--bg-elevated);
  border: 1px solid var(--border-active);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-cmd:hover {
  color: var(--text-pure);
  border-color: var(--border-highlight);
}

.os-grid-wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .os-grid-wide { grid-template-columns: 1fr; }
}

.os-card-wide {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  cursor: pointer;
  transition: all 0.2s var(--ease-snappy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.os-card-wide:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.os-card-wide.active-match {
  border-color: var(--accent-amber);
  background: linear-gradient(180deg, rgba(232, 89, 44, 0.08) 0%, var(--bg-surface) 100%);
}

.os-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-pure);
}

.os-card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.os-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 12px 0 20px 0;
  line-height: 1.5;
}

.os-card-action {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 48px 0;
  background: var(--bg-carbon);
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--text-pure);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-amber);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s var(--ease-snappy);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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


/* ==========================================================================
   VISUAL ARCHITECTURE DIAGRAM FRAME & ENHANCED CARD ICONS
   ========================================================================== */
.architecture-diagram-frame {
  margin: 36px 0 54px 0;
  background: #090b10;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(249, 115, 22, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.architecture-diagram-frame:hover {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 30px rgba(234, 88, 12, 0.15);
}

.diagram-titlebar {
  background: #11141c;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.diagram-dots {
  display: flex;
  gap: 8px;
}

.diagram-title {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.diagram-badge {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--accent-amber);
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.diagram-canvas-wrap {
  background: #080a0f;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  border: 1px solid #1a202c;
  transition: transform 0.3s ease;
}

.diagram-caption {
  padding: 12px 24px;
  background: #0d1017;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}

.diagram-zoom-btn {
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s;
}

.diagram-zoom-btn:hover {
  background: rgba(234, 88, 12, 0.18);
  border-color: var(--accent-amber);
}

/* Card Icon Elements */
.card-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s var(--ease-snappy), box-shadow 0.25s;
}

.craft-card:hover .card-icon-wrap {
  transform: translateY(-2px) scale(1.05);
}

.icon-amber {
  color: #f97316;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.35);
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.15);
}

.icon-cyan {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.icon-green {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

.icon-white {
  color: #f1f5f9;
  background: rgba(241, 245, 249, 0.08);
  border: 1px solid rgba(241, 245, 249, 0.25);
  box-shadow: 0 0 15px rgba(241, 245, 249, 0.1);
}

/* Field Card Icon Elements */
.field-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.field-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.25);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.field-card:hover .field-icon {
  transform: scale(1.08);
  border-color: var(--accent-amber);
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.2);
}
