:root {
  --orange: #ef5b0c;
  --orange-dark: #c9470a;
  --cream: #fffaf5;
  --cream-2: #fbeee2;
  --ink: #17110e;
  --ink-2: #241b17;
  --muted: #6e625b;
  --line: #e9dccf;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23, 17, 14, .06), 0 8px 24px rgba(23, 17, 14, .06);
  --shadow-hover: 0 2px 4px rgba(23, 17, 14, .08), 0 16px 40px rgba(23, 17, 14, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--white);
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 12px 22px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--small { padding: 8px 16px; font-size: .9rem; }
.btn--big { font-size: clamp(1rem, 3vw, 1.2rem); padding: 16px 28px; word-break: break-all; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 245, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  transition: color .15s ease;
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 22% 45%, var(--cream-2) 0%, transparent 55%),
    var(--cream);
  padding: 72px 0 96px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 56px;
}
.hero__logo {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  animation: bob 3.5s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 480px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt {
  background: var(--ink);
  color: var(--cream);
}
.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--orange);
  margin-bottom: 12px;
}
.section__title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 44px; max-width: 560px; }

/* ---------- Game cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 12px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card > :not(.card__art) { margin-left: 8px; margin-right: 8px; }
.card__art {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  margin-bottom: 18px;
  overflow: hidden;
}
.card__art img { width: 100%; height: 100%; object-fit: contain; }
.card__art--1 { background: #f7fdda; }
.card__art--2 { background: linear-gradient(135deg, #2a201b, #3b2c24); }
.card__art--3 { background: linear-gradient(135deg, #2a201b, #3b2c24); }
.card h3 { font-size: 1.35rem; margin: 12px 0 6px; }
.card p { color: var(--muted); font-size: .97rem; }

.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--orange);
  color: var(--white);
  border-radius: 4px;
  padding: 3px 8px;
}
.tag--muted { background: var(--cream-2); color: var(--ink); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.about p { font-size: 1.1rem; margin-bottom: 16px; color: #cfc3b9; }
.values { list-style: none; display: grid; gap: 1px; background: #3a2e28; border: 1px solid #3a2e28; border-radius: var(--radius); overflow: hidden; }
.values li {
  background: var(--ink-2);
  padding: 20px 24px;
}
.values strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 2px;
}
.values strong::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--orange); border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.values span { color: #a89b91; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section__lead { margin-left: auto; margin-right: auto; }
.socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.socials a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 18px;
  transition: border-color .15s ease, color .15s ease;
}
.socials a:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Footer ---------- */
.footer {
  background: var(--cream);
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 28px 0;
  font-size: .88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner, .about { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero__logo { max-width: 300px; }
  .hero p { margin: 0 auto; }
  .hero__cta { justify-content: center; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 24px 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.open { display: flex; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo { animation: none; }
}
