@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   DESIGN SYSTEM TOKENS & INDUSTRIAL V3 BRANDING
   ============================================================ */
:root {
  --i-ink:         #1E1D1A;
  --i-ink-soft:    #4A4843;
  --i-ink-mute:    #8A857B;
  --i-bg:          #ECECE8;
  --i-surface:     #FFFFFF;
  --i-grid:        #E5E4DF;
  --i-chrome:      #F5F4EF;
  --i-row-head:    #F0EFEA;
  --i-row-alt:     #FAFAF7;
  --i-delta-row:   #FFF3EE;
  --i-accent:      #FF5B14;
  --i-accent-soft: #FFE8DC;
  
  /* Semantic match hues */
  --i-green:       #137A3F;
  --i-green-soft:  #DCEDE2;
  --i-blue:        #2C5FD9;
  --i-blue-soft:   #DDE5F7;
  --i-amber:       #B47800;
  --i-amber-soft:  #F5EAD0;
  --i-red:         #C1321F;
  --i-red-soft:    #F5D9D2;
  --i-violet:      #6B3FA0;
  --i-violet-soft: #E5D9EE;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius (Industrial v3 mandate: sharp corners / 0 radius) */
  --r-sharp: 0px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(30,29,26,0.05);
  --sh-md: 0 4px 12px rgba(30,29,26,0.08);
  --sh-lg: 0 12px 24px rgba(30,29,26,0.12);
  
  /* Layout */
  --topbar-h: 44px;
}

/* ============================================================
   BASE RESET
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: var(--r-sharp) !important; /* Strict Industrial v3 mandate */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--i-bg);
  color: var(--i-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--topbar-h);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--i-ink);
  letter-spacing: -0.02em;
}

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

/* ============================================================
   TOP NAVIGATION BAR (Industrial Chrome Style)
   ============================================================ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--i-ink);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 2px solid var(--i-accent);
  z-index: 1000;
  box-shadow: var(--sh-md);
}

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

.brand-badge {
  background: var(--i-accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-version {
  color: var(--i-accent);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  border: 1px solid var(--i-accent);
  padding: 0px 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.nav-link {
  color: var(--i-ink-mute);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  border-bottom-color: var(--i-accent);
  background: rgba(255, 255, 255, 0.03);
}

.nav-cta {
  background: var(--i-accent);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background: #E04E0F;
}

/* ============================================================
   HERO HEADER SECTION — IMMERSIVE DARK THEME
   ============================================================ */
.hero-section {
  background: #0D0D0F;
  position: relative;
  padding: 100px 24px 0 24px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Animated grid canvas */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255, 91, 20, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(44, 95, 217, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(19, 122, 63, 0.05) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Scanline effect */
.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  z-index: 2;
  pointer-events: none;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50% !important;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 91, 20, 0.12);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(44, 95, 217, 0.1);
  bottom: -50px;
  right: -50px;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(19, 122, 63, 0.08);
  top: 50%;
  left: 50%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Hero inner layout */
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Staggered entrance animation */
@keyframes heroSlideUp {
  0% { opacity: 0; transform: translateY(30px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-animate {
  opacity: 0;
  animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* Hero content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--i-accent);
}

.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--i-accent);
  flex-shrink: 0;
}

.eyebrow-badge {
  background: rgba(255, 91, 20, 0.15);
  color: var(--i-accent);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border: 1px solid rgba(255, 91, 20, 0.3);
  letter-spacing: 0.1em;
}

/* Title */
.hero-title {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  font-weight: 800;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--i-accent) 0%, #FF8F5C 50%, var(--i-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Description */
.hero-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  line-height: 1.7;
}

.hero-description strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Hero buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  background: var(--i-accent);
  color: #FFFFFF;
  border: 1px solid var(--i-accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: #E04E0F;
  border-color: #E04E0F;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 91, 20, 0.35);
}

.btn-hero-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-hero-primary:hover .btn-hero-glow {
  left: 100%;
}

.btn-hero-outline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-outline:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Tech badges */
.hero-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.badge-dot-green { background: var(--i-green); box-shadow: 0 0 6px var(--i-green); }
.badge-dot-blue { background: var(--i-blue); box-shadow: 0 0 6px var(--i-blue); }
.badge-dot-amber { background: var(--i-amber); box-shadow: 0 0 6px var(--i-amber); }

/* ============================================================
   HERO DASHBOARD WINDOW (Glassmorphism)
   ============================================================ */
