/*
Theme Name: MeedTV
Theme URI: https://meedtv.com
Author: MeedTV
Description: Premium streaming platform theme with HLS player, AI chat, and conversion-optimized design.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: meedtv
Tags: streaming, entertainment, dark, custom-logo, custom-menu
*/

/* ========================================
   DESIGN SYSTEM - CSS VARIABLES
   ======================================== */

:root {
  /* Colors */
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1520;
  --bg-surface: #151c28;
  --bg-elevated: #1a2332;
  --bg-overlay: rgba(10, 14, 23, 0.95);
  
  --accent: #e91e63;
  --accent-secondary: #9c27b0;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  --accent-glow: 0 0 30px rgba(233, 30, 99, 0.3);
  
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Spacing (8px base) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Sizes */
  --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: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  
  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 350ms ease;
  
  /* Layout */
  --header-height: 72px;
  --container: 1200px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

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

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

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

h1 { font-size: clamp(2rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 4vw, var(--text-4xl)); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

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

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

/* ========================================
   LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

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

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

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

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow), 0 0 20px rgba(233, 30, 99, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(233, 30, 99, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  justify-self: start;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius);
  color: white;
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: var(--space-1);
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-cta {
  display: flex;
  align-items: center;
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========================================
   AUTHORITY BAR
   ======================================== */

.authority-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-2) 0;
  margin-top: var(--header-height);
}

.authority-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.authority-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.authority-item svg {
  color: var(--success);
}

.authority-item strong {
  color: var(--text-primary);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  padding: var(--space-6) 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(233, 30, 99, 0.12), transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(156, 39, 176, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.5rem 1rem;
  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(--success);
  margin-bottom: var(--space-3);
}

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

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

.hero h1 {
  margin-bottom: var(--space-3);
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.trust-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.trust-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-mockup {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/10;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.device-header {
  height: 28px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  padding: 0 var(--space-2);
  gap: 6px;
}

.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.device-dot:nth-child(1) { background: #ef4444; }
.device-dot:nth-child(2) { background: #f59e0b; }
.device-dot:nth-child(3) { background: #10b981; }

.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  height: calc(100% - 28px);
}

.device-channel {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
  animation: channelPulse 3s ease-in-out infinite;
}

@keyframes channelPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Floating Stats */
.floating-stats {
  position: absolute;
  bottom: -16px;
  right: -16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: floatIn 0.6s ease-out backwards;
}

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

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

.stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius);
  color: white;
}

.stat-value {
  font-size: var(--text-lg);
  font-weight: 700;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ========================================
   LIVE DEMO SECTION
   ======================================== */

.demo-section {
  padding: var(--space-7) 0;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--error);
  margin-bottom: var(--space-2);
}

.live-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.player-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.player-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-container video,
.player-container .video-js {
  width: 100%;
  height: 100%;
}

.player-live-indicator {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  background: rgba(239, 68, 68, 0.9);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.player-live-indicator span {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 5;
  transition: opacity var(--transition);
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-play-btn {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(233, 30, 99, 0.4);
  transition: all var(--transition);
}

.player-play-btn:hover {
  transform: scale(1.1);
}

.player-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  fill: white;
}

.player-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

.player-spinner.active {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Demo Info */
.demo-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 30, 99, 0.1);
  border-radius: var(--radius);
  color: var(--accent);
}

.info-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.info-value {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ========================================
   WHY NO BUFFER
   ======================================== */

.why-section {
  padding: var(--space-7) 0;
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-card {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(233, 30, 99, 0.2);
  background: rgba(233, 30, 99, 0.03);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius);
  color: white;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: var(--text-base);
  margin-bottom: 0.25rem;
}

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

/* Speed Chart */
.speed-chart {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.speed-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.speed-legend {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
}

.speed-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.speed-dot.good { background: var(--success); }
.speed-dot.bad { background: var(--error); }

.speed-bars {
  height: 160px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: var(--space-2);
}

.speed-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  animation: barGrow 1.5s ease-out forwards;
  transform-origin: bottom;
}

.speed-bar.good {
  background: linear-gradient(to top, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.7));
}

.speed-bar.bad {
  background: linear-gradient(to top, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.6));
  animation-delay: 0.5s;
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Activation Timer */
.activation-timer {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timer-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.timer-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
}

.timer-unit {
  padding: var(--space-2);
  background: var(--bg-surface);
  border-radius: var(--radius);
  min-width: 50px;
}

.timer-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.timer-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
}

.timer-sep {
  font-size: var(--text-2xl);
  color: var(--text-muted);
}

/* ========================================
   PRICING
   ======================================== */

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(233, 30, 99, 0.05), var(--bg-surface));
  box-shadow: var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1rem;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-3);
}

