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

:root {
  --red:        #c8281e;
  --red-dark:   #9e1e15;
  --red-deeper: #7a1510;
  --red-light:  #f8eeec;
  --red-mid:    #d94034;
  --orange:     #e05c2a;

  --ink:        #1a1210;
  --ink-muted:  #5a4e4b;
  --ink-faint:  #9a8e8b;
  --surface:    #ffffff;
  --surface-2:  #faf8f7;
  --surface-3:  #f2edeb;
  --border:     rgba(0,0,0,0.07);
  --border-med: rgba(0,0,0,0.13);
  --radius:     12px;
  --radius-lg:  20px;
  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg { height: 52px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--red) !important;
  color: white !important;
  padding: 0.45rem 1.15rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO (home) ── */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
  background: #120c0b;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 78% 12%, rgba(200,40,30,0.24) 0%, transparent 60%),
    radial-gradient(ellipse 35% 45% at 12% 88%, rgba(224,92,42,0.11) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-stripe {
  position: absolute;
  top: -20%;
  right: 2%;
  width: 420px;
  height: 130%;
  background: linear-gradient(to bottom, rgba(200,40,30,0.055), rgba(224,92,42,0.03), transparent);
  transform: rotate(-7deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e07060;
  background: rgba(200,40,30,0.12);
  border: 1px solid rgba(200,40,30,0.22);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--red-mid);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero h1 em { font-style: normal; color: var(--red-mid); }

.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: rgba(255,255,255,0.48);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-stat {
  background: rgba(255,255,255,0.03);
  padding: 2rem;
  transition: background 0.2s;
}

.hero-stat:hover { background: rgba(200,40,30,0.09); }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-stat-num span { color: var(--red-mid); }

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  line-height: 1.4;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: #120c0b;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 90% at 15% 50%, rgba(200,40,30,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e07060;
  background: rgba(200,40,30,0.12);
  border: 1px solid rgba(200,40,30,0.22);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.page-hero-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--red-mid);
  border-radius: 50%;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.1rem;
}

.page-hero h1 em { font-style: normal; color: var(--red-mid); }

.page-hero p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  font-weight: 300;
  max-width: 580px;
}

/* ── SHARED SECTIONS ── */
.section { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 3rem); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.72;
}

.section-alt { background: var(--surface-2); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-med);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ── PRODUCTS (home) ── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.product-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.product-card.featured { background: var(--ink); border-color: transparent; color: white; }

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.product-card.featured .product-icon { background: rgba(200,40,30,0.18); }
.product-icon svg { width: 22px; height: 22px; }

.product-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

.product-card.featured .product-desc { color: rgba(255,255,255,0.48); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
}

.product-card.featured .product-link { color: #e07060; }
.product-link-arrow { display: inline-block; transition: transform 0.2s; }
.product-card:hover .product-link-arrow { transform: translateX(4px); }

/* ── REASONS (home) ── */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.reason-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.reason-card:hover { border-color: rgba(200,40,30,0.28); }

.reason-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
  min-width: 2rem;
  line-height: 1.55;
  opacity: 0.65;
}

.reason-text { font-size: 0.95rem; color: var(--ink-muted); font-weight: 400; line-height: 1.6; }

/* ── GAMES (home) ── */
.games-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  background: var(--surface);
  border-color: rgba(200,40,30,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.game-logo-wrap {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-logo-wrap img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}

.game-card:hover .game-logo-wrap img { filter: grayscale(0%); }

.game-logo-fallback {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.game-card:hover .game-logo-fallback { color: var(--red); }

.game-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.3;
}

.game-card:hover .game-label { color: var(--red-dark); }

/* ── FEATURE CARDS (product pages) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(200,40,30,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.68;
  font-weight: 300;
}

/* ── ROLES (admin page) ── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.role-card:hover { border-color: rgba(200,40,30,0.25); }

.role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}

.role-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.role-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── CONTENT GRID (about page) ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.content-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.content-block p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1rem;
}

.content-block p:last-child { margin-bottom: 0; }

.content-block a {
  color: var(--red);
  text-decoration: none;
}

.content-block a:hover { text-decoration: underline; }

/* ── CONTACT (contact page) ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  line-height: 1.6;
}

a.contact-value:hover { color: var(--red); }

.contact-map-placeholder {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.contact-map-address {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.contact-map-detail {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* ── CTA ── */
.cta-section {
  background: var(--ink);
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 85% at 50% 50%, rgba(200,40,30,0.17) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; max-width: 600px; margin: 0 auto; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.44);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

/* ── FOOTER ── */
footer {
  background: #0d0806;
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo svg { height: 44px; width: auto; opacity: 0.6; }

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; }
.footer-links a { font-size: 0.84rem; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.62); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.18); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag     { animation: fadeUp 0.5s 0.00s ease both; }
.hero h1      { animation: fadeUp 0.5s 0.10s ease both; }
.hero-desc    { animation: fadeUp 0.5s 0.20s ease both; }
.hero-actions { animation: fadeUp 0.5s 0.30s ease both; }
.hero-stats   { animation: fadeUp 0.55s 0.15s ease both; }

.page-hero-tag { animation: fadeUp 0.5s 0.00s ease both; }
.page-hero h1  { animation: fadeUp 0.5s 0.10s ease both; }
.page-hero p   { animation: fadeUp 0.5s 0.20s ease both; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.5rem;
    z-index: 99;
    align-items: flex-start;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }

  .nav-links.open a { font-size: 1.05rem; color: var(--ink-muted); }
  .nav-hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .games-header { flex-direction: column; align-items: flex-start; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-stat-num { font-size: 2.1rem; }
  .hero-stat { padding: 1.25rem; }
}
