/* ============================================
   TEGG Touch — Official Website Styles
   Modern, accessible, responsive design
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --color-primary: #F59E0B;
  --color-primary-dark: #D97706;
  --color-primary-light: #FCD34D;
  --color-primary-glow: rgba(245, 158, 11, 0.25);

  --color-accent: #0284C7;
  --color-accent-dark: #0C4A6E;
  --color-accent-light: #38BDF8;

  /* Semantic Colors */
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;

  /* Backgrounds */
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-tertiary: #1A1A24;
  --bg-card: #16161F;
  --bg-card-hover: #1E1E2A;
  --bg-elevated: #22222E;

  /* Text */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --text-inverse: #0F172A;

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --border-color-active: rgba(245, 158, 11, 0.4);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 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;

  /* Radii */
  --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 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--color-primary-glow);

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

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  overscroll-behavior: none;
}
html {
  overscroll-behavior: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-light); }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

::selection {
  background: var(--color-primary);
  color: var(--text-inverse);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--text-inverse);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-md);
}

*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #555; border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #777; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-lg);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-primary);
  font-weight: 800;
  font-size: var(--text-xl);
  text-decoration: none;
}
.nav-logo:hover { color: var(--color-primary-light); }
.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.logo-text { letter-spacing: -0.01em; }
.logo-eng {
  font-weight: 600;
  font-size: 0.85em;
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

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

/* Language Toggle */
.lang-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}
.lang-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hamburger { top: 50%; transform: translate(-50%, -50%); }
.hamburger::before { content: ''; top: -7px; left: 0; }
.hamburger::after { content: ''; top: 7px; left: 0; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm { padding: 0.5rem 1.125rem; font-size: var(--text-sm); }
.btn-md { padding: 0.625rem 1.5rem; font-size: var(--text-sm); }
.btn-lg { padding: 0.875rem 2rem; font-size: var(--text-base); }
.btn-xl { padding: 1.125rem 2.5rem; font-size: var(--text-lg); }

.btn-primary {
  background: var(--color-primary);
  color: var(--text-inverse);
  box-shadow: 0 0 0 0 var(--color-primary-glow);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color-hover);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -100px;
  opacity: 0.15;
}
.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  bottom: -150px;
  left: -100px;
  opacity: 0.1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-xl);
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}
.hero-highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.stat {
  text-align: center;
}
.stat-value {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Visual / Demo Window */
.hero-visual {
  margin-top: var(--space-4xl);
  display: flex;
  justify-content: center;
  padding: 0 var(--space-xl);
}

.hero-window {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color-hover);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(245, 158, 11, 0.08);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}
.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.window-dot.red { background: #FF5F57; }
.window-dot.yellow { background: #FEBC2E; }
.window-dot.green { background: #28C840; }
.window-title {
  flex: 1;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 500;
}
.window-content {
  background: var(--bg-secondary);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

/* Demo Overlay */
.demo-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(30, 60, 90, 0.3), transparent 60%),
    linear-gradient(135deg, var(--bg-secondary) 0%, #0d1117 100%);
}

.demo-button {
  position: absolute;
  background: rgba(17, 17, 17, 0.85);
  border: 1.5px solid rgba(85, 85, 85, 0.6);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--text-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all var(--transition-base);
}
.demo-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Position demo buttons */
.demo-btn-1 { width: 70px; height: 60px; top: 20%; left: 15%; }
.demo-btn-2 { width: 70px; height: 60px; top: 42%; left: 8%; }
.demo-btn-3 { width: 70px; height: 60px; top: 42%; left: 22%; }
.demo-btn-4 { width: 70px; height: 60px; top: 64%; left: 15%; }
.demo-btn-5 { width: 100px; height: 50px; bottom: 12%; left: 5%; font-size: var(--text-sm); }
.demo-btn-6 { width: 55px; height: 50px; top: 25%; right: 10%; }

.demo-btn-1:hover,
.demo-btn-3:hover { border-color: var(--color-primary); box-shadow: 0 0 15px var(--color-primary-glow); }

/* Demo Wheel */
.demo-wheel {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(85, 85, 85, 0.5);
  background: rgba(17, 17, 17, 0.7);
}
.wheel-sector {
  position: absolute;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.ws-n { top: 8px; left: 50%; transform: translateX(-50%); }
.ws-s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.ws-e { right: 8px; top: 50%; transform: translateY(-50%); }
.ws-w { left: 8px; top: 50%; transform: translateY(-50%); }
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.6;
}

/* Demo Toolbar */
.demo-toolbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 16px;
  background: rgba(30, 30, 30, 0.95);
  border-top: 1px solid var(--border-color);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.tb-active {
  color: var(--color-primary) !important;
  font-weight: 600;
}
.tb-run {
  margin-left: auto;
  background: var(--color-primary);
  color: var(--text-inverse) !important;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: var(--space-5xl) 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}
.section-eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.section-subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.7;
}
.section-desc {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.section-problem {
  background: var(--bg-secondary);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.problem-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.problem-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.problem-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.problem-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.problem-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.problem-card-text strong {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}
.problem-card-text span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}
.feature-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-card-highlight {
  border-color: var(--border-color-active);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.05) 100%);
}
.feature-card-highlight::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}
.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.feature-tags li {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.section-how {
  background: var(--bg-secondary);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-lg);
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--text-inverse);
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-glow);
}

