/* ==========================================================================
   BHARATWORKS FLEET WEBSITE - STYLESHEET
   Design Tokens, Mobile-First Responsive Layout, Glassmorphism, Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark & Vibrant Tech Theme */
  --bg-dark: #090d16;
  --bg-surface-1: #111827;
  --bg-surface-2: #1f293d;
  --bg-surface-3: #2a3752;
  --bg-glass: rgba(17, 24, 39, 0.75);
  --bg-glass-card: rgba(255, 255, 255, 0.03);
  
  /* Brand Accent Colors */
  --accent-saffron: #ff8c00;
  --accent-saffron-light: #ffa733;
  --accent-saffron-glow: rgba(255, 140, 0, 0.25);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.25);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.25);
  --accent-emerald: #10b981;
  
  /* Text Colors */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-on-accent: #090d16;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(255, 140, 0, 0.4);
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Layout */
  --container-max-w: 1240px;
  --header-height: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Core Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-saffron);
  color: var(--text-on-accent);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--text-primary);
}

/* Focus States for Keyboard Operability */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-saffron);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

/* --------------------------------------------------------------------------
   3. Header & Navigation (Sticky, Responsive)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(9, 13, 22, 0.92);
  border-bottom-color: var(--border-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-saffron), #e65100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 15px var(--accent-saffron-glow);
}

.logo-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--accent-saffron-light);
  margin-left: 0.25rem;
}

/* Desktop Nav Links */
.nav-menu {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-saffron-light);
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-saffron), #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-saffron-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-saffron-light), var(--accent-saffron));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-saffron-glow);
}

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

.btn-secondary:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Navigation Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 2rem var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-nav-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-link:hover {
  color: var(--accent-saffron);
}

@media (min-width: 1024px) {
  .nav-menu {
    display: block;
  }
  .mobile-nav-toggle {
    display: none;
  }
  .mobile-nav-drawer {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: radial-gradient(circle at 50% 0%, rgba(255, 140, 0, 0.12) 0%, rgba(139, 92, 246, 0.06) 45%, transparent 70%);
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, rgba(139, 92, 246, 0.1) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid var(--border-accent);
  color: var(--accent-saffron-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-saffron);
  box-shadow: 0 0 10px var(--accent-saffron);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-saffron-light) 0%, #ffffff 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Metric Cards Strip */
.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero-metrics-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

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

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-saffron-light);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Sample Tag overlay */
.sample-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   5. Section Header Utility
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-saffron-light);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   6. Product Showcase Section (Games, Apps, SaaS, Software)
   -------------------------------------------------------------------------- */
.showcase-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface-1);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Showcase Filter Tabs */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0.4rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  background: var(--accent-saffron);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--accent-saffron-glow);
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Article Card */
.product-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-saffron), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.card-category-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.cat-game { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.cat-app { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.cat-saas { background: rgba(255, 140, 0, 0.15); color: var(--accent-saffron-light); border: 1px solid rgba(255, 140, 0, 0.3); }
.cat-software { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.card-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-status.dev {
  color: var(--accent-saffron-light);
}

.card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.btn-card-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-saffron-light);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}

.btn-card-action:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Producer AI Section (Dedicated Agent Feature)
   -------------------------------------------------------------------------- */
.producer-ai-section {
  padding: var(--space-3xl) 0;
  position: relative;
  background: radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  overflow: hidden;
}

.producer-box {
  background: linear-gradient(145deg, rgba(31, 41, 61, 0.8), rgba(17, 24, 39, 0.95));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.producer-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .producer-header {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.producer-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.producer-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.producer-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Producer Simulation Box */
.producer-sim-container {
  background: var(--bg-dark);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sim-topbar {
  background: var(--bg-surface-2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-dots {
  display: flex;
  gap: 0.4rem;
}

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

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

/* Workflow Steps Switcher */
.sim-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-surface-1);
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .sim-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sim-step-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.sim-step-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  color: #ffffff;
}

.sim-output-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  min-height: 180px;
  background: #060911;
  overflow-x: auto;
}

.sim-log-line {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

.sim-log-time {
  color: var(--text-muted);
}

.sim-log-prompt {
  color: var(--accent-cyan);
}

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

.sim-log-success {
  color: var(--accent-emerald);
}

/* Producer Features Grid */
.producer-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .producer-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .producer-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-feature-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.p-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.p-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.p-feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. P2R Agent Technology Section
   -------------------------------------------------------------------------- */
.p2r-tech-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface-1);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.architecture-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .architecture-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Architecture Explorer Cards */
.arch-nodes-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arch-node-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.arch-node-card:hover, .arch-node-card.active {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-2);
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

.arch-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.arch-node-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.arch-node-title svg {
  color: var(--accent-cyan);
}

.arch-node-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Interactive Architecture Visualizer Display */
.arch-visualizer-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arch-display-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.arch-details-content {
  opacity: 1;
  transition: opacity var(--transition-normal);
}

.arch-details-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent-cyan);
}

.arch-details-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.arch-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.arch-spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.arch-spec-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-dark);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  color: var(--accent-saffron-light);
  flex-shrink: 0;
}

.faq-button[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
  background: var(--bg-surface-1);
}

.faq-panel.open {
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Waitlist & Contact Section (Strict Security / Self-Hosted Infrastructure)
   -------------------------------------------------------------------------- */
.contact-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface-1) 100%);
  position: relative;
}

.contact-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 10px 40px var(--accent-saffron-glow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
  margin: 2rem auto 1rem auto;
}

@media (min-width: 640px) {
  .contact-form {
    flex-direction: row;
  }
}

.form-group {
  flex-grow: 1;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-saffron-light);
  outline: none;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* --------------------------------------------------------------------------
   11. Modal Detail Viewer
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-3);
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.modal-body {
  margin-top: 1rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0 var(--space-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-saffron-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
