/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0e;
  --bg-alt:    #0e0e13;
  --surface:   #141418;
  --border:    #1e1e24;
  --text:      #c8c5c0;
  --text-dim:  #6b6862;
  --white:     #f0ece8;
  --accent:    #b91c1c;
  --accent-2:  #dc2626;
  --accent-glow: rgba(185, 28, 28, 0.35);
  --gold:      #d4a24e;
  --gold-dim:  #a67c3b;
  --green:     #4ade80;
  --cyan:      #94a3b8;
  --yellow:    #d4a24e;
  --blue:      #64748b;
  --red:       #dc2626;
  --radius:    12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--white); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(185, 28, 28, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

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

.btn-primary:hover {
  background: #dc2626;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(185, 28, 28, 0.45);
}

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

.btn-outline:hover {
  border-color: var(--gold-dim);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 10rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(185, 28, 28, 0.1) 0%, rgba(212, 162, 78, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(185, 28, 28, 0.35)) drop-shadow(0 0 60px rgba(212, 162, 78, 0.15));
  animation: fadeUp 0.6s ease-out backwards, logoFloat 4s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.meta-item strong {
  color: var(--white);
}

.meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* ===== DOWNLOAD SECTION ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.download-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.2s;
}

.download-card:hover {
  transform: translateY(-2px);
}

.download-card.primary {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 40px rgba(185, 28, 28, 0.2);
}

.download-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(185, 28, 28, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.download-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.download-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.download-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.download-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.download-hash {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.hash-label {
  color: var(--text-dim);
  margin-right: 0.35rem;
}

.download-hash code {
  color: var(--text);
}

.download-split {
  display: flex;
  gap: 0.75rem;
}

.btn-half {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
}

/* Alternate downloads */
.download-alt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.download-alt h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.alt-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.alt-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.alt-link:hover {
  background: rgba(185, 28, 28, 0.08);
  color: var(--white);
}

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

/* ===== TERMINAL MOCKUP ===== */
.hero-terminal {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d0e14;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #141520;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #f87171; }
.terminal-dot.yellow { background: #fbbf24; }
.terminal-dot.green  { background: #4ade80; }

.terminal-title {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}

.terminal-body pre {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
}

.t-green  { color: #4ade80; }
.t-cyan   { color: var(--gold); }
.t-yellow { color: var(--accent-2); }
.t-blue   { color: var(--cyan); }
.t-dim    { color: var(--text-dim); }

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-sub {
  max-width: 600px;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(185, 28, 28, 0.4);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(185, 28, 28, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== REQUIREMENTS ===== */
.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.req-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.req-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 40px rgba(185, 28, 28, 0.12);
}

.req-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.req-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.req-list {
  list-style: none;
}

.req-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(30, 32, 48, 0.5);
}

.req-list li:last-child {
  border-bottom: none;
}

.req-key {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
}

.req-val {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: right;
}

/* ===== INSTALLATION STEPS ===== */
.install-steps {
  max-width: 720px;
}

.install-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.install-step:last-child {
  margin-bottom: 0;
}

.install-step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 48px;
  bottom: -2.5rem;
  width: 2px;
  background: var(--border);
}

.install-step:last-child::before {
  display: none;
}

.install-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: rgba(185, 28, 28, 0.1);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  border: 2px solid rgba(185, 28, 28, 0.3);
}

.install-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  margin-top: 0.2rem;
}

.install-content p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.install-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

.code-block {
  background: #0d0e14;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
}

.code-block code {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.82rem;
  color: var(--gold);
  line-height: 1.6;
  white-space: pre;
}

/* ===== CTA ===== */
.section-cta {
  background: var(--bg-alt);
  text-align: center;
  padding: 5rem 0;
}

.cta-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(185, 28, 28, 0.35));
}

.cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(185, 28, 28, 0.35));
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

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

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 8rem 0 3rem; }
  .hero-logo { width: 120px; height: 120px; }

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

  .alt-links {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .meta-sep { display: none; }

  .install-step { gap: 1rem; }
  .install-num { width: 38px; height: 38px; font-size: 0.9rem; }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .footer-left { align-items: center; }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo,
.hero-title,
.hero-tagline,
.hero-sub,
.hero-actions,
.hero-meta {
  animation: fadeUp 0.6s ease-out backwards;
}

.hero-title    { animation-delay: 0.1s; }
.hero-tagline  { animation-delay: 0.15s; }
.hero-sub      { animation-delay: 0.2s; }
.hero-actions  { animation-delay: 0.3s; }
.hero-meta     { animation-delay: 0.4s; }
