/* ============================================
   FufelkaBrowser -- Download Page
   Premium dark theme, Lucide icons, polished UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  /* Surfaces */
  --bg-deep: #09090b;
  --bg-base: #0c0c10;
  --bg-raised: rgba(255, 255, 255, 0.03);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #5c5c72;

  /* Accents */
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --accent-dim: rgba(139, 92, 246, 0.08);

  /* Status */
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.08);
  --green-border: rgba(52, 211, 153, 0.15);
  --green-glow: rgba(52, 211, 153, 0.06);

  --orange: #fb923c;
  --orange-dim: rgba(251, 146, 60, 0.08);
  --orange-border: rgba(251, 146, 60, 0.15);
  --orange-glow: rgba(251, 146, 60, 0.06);

  /* Feature icon colors */
  --icon-purple: rgba(139, 92, 246, 0.12);
  --icon-purple-text: #a78bfa;
  --icon-blue: rgba(59, 130, 246, 0.12);
  --icon-blue-text: #60a5fa;
  --icon-cyan: rgba(34, 211, 238, 0.12);
  --icon-cyan-text: #22d3ee;
  --icon-orange: rgba(251, 146, 60, 0.12);
  --icon-orange-text: #fb923c;
  --icon-red: rgba(248, 113, 113, 0.12);
  --icon-red-text: #f87171;
  --icon-yellow: rgba(250, 204, 21, 0.12);
  --icon-yellow-text: #facc15;
  --icon-pink: rgba(244, 114, 182, 0.12);
  --icon-pink-text: #f472b6;
  --icon-teal: rgba(45, 212, 191, 0.12);
  --icon-teal-text: #2dd4bf;
  --icon-indigo: rgba(129, 140, 248, 0.12);
  --icon-indigo-text: #818cf8;
  --icon-green: rgba(52, 211, 153, 0.12);
  --icon-green-text: #34d399;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(139, 92, 246, 0.15);

  /* Misc */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

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

a:hover {
  color: #fff;
}

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

/* ---- Dot Pattern Background ---- */
.dot-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

/* ---- Container ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ---- Lucide icon base ---- */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--transition-slow);
}

.nav-scrolled {
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.nav-logo:hover {
  color: #fff;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
}

.nav-logo-svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-github {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-github svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 180px 28px 120px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 30%, transparent 65%);
  pointer-events: none;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  top: -50px;
  left: 20%;
  background: rgba(139, 92, 246, 0.08);
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  top: 50px;
  right: 15%;
  background: rgba(59, 130, 246, 0.06);
  animation-delay: -4s;
}

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

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.3px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
}

.hero-badge-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-light);
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 24px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent-light), #c084fc, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 52px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 8px 32px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4), 0 12px 48px rgba(139, 92, 246, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* ---- Platform chips ---- */
.hero-platforms {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.platform-chip:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.platform-icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

/* ============================================
   Section headers
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   Why Section (3 selling points)
   ============================================ */
.why-section {
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  position: relative;

  opacity: 0;
  transform: translateY(24px);
}

.why-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.why-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.why-icon-purple {
  background: var(--icon-purple);
  color: var(--icon-purple-text);
}

.why-icon-blue {
  background: var(--icon-blue);
  color: var(--icon-blue-text);
}

.why-icon-green {
  background: var(--icon-green);
  color: var(--icon-green-text);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateY(24px);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::after {
  opacity: 1;
}

/* ---- Feature Icon Wraps ---- */
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.05);
}

.feature-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.feature-icon-purple { background: var(--icon-purple); color: var(--icon-purple-text); }
.feature-icon-blue { background: var(--icon-blue); color: var(--icon-blue-text); }
.feature-icon-cyan { background: var(--icon-cyan); color: var(--icon-cyan-text); }
.feature-icon-orange { background: var(--icon-orange); color: var(--icon-orange-text); }
.feature-icon-red { background: var(--icon-red); color: var(--icon-red-text); }
.feature-icon-yellow { background: var(--icon-yellow); color: var(--icon-yellow-text); }
.feature-icon-pink { background: var(--icon-pink); color: var(--icon-pink-text); }
.feature-icon-teal { background: var(--icon-teal); color: var(--icon-teal-text); }
.feature-icon-indigo { background: var(--icon-indigo); color: var(--icon-indigo-text); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 650;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   Coming Soon
   ============================================ */
.coming-soon {
  padding: 60px 0 100px;
  position: relative;
  z-index: 1;
}

.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.coming-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.coming-card {
  position: relative;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-slow);

  opacity: 0;
  transform: translateY(24px);
}

.coming-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.coming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(139, 92, 246, 0.2));
  opacity: 0.6;
}

.coming-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.coming-card-inner {
  padding: 32px;
  position: relative;
  z-index: 1;
}

