/* ==========================================================================
   Retail Automation Pro — Design System & Storefront Styles
   Theme: Data Engineering (deep blues, teals, data-visualization greens)
   ========================================================================== */

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

/* --- CSS Custom Properties (Dark Mode Default) --- */
:root {
  /* Brand Colors */
  --color-primary: #16a34a;
  --color-primary-light: #22c55e;
  --color-primary-dark: #15803d;
  --color-secondary: #d97706;
  --color-secondary-light: #f59e0b;
  --color-accent: #22c55e;
  --color-accent-light: #4ade80;

  /* Surfaces */
  --color-bg: #0f172a;
  --color-bg-alt: #0b1120;
  --color-card: #1e293b;
  --color-card-hover: #253449;
  --color-card-border: #334155;
  --color-surface: #162032;

  /* Text */
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-heading: #ffffff;
  --color-text-inverse: #0f172a;

  /* Status / Accent */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-crypto: #f7931a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  --gradient-hero: linear-gradient(160deg, #0a1a0f 0%, #0d2a15 40%, #0a1a1a 70%, #0a1a0f 100%);
  --gradient-bundle: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow-primary: 0 0 20px rgba(15, 118, 110, 0.3);
  --shadow-glow-accent: 0 0 20px rgba(16, 185, 129, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 4rem;
}

/* --- Light Mode --- */
[data-theme="light"] {
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-card: #ffffff;
  --color-card-hover: #f8fafc;
  --color-card-border: #e2e8f0;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-heading: #0f172a;
  --color-text-inverse: #f1f5f9;
  --gradient-hero: linear-gradient(160deg, #f8fafc 0%, #e0f2fe 40%, #ccfbf1 70%, #f8fafc 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow-primary: 0 0 20px rgba(15, 118, 110, 0.15);
  --shadow-glow-accent: 0 0 20px rgba(16, 185, 129, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

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

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-6xl); }
}

p {
  color: var(--color-text-muted);
  max-width: 65ch;
}

code, pre {
  font-family: var(--font-mono);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-8); }
}

.section {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-20) 0; }
}

@media (min-width: 1024px) {
  .section { padding: var(--space-24) 0; }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  margin: 0 auto;
  font-size: var(--text-lg);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  transition: background-color var(--transition-base);
}

[data-theme="light"] .site-header {
  background-color: rgba(248, 250, 252, 0.9);
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text-heading);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: white;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

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

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-2);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  padding: var(--space-6);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-4);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-card-border);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1.5;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Primary Button — Gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(15, 118, 110, 0);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button — Outline */
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-card-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
  background: rgba(15, 118, 110, 0.08);
}

/* Accent Button */
.btn-accent {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-accent);
  color: #ffffff;
}

/* Crypto Button */
.btn-crypto {
  background: transparent;
  color: var(--color-crypto);
  border: 2px solid var(--color-crypto);
}

.btn-crypto:hover {
  background: rgba(247, 147, 26, 0.1);
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.2);
}

/* Bundle Button — Special */
.btn-bundle {
  background: var(--gradient-bundle);
  color: #ffffff;
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-10);
  box-shadow: var(--shadow-lg);
}

.btn-bundle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: calc(var(--header-height) + var(--space-8));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(15, 118, 110, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 30%, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated grid lines background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: var(--text-xl); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(51, 65, 85, 0.3);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.trust-item .trust-icon {
  color: var(--color-accent);
  font-size: var(--text-lg);
}

.trust-item .counter {
  font-weight: 700;
  color: var(--color-text);
}

/* ==========================================================================
   Problem / Solution Section
   ========================================================================== */
.problems-section {
  background: var(--color-bg-alt);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

.problem-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}

.problem-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
}

.problem-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  display: block;
}

.problem-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.problem-card p {
  font-size: var(--text-sm);
  margin: 0 auto;
}

.problem-card .solution {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-card-border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}

/* ==========================================================================
   Product Cards / Grid
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.product-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-gradient, var(--gradient-primary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-xl), var(--shadow-glow-primary);
}

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

.product-card-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.product-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.product-card .tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.product-card .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tech-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-card-border);
}

.price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-heading);
}

.price .currency {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  vertical-align: super;
}

.product-trust-line {
  margin-top: var(--space-3);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Featured Product Section
   ========================================================================== */
.featured-section {
  background: var(--color-bg-alt);
}

.featured-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .featured-product {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-12);
  }
}