.step-content h4 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.step-content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  margin-top: 32px;
  flex-shrink: 0;
}

/* ============================================
   VOICE CONTROL SECTION
   ============================================ */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.voice-demo {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  overflow: hidden;
}

/* Waveform Animation */
.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 48px;
  margin-bottom: var(--space-xl);
}
.voice-waveform span {
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: waveform 1.2s ease-in-out infinite;
}
.voice-waveform span:nth-child(1)  { height: 15px; animation-delay: 0s; }
.voice-waveform span:nth-child(2)  { height: 25px; animation-delay: 0.1s; }
.voice-waveform span:nth-child(3)  { height: 40px; animation-delay: 0.15s; }
.voice-waveform span:nth-child(4)  { height: 30px; animation-delay: 0.2s; }
.voice-waveform span:nth-child(5)  { height: 45px; animation-delay: 0.25s; }
.voice-waveform span:nth-child(6)  { height: 35px; animation-delay: 0.3s; }
.voice-waveform span:nth-child(7)  { height: 48px; animation-delay: 0.35s; }
.voice-waveform span:nth-child(8)  { height: 38px; animation-delay: 0.4s; }
.voice-waveform span:nth-child(9)  { height: 42px; animation-delay: 0.45s; }
.voice-waveform span:nth-child(10) { height: 28px; animation-delay: 0.5s; }
.voice-waveform span:nth-child(11) { height: 35px; animation-delay: 0.55s; }
.voice-waveform span:nth-child(12) { height: 45px; animation-delay: 0.6s; }
.voice-waveform span:nth-child(13) { height: 30px; animation-delay: 0.65s; }
.voice-waveform span:nth-child(14) { height: 20px; animation-delay: 0.7s; }
.voice-waveform span:nth-child(15) { height: 12px; animation-delay: 0.75s; }

