/* Soldier.io — game landing page (intesseract.games/soldier-io/)
   TEMP look & feel (olive / tactical orange) until the real art and copy arrive. */

:root {
  --bg-900: #161a0c;
  --bg-800: #1f2511;
  --bg-700: #2b3316;
  --olive: #5d6b2f;
  --accent: #ff8a1f;
  --accent-2: #ffb15c;
  --text: #f4f6ea;
  --text-dim: #c3cab0;
  --line: rgba(255, 255, 255, .1);
  --radius: 20px;
  --display: "Russo One", "Arial Black", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-900);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .4em; font-family: var(--display); font-weight: 400; line-height: 1.05; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.2rem; }
.accent { color: var(--accent); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(22, 26, 12, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.topbar a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.topbar .mini { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; }
.topbar .mini img { width: 34px; height: 34px; border-radius: 9px; }
.topbar .by { color: var(--text-dim); font-size: .9rem; }
.topbar .by img { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 75% 30%, rgba(255, 138, 31, .18), transparent 45%),
    linear-gradient(180deg, var(--bg-700), var(--bg-900));
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 10vw, 5.6rem); margin-bottom: .2em; }
.tagline { font-size: 1.2rem; color: var(--text-dim); max-width: 36ch; margin-bottom: 28px; }
.tagline strong { color: var(--text); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: .7rem; opacity: .85; }
.store-btn strong { font-size: 1.1rem; font-weight: 600; }

.phones { display: flex; justify-content: center; gap: 16px; }
.phone {
  width: 100%; max-width: 220px; aspect-ratio: 600 / 1067; border-radius: 28px; overflow: hidden;
  border: 6px solid #0c0e06; box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phones .phone:nth-child(2) { transform: translateY(28px); }

/* ---------- Features ---------- */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--text-dim); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); margin: 0; }

/* ---------- Gallery ---------- */
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 20px 24px; scroll-snap-type: x mandatory; justify-content: safe center; }
.shots .phone { flex: 0 0 220px; scroll-snap-align: center; }

/* ---------- CTA ---------- */
.cta { text-align: center; background: linear-gradient(180deg, var(--bg-900), var(--bg-700)); }
.cta p { color: var(--text-dim); max-width: 48ch; margin: 0 auto 24px; }
.cta .stores { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--text-dim); font-size: .9rem; }
.footer .container { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .tagline { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .phones .phone { max-width: 150px; }
  .phones .phone:nth-child(3) { display: none; }
}

/* Social links in the footer */
.social { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.social a { display: inline-flex; color: inherit; opacity: .8; transition: opacity .2s, transform .2s; }
.social a:hover { opacity: 1; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
