/* ==========================================================================
   HPF SMART ERP - HIGH-END DESIGN SYSTEM & STYLESHEET
   Brand Theme: Modern Dark Slate & Precision Emerald Green (#159450) Accents
   Design Tokens, Glassmorphism, 60-30-10 Balanced Color Discipline
   ========================================================================== */

:root {
  /* 60% Neutral Canvas - High-End Midnight Slate */
  --bg-primary: #080c14;
  --bg-secondary: #0d1522;
  --bg-surface: #121c2e;
  --bg-surface-elevated: #18253d;
  --bg-glass: rgba(13, 21, 34, 0.8);
  --bg-glass-card: rgba(18, 28, 46, 0.65);
  --bg-glass-input: rgba(9, 15, 25, 0.9);
  
  /* 30% Neutral Typography (Clean & Readable, Not Green) */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-contrast: #ffffff;
  
  /* 10% Targeted Brand Green (#159450) for Actions & Highlights */
  --color-primary: #159450;
  --color-primary-hover: #128346;
  --color-primary-glow: rgba(21, 148, 80, 0.35);
  
  --color-accent: #10b981;
  --color-cyan: #34d399;
  --color-purple: #059669;
  --color-emerald-bright: #6ee7b7;
  
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.15);

  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(21, 148, 80, 0.55);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(21, 148, 80, 0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1240px;
  --header-height: 76px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-card: rgba(255, 255, 255, 0.95);
  --bg-glass-input: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-contrast: #000000;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-glass: rgba(15, 23, 42, 0.12);
  --border-active: rgba(21, 148, 80, 0.6);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(21, 148, 80, 0.12);
}

/* ==========================================================================
   RESET & BASE TYPOGRAPHY
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

/* Ambient Subtle Glow Spheres */
.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.glow-1 {
  top: 8%;
  left: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #159450, transparent 70%);
}

.glow-2 {
  top: 35%;
  right: -5%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #059669, transparent 70%);
}

.glow-3 {
  top: 68%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #10b981, transparent 70%);
}

/* Typography Utilities */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #34d399 75%, #159450 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */

.announcement-bar {
  background: linear-gradient(90deg, #09130e 0%, #11261a 50%, #09130e 100%);
  border-bottom: 1px solid var(--border-glass);
  padding: 8px 0;
  font-size: 0.875rem;
  position: relative;
  z-index: 100;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-sparkle {
  background: rgba(21, 148, 80, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-text {
  color: var(--text-primary);
}

.announcement-link {
  color: #34d399;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.announcement-link:hover {
  color: #6ee7b7;
  gap: 8px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background-color var(--transition-normal);
}

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

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

.logo-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #159450, #0f763e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  position: relative;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(14px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  padding: 8px 4px;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #159450, #34d399);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: block; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.4rem;
  padding: 6px 8px;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & UI CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #159450 0%, #0f763e 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 148, 80, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #18a95c 0%, #128346 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 148, 80, 0.5);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-active);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
}

.btn-glow {
  position: relative;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #34d399, #159450, #6ee7b7);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(21, 148, 80, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 24px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 580px;
}

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

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Hero Interactive Mockup Window */
.hero-card-window {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-glass);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-badge {
  font-size: 0.7rem;
  background: var(--color-success-bg);
  color: #34d399;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.window-body {
  padding: 24px;
}

.mock-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dash-branch-pill {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-status-pill.success {
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.mock-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-icon {
  font-size: 1.25rem;
  color: #34d399;
}

.kpi-meta {
  display: flex;
  flex-direction: column;
}

.kpi-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.kpi-badge {
  font-size: 0.6875rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  width: fit-content;
}
.kpi-badge.positive { background: var(--color-success-bg); color: #34d399; }
.kpi-badge.warning { background: var(--color-warning-bg); color: var(--color-warning); }

.hero-ai-stream {
  background: rgba(8, 14, 24, 0.95);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stream-line {
  display: flex;
  gap: 8px;
  line-height: 1.4;
}

.stream-prefix {
  color: #34d399;
  font-weight: 600;
}

.stream-text {
  color: #cbd5e1;
}

.stream-text.highlight {
  color: #6ee7b7;
}

.stream-line.success .stream-prefix {
  color: var(--color-success);
}
.stream-line.success .stream-text {
  color: #a7f3d0;
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */

.trust-section {
  padding: 30px 0 60px;
  text-align: center;
}

.trust-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.tech-badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.tech-badge i {
  color: #34d399;
  font-size: 1.15rem;
}

.tech-badge:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */

section {
  position: relative;
  z-index: 1;
}

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

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(21, 148, 80, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   LIVE AI DEMO PLAYGROUND SECTION
   ========================================================================== */

.ai-demo-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 21, 34, 0.6) 100%);
}

.playground-tabs-wrap {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.playground-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}

.play-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.play-tab-btn:hover {
  color: var(--text-primary);
}

.play-tab-btn.active {
  background: var(--bg-surface-elevated);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-active);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Tab 1: BOM Demo */
.bom-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
}

.bom-input-card, .bom-output-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-dot-title {
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.badge-mini {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.badge-ai-live {
  font-size: 0.75rem;
  background: var(--color-success-bg);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.upload-dropzone {
  border: 2px dashed rgba(21, 148, 80, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(21, 148, 80, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.drop-icon {
  font-size: 3rem;
  color: #34d399;
}

.drop-title {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.drop-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 320px;
}

.preset-sample-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0;
}

.btn-sample {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sample:hover, .btn-sample.active {
  border-color: var(--color-primary);
  color: var(--text-primary);
  background: rgba(21, 148, 80, 0.2);
}

.bom-tree-viewer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.bom-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition-fast);
}

.bom-item:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
}

.bom-item.level-0 {
  border-left: 4px solid #159450;
}
.bom-item.level-1 {
  margin-left: 20px;
  border-left: 4px solid #10b981;
}
.bom-item.level-2 {
  margin-left: 40px;
  border-left: 4px solid #34d399;
}

.bom-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.item-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.item-tag.root { background: rgba(21, 148, 80, 0.25); color: #6ee7b7; }
.item-tag.btp { background: rgba(16, 185, 129, 0.2); color: #a7f3d0; }
.item-tag.nvl { background: rgba(52, 211, 153, 0.2); color: #34d399; }
.item-tag.ccdc { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.item-name {
  font-size: 0.875rem;
  color: var(--text-primary);
  flex-grow: 1;
}

.item-qty {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.stock-status {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stock-status.in-stock { color: var(--color-success); }
.stock-status.low-stock { color: var(--color-warning); }

.supplier-suggest {
  font-size: 0.75rem;
  color: #34d399;
  font-style: italic;
}

.bom-summary-bar {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-col {
  display: flex;
  flex-direction: column;
}

.sm-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sm-val {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}
.sm-val.highlight { color: #34d399; }

/* Tab 2: Chat Copilot */
.chat-copilot-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.copilot-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #159450, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
}

.copilot-info h4 {
  font-size: 1rem;
  color: var(--text-primary);
}

.copilot-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.online-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.quick-prompts-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-pill {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-pill:hover {
  border-color: var(--color-cyan);
  color: var(--text-primary);
  background: rgba(52, 211, 153, 0.1);
}

.chat-messages-box {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-subtle);
}

.chat-bubble {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.chat-bubble.ai-msg {
  align-self: flex-start;
}

.chat-bubble.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(21, 148, 80, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble.user-msg .msg-avatar {
  background: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.msg-body {
  background: var(--bg-surface-elevated);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.chat-bubble.user-msg .msg-body {
  background: linear-gradient(135deg, #159450, #0f763e);
  color: #ffffff;
  border: none;
}

.chat-input-bar {
  display: flex;
  gap: 12px;
}

.chat-input-bar input {
  flex-grow: 1;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9375rem;
}

.chat-input-bar input:focus {
  outline: none;
  border-color: var(--color-cyan);
}

/* Tab 3: Procurement */
.procurement-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 30px;
  align-items: center;
}

.procure-intro h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.procure-intro p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.procure-metrics {
  display: flex;
  gap: 20px;
}

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

.p-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-success);
}

.p-lbl {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.procure-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

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

.styled-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.recommended-row {
  background: rgba(16, 185, 129, 0.08);
}

.price-highlight {
  font-weight: 700;
  color: #34d399;
}

.sub-text {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.badge-star {
  color: #fbbf24;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-badge-best {
  background: var(--color-success-bg);
  color: #34d399;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-badge-warn {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-badge-info {
  background: rgba(21, 148, 80, 0.2);
  color: #6ee7b7;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ==========================================================================
   BENTO GRID SECTION
   ========================================================================== */

.capabilities-section {
  padding: 90px 0;
}

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

.bento-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(16px);
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(21, 148, 80, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.bento-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.bento-badge.ai-badge {
  background: rgba(21, 148, 80, 0.25);
  color: #6ee7b7;
}

.bento-title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.bento-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.bento-checklist li {
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-checklist li i {
  color: var(--color-success);
}

.report-tags-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.rep-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #34d399;
}

/* ==========================================================================
   ARCHITECTURE SECTION
   ========================================================================== */

.architecture-section {
  padding: 90px 0;
  background: linear-gradient(180deg, rgba(13, 21, 34, 0.5) 0%, transparent 100%);
}

.arch-diagram-wrap {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.arch-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.arch-col {
  flex: 1;
}

.arch-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-normal);
}

.arch-box.active-node {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(21, 148, 80, 0.12) 0%, var(--bg-surface) 100%);
  box-shadow: 0 0 25px rgba(21, 148, 80, 0.2);
}

.box-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: rgba(21, 148, 80, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.arch-box h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.arch-box p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.arch-subtags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.arch-subtags span {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.arch-arrow {
  font-size: 1.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ==========================================================================
   ROI CALCULATOR
   ========================================================================== */

.roi-section {
  padding: 80px 0;
}

.roi-card {
  background: linear-gradient(135deg, rgba(18, 28, 46, 0.85) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.roi-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.roi-header h2 {
  font-size: 2rem;
  margin: 12px 0;
  color: var(--text-primary);
}

.roi-header p {
  color: var(--text-secondary);
}

.roi-calculator-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.input-slider-group {
  margin-bottom: 24px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-label-row label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-value {
  font-weight: 700;
  color: #34d399;
  font-size: 1.05rem;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
  accent-color: #159450;
}

.roi-results-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-highlight {
  display: flex;
  flex-direction: column;
}

.res-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.res-big {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 4px 0;
}

.res-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing-section {
  padding: 90px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(21, 148, 80, 0.15) 0%, rgba(18, 28, 46, 0.95) 100%);
  border: 2px solid #159450;
  box-shadow: 0 0 30px rgba(21, 148, 80, 0.25);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #159450, #0f763e);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

.tier-header h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tier-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 44px;
}

.tier-price {
  margin: 24px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.tier-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.tier-features li i {
  color: var(--color-success);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-section {
  padding: 80px 0;
}

.faq-accordion-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.open {
  border-color: var(--border-active);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: #34d399;
}

.faq-question i {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ==========================================================================
   FINAL CTA STRIP
   ========================================================================== */

.final-cta-section {
  padding: 70px 0 90px;
}

.cta-banner-box {
  background: radial-gradient(circle at top right, rgba(21, 148, 80, 0.3), transparent 70%),
              linear-gradient(135deg, #111a2e 0%, #080c14 100%);
  border: 1px solid rgba(21, 148, 80, 0.35);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner-content {
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-banner-content p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-glass);
  background: var(--bg-primary);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .brand-logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin-bottom: 16px;
}

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

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

.footer-col h5 {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: #34d399;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(21, 148, 80, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.modal-dialog h3 {
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input, .form-group select {
  background: var(--bg-glass-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.875rem;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.success-icon-large {
  font-size: 3.5rem;
  color: var(--color-success);
  margin-bottom: 14px;
  text-align: center;
}

.form-success-state {
  text-align: center;
  padding: 20px 0;
}

.form-success-state h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-success-state p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE BREAKPOINTS
   ========================================================================== */

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

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-btn-login {
    display: none;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-span-2 {
    grid-column: span 1;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .arch-grid {
    flex-direction: column;
  }
  .arch-arrow {
    transform: rotate(90deg);
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .playground-nav {
    grid-template-columns: 1fr;
  }
  .bom-demo-grid, .procurement-demo-grid, .roi-calculator-body {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-links-group {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