.pricing-name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.pricing-currency {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-amount {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.pricing-per-day {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.pricing-per-day strong {
  color: var(--success);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.pricing-feature svg {
  color: var(--success);
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.compare-table-wrapper {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: var(--space-3);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-table th {
  background: var(--bg-elevated);
  font-size: var(--text-sm);
  font-weight: 600;
}

.compare-table th:first-child {
  width: 40%;
}

.compare-table th.highlight {
  color: var(--accent);
  text-align: center;
}

.compare-table th.muted {
  color: var(--text-muted);
  text-align: center;
}

.compare-table td.highlight,
.compare-table td.muted {
  text-align: center;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.compare-icon.check {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.compare-icon.cross {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.compare-icon.partial {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* ========================================
   FAQ
   ======================================== */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  cursor: pointer;
  font-weight: 600;
}

.faq-question svg {
  transition: transform var(--transition);
  color: var(--text-muted);
}

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

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

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

.faq-answer p {
  padding: 0 var(--space-3) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-6) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-brand p {
  font-size: var(--text-sm);
  margin: var(--space-2) 0 var(--space-3);
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
}

.footer-column h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-3);
}

/* ========================================
   CHAT WIDGET
   ======================================== */

.chat-widget {
  position: fixed;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 999;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(233, 30, 99, 0.35);
  color: white;
  transition: all var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-window {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  right: 0;
  width: 360px;
  height: 480px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  font-size: var(--text-sm);
  font-weight: 600;
}

.chat-info h4 {
  font-size: var(--text-sm);
}

.chat-info span {
  font-size: var(--text-xs);
  color: var(--success);
}

.chat-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all var(--transition);
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.chat-messages {
  flex: 1;
  padding: var(--space-3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.chat-message {
  max-width: 85%;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.chat-message.bot {
  background: var(--bg-elevated);
  align-self: flex-start;
}

.chat-message.user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
}

.chat-input-area {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
  flex: 1;
  padding: var(--space-2);
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

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

.chat-send {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius);
  color: white;
}

/* ========================================
   STICKY MOBILE CTA
   ======================================== */

.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2);
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 998;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .trust-stack {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .floating-stats {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: var(--space-3);
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .pricing-card.featured {
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    grid-column: span 2;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-cta .btn {
    display: none;
  }
  
  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    padding: var(--space-4);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 999;
    overflow-y: auto;
  }
  
  .mobile-nav.active {
    transform: translateX(0);
  }
  
  .mobile-nav a {
    display: block;
    padding: var(--space-3);
    font-size: var(--text-lg);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .authority-bar-inner {
    gap: var(--space-3);
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
  
  .sticky-mobile-cta {
    display: block;
  }
  
  .chat-widget {
    bottom: calc(var(--space-3) + 60px);
  }
  
  .chat-window {
    width: calc(100vw - var(--space-3) * 2);
    right: calc(-50vw + 50% + var(--space-3));
  }
  
  .demo-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-2);
  }
  
  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  
  .floating-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-card {
    width: 100%;
    max-width: 200px;
  }
}

/* ========================================
   UTILITIES
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
