/* ══════════════════════════════════════════════════════════════
   AuraUp Download Website — CSS
   Design tokens mirror the Flutter app (AppColors + AppTypography)
   ══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables (Design Tokens) ─── */
:root {
  /* Colors */
  --bg: #0E0E0E;
  --surface: #1E1E1E;
  --surface-high: #262626;
  --surface-top: #2C2C2C;

  --primary: #9D9BFF;
  --primary-dim: #7B79E8;
  --primary-dark: #6B69D8;

  --secondary: #50E3C2;
  --secondary-dim: #3BC9A8;

  --tertiary: #F5A623;

  --focus: #9B59B6;
  --discipline: #3498DB;
  --social: #E91E8C;
  --error: #FF6E84;
  --strength: #FF6B6B;
  --android: #3DDC84;

  --text: #FFFFFF;
  --text-muted: #B0B0B0;
  --text-subtle: #767576;

  --border: #484849;
  --border-light: #767576;

  /* Fonts */
  --font-headline: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-label: 'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --gap-2xl: 48px;
  --gap-3xl: 72px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(157, 155, 255, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

/* ─── Typography ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-headline);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  font-family: var(--font-label);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(157, 155, 255, 0.35);
}

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

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(157, 155, 255, 0.08);
}

.btn-icon {
  font-style: normal;
  font-size: 16px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: var(--gap-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-shrink: 0;
}

.logo-icon {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: var(--gap-xl);
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  margin-left: var(--gap-md);
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--bg);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(157, 155, 255, 0.3);
}

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

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--gap-md) var(--gap-lg) var(--gap-lg);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.mobile-menu a {
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

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

.mobile-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
  color: var(--bg) !important;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-weight: 700 !important;
  text-align: center;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(157, 155, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.container.hero-content {
  flex: 1;
  max-width: 580px;
  padding-left: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  background: rgba(157, 155, 255, 0.12);
  border: 1px solid rgba(157, 155, 255, 0.25);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: var(--gap-lg);
}

.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: var(--gap-lg);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--gap-xl);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
  margin-bottom: var(--gap-xl);
}

.hero-platforms {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.platform-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Phone Mockup */
.hero-mockup {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--gap-xl);
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border-radius: 40px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 0 0 8px var(--surface-high),
    0 0 0 10px var(--border),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(157, 155, 255, 0.1);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  z-index: 10;
}

.phone-screen {
  height: 100%;
  padding: 48px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  background: var(--surface-high);
  padding: 12px;
  border-radius: var(--r-md);
}

.mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  flex-shrink: 0;
}

.mock-info {
  flex: 1;
}

.mock-name {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mock-xp-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.mock-xp-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: 2px;
  animation: xpPulse 2s ease-in-out infinite alternate;
}

@keyframes xpPulse {
  from {
    width: 60%;
  }

  to {
    width: 70%;
  }
}

.mock-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

.mock-skill {
  background: var(--surface-high);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.mock-skill:hover {
  transform: scale(1.05);
}

.mock-quest {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  background: var(--surface-high);
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.mock-quest-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.mock-quest-text {
  flex: 1;
}

.mock-quest-title {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mock-quest-desc {
  font-size: 12px;
  font-weight: 500;
}

.mock-quest-xp {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  color: var(--tertiary);
  background: rgba(245, 166, 35, 0.12);
  padding: 3px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* ─── SECTION SHARED ─── */
section {
  padding: var(--gap-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--gap-2xl);
}

.section-badge {
  display: inline-block;
  background: rgba(157, 155, 255, 0.12);
  border: 1px solid rgba(157, 155, 255, 0.25);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--gap-md);
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--gap-md);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ─── FEATURES ─── */
.features {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(30, 30, 30, 0.5) 50%, var(--bg) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-lg);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--gap-xl);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(157, 155, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(157, 155, 255, 0.06);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--gap-lg);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin-bottom: var(--gap-sm);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── SKILLS SECTION ─── */
.skills-section {
  position: relative;
}

.skills-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(80, 227, 194, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap-lg);
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--gap-xl) var(--gap-lg);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--skill-accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover {
  border-color: color-mix(in srgb, var(--skill-accent) 40%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

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

.skill-icon {
  font-size: 40px;
  margin-bottom: var(--gap-md);
  display: block;
}

.skill-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--gap-sm);
  color: var(--skill-accent);
}

.skill-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── DOWNLOADS ─── */
.downloads {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(30, 30, 30, 0.3) 100%);
}

/* Auto-detect banner */
.auto-detect {
  background: linear-gradient(135deg, rgba(157, 155, 255, 0.1), rgba(80, 227, 194, 0.08));
  border: 1px solid rgba(157, 155, 255, 0.25);
  border-radius: var(--r-xl);
  padding: var(--gap-lg) var(--gap-xl);
  margin-bottom: var(--gap-xl);
}

.auto-detect-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.auto-detect-info {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}

