/* ============================================================
   SubStop — State of the Art Website Styles
   Inspired by: Bruno Simon, Messenger (Awwwards SOTY), 
   Lando Norris, Active Theory, Immersive Garden, Obys, 
   Resn, Renaissance Edition, Species in Pieces, Carles Faus
   ============================================================ */

/* CSS Custom Properties — Dual Theme System */
:root {
  color-scheme: light dark;

  /* Light Theme */
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-surface: #f3f4f6;
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;

  /* Brand Colors */
  --accent: #FF4757;
  --accent-light: #ff6b7a;
  --accent-dark: #e03e4c;
  --success: #2ED573;
  --success-dim: #26b861;
  --warning: #FFA502;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #FF4757 0%, #ff6b7a 50%, #ffa502 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(255,71,87,0.08) 0%, transparent 100%);
  --gradient-mesh-1: #FF4757;
  --gradient-mesh-2: #7bed9f;
  --gradient-mesh-3: #70a1ff;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --text-3xl: clamp(2.5rem, 2rem + 3.5vw, 6rem);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-surface: #1a1a1a;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --border: #262626;
  --border-strong: #404040;
  --gradient-mesh-1: #FF4757;
  --gradient-mesh-2: #2ed573;
  --gradient-mesh-3: #1e90ff;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: var(--accent);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Ambient Canvas */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--duration-normal);
}

.navbar.scrolled {
  background: rgba(var(--bg-rgb, 10,10,10), 0.7);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.logo:hover {
  transform: scale(1.03);
}

.logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  transition: color var(--duration-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--duration-normal) var(--ease-out-expo);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: rotate(15deg);
}

.theme-toggle .sun,
.theme-toggle .moon {
  position: absolute;
  transition: all var(--duration-normal) var(--ease-spring);
}

[data-theme="dark"] .sun {
  transform: translateY(24px) rotate(90deg);
  opacity: 0;
}

[data-theme="dark"] .moon {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

[data-theme="light"] .sun {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

[data-theme="light"] .moon {
  transform: translateY(-24px) rotate(-90deg);
  opacity: 0;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s var(--ease-out-expo) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s 0.2s var(--ease-out-expo) both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}

.pulse-dot.red {
  background: var(--accent);
}

.pulse-dot.red::after {
  background: var(--accent);
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.title-line {
  display: block;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }

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

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  animation: fadeInUp 0.8s 0.6s var(--ease-out-expo) both;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s 0.7s var(--ease-out-expo) both;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  animation: fadeInUp 0.8s 0.8s var(--ease-out-expo) both;
}

.stat-number {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Hero Visual — Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s 0.4s var(--ease-out-expo) both;
  perspective: 1200px;
}

.phone-mockup {
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 
    0 50px 100px -20px rgba(0,0,0,0.5),
    0 30px 60px -30px rgba(255,71,87,0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-out-expo);
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-mockup:hover {
  transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #121212;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 8px;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.phone-time {
  font-weight: 500;
  opacity: 0.7;
}

.phone-list {
  flex: 1;
  padding: 0 12px;
  overflow-y: auto;
}

.phone-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  animation: slideInRight 0.6s var(--ease-out-expo) both;
}

.phone-sub:nth-child(1) { animation-delay: 0.8s; }
.phone-sub:nth-child(2) { animation-delay: 0.95s; }
.phone-sub:nth-child(3) { animation-delay: 1.1s; }
.phone-sub:nth-child(4) { animation-delay: 1.25s; }

.phone-sub.highlight {
  border-color: rgba(255, 71, 87, 0.3);
  background: rgba(255, 71, 87, 0.06);
}

.phone-sub-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.phone-sub-info {
  flex: 1;
  min-width: 0;
}

.phone-sub-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.phone-sub-price {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.phone-sub-alert {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 71, 87, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.phone-sub-alert.soon {
  color: var(--warning);
  background: rgba(255, 165, 2, 0.15);
}

.phone-sub-alert.danger {
  color: var(--accent);
  background: rgba(255, 71, 87, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.phone-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.phone-total-year {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.card-savings {
  top: 20%;
  right: -20px;
  animation: floatCard 5s ease-in-out infinite;
}

.card-alert {
  bottom: 25%;
  left: -40px;
  animation: floatCard 5s ease-in-out infinite 1s;
}

.floating-card strong {
  color: var(--success);
  font-weight: 700;
}

/* ============================================================
   TICKER SECTION
   ============================================================ */
.ticker-section {
  position: relative;
  z-index: 1;
  padding: var(--space-lg) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: var(--text-base);
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-user {
  color: var(--accent);
  font-weight: 600;
}

.ticker-amount {
  color: var(--success);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-md);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

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

/* ============================================================
   BENTO GRID FEATURES
   ============================================================ */
.features {
  max-width: 1280px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.bento-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,71,87,0.06), transparent 40%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}

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

.bento-card:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

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

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

.bento-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  position: relative;
}

.bento-large .bento-visual {
  height: 220px;
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Feature Visuals */
.tracker-bar {
  width: 100%;
  max-width: 280px;
  height: 12px;
  background: var(--bg-surface);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.tracker-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warning));
  border-radius: 100px;
  transition: width 1.5s var(--ease-out-expo);
}

.tracker-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.tracker-current {
  color: var(--accent);
  font-weight: 700;
}

.bell-ring {
  position: relative;
}

.ring-wave {
  position: absolute;
  inset: -20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: ringWave 2s ease-out infinite;
}

.ring-wave:nth-child(2) {
  animation-delay: 0.5s;
}

.cancel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cancel-item {
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.cancel-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.dark-toggle-demo {
  display: flex;
  gap: 16px;
}

.dt-screen {
  width: 80px;
  height: 100px;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--duration-normal);
}

.dt-light {
  background: #f5f5f5;
  border: 2px solid #e5e5e5;
}

.dt-dark {
  background: #1a1a1a;
  border: 2px solid #333;
}

.dt-dark.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255,71,87,0.2);
}

.dt-content {
  height: 8px;
  border-radius: 4px;
}

.dt-light .dt-content {
  background: #ddd;
}

.dt-dark .dt-content {
  background: #333;
}

.privacy-lock {
  animation: lockPulse 3s ease-in-out infinite;
}

.price-tags {
  display: flex;
  gap: 12px;
}

.p-tag {
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  animation: tagPop 0.5s var(--ease-spring) both;
}

.p-tag:nth-child(1) { animation-delay: 0.1s; }
.p-tag:nth-child(2) { animation-delay: 0.2s; }
.p-tag:nth-child(3) { animation-delay: 0.3s; }

/* ============================================================
   INTERACTIVE DEMO
   ============================================================ */
.demo {
  max-width: 1000px;
  margin: 0 auto;
}

.demo-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--space-lg);
}

.demo-input-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.input-group {
  display: flex;
  gap: 0.75rem;
}

.input-group input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: all var(--duration-fast);
}

