/* ==========================================================================
   Parchiwala - RM (Restaurant Manager POS) Design System
   Aesthetic: Culinary Dark Mode, Glassmorphism, Thermal Paper Simulator
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #070a12;
  --bg-surface: #0d1322;
  --bg-card: rgba(16, 24, 43, 0.75);
  --bg-card-hover: rgba(23, 34, 60, 0.85);
  --bg-glass: rgba(13, 19, 34, 0.65);
  
  --primary: #ff5a1f;
  --primary-hover: #ff753e;
  --primary-glow: rgba(255, 90, 31, 0.35);
  --primary-subtle: rgba(255, 90, 31, 0.12);

  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;

  /* Status Colors for Table Management */
  --status-available: #10b981;
  --status-available-bg: rgba(16, 185, 129, 0.15);
  --status-occupied: #ef4444;
  --status-occupied-bg: rgba(239, 68, 68, 0.15);
  --status-billed: #3b82f6;
  --status-billed-bg: rgba(59, 130, 246, 0.15);
  --status-reserved: #a855f7;
  --status-reserved-bg: rgba(168, 85, 247, 0.15);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--primary-glow);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #151f38 0%, var(--bg-dark) 60%);
  min-height: 100vh;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--primary) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-amber {
  color: var(--primary);
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(255, 90, 31, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #e0470d 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 90, 31, 0.55);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.nav-logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-badge-rm {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary) 0%, #e0470d 100%);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
  letter-spacing: 0.8px;
  vertical-align: middle;
}

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  top: 30%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

@keyframes pulseDot {
  0% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

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

.metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Hero Visual: Restaurant POS Live Mockup */
.hero-mockup-wrapper {
  position: relative;
}

.pos-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(255, 90, 31, 0.15);
  backdrop-filter: blur(20px);
}

.pos-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.pos-terminal-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.pos-status-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--status-available-bg);
  color: var(--status-available);
  font-weight: 600;
}

.pos-mini-table-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.pos-table-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pos-table-card.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.pos-table-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.pos-table-state {
  font-size: 0.7rem;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

.pos-table-state.occ { color: var(--status-occupied); }
.pos-table-state.avail { color: var(--status-available); }
.pos-table-state.bill { color: var(--status-billed); }

.pos-mini-order {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 14px;
  border: 1px dashed var(--border-light);
}

.pos-order-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.pos-order-row.total {
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.pos-action-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

/* Floating Hardware Badge */
.floating-printer-badge {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.printer-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

/* ==========================================================================
   Multi-Device Local Wi-Fi Architecture Section
   ========================================================================== */
.multidevice-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
  position: relative;
}

.sync-architecture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}

.sync-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 30px;
  align-items: center;
}

.sync-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.sync-node:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.sync-node-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.sync-node-icon.master {
  background: rgba(255, 90, 31, 0.15);
  color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.sync-node-icon.router {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.sync-node-icon.captain {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-available);
}

.sync-node h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.sync-node p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sync-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.sync-wifi-waves {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  position: relative;
}

.sync-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.sync-highlight-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 90, 31, 0.2);
  border-radius: 14px;
  padding: 18px 24px;
  margin-top: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-section {
  padding: 100px 0;
  position: relative;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(255, 90, 31, 0.2);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-pills {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.feature-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   Interactive Live POS & Thermal Receipt Simulator
   ========================================================================== */
.simulator-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 50%, #131c33 0%, var(--bg-dark) 70%);
}

.simulator-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: flex-start;
}

/* Simulator Menu Area */
.sim-left-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sim-table-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.sim-table-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.sim-table-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.sim-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sim-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.sim-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.sim-item-info h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.sim-item-info span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.sim-add-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Simulator Thermal Receipt & Ticket Area */
.sim-right-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sim-controls-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}

.sim-controls-bar .btn {
  flex: 1;
}

/* The Paper Receipt */
.thermal-paper {
  width: 320px;
  background: #fdfdfc;
  color: #111;
  font-family: var(--font-mono);
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  position: relative;
  font-size: 0.8rem;
  line-height: 1.4;
  animation: receiptSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes receiptSlide {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Jagged Tear-off Top and Bottom */
.thermal-paper::before,
.thermal-paper::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  background-size: 12px 6px;
}

.thermal-paper::before {
  top: -6px;
  background-image: radial-gradient(circle at 6px -3px, transparent 6px, #fdfdfc 7px);
}

.thermal-paper::after {
  bottom: -6px;
  background-image: radial-gradient(circle at 6px 9px, transparent 6px, #fdfdfc 7px);
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #555;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.receipt-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
  font-family: var(--font-mono);
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.75rem;
}

.receipt-items-table {
  width: 100%;
  margin-bottom: 12px;
  border-bottom: 1px dashed #555;
  padding-bottom: 12px;
}

.receipt-items-table .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.receipt-totals .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.receipt-totals .row.grand-total {
  font-weight: 800;
  font-size: 1rem;
  border-top: 1px solid #111;
  padding-top: 6px;
  margin-top: 6px;
}

.receipt-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  border-top: 1px dashed #555;
  padding-top: 10px;
}

/* ==========================================================================
   Hardware Section
   ========================================================================== */
.hardware-section {
  padding: 100px 0;
}

.hardware-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hardware-img-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hardware-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(50px);
}

.hardware-specs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.spec-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--status-available-bg);
  color: var(--status-available);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Comparison Section (ROI vs Cloud POS)
   ========================================================================== */
.comparison-section {
  padding: 100px 0;
  background: var(--bg-surface);
}

.comparison-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: rgba(255, 90, 31, 0.06);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.check-yes {
  color: var(--status-available);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cross-no {
  color: var(--status-occupied);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 100px 0;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}

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

.faq-question {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 22px;
}

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, #182544 0%, #0c1426 100%);
  border: 1px solid var(--primary-subtle);
  border-radius: 28px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 50px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.cta-card h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 36px auto;
}

.footer {
  background: #04060b;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 18px;
}

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

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Demo Request Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .sync-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simulator-grid {
    grid-template-columns: 1fr;
  }
  .hardware-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .sim-menu-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table {
    font-size: 0.85rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }
}

/* ==========================================================================
   Interactive Simulator Enhancements & Quantity Selector
   ========================================================================== */
section {
  scroll-margin-top: 90px;
}

.sim-item-card.has-qty {
  border-color: var(--primary);
  background: rgba(255, 90, 31, 0.08);
  box-shadow: 0 0 15px rgba(255, 90, 31, 0.2);
}

.sim-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2px 6px;
}

.sim-qty-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition);
}

.sim-qty-btn:hover {
  background: var(--primary-subtle);
}

.sim-qty-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 18px;
  text-align: center;
  color: var(--text-main);
}

.sim-add-btn {
  background: var(--primary-subtle);
  border: 1px solid rgba(255, 90, 31, 0.3);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.sim-add-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Toast Banner */
.sim-toast-banner {
  width: 100%;
  max-width: 320px;
  min-height: 38px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--status-available);
  opacity: 0;
  transform: translateY(-6px);
  transition: var(--transition);
  pointer-events: none;
}

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

/* Pulse Highlight when navigating from Hero */
.simulator-container.pulse-highlight {
  animation: simContainerPulse 1.5s ease-out;
}

@keyframes simContainerPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.8); }
  50% { box-shadow: 0 0 40px 10px rgba(255, 90, 31, 0.6); }
  100% { box-shadow: var(--shadow-lg); }
}

.anim-feed {
  animation: receiptFeedAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes receiptFeedAnim {
  0% { transform: translateY(-20px) scale(0.98); opacity: 0.4; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
