/* ========================================
   KC Official Site — Cyberpunk Design System
   ======================================== */

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

:root {
  /* Color — Neon Cyber */
  --bg:          #06060a;
  --surface:     rgba(16, 16, 24, 0.8);
  --surface-alt: rgba(24, 24, 36, 0.6);
  --border:      rgba(59, 130, 246, 0.15);
  --border-light:rgba(59, 130, 246, 0.3);
  --text:        #E8E8F0;
  --text-dim:    #8888A0;
  --text-muted:  #4A4A60;
  --accent:      #3B82F6;
  --accent-hover:#60A5FA;
  --accent-dim:  rgba(59,130,246,0.08);
  --neon-blue:   #00D4FF;
  --neon-purple: #8B5CF6;
  --neon-pink:   #EC4899;
  --success:     #10B981;
  --warning:     #F59E0B;
  --error:       #EF4444;

  /* Glow */
  --glow-blue:   0 0 20px rgba(0,212,255,0.3), 0 0 40px rgba(0,212,255,0.1);
  --glow-purple: 0 0 20px rgba(139,92,246,0.3), 0 0 40px rgba(139,92,246,0.1);

  /* Type scale */
  --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:  3.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Font */
  --font-sans:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;

  /* Transition */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* --- Animated Background --- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 60%;
  background: radial-gradient(circle at center, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.04) 30%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}
a:hover { 
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0,212,255,0.5);
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.page-content {
  flex: 1;
  padding-top: var(--space-24);
  padding-bottom: var(--space-20);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(6, 6, 10, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.header__logo:hover { 
  color: var(--text);
  text-shadow: none;
}

.header__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--neon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--neon-blue);
  letter-spacing: -0.5px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.header__logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.header__logo:hover .header__logo-mark {
  border-color: var(--neon-purple);
  box-shadow: var(--glow-purple);
}
.header__logo:hover .header__logo-mark::before {
  opacity: 1;
}
.header__logo-mark span {
  position: relative;
  z-index: 1;
}

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

.header__link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
}
.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--neon-blue);
  transition: width var(--duration) var(--ease);
  box-shadow: 0 0 8px var(--neon-blue);
}
.header__link:hover {
  color: var(--text);
  background: rgba(0,212,255,0.05);
  text-shadow: none;
}
.header__link:hover::after {
  width: 60%;
}
.header__link--active {
  color: var(--neon-blue);
  background: rgba(0,212,255,0.08);
}
.header__link--active::after {
  width: 60%;
}

.header__cta {
  margin-left: var(--space-3);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--neon-blue), var(--accent));
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}
.header__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.header__cta:hover {
  color: #fff;
  box-shadow: var(--glow-blue);
  transform: translateY(-1px);
  text-shadow: none;
}
.header__cta:hover::before {
  opacity: 1;
}
.header__cta span {
  position: relative;
  z-index: 1;
}

/* Mobile hamburger */
.header__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: var(--space-2);
  font-size: var(--text-xl);
}
.header__toggle:hover { color: var(--neon-blue); }

/* --- Hero --- */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--neon-blue);
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 999px;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-glow 2s ease infinite;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, #fff 0%, var(--neon-blue) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero__terminal {
  max-width: 480px;
  margin: 0 auto var(--space-8);
  background: rgba(16, 16, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero__terminal-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}

.hero__terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero__terminal-dot:nth-child(1) { background: #EF4444; }
.hero__terminal-dot:nth-child(2) { background: #F59E0B; }
.hero__terminal-dot:nth-child(3) { background: #10B981; }

.hero__terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.hero__terminal-body {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
}

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

.hero__terminal-prompt {
  color: var(--neon-blue);
  user-select: none;
}

.hero__terminal-cmd {
  color: var(--text);
}

.hero__terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--neon-blue);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--accent));
  color: #fff;
  border-color: transparent;
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
  text-shadow: none;
}
.btn--primary:hover::before {
  opacity: 1;
}
.btn--primary span {
  position: relative;
  z-index: 1;
}
.btn--primary svg {
  position: relative;
  z-index: 1;
}

.btn--secondary {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-light);
  backdrop-filter: blur(10px);
}
.btn--secondary:hover {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
  text-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: transparent;
  padding: var(--space-2) var(--space-3);
}
.btn--ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn--sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