.hero-dashboard {
  position: relative;
}

.hero-dash-window {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-dash-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.hero-dash-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50% !important;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.hero-dash-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.hero-dash-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #28C840;
  letter-spacing: 0.1em;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* KPI Grid inside dashboard */
.hero-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.hero-kpi-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-kpi-icon {
  font-size: 16px;
}

.hero-kpi-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-kpi-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-kpi-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}

.hero-kpi-amber { color: var(--i-amber); }
.hero-kpi-green { color: var(--i-green); }

.hero-kpi-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 4px;
}

.hero-kpi-fill {
  height: 100%;
  width: 0;
  background: var(--fill-color, var(--i-accent));
  animation: kpiFillBar 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.2s;
}

@keyframes kpiFillBar {
  0% { width: 0; }
  100% { width: var(--fill, 100%); }
}

/* Mini Terminal */
.hero-mini-terminal {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  max-height: 140px;
  overflow: hidden;
}

.terminal-line {
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: terminalType 0.4s ease forwards;
  animation-delay: var(--line-delay, 0s);
}

@keyframes terminalType {
  0% { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

.terminal-prompt {
  color: var(--i-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.terminal-text {
  color: rgba(255, 255, 255, 0.5);
}

.terminal-green { color: var(--i-green); }
.terminal-blue { color: var(--i-blue); }
.terminal-amber { color: var(--i-amber); }
.terminal-success { color: #28C840; font-weight: 700; }

/* ============================================================
   HERO TICKER BAR
   ============================================================ */
.hero-ticker {
  position: relative;
  z-index: 3;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
}

.hero-ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.ticker-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticker-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.ticker-val-live {
  color: #28C840;
  animation: statusPulse 2s ease-in-out infinite;
}

.ticker-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   HERO RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 16px 0 16px;
    min-height: auto;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-kpi-grid {
    grid-template-columns: 1fr;
  }

  .hero-ticker-inner {
    gap: 12px;
  }

  .ticker-divider {
    display: none;
  }
}

/* ============================================================
   BUTTONS (existing page sections)
   ============================================================ */
/* Buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid var(--i-grid);
  background: var(--i-chrome);
  color: var(--i-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--i-accent);
  color: #FFFFFF;
  border-color: var(--i-accent);
}

.btn-primary:hover {
  background: #E04E0F;
  border-color: #E04E0F;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--i-ink);
  color: var(--i-ink);
}

.btn-outline:hover {
  background: var(--i-ink);
  color: #FFFFFF;
}

/* ============================================================
   SUITE CONTROL CENTER / APP LAUNCHER PANELS
   ============================================================ */
.suite-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid var(--i-ink);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-dot {
  width: 8px;
  height: 8px;
  background: var(--i-accent);
  display: inline-block;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--i-ink-mute);
  text-transform: uppercase;
}

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

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

/* Module Cards */
.module-card {
  background: var(--i-surface);
  border: 1px solid var(--i-grid);
  position: relative;
  display: flex;
  flex-direction: column;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--i-grid);
}

.module-card.active-module::before {
  background: var(--i-accent);
}

.module-card.coming-soon::before {
  background: var(--i-blue);
}

.module-card.under-dev::before {
  background: var(--i-amber);
}

.module-header {
  background: var(--i-chrome);
  padding: 16px 20px;
  border-bottom: 1px solid var(--i-grid);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--i-ink);
}

.module-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid;
}

.status-live {
  background: var(--i-green-soft);
  color: var(--i-green);
  border-color: var(--i-green);
}

.status-soon {
  background: var(--i-blue-soft);
  color: var(--i-blue);
  border-color: var(--i-blue);
}

.status-dev {
  background: var(--i-amber-soft);
  color: var(--i-amber);
  border-color: var(--i-amber);
}

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

.module-desc {
  font-size: 12px;
  color: var(--i-ink-soft);
  line-height: 1.6;
}

.module-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  border-top: 1px dashed var(--i-grid);
  padding-top: 16px;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.feat-bullet {
  font-family: var(--font-mono);
  color: var(--i-accent);
  font-weight: bold;
}

.feat-text {
  color: var(--i-ink-soft);
}

.module-footer {
  padding: 16px 20px;
  background: var(--i-chrome);
  border-top: 1px solid var(--i-grid);
}

.module-btn {
  width: 100%;
}

/* ============================================================
   LIVE INTERACTIVE SIMULATOR (RECONCILIATION SANDBOX)
   ============================================================ */