.auto-detect-icon {
  font-size: 32px;
}

.auto-detect-label {
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
}

.auto-detect-label strong {
  color: var(--primary);
}

.auto-detect-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--gap-lg);
  margin-bottom: var(--gap-xl);
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--gap-xl);
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: rgba(157, 155, 255, 0.3);
  box-shadow: var(--shadow-card);
}

.download-card-web {
  grid-column: 1 / -1;
  max-width: 500px;
  justify-self: center;
  width: 100%;
  border-color: rgba(157, 155, 255, 0.2);
  background: linear-gradient(135deg, rgba(157, 155, 255, 0.06), var(--surface));
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
}

.platform-icon {
  width: 52px;
  height: 52px;
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-card-header h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.version-tag {
  display: inline-block;
  background: rgba(80, 227, 194, 0.12);
  color: var(--secondary);
  border: 1px solid rgba(80, 227, 194, 0.25);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.download-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--gap-md);
}

.download-formats {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.download-btn {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(157, 155, 255, 0.3);
  filter: brightness(1.05);
}

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

.download-btn-alt {
  background: var(--surface-high);
}

.download-btn-alt:hover {
  background: var(--surface-top);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(157, 155, 255, 0.2);
}

.file-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.file-info {
  flex: 1;
}

.file-name {
  display: block;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.file-size {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.dl-arrow {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.download-note {
  margin-top: var(--gap-md);
  padding: 10px 14px;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--tertiary);
  line-height: 1.5;
}

/* Checksums */
.checksums-section {
  max-width: 700px;
  margin: 0 auto;
}

.checksums-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.checksums-details summary {
  padding: var(--gap-md) var(--gap-lg);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}

.checksums-details summary:hover {
  color: var(--text);
}

.checksums-details[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.checksums-content {
  padding: var(--gap-lg);
}

.checksums-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--gap-md);
}

.checksums-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--gap-lg);
  overflow-x: auto;
}

.checksums-content code {
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 12px;
  color: var(--text-muted);
  white-space: pre;
  line-height: 1.8;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(157, 155, 255, 0.3);
}

.faq-item summary {
  padding: var(--gap-lg) var(--gap-xl);
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: var(--gap-md);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary);
}

.faq-item p {
  padding: 0 var(--gap-xl) var(--gap-lg);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: var(--gap-md);
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding-top: var(--gap-3xl);
  padding-bottom: var(--gap-xl);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-2xl);
  margin-bottom: var(--gap-2xl);
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 240px;
}

.footer-brand .logo-icon {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.footer-brand .logo-text {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: var(--gap-sm);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--gap-sm);
}

.footer-links {
  display: flex;
  gap: var(--gap-2xl);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.footer-col h4 {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--gap-sm);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--gap-lg);
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.fade-in {
  animation: fadeIn 0.5s ease both;
}

/* Staggered animation delays */
.feature-card:nth-child(1) {
  animation-delay: 0.0s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.3s;
}

.feature-card:nth-child(5) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(6) {
  animation-delay: 0.5s;
}

.download-card:nth-child(1) {
  animation-delay: 0.0s;
}

.download-card:nth-child(2) {
  animation-delay: 0.1s;
}

.download-card:nth-child(3) {
  animation-delay: 0.2s;
}

.download-card:nth-child(4) {
  animation-delay: 0.3s;
}

.download-card:nth-child(5) {
  animation-delay: 0.4s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 0 60px;
  }

  .container.hero-content {
    max-width: 600px;
    padding: 0 var(--gap-lg);
  }

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

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

  .hero-subtitle {
    margin: 0 auto var(--gap-xl);
  }

  .hero-mockup {
    margin-top: var(--gap-2xl);
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

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

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

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

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

  .download-card-web {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
  }

  .auto-detect-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--gap-xl);
  }

  .footer-links {
    gap: var(--gap-xl);
  }

  .phone-frame {
    width: 240px;
    height: 480px;
  }
}

@media (max-width: 480px) {
  :root {
    --gap-xl: 24px;
    --gap-2xl: 36px;
    --gap-3xl: 56px;
  }

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

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

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

/* ─── DOWNLOAD PROGRESS (Toast) ─── */
.toast-container {
  position: fixed;
  bottom: var(--gap-xl);
  right: var(--gap-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--gap-md) var(--gap-lg);
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  animation: slideInRight 0.3s ease;
  pointer-events: auto;
}

.toast.success {
  border-color: rgba(80, 227, 194, 0.4);
}

.toast.error {
  border-color: rgba(255, 110, 132, 0.4);
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-text {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.toast.removing {
  animation: slideOutRight 0.3s ease forwards;
}

/* ─── HIGHLIGHTED PLATFORM (auto-detect) ─── */
.download-card.highlighted {
  border-color: rgba(157, 155, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(157, 155, 255, 0.2), var(--shadow-card);
  background: linear-gradient(135deg, rgba(157, 155, 255, 0.05), var(--surface));
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}