/* ═══════════════════════════════════════════
   A7Box Website — Tactical Noir Theme
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg-base: #08090c;
  --bg-raised: #0e1015;
  --bg-surface: #14161d;
  --bg-elevated: #1a1d26;

  --accent: #FF4D4F;
  --accent-hover: #FF7875;
  --accent-active: #D9363E;
  --accent-glow: rgba(255, 77, 79, 0.12);
  --accent-glow-lg: rgba(255, 77, 79, 0.06);

  --text-primary: #e8e4de;
  --text-secondary: #8a8680;
  --text-muted: #56524d;
  --text-accent: #FF7875;

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 77, 79, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-body: 'Sora', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --shadow-glow: 0 0 40px rgba(255, 77, 79, 0.08);
  --shadow-card: 0 2px 24px rgba(0, 0, 0, 0.4);
}

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

/* Skip link for screen readers & keyboard users */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--text-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.75em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-accent);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

/* Background layer — opacity transition avoids backdrop-filter GPU flash */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.88);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

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

.nav.scrolled::before {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-glow) !important;
  color: var(--text-accent) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: all 0.2s;
}

.lang-toggle:hover {
  border-color: var(--border-accent);
}

.lang-opt {
  padding: 3px 10px;
  border-radius: 100px;
  color: var(--text-muted);
  transition: all 0.25s;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lang-opt.active {
  background: var(--accent-glow);
  color: var(--text-accent);
}

.lang-sep {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 0.65rem;
  margin: 0 2px;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow-lg) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.text-accent {
  background: linear-gradient(135deg, #FF4D4F 0%, #FF7875 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.platform-icons { display: flex; gap: 8px; }

.platform-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 77, 79, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

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

.btn-outline:hover {
  background: var(--bg-surface);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

/* ── App Screenshot (cropped focus) ── */
.hero-visual {
  /* no perspective — flat, crisp display */
}

.app-screenshot-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    var(--shadow-card),
    var(--shadow-glow),
    0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
}

.app-screenshot-wrapper:hover {
  transform: scale(1.02);
  border-color: rgba(255, 77, 79, 0.3);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 0 30px var(--accent-glow),
    0 0 0 1px rgba(255, 77, 79, 0.15);
}

/* Hover glow overlay */
.app-screenshot-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(255, 77, 79, 0.12),
    transparent 40%,
    transparent 60%,
    rgba(255, 77, 79, 0.06)
  );
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.app-screenshot-wrapper:hover::before {
  opacity: 1;
}

/* Bottom fade — suggests more content below */
.app-screenshot-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent, rgba(8, 9, 12, 0.85));
  z-index: 2;
  pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  transition: opacity 0.4s ease, transform 0.5s ease-out;
}

.app-screenshot-wrapper:hover .app-screenshot {
  transform: scale(1.2);
}

.app-screenshot[data-lang="zh"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* When lang is zh, show zh screenshot */
.app-screenshot-wrapper.lang-zh .app-screenshot[data-lang="en"] {
  opacity: 0;
}
.app-screenshot-wrapper.lang-zh .app-screenshot[data-lang="zh"] {
  opacity: 1;
}

/* ── Privacy Pledge ── */
.privacy-pledge {
  padding: 80px 0;
  position: relative;
  background: var(--bg-raised);
}

.pledge-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

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

.pledge-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pledge-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.pledge-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

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

.pledge-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.pledge-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
}

.pledge-check { color: #22c55e; margin-right: 4px; }

.pledge-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pledge-quote strong { color: var(--text-accent); font-style: normal; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

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

/* ── Features ── */
.features {
  padding: 100px 0;
}

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

.feature-card {
  padding: 32px 28px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ── Tools ── */
.tools {
  padding: 100px 0;
  background: var(--bg-raised);
}

.tool-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tool-category h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.tool-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tool-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

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

.tool-card:hover .tool-icon {
  color: var(--accent);
  background: var(--accent-glow);
}

.tool-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.tool-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Comparison ── */
.compare {
  padding: 100px 0;
}

.compare-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 700px;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--bg-surface);
}

.compare-table td:first-child,
.compare-table th:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
}

.compare-highlight {
  color: var(--text-accent) !important;
  background: var(--accent-glow) !important;
}

.compare-table td.compare-highlight {
  background: rgba(255, 77, 79, 0.04);
  color: var(--accent);
  font-weight: 600;
}

.compare-table .check { color: #22c55e; }
.compare-table .cross { color: var(--text-muted); opacity: 0.4; }

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

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.compare-table tr:hover td.compare-highlight {
  background: rgba(255, 77, 79, 0.06);
}

/* ── Story ── */
.story {
  padding: 100px 0;
  background: var(--bg-raised);
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.story-emblem {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--border-accent);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.emblem-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

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

.emblem-letter {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF4D4F 0%, #FF7875 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-values {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 280px;
  margin: 0 auto;
}

.value-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.value-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.value-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, #FF4D4F, #FF7875);
  border-radius: 4px;
  transition: width 1.5s ease;
}

.story-content { padding: 20px 0; }

.story-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.story-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.story-content strong { color: var(--text-primary); }

.story-slogan {
  font-size: 1.05rem;
  color: var(--text-accent);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-top: 24px;
}

.story-slogan em { font-style: italic; color: var(--text-primary); }

/* ── Tech Stack ── */
.tech-stack {
  padding: 80px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tech-item {
  padding: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.25s;
  position: relative;
}

.tech-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tech-color, var(--accent));
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 0 8px var(--tech-color, var(--accent));
  transition: box-shadow 0.25s;
}

.tech-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tech-item:hover::before {
  box-shadow: 0 0 16px var(--tech-color, var(--accent));
}

.tech-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.tech-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Social Proof ── */
.social-proof {
  padding: 24px 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.proof-item svg { flex-shrink: 0; }

.proof-sep {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .proof-sep { display: none; }
  .social-proof-inner { flex-direction: column; gap: 10px; }
}

/* ── Download CTA ── */
.download {
  padding: 100px 0;
  position: relative;
  background: var(--bg-raised);
}

.download-card {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow-lg) 0%, transparent 70%);
  pointer-events: none;
}

.download-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
}

.download-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  position: relative;
}

.download-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  position: relative;
}

.download-btn.is-current-os {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 0 20px var(--accent-glow);
}

.download-btn .btn-meta {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 2px;
  font-weight: 400;
}

.download-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}

.format-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: default;
}

a.format-tag:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-glow);
  cursor: pointer;
}

.download-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Hero Animations ── */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }
.hero-content > *:nth-child(5) { animation-delay: 0.65s; }

.hero-visual {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

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

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .story-layout { grid-template-columns: 1fr; }
  .story-visual { order: -1; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8, 9, 12, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { padding: 40px 20px; }
  .download-platforms { flex-direction: column; align-items: center; }
  .pledge-card { padding: 40px 20px; }
  .pledge-badges { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 40px; }
  .features, .tools, .compare, .story { padding: 60px 0; }
  .tool-grid { grid-template-columns: 1fr; }
}

/* ── Accessibility ── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-content > * { opacity: 1; transform: none; animation: none; }
  .hero-visual { opacity: 1; transform: none; animation: none; }
  .badge-dot { animation: none; }
  .emblem-ring { animation: none; }
}