.simulator-panel {
  background: var(--i-surface);
  border: 1px solid var(--i-grid);
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.sim-header {
  background: var(--i-ink);
  color: #FFFFFF;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sim-controls {
  display: flex;
  gap: 12px;
}

.sim-btn {
  background: var(--i-accent);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-btn:hover {
  background: #E04E0F;
}

.sim-btn-reset {
  background: transparent;
  border: 1px solid var(--i-grid);
  color: #FFFFFF;
}

.sim-btn-reset:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sim-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--i-grid);
  min-height: 240px;
}

@media (max-width: 768px) {
  .sim-workspace {
    grid-template-columns: 1fr;
  }
}

.sim-ledger {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-ledger-books {
  border-right: 1px solid var(--i-grid);
}

.ledger-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--i-ink-mute);
  text-transform: uppercase;
  border-bottom: 1px solid var(--i-grid);
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.ledger-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Simulation rows */
.sim-row {
  border: 1px solid var(--i-grid);
  background: var(--i-row-alt);
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  font-family: var(--font-mono);
  font-size: 11px;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
}

.sim-row.active {
  box-shadow: 0 0 0 2px var(--i-accent);
}

.sim-row[data-match="exact"] {
  background: var(--i-green-soft) !important;
  border-color: var(--i-green) !important;
  color: var(--i-green) !important;
}

.sim-row[data-match="cleaned"] {
  background: var(--i-blue-soft) !important;
  border-color: var(--i-blue) !important;
  color: var(--i-blue) !important;
}

.sim-row[data-match="fuzzy"] {
  background: var(--i-amber-soft) !important;
  border-color: var(--i-amber) !important;
  color: var(--i-amber) !important;
}

.sim-row[data-match="unmatched"] {
  background: var(--i-red-soft) !important;
  border-color: var(--i-red) !important;
  color: var(--i-red) !important;
}

.sim-row-tag {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 4px;
  display: none;
}

.sim-row[data-match] .sim-row-tag {
  display: block;
}

.sim-row[data-match="exact"] .sim-row-tag {
  background: var(--i-green);
  color: #FFFFFF;
}

.sim-row[data-match="cleaned"] .sim-row-tag {
  background: var(--i-blue);
  color: #FFFFFF;
}

.sim-row[data-match="fuzzy"] .sim-row-tag {
  background: var(--i-amber);
  color: #FFFFFF;
}

.sim-row-val {
  text-align: right;
  font-weight: bold;
}

.sim-log-panel {
  background: var(--i-chrome);
  padding: 16px 20px;
  border-top: 1px solid var(--i-grid);
  font-family: var(--font-mono);
  font-size: 11px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-log-title {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--i-ink-mute);
  margin-bottom: 4px;
}

.sim-log-msg {
  color: var(--i-ink);
}

.sim-log-msg.step-1 { color: var(--i-green); }
.sim-log-msg.step-2 { color: var(--i-blue); }
.sim-log-msg.step-3 { color: var(--i-amber); }

/* ============================================================
   FEATURES SHOWCASE (3-PASS ENGINE EXPANDED)
   ============================================================ */
.features-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

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

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.engine-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pass-card {
  background: var(--i-surface);
  border: 1px solid var(--i-grid);
  padding: 20px;
  display: flex;
  gap: 20px;
  position: relative;
}

.pass-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--i-ink-mute);
  width: 40px;
  height: 40px;
  border: 1px solid var(--i-grid);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--i-chrome);
  flex-shrink: 0;
}

.pass-card.active-pass {
  border-left: 4px solid var(--i-accent);
}

.pass-card.active-pass .pass-num {
  border-color: var(--i-accent);
  color: var(--i-accent);
}

.pass-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.pass-desc {
  font-size: 12px;
  color: var(--i-ink-soft);
  line-height: 1.6;
}

.pass-example {
  background: var(--i-chrome);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--i-ink-mute);
  margin-top: 6px;
  border-left: 2px solid var(--i-ink-soft);
}



/* ============================================================
   GSTR-1 & GSTR-3B WORKFLOW SHOWCASE
   ============================================================ */
.future-modules {
  background: var(--i-surface);
  border-top: 1px solid var(--i-grid);
  border-bottom: 1px solid var(--i-grid);
  padding: 60px 24px;
}

.future-container {
  max-width: 1200px;
  margin: 0 auto;
}

.workflow-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.workflow-panel {
  border: 1px solid var(--i-grid);
  background: var(--i-chrome);
  display: flex;
  flex-direction: column;
}

