/* ==========================================================================
   IK7 Game — Design tokens
   Palette: deep charcoal, near-black, warm gold accent, muted text
   ========================================================================== */
:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --surface-2: #1e1e24;
  --border: #2a2a31;
  --text: #f4f4f6;
  --muted: #a1a1ac;
  --gold: #e8b84b;
  --gold-strong: #f5c95a;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1140px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #1a1204;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold-strong); outline-offset: 2px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #1a1204;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--gold); }
.btn-nav {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #1a1204;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand img { border-radius: 10px; }
.brand-name strong { color: var(--gold); }

.nav { display: flex; align-items: center; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn-nav { color: #1a1204; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 60px;
  background:
    radial-gradient(700px 400px at 80% 10%, rgba(232, 184, 75, 0.14), transparent 70%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }

.hero-stats {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.82rem; color: var(--muted); }

.hero-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 32px; }

/* About */
.about-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features-grid { grid-template-columns: repeat(4, 1fr); }
.info-card,
.feature {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h3,
.feature h3 { color: var(--text); font-size: 1.12rem; }
.info-card p,
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.game-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.game-card img { margin: 0 auto 14px; border-radius: 18px; width: 96px; height: 96px; }
.game-card h3 { font-size: 1.05rem; }
.game-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Screenshots */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  justify-items: center;
}
.shots-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 280px;
  width: 100%;
}

/* Download */
.download { background: linear-gradient(135deg, rgba(232,184,75,0.10), transparent), var(--bg); }
.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.download-inner img { border-radius: 24px; }

/* Contact form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 620px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.contact-form label { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; margin: 0; color: var(--gold); font-size: 0.9rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 800px; }
.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); margin: 12px 0 0; }

/* Notice */
.notice { background: var(--surface); border-top: 1px solid var(--border); padding: 18px 0; }
.notice p { color: var(--muted); font-size: 0.86rem; text-align: center; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #09090b; border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { border-radius: 10px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 36ch; }
.site-footer h3 { font-size: 1rem; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--muted); font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; }
.footer-bottom p { color: var(--muted); font-size: 0.85rem; margin: 0; text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 20px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }
  .nav-links.active {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links .btn-nav { display: inline-flex; margin-top: 6px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about-grid,
  .features-grid,
  .games-grid,
  .shots-grid { grid-template-columns: 1fr 1fr; }
  .download-inner { flex-direction: column-reverse; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .about-grid,
  .features-grid,
  .games-grid,
  .shots-grid,
  .contact-form { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}