*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: linear-gradient(180deg, #ffe4e6, #fff1f2);
  background-attachment: fixed;
  font-family: 'DM Sans', sans-serif;
  color: #3a3a3a;
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
}

h1, h2, h3, .site-logo {
  font-family: 'Playfair Display', serif;
  color: #1f1f1f;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.75rem; margin-bottom: 16px; }
h2 { font-size: 1.6rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }

p { margin-bottom: 14px; }

a { color: #e11d48; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Cookie banner */
.cookie-banner {
  padding: 14px 0;
  font-size: 15px;
  color: #3a3a3a;
}
.cookie-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-banner p { margin: 0; flex: 1 1 auto; }
.cookie-banner button {
  background: #e11d48;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 10px 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s;
}
.cookie-banner button:hover { opacity: 0.85; }
.hidden { display: none; }

/* Navbar */
.navbar { padding: 16px 0; background: transparent; position: relative; z-index: 100; }
.navbar .container {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.site-logo { font-size: 1.5rem; color: #1f1f1f; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a { color: #1f1f1f; font-weight: 500; }
.nav-links a:hover { color: #e11d48; text-decoration: none; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #1f1f1f;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s, top 0.25s, bottom 0.25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { bottom: -7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { bottom: 0; transform: rotate(-45deg); }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}
.nav-backdrop.is-open { display: block; }
body.nav-open { overflow: hidden; }

/* Sections */
section { padding: 48px 0; }

/* Hero */
.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-text { flex: 0 0 60%; }
.hero-image { flex: 0 0 40%; display: flex; justify-content: center; }
.hero-image img { max-width: 100%; height: auto; border-radius: 16px; }

/* About */
.about-content { max-width: 800px; }

/* Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(225, 29, 72, 0.12); }

.game-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.game-head img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}
.game-head h3 { margin-bottom: 4px; font-size: 1.15rem; }
.game-dev { font-size: 14px; color: #7a7a7a; }

.badge {
  display: inline-block;
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.game-desc { font-size: 15px; margin-bottom: 14px; }

.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.screenshots img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.btn {
  display: inline-block;
  background: #e11d48;
  color: #fff;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: opacity 0.2s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  text-align: center;
}
.btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.btn-block { display: block; width: 100%; }

/* Subscribe form */
.subscribe-card { max-width: 560px; margin: 0 auto; padding: 32px; }
.subscribe-card h2 { margin-bottom: 6px; }
.subscribe-card .subtitle { color: #7a7a7a; margin-bottom: 20px; }

label { display: block; font-size: 14px; margin-bottom: 6px; color: #3a3a3a; }

input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 14px;
  background: #fff;
}
input:focus { border-color: #e11d48; box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.125); }

.form-success {
  margin-top: 16px;
  padding: 12px;
  background: rgba(225, 29, 72, 0.08);
  color: #1f1f1f;
  border-radius: 6px;
  font-size: 15px;
}

.form-consent { margin: 4px 0 14px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #3a3a3a;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 0;
}
.consent-label input[type="checkbox"] {
  margin: 3px 0 0;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e11d48;
}
.consent-label a { color: #e11d48; }
.form-error {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fef2f2;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 13px;
}

/* Footer */
footer {
  text-align: center;
  color: #7a7a7a;
  padding: 32px 0;
  font-size: 14px;
}
footer .foot-links {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer a[href^="mailto:"] { color: #e11d48; }

/* How it works */
.steps-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.steps-list li {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}
.steps-list strong {
  font-family: 'Playfair Display', serif;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 1.1rem;
}
.steps-list span { color: #3a3a3a; font-size: 15px; line-height: 1.55; }

/* FAQ */
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.faq-list dt {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1f1f1f;
  margin-top: 12px;
  font-size: 1.05rem;
}
.faq-list dd {
  margin: 4px 0 0;
  color: #3a3a3a;
  font-size: 15px;
  line-height: 1.6;
}

/* Legal pages */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 24px; }
.legal-content h2 { margin-top: 28px; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .navbar .container { gap: 16px; flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 80vw);
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 72px 24px 24px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 95;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
  }
  .hero .container { flex-direction: column; }
  .hero-text, .hero-image { flex: 1 1 100%; }
  .subscribe-card { padding: 24px; }
  .screenshots img { height: 140px; }
}