.workflow-header {
  background: var(--i-ink);
  color: #FFFFFF;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
}

.workflow-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workflow-step {
  display: flex;
  gap: 16px;
}

.step-circle {
  width: 24px;
  height: 24px;
  border: 1px solid var(--i-ink);
  background: var(--i-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.step-desc {
  font-size: 11px;
  color: var(--i-ink-soft);
  line-height: 1.5;
}

/* ============================================================
   TECHNICAL SPECIFICATIONS PANEL
   ============================================================ */
.specs-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

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

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

@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-tile {
  background: var(--i-surface);
  border: 1px solid var(--i-grid);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-icon {
  font-size: 20px;
  color: var(--i-accent);
}

.spec-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.spec-desc {
  font-size: 11px;
  color: var(--i-ink-soft);
  line-height: 1.5;
}

/* ============================================================
   FOOTER (Terminal Status style)
   ============================================================ */
.footer {
  background: var(--i-ink);
  color: var(--i-ink-mute);
  padding: 24px;
  border-top: 2px solid var(--i-accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--i-ink-mute);
  text-decoration: none;
}

.footer-link:hover {
  color: #FFFFFF;
}

/* ============================================================
   SCROLL-REVEAL ANIMATION SYSTEM
   ============================================================ */

/* Base hidden state — all scroll-revealed elements start invisible */
.sr {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(3px);
  will-change: opacity, transform, filter;
}

/* Directional variants */
.sr-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(3px);
  will-change: opacity, transform, filter;
}

.sr-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(3px);
  will-change: opacity, transform, filter;
}

.sr-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(3px);
  will-change: opacity, transform, filter;
}

/* Revealed state — applied by IntersectionObserver */
.sr.revealed,
.sr-left.revealed,
.sr-right.revealed,
.sr-scale.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0);
}

/* Stagger delays for child items (cards, tiles, steps) */
.sr-stagger > .sr:nth-child(1),
.sr-stagger > .sr-left:nth-child(1),
.sr-stagger > .sr-right:nth-child(1),
.sr-stagger > .sr-scale:nth-child(1) { transition-delay: 0.05s; }

.sr-stagger > .sr:nth-child(2),
.sr-stagger > .sr-left:nth-child(2),
.sr-stagger > .sr-right:nth-child(2),
.sr-stagger > .sr-scale:nth-child(2) { transition-delay: 0.15s; }

.sr-stagger > .sr:nth-child(3),
.sr-stagger > .sr-left:nth-child(3),
.sr-stagger > .sr-right:nth-child(3),
.sr-stagger > .sr-scale:nth-child(3) { transition-delay: 0.25s; }

.sr-stagger > .sr:nth-child(4),
.sr-stagger > .sr-left:nth-child(4),
.sr-stagger > .sr-right:nth-child(4),
.sr-stagger > .sr-scale:nth-child(4) { transition-delay: 0.35s; }

.sr-stagger > .sr:nth-child(5),
.sr-stagger > .sr-left:nth-child(5) { transition-delay: 0.45s; }

.sr-stagger > .sr:nth-child(6),
.sr-stagger > .sr-left:nth-child(6) { transition-delay: 0.55s; }

/* ============================================================
   MODULE CARD HOVER EFFECTS
   ============================================================ */
.module-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(30, 29, 26, 0.12);
}

.module-card::before {
  transition: height 0.3s ease, opacity 0.3s ease;
}

.module-card:hover::before {
  height: 5px;
}

/* Disabled cards hover muted */
.module-card.coming-soon,
.module-card.under-dev {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.module-card.coming-soon:hover,
.module-card.under-dev:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30, 29, 26, 0.08);
}

/* ============================================================
   SPEC TILE HOVER EFFECTS
   ============================================================ */
.spec-tile {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.spec-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 29, 26, 0.1);
  border-color: var(--i-accent);
}

.spec-tile:hover .spec-icon {
  transform: scale(1.15);
}

.spec-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   PASS CARD HOVER EFFECTS
   ============================================================ */
.pass-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-left-width 0.2s ease;
}

.pass-card:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(30, 29, 26, 0.08);
}

/* ============================================================
   WORKFLOW STEP HOVER
   ============================================================ */
.workflow-step {
  transition: transform 0.3s ease, background 0.3s ease;
  padding: 8px;
  margin: -8px;
}

.workflow-step:hover {
  transform: translateX(6px);
  background: rgba(255, 91, 20, 0.03);
}