.coming-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.coming-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}

.coming-icon svg {
  width: 18px;
  height: 18px;
}

.coming-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-light);
}

.coming-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.coming-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   Download
   ============================================ */
.download {
  padding: 100px 0 120px;
  position: relative;
  z-index: 1;
}

.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.download-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.download-single {
  display: flex;
  justify-content: center;
}

.download-single .channel-card {
  width: 100%;
  max-width: 560px;
}

.channel-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.channel-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.channel-glow {
  position: absolute;
  top: -80px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity var(--transition-slow);
}

.channel-card:hover .channel-glow {
  opacity: 0.8;
}

.channel-glow-stable {
  background: var(--green-glow);
}

.channel-glow-dev {
  background: var(--orange-glow);
}

.channel-stable {
  border-top: 2px solid rgba(52, 211, 153, 0.3);
}

.channel-dev {
  border-top: 2px solid rgba(251, 146, 60, 0.3);
}

.channel-inner {
  padding: 32px;
  position: relative;
  z-index: 1;
}

.channel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.channel-badge-icon {
  width: 13px;
  height: 13px;
}

.channel-badge-stable {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.channel-badge-dev {
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid var(--orange-border);
}

.channel-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.channel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.channel-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Channel loading animation */
.channel-loading {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 16px 0;
}

.loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Channel meta */
.channel-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Download buttons */
.dl-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
  flex: 1;
  min-width: 0;
}

.dl-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.dl-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.dl-btn-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.4;
  margin-left: auto;
  transition: opacity var(--transition), transform var(--transition);
}

.dl-btn:hover .dl-btn-arrow {
  opacity: 0.8;
  transform: translateY(1px);
}

.dl-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.dl-btn-platform {
  font-size: 0.85rem;
  font-weight: 600;
}

.dl-btn-ext {
  font-size: 0.7rem;
  opacity: 0.6;
  font-weight: 400;
}

.dl-btn-stable {
  background: var(--green-dim);
  border-color: var(--green-border);
}

.dl-btn-stable:hover {
  background: rgba(52, 211, 153, 0.15);
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.1);
}

.dl-btn-dev {
  background: var(--orange-dim);
  border-color: var(--orange-border);
}

.dl-btn-dev:hover {
  background: rgba(251, 146, 60, 0.15);
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.1);
}

/* Changelog */
.changelog {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.changelog-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition);
  list-style: none;
}

.changelog-toggle::-webkit-details-marker {
  display: none;
}

.changelog-icon {
  width: 14px;
  height: 14px;
}

.changelog-toggle:hover {
  color: var(--text-secondary);
}

.changelog-body {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 8px;
}

.changelog-body::-webkit-scrollbar {
  width: 4px;
}

.changelog-body::-webkit-scrollbar-track {
  background: transparent;
}

.changelog-body::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 2px;
}

.no-release {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 0;
}

/* Error banner */
.error-banner {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  margin-bottom: 28px;
  color: #f87171;
  font-size: 0.88rem;
}

.error-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-logo-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-title {
    font-size: 3.2rem;
    letter-spacing: -1.5px;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 140px 20px 80px;
  }

  .hero-title {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

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

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

  .why-card:last-child {
    max-width: none;
  }

  .coming-grid,
  .coming-grid-3 {
    grid-template-columns: 1fr;
  }

  .download-channels {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .container {
    padding: 0 18px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .channel-inner {
    padding: 24px;
  }

  .dl-buttons {
    flex-direction: column;
  }

  .dl-btn {
    justify-content: flex-start;
  }

  .channel-meta {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 1.9rem;
    letter-spacing: -0.8px;
  }

  .hero-platforms {
    gap: 8px;
  }

  .platform-chip {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .nav-github svg {
    display: none;
  }
}

/* ============================================
   Animations
   ============================================ */
/* Staggered reveal for feature cards */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.06s; }
.feature-card:nth-child(3) { transition-delay: 0.12s; }
.feature-card:nth-child(4) { transition-delay: 0.18s; }
.feature-card:nth-child(5) { transition-delay: 0.24s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }
.feature-card:nth-child(7) { transition-delay: 0.36s; }
.feature-card:nth-child(8) { transition-delay: 0.42s; }
.feature-card:nth-child(9) { transition-delay: 0.48s; }

.why-card:nth-child(1) { transition-delay: 0s; }
.why-card:nth-child(2) { transition-delay: 0.1s; }
.why-card:nth-child(3) { transition-delay: 0.2s; }

.coming-card:nth-child(1) { transition-delay: 0s; }
.coming-card:nth-child(2) { transition-delay: 0.1s; }
.coming-card:nth-child(3) { transition-delay: 0.2s; }

[data-animate] {
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   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;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  .hero-gradient-orb {
    animation: none;
  }
}
