/* ============================================================
   IC7 Game — Download page
   ============================================================ */

/* ---------- Download hero ---------- */
.dl-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(48px, 7vw, 80px);
}
.dl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero-glow);
  pointer-events: none;
}

.dl-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 940px) {
  .dl-hero__inner { grid-template-columns: 1.05fr 0.95fr; text-align: left; }
}

.dl-hero h1 { font-size: var(--fs-hero); margin-bottom: var(--sp-4); }
/* Never let the brand name break across lines ("DOWNLOAD IC7 / GAME") */
.dl-hero h1 .text-crimson { white-space: nowrap; }
.dl-hero__sub { font-size: 1.08rem; max-width: 540px; margin: 0 auto var(--sp-6); }
@media (min-width: 940px) { .dl-hero__sub { margin-inline: 0; } }

.dl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-bottom: var(--sp-5);
}
@media (min-width: 940px) { .dl-hero__actions { justify-content: flex-start; } }

/* Meta chips under the CTA (version / size / android) */
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}
@media (min-width: 940px) { .dl-meta { justify-content: flex-start; } }

.dl-meta__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}
.dl-meta__item svg { width: 17px; height: 17px; color: var(--color-accent-hot); flex-shrink: 0; }

/* Phone mockup (reused pattern from home hero) */
.dl-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dl-phone {
  position: relative;
  z-index: 1;
  width: min(300px, 74vw);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #2A2A30 0%, #101012 55%, #1C1C20 100%);
  border: 1px solid var(--color-border-strong);
  box-shadow:
    0 40px 90px rgba(0,0,0,0.7),
    0 0 60px rgba(225,6,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.08);
  animation: float 6s var(--ease-in-out) infinite;
}
.dl-phone img { width: 100%; border-radius: 26px; }
.dl-phone::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 6px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.75);
  z-index: 2;
}
.dl-phone-glow {
  position: absolute;
  width: min(400px, 88vw);
  height: min(400px, 88vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,6,0,0.35) 0%, transparent 62%);
  filter: blur(40px);
  animation: glow-breathe 6s var(--ease-in-out) infinite;
}

/* ---------- Install steps ---------- */
.install-steps {
  display: grid;
  gap: var(--sp-4);
  counter-reset: dl;
  max-width: 900px;
  margin-inline: auto;
}

.install-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--grad-surface);
  transition: all var(--dur-med) var(--ease-out);
}
.install-step:hover {
  transform: translateX(6px);
  border-color: rgba(225,6,0,0.4);
  box-shadow: var(--shadow-glow-red);
}

.install-step__num {
  counter-increment: dl;
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--grad-crimson);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow-red);
}
.install-step__num::before { content: counter(dl); }

.install-step h3 { margin-bottom: var(--sp-2); font-size: 1.1rem; }
.install-step p { margin: 0; font-size: 0.94rem; }

/* Vertical connector between steps */
.install-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50px;
  bottom: -16px;
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
}

/* Inline note box inside a step */
.step-note {
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-gold);
  background: rgba(255,184,0,0.07);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}
.step-note strong { color: var(--color-gold); }

/* ---------- System requirements table ---------- */
.req-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  max-width: 760px;
  margin-inline: auto;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--grad-surface);
  min-width: 420px;
}

.req-table th,
.req-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.req-table th {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  width: 42%;
}

.req-table td { color: var(--color-text-primary); font-weight: 500; }
.req-table tr:last-child th,
.req-table tr:last-child td { border-bottom: none; }
.req-table tbody tr { transition: background-color var(--dur-fast); }
.req-table tbody tr:hover { background: rgba(225,6,0,0.05); }

/* ---------- Trust / security row ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--grad-surface);
  transition: all var(--dur-med) var(--ease-out);
}
.trust-badge:hover {
  border-color: rgba(0,200,83,0.4);
  box-shadow: 0 0 24px rgba(0,200,83,0.18);
  transform: translateY(-3px);
}

.trust-badge__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(0,200,83,0.1);
  border: 1px solid rgba(0,200,83,0.3);
  color: var(--color-success);
}
.trust-badge__icon svg { width: 22px; height: 22px; }

.trust-badge__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-text-primary);
}
.trust-badge__desc { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- Big download CTA block ---------- */
.dl-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(40px, 7vw, 80px) var(--container-pad);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(225,6,0,0.4);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(225,6,0,0.3), transparent 65%),
    var(--grad-surface);
  box-shadow: var(--shadow-glow-red);
}
.dl-cta::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,30,45,0.12), transparent 30%);
  animation: spin-slow 14s linear infinite;
  pointer-events: none;
}
.dl-cta > * { position: relative; z-index: 1; }
.dl-cta h2 { margin-bottom: var(--sp-3); }
.dl-cta p { max-width: 560px; margin: 0 auto var(--sp-6); }

/* Screenshot strip reuses .gallery/.shot from home.css — include home.css too,
   or duplicate the minimal rules here if download.css is loaded standalone. */