.workflow-step:hover .step-circle {
  background: var(--i-accent);
  color: #FFFFFF;
  border-color: var(--i-accent);
  transition: all 0.3s ease;
}

.workflow-panel {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 29, 26, 0.1);
}

/* ============================================================
   MICRO-ANIMATIONS
   ============================================================ */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0px rgba(255, 91, 20, 0.4); }
  100% { box-shadow: 0 0 0 6px rgba(255, 91, 20, 0); }
}

.pulse-button {
  animation: pulseGlow 2s infinite;
}

/* ============================================================
   REDUCED MOTION — ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sr, .sr-left, .sr-right, .sr-scale {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .hero-animate {
    animation: none;
    opacity: 1;
  }

  .hero-orb { animation: none; }
  .hero-title-accent { animation: none; }
  .hero-dash-status { animation: none; }
  .terminal-line { animation: none; opacity: 1; }
  .hero-kpi-fill { animation: none; width: var(--fill, 100%); }
  .pulse-button { animation: none; }
}

/* ============================================================
   MOBILE HAMBURGER MENU
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  transition: all 0.3s ease;
  display: block;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

  .nav-links {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: var(--i-ink);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 2px solid var(--i-accent);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    height: auto;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-cta {
    margin-top: 8px;
    justify-content: center;
  }
}

/* ============================================================
   NAVBAR SCROLL EFFECT
   ============================================================ */
.nav-bar {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-bar.scrolled {
  background: rgba(30, 29, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   HOW IT WORKS PIPELINE
   ============================================================ */
.hiw-section {
  background: var(--i-surface);
  border-top: 1px solid var(--i-grid);
  border-bottom: 1px solid var(--i-grid);
  padding: 64px 24px;
}

.hiw-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 160px;
  padding: 16px 12px;
  position: relative;
  transition: transform 0.3s ease;
}

.hiw-step:hover {
  transform: translateY(-6px);
}

.hiw-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--i-accent);
  letter-spacing: 0.1em;
}

.hiw-step-icon {
  width: 56px;
  height: 56px;
  background: var(--i-chrome);
  border: 2px solid var(--i-grid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--i-accent);
  transition: all 0.35s ease;
}

.hiw-step:hover .hiw-step-icon {
  background: var(--i-accent);
  color: #FFFFFF;
  border-color: var(--i-accent);
  box-shadow: 0 8px 24px rgba(255, 91, 20, 0.25);
}

.hiw-step-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--i-ink);
}

.hiw-step-desc {
  font-size: 11px;
  color: var(--i-ink-mute);
  line-height: 1.5;
}

.hiw-connector {
  display: flex;
  align-items: center;
  padding-top: 50px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .hiw-pipeline {
    flex-direction: column;
    align-items: center;
  }

  .hiw-connector {
    transform: rotate(90deg);
    padding-top: 0;
    margin: -4px 0;
  }
}

/* ============================================================
   SIMULATOR DARK BAND
   ============================================================ */
.simulator-dark-band {
  background: var(--i-ink);
  max-width: 100%;
  padding: 48px 24px;
  margin: 0;
}

.simulator-dark-band .section-head {
  max-width: 1200px;
  margin: 0 auto 24px auto;
  border-bottom-color: rgba(255,255,255,0.15);
}

.simulator-dark-band .section-title {
  color: #FFFFFF;
}

.simulator-dark-band .section-meta {
  color: var(--i-ink-mute);
}

.simulator-dark-band > p {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  color: rgba(255,255,255,0.5) !important;
}

.simulator-dark-band .simulator-panel {
  max-width: 1200px;
  margin: 0 auto;
  border-color: rgba(255,255,255,0.1);
}

.simulator-dark-band .section-title-dot {
  background: var(--i-accent);
}

/* ============================================================
   ALTERNATING SECTION BACKGROUNDS
   ============================================================ */
.features-section {
  background: var(--i-chrome);
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid var(--i-grid);
  border-bottom: 1px solid var(--i-grid);
}

.specs-section {
  background: var(--i-chrome);
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid var(--i-grid);
  border-bottom: 1px solid var(--i-grid);
}

/* ============================================================
   SVG SPEC ICONS STYLING
   ============================================================ */