.btn:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 30px rgba(0,212,255,0.05);
}
.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--neon-blue);
  position: relative;
}
.card__icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity var(--duration) var(--ease);
}
.card:hover .card__icon::after {
  opacity: 0.5;
}
.card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
  position: relative;
}

.card__desc {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.6;
  position: relative;
}

/* --- Feature Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* --- Section Header --- */
.section {
  padding: var(--space-16) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.section__eyebrow::before,
.section__eyebrow::after {
  content: '';
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue));
}
.section__eyebrow::after {
  background: linear-gradient(90deg, var(--neon-blue), transparent);
}

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

.section__desc {
  font-size: var(--text-base);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Version Info Bar --- */
.version-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
}

.version-bar__info {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.version-bar__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.version-bar__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--neon-blue);
}

.version-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
  box-shadow: 0 0 10px rgba(16,185,129,0.1);
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  backdrop-filter: blur(10px);
}
.faq-item:hover { 
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color var(--duration) var(--ease);
}
.faq-item__q:hover { color: var(--neon-blue); }

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}
.faq-item--open .faq-item__icon { 
  transform: rotate(45deg);
  color: var(--neon-blue);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item--open .faq-item__a { max-height: 500px; }

.faq-item__a-inner {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Guide / Content Pages --- */
.content {
  max-width: 720px;
  margin: 0 auto;
}

.content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: var(--space-12) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-3);
  color: var(--text);
}

.content p {
  margin-bottom: var(--space-4);
  color: var(--text-dim);
  line-height: 1.7;
}

.content ul, .content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  color: var(--text-dim);
}
.content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--neon-blue);
}

.content pre {
  background: rgba(16, 16, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  position: relative;
}
.content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
}
.content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--text-dim);
}

/* Step list (for guide) */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(0,212,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--neon-blue);
}

.step__content h3 {
  margin-top: var(--space-1);
  margin-bottom: var(--space-1);
}

/* --- Changelog --- */
.changelog-entry {
  position: relative;
  padding-left: var(--space-8);
  padding-bottom: var(--space-8);
  border-left: 1px solid var(--border);
  margin-left: var(--space-4);
}
.changelog-entry:last-child { padding-bottom: 0; }

.changelog-entry__dot {
  position: absolute;
  left: calc(-5px - var(--space-4));
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-blue);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--neon-blue);
}

.changelog-entry__version {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.changelog-entry__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.changelog-entry__list {
  list-style: none;
  padding: 0;
}
.changelog-entry__list li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.6;
}
.changelog-entry__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--neon-blue);
}

/* Tag for changelog items */
.tag {
  display: inline-block;
  padding: 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-right: var(--space-1);
}
.tag--new {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
}
.tag--fix {
  background: rgba(0,212,255,0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0,212,255,0.2);
}
.tag--improve {
  background: rgba(245,158,11,0.1);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.2);
}

/* --- Download Page --- */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-4);
  transition: all var(--duration) var(--ease);
  backdrop-filter: blur(10px);
}
.download-card:hover { 
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.download-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
}
.download-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-card__body { flex: 1; }
.download-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.download-card__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  gap: var(--space-4);
}

.download-card__actions {
  flex-shrink: 0;
  display: flex;
  gap: var(--space-2);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-4);
}

.footer__link {
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer__link:hover { 
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0,212,255,0.5);
}

/* --- Animations --- */
@keyframes pulse-glow {
  0%, 100% { 
    opacity: 1;
    box-shadow: 0 0 8px var(--success);
  }
  50% { 
    opacity: 0.5;
    box-shadow: 0 0 16px var(--success);
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s var(--ease) both;
}
.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
  }
  
  .hero__title { font-size: var(--text-3xl); }
  .hero__subtitle { font-size: var(--text-base); }
  .features-grid { grid-template-columns: 1fr; }
  .version-bar { flex-direction: column; align-items: flex-start; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .download-card__actions { width: 100%; }
  .download-card__actions .btn { flex: 1; justify-content: center; }

  .header__nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-1);
  }
  .header__nav--open { display: flex; }
  .header__link { padding: var(--space-3) var(--space-4); width: 100%; }
  .header__cta { margin-left: 0; width: 100%; text-align: center; justify-content: center; }
  .header__toggle { display: block; }
  
  .hero__terminal {
    margin-left: var(--space-4);
    margin-right: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: var(--text-2xl); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .section { padding: var(--space-10) 0; }
  .section__title { font-size: var(--text-2xl); }
}