.featured-info {
  display: flex;
  flex-direction: column;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  padding: var(--space-1) var(--space-3);
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.featured-info h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.featured-info .tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.feature-list li .check {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: auto;
}

.featured-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text-heading);
  margin-right: var(--space-4);
}

/* Code Snippet Preview */
.featured-code {
  display: flex;
  flex-direction: column;
}

.code-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-card-border);
  margin-bottom: 0;
}

.code-tab {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

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

.code-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.code-panel {
  display: none;
  flex: 1;
}

.code-panel.active {
  display: block;
}

.code-block {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--color-card-border);
}

.code-block-filename {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.copy-btn {
  background: none;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.copy-btn.copied {
  border-color: var(--color-success);
  color: var(--color-success);
}

pre {
  padding: var(--space-4);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.7;
  tab-size: 4;
}

pre code {
  font-family: var(--font-mono);
  color: var(--color-text);
}

/* Syntax highlighting classes */
.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }
.code-function { color: #61afef; }
.code-variable { color: #e06c75; }
.code-number { color: #d19a66; }
.code-class { color: #e5c07b; }
.code-decorator { color: #d19a66; }

[data-theme="light"] .code-keyword { color: #8839ef; }
[data-theme="light"] .code-string { color: #40a02b; }
[data-theme="light"] .code-comment { color: #9ca0b0; }
[data-theme="light"] .code-function { color: #1e66f5; }
[data-theme="light"] .code-variable { color: #d20f39; }
[data-theme="light"] .code-number { color: #fe640b; }
[data-theme="light"] .code-class { color: #df8e1d; }
[data-theme="light"] .code-decorator { color: #fe640b; }

/* ==========================================================================
   Bundle Section
   ========================================================================== */
.bundle-section {
  position: relative;
  overflow: hidden;
}

.bundle-card {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .bundle-card { padding: var(--space-12); }
}

/* Animated gradient border */
.bundle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 2px;
  background: linear-gradient(135deg, #6366f1, #4f46e5, #7c3aed, #a855f7, #6366f1);
  background-size: 300% 300%;
  animation: borderGlow 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

.bundle-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
  display: block;
}

.bundle-card h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .bundle-card h2 { font-size: var(--text-4xl); }
}

.bundle-card .tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.bundle-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.bundle-original-price {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.bundle-price {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-text-heading);
}

.bundle-savings {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
}

.bundle-includes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 600px;
  margin: var(--space-8) auto;
  text-align: left;
}

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

.bundle-includes li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.bundle-includes li .check {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.bundle-guarantee {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-primary);
}

.feature-card-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  display: block;
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
}

/* ==========================================================================
   Social Proof / Testimonials
   ========================================================================== */
.testimonials-section {
  background: var(--color-bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

.testimonial-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
}

.testimonial-card blockquote {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-card-border);
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
  background: var(--color-bg);
}

.faq-list {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary-light);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

.faq-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.faq-answer-inner {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-card-border);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

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

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

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 300px;
}

.footer-column h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-column a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-column a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-card-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-4);
}

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   Success / Cancel Page Styles
   ========================================================================== */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  background: var(--gradient-hero);
}

.status-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

@media (min-width: 640px) {
  .status-card { padding: var(--space-12); }
}

.status-icon {
  font-size: 4rem;
  margin-bottom: var(--space-6);
  display: block;
}

.status-card h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.status-card p {
  margin: 0 auto var(--space-6);
  font-size: var(--text-base);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}

.next-steps {
  text-align: left;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
}

.next-steps h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.next-steps ol {
  list-style: decimal;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.next-steps li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.next-steps li strong {
  color: var(--color-text);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Cross-Sell Section
   ========================================================================== */
.cross-sell-section {
  background: var(--color-bg-alt, var(--color-bg));
}

.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4, 1rem);
  margin-top: var(--space-6, 1.5rem);
}

.cross-sell-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6, 1.5rem);
  background: var(--color-card, #1e293b);
  border: 1px solid var(--color-card-border, #334155);
  border-radius: var(--radius-xl, 12px);
  text-decoration: none;
  color: var(--color-text, #f8fafc);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cross-sell-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light, #14b8a6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cross-sell-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3, 0.75rem);
}

.cross-sell-card h3 {
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  margin-bottom: var(--space-2, 0.5rem);
  color: var(--color-text-heading, #f8fafc);
}

.cross-sell-card p {
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-muted, #94a3b8);
  margin-bottom: var(--space-3, 0.75rem);
  line-height: 1.5;
  flex-grow: 1;
}

.cross-sell-meta {
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-primary-light, #14b8a6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@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;
    transform: none;
  }
}
