/* ==========================================================================
   KhataPro (khatapro.in) - Modern Design System & Stylesheet
   Built with Vanilla CSS, CSS Custom Properties, and Glassmorphic Elements
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.4);

  /* Brand Accents */
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px var(--primary-glow);

  /* Layout Constants */
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Background Atmospheric Gradients */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 600px;
  background: radial-gradient(circle at 50% -20%, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* Sticky Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.brand-text-pro {
  color: var(--primary-light);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

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

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

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-pill-badge .dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

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

.hero-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: 780px;
  margin: 0 auto;
}

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

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Feature Highlights Grid */
.section {
  padding: 80px 0;
  position: relative;
}

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

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

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

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

.feature-card .feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.feature-tag-list span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Interactive Live POS & Thermal Receipt Simulator
   ========================================================================== */
.demo-section {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5) 20%, rgba(15, 23, 42, 0.5) 80%, transparent);
  padding: 90px 0;
}

.pos-simulator-wrapper {
  background: #0d1322;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.pos-sim-header {
  padding: 16px 24px;
  background: #111827;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pos-sim-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
}

.pos-sim-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Three-column POS Terminal Layout */
.pos-sim-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  min-height: 620px;
  divide-x: 1px solid var(--border-subtle);
}

@media (max-width: 1024px) {
  .pos-sim-body {
    grid-template-columns: 1fr 1fr;
  }
  .thermal-receipt-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .pos-sim-body {
    grid-template-columns: 1fr;
  }
  .thermal-receipt-col {
    grid-column: span 1;
  }
}

/* Column 1: Catalog & Scanner */
.pos-col {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--border-subtle);
}

.pos-col:last-child {
  border-right: none;
}

.pos-col-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

.pos-search-bar {
  position: relative;
  display: flex;
  gap: 8px;
}

.pos-search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.pos-search-input:focus {
  border-color: var(--primary);
}

.pos-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
}

.scan-simulate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scan-simulate-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  overflow-y: auto;
  max-height: 480px;
  padding-right: 4px;
}

.product-pos-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition-fast);
}

.product-pos-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.product-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
}

.product-category {
  color: var(--text-subtle);
}

.product-gst {
  color: var(--primary-light);
  font-weight: 600;
}

.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  min-height: 38px;
}

.product-barcode-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.add-to-cart-btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.add-to-cart-btn:hover {
  transform: scale(1.05);
  background: var(--primary-light);
}

/* Column 2: Cart & Billing */
.cart-col {
  background: rgba(0, 0, 0, 0.15);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.empty-cart-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

.empty-cart-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.pos-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 55%;
}

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

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

.qty-control {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-main);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.qty-value {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 50px;
  text-align: right;
}

.billing-summary-box {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.grand-total-row {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.grand-total-row span:last-child {
  color: var(--primary-light);
}

.discount-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.discount-select-el {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  outline: none;
}

.cart-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

/* Column 3: Thermal Receipt Preview (Realistic Paper) */
.thermal-receipt-col {
  background: #0a0e17;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 16px;
}

.receipt-mode-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.receipt-mode-toggle label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.thermal-paper-slip {
  width: 100%;
  max-width: 290px;
  background: #fdfdfc;
  color: #111827;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  padding: 20px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: max-width var(--transition-normal);
  filter: contrast(105%);
}

.thermal-paper-slip.width-80mm {
  max-width: 360px;
}

/* Jagged thermal tear edges */
.thermal-paper-slip::before,
.thermal-paper-slip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-size: 10px 6px;
}

.thermal-paper-slip::before {
  top: -6px;
  background-image: radial-gradient(circle, transparent, transparent 50%, #fdfdfc 50%, #fdfdfc 100%);
}

.thermal-paper-slip::after {
  bottom: -6px;
  background-image: radial-gradient(circle, transparent, transparent 50%, #fdfdfc 50%, #fdfdfc 100%);
}

.receipt-header {
  text-align: center;
  margin-bottom: 6px;
}

.receipt-logo {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.receipt-shop-name {
  font-size: 13px;
  font-weight: 800;
  margin: 4px 0 2px;
  text-transform: uppercase;
}

.receipt-shop-addr, .receipt-shop-contact, .receipt-shop-gstin {
  font-size: 10px;
  color: #4b5563;
}

.receipt-divider {
  text-align: center;
  color: #6b7280;
  font-size: 10px;
  letter-spacing: -1px;
  margin: 4px 0;
}

.receipt-meta {
  font-size: 10px;
  margin-bottom: 4px;
}

.receipt-table-header {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 10px;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 4px 0;
}

.receipt-col-desc {
  max-width: 70%;
}

.receipt-col-desc small {
  color: #6b7280;
}

.receipt-col-amount {
  font-weight: 700;
}

.receipt-summary-line {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
}

.grand-total-line {
  font-size: 13px;
  font-weight: 900;
  margin-top: 4px;
}

.receipt-qr-section {
  text-align: center;
  margin: 8px 0 4px;
}

.receipt-upi-text {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.receipt-upi-id {
  font-size: 9px;
  color: #4b5563;
}

.receipt-footer {
  text-align: center;
  font-size: 9px;
  color: #6b7280;
  margin-top: 6px;
}

.receipt-actions-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 290px;
  gap: 8px;
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  margin-top: 36px;
}

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

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

.comparison-table th {
  background: rgba(17, 24, 39, 0.95);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.comparison-table .highlight-col {
  background: rgba(16, 185, 129, 0.08);
  color: var(--primary-light);
  border-left: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
  font-weight: 600;
}

.comparison-table th.highlight-col {
  background: rgba(16, 185, 129, 0.15);
  font-weight: 800;
  font-size: 1.05rem;
}

.comparison-table td {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.check-icon {
  color: var(--primary-light);
  font-weight: bold;
}

.cross-icon {
  color: var(--accent-rose);
  font-weight: bold;
}

/* ==========================================================================
   Hardware Showcase & Ecosystem
   ========================================================================== */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.hardware-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hardware-card-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary-light);
}

.hardware-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.hardware-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hardware-card ul {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.hardware-card ul li::before {
  content: "• ";
  color: var(--primary);
  font-weight: bold;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

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

.faq-chevron {
  transition: transform var(--transition-normal);
  color: var(--primary-light);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

/* ==========================================================================
   Code snippet & Developer block
   ========================================================================== */
.code-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-light);
  overflow-x: auto;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #060910;
  padding: 60px 0 30px;
  margin-top: 80px;
}

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

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

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: auto;
}

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

.toast-success {
  border-left: 4px solid var(--primary);
}

.toast-info {
  border-left: 4px solid var(--accent-blue);
}

.toast-error {
  border-left: 4px solid var(--accent-rose);
}

.toast-icon {
  font-weight: bold;
}

/* ==========================================================================
   Print Stylesheet (@media print)
   Optimized specifically for 58mm / 80mm ESC/POS Thermal Printers
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  #thermal-receipt-preview,
  #thermal-receipt-preview * {
    visibility: visible;
  }

  #thermal-receipt-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    color: #000 !important;
    font-family: monospace !important;
    font-size: 12pt !important;
  }

  #thermal-receipt-preview::before,
  #thermal-receipt-preview::after {
    display: none !important;
  }

  @page {
    margin: 0;
    size: auto;
  }
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
  .site-header .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #0b101c;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-subtle);
    display: none;
  }

  .site-header .nav-links.nav-open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }
}