@keyframes waveform {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Voice Commands List */
.voice-commands {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.voice-cmd {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.cmd-text {
  font-weight: 600;
  color: var(--color-primary);
  min-width: 80px;
  font-family: var(--font-mono);
}
.cmd-arrow {
  color: var(--text-tertiary);
}
.cmd-key {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
}
.cmd-type {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Voice Features List */
.voice-features {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.voice-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.voice-features li strong {
  color: var(--text-primary);
}
.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 2px;
}

/* ============================================
   ACCESSIBILITY SECTION
   ============================================ */
.section-accessibility {
  background: var(--bg-secondary);
}
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.a11y-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.a11y-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.a11y-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}
.a11y-card h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.a11y-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.compare-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}
.compare-table th,
.compare-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.compare-table thead th {
  background: var(--bg-tertiary);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.compare-table thead th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}
.compare-table thead th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:hover td {
  background: var(--bg-card-hover);
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.compare-highlight {
  background: rgba(245, 158, 11, 0.06) !important;
  color: var(--color-primary) !important;
  font-weight: 600 !important;
}
.compare-table thead .compare-highlight {
  color: var(--color-primary) !important;
  font-size: var(--text-base) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* ============================================
   TECH SECTION
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.tech-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.tech-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
}
.tech-card h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
  margin-bottom: var(--space-sm);
}
.tech-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

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

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}
.faq-item:hover {
  border-color: var(--border-color-hover);
}
.faq-item[open] {
  border-color: var(--border-color-active);
}

.faq-question {
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--text-tertiary);
  transition: transform var(--transition-base);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: var(--space-md);
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.8;
  animation: faq-open 0.3s ease;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.cta-desc {
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-2xl);
}
.cta-info {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: var(--text-sm);
}
.cta-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.cta-links a:hover { color: var(--color-primary); }
.cta-divider { color: var(--text-tertiary); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-brand .logo-icon { width: 32px; height: 32px; }
.footer-brand .logo-text {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
}
.footer-brand .logo-eng {
  font-size: 0.85em;
}
.footer-tagline {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links-group h5 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}
.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-links-group a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.footer-links-group a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.footer-a11y {
  margin-top: var(--space-xs);
  font-size: var(--text-xs) !important;
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fade-right"] {
  transform: translateX(-30px);
}
[data-animate="fade-left"] {
  transform: translateX(30px);
}
[data-animate].visible {
  opacity: 1;
  transform: translate(0, 0);
}

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

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .a11y-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }
  :root {
    --nav-height: 64px;
    --space-4xl: 4rem;
    --space-5xl: 5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Mobile Navigation */
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
  }
  .nav-links a {
    font-size: var(--text-lg);
    padding: var(--space-sm) 0;
    width: 100%;
  }
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-actions .btn {
    justify-content: center;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero-subtitle {
    font-size: var(--text-base);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
  .download-btn-group {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .hero-stats {
    gap: var(--space-md);
  }
  .stat-value {
    font-size: var(--text-2xl);
  }
  .stat-divider {
    height: 30px;
  }
  .hero-visual {
    padding: 0;
  }

  /* Demo */
  .demo-button { font-size: var(--text-sm); }
  .demo-btn-1, .demo-btn-2, .demo-btn-3, .demo-btn-4 { width: 50px; height: 44px; }
  .demo-btn-5 { width: 72px; height: 38px; font-size: var(--text-xs) !important; }
  .demo-btn-6 { width: 40px; height: 38px; }
  .demo-label { font-size: 0.45rem; }
  .demo-wheel { width: 100px; height: 100px; }
  .demo-toolbar { font-size: 0.6rem; gap: var(--space-sm); padding: 8px 10px; }

  /* Problem */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: var(--space-xl);
  }

  /* Steps */
  .steps-grid {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
  }
  .step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    margin: 0;
  }
  .step {
    padding: 0;
  }

  /* Voice */
  .voice-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Accessibility */
  .a11y-grid {
    grid-template-columns: 1fr;
  }

  /* Comparison */
  .compare-table {
    font-size: var(--text-xs);
  }
  .compare-table th,
  .compare-table td {
    padding: var(--space-sm) var(--space-md);
  }

  /* Tech */
  .tech-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq-question {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
  }
  .faq-answer {
    padding: 0 var(--space-lg) var(--space-md);
  }

  /* CTA */
  .cta-title {
    font-size: var(--text-3xl);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  .hero-badge {
    font-size: var(--text-xs);
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Language-dependent Visibility ---------- */
html[data-lang="en"] .lang-zh-only { display: none !important; }
html[data-lang="zh"] .lang-en-only { display: none !important; }

/* ---------- Hero Platform Hint ---------- */
.hero-platform-hint {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

/* ---------- Hero Video (Bilibili embed) ---------- */
.hero-video {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color-hover);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(245, 158, 11, 0.08);
}
.hero-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Chinese Download Button Group ---------- */
.download-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  max-width: 640px;
}
.download-btn-group .btn {
  flex: 1;
  min-width: 0;
}
.btn-baidu {
  background: #306CFF;
  color: #fff;
}
.btn-baidu:hover {
  background: #2558DD;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(48, 108, 255, 0.3);
}
.btn-quark {
  background: #6F42FF;
  color: #fff;
}
.btn-quark:hover {
  background: #5A35D4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(111, 66, 255, 0.3);
}

/* ---------- Print ---------- */
@media print {
  .navbar, .hero-bg, .hero-visual, .voice-waveform,
  .cta-actions, .nav-actions, .footer { display: none; }
  body { color: #000; background: #fff; }
  .section { padding: 2rem 0; }
  .hero { min-height: auto; padding-top: 2rem; }
}