.spec-icon svg {
  color: var(--i-accent);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-tile:hover .spec-icon svg {
  transform: scale(1.15);
}

/* ============================================================
   EXPANDED FOOTER
   ============================================================ */
.footer-expanded {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .footer-expanded {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer-expanded {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

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

.footer-brand .brand-badge {
  background: var(--i-accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 11px;
  color: var(--i-ink-mute);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.footer-link {
  display: block;
  font-size: 12px;
  padding: 2px 0;
}

.footer-link-accent {
  color: var(--i-accent) !important;
  font-weight: 700;
}

.footer-link-accent:hover {
  color: #FF8F5C !important;
}

.footer-link-muted {
  color: rgba(138, 133, 123, 0.5);
  font-size: 11px;
  cursor: default;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--i-ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-bottom-separator {
  color: var(--i-accent);
}

.footer-status-dot {
  color: #28C840;
  animation: statusPulse 2s ease-in-out infinite;
}

/* ============================================================
   THEME SWITCHER & NAV CONTAINER
   ============================================================ */
.nav-right-container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  z-index: 1001;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

html.dark-theme .sun-icon { display: block; }
html.dark-theme .moon-icon { display: none; }

/* Smooth transition for theme change */
body, section, div, header, footer, .module-card, .pass-card, .spec-tile, .workflow-panel, a {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dark theme color overrides */
html.dark-theme {
  --i-ink:         #ECECE8;
  --i-ink-soft:    #B5AFA2;
  --i-ink-mute:    #8A857B;
  --i-bg:          #121110;
  --i-surface:     #1C1B19;
  --i-grid:        #2C2B27;
  --i-chrome:      #181715;
  --i-row-head:    #22211E;
  --i-row-alt:     #1E1D1B;
  --i-delta-row:   #2A1D17;
  --i-accent-soft: #3D2216;
  
  --i-green:       #42A96E;
  --i-green-soft:  #142F1E;
  --i-blue:        #608CF2;
  --i-blue-soft:   #1A253C;
  --i-amber:       #E0A838;
  --i-amber-soft:  #352B18;
  --i-red:         #EC6351;
  --i-red-soft:    #351A15;
  --i-violet:      #A275DC;
  --i-violet-soft: #271A33;
}

/* Ensure canvas particles visibility in both modes */
html.dark-theme .hero-canvas {
  opacity: 0.85;
}

/* Status dot pulse keyframes */
@keyframes statusPulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* ============================================================
   SIMULATOR PROGRESS BAR & SVG CONNECTORS
   ============================================================ */
.sim-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--i-chrome);
  padding: 14px 24px;
  border-bottom: 1px solid var(--i-grid);
}

.sim-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--i-ink-mute);
}

.sim-progress-step.active {
  opacity: 1;
  color: var(--i-accent);
}

.sim-progress-step.completed {
  opacity: 1;
  color: var(--i-green);
}

.step-dot {
  width: 8px;
  height: 8px;
  background: var(--i-ink-mute);
  display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.sim-progress-step.active .step-dot {
  background: var(--i-accent);
  box-shadow: 0 0 0 4px var(--i-accent-soft);
}

.sim-progress-step.completed .step-dot {
  background: var(--i-green);
  box-shadow: 0 0 0 4px var(--i-green-soft);
}

.sim-progress-connector {
  flex-grow: 1;
  height: 1px;
  background: var(--i-grid);
  margin: 0 16px;
  transition: background-color 0.3s ease, height 0.3s ease;
}

.sim-progress-connector.completed {
  background: var(--i-green);
  height: 2px;
}

#sim-svg-connectors {
  pointer-events: none;
  z-index: 10;
}

/* Hide SVG connectors on small viewports where ledger cards stack vertically */
@media (max-width: 768px) {
  #sim-svg-connectors {
    display: none !important;
  }
  .sim-progress-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  .sim-progress-connector {
    display: none;
  }
}

/* ============================================================
   PASS CARD ACCORDION STYLES
   ============================================================ */
.pass-card {
  cursor: pointer;
}

.pass-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.3s ease, 
              margin-top 0.3s ease;
}

.pass-card.expanded .pass-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

/* ============================================================
   VERTICAL TIMELINE CONNECTING LINE
   ============================================================ */
.workflow-body {
  position: relative;
}

.workflow-body::before {
  content: '';
  position: absolute;
  left: 36px; /* 24px padding + 12px (half of 24px step circle width) */
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: transparent;
  opacity: 0.7;
  z-index: 1;
  border-left: 2px dashed var(--i-ink-mute);
}

.step-circle {
  position: relative;
  z-index: 2;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================================
   SPEC TILES STATS
   ============================================================ */
.spec-stat {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--i-accent);
  line-height: 1.1;
  margin-top: 4px;
}