.input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.demo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-chip {
  padding: 0.5rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
  font-family: var(--font-sans);
}

.preset-chip:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.demo-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-empty {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.demo-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  animation: slideInRight 0.4s var(--ease-out-expo);
}

.demo-sub-info {
  display: flex;
  flex-direction: column;
}

.demo-sub-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.demo-sub-price {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.demo-sub-delete {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.demo-sub-delete:hover {
  background: var(--accent);
  color: white;
}

.demo-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.result-card {
  padding: var(--space-md);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--duration-fast);
}

.result-card.highlight {
  border-color: var(--accent);
  background: rgba(255, 71, 87, 0.04);
}

.result-card.danger {
  border-color: var(--accent);
  background: rgba(255, 71, 87, 0.06);
}

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

.result-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.result-card.danger .result-value {
  color: var(--accent);
}

.savings-insight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-sm);
  background: rgba(46, 213, 115, 0.08);
  border: 1px solid rgba(46, 213, 115, 0.2);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--success-dim);
  margin-top: auto;
}

/* ============================================================
   COMMUNITY / TESTIMONIALS
   ============================================================ */
.community {
  max-width: 1280px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.testimonial-card.featured {
  border-color: rgba(255, 71, 87, 0.3);
  background: linear-gradient(135deg, var(--bg-elevated), rgba(255,71,87,0.03));
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonial-meta {
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified {
  color: var(--success);
  font-size: 12px;
}

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

.testimonial-karma {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--success);
}

.testimonial-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-saved {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--success);
  font-family: var(--font-mono);
}

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

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison-table td {
  color: var(--text-secondary);
}

.substop-col {
  background: rgba(255, 71, 87, 0.04);
  color: var(--text-primary);
  font-weight: 600;
}

.check {
  color: var(--success);
  font-weight: 700;
  font-size: 1.125rem;
}

.cross {
  color: var(--text-muted);
  opacity: 0.5;
}

.comparison-table tbody tr {
  transition: background var(--duration-fast);
}

.comparison-table tbody tr:hover {
  background: var(--bg-surface);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--duration-normal);
}

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

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: var(--text-base);
  transition: color var(--duration-fast);
}

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

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-spring);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--text-secondary);
  line-height: 1.7;
  animation: faqReveal 0.4s var(--ease-out-expo);
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  max-width: 1000px;
  margin: 0 auto;
}

.download-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,71,87,0.1), transparent 70%);
  pointer-events: none;
}

.download-content h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.download-content p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.download-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all var(--duration-fast);
}

.store-badge:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.store-badge small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.store-badge strong {
  font-weight: 700;
  font-size: 1rem;
}

.download-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

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

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 0.375rem 0;
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-2deg); }
  50% { transform: translateY(-15px) rotateY(2deg); }
}

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

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ringWave {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes lockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes tagPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 260px;
    height: 540px;
  }

  .floating-card {
    display: none;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-container {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-visual {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
    backdrop-filter: blur(20px);
  }

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

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-wide {
    grid-column: span 1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table-wrapper {
    font-size: 0.8125rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .download-buttons {
    justify-content: center;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none;
  }
}
