@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b0a08;
  --bg-deep: #050504;
  --surface: rgba(24, 21, 17, 0.92);
  --surface-muted: rgba(255, 255, 255, 0.035);
  --ink: #f1ece0;
  --ink-soft: #b9ad98;
  --ink-faint: #7d7364;
  --accent: #b3925f;
  --accent-strong: #d9b876;
  --accent-alt: #8a7355;
  --line: rgba(211, 184, 130, 0.16);
  --line-strong: rgba(211, 184, 130, 0.32);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.55);
  --shadow-card: 10px 10px 0 rgba(0, 0, 0, 0.35);
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(circle at 18% -10%, rgba(179, 146, 95, 0.14), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(179, 146, 95, 0.08), transparent 30%),
    linear-gradient(180deg, #100d0a 0%, var(--bg) 40%, var(--bg-deep) 100%);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(211, 184, 130, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 184, 130, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.74rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 12%,
    rgba(255, 255, 255, 0.03) 88%,
    rgba(255, 255, 255, 0) 100%);
}

.eyebrow {
  margin: 0 0 0.74rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.22rem;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  border-color: var(--accent-strong);
  color: #14110c;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 rgba(0, 0, 0, 0.45);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(211, 184, 130, 0.12);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 2px solid var(--line);
  background: rgba(11, 10, 8, 0.86);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  flex-shrink: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.98rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--line-strong);
  object-fit: cover;
  background: #000;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.82rem;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.42rem 0.56rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-strong);
  background: rgba(211, 184, 130, 0.1);
}

.nav-cta {
  margin-left: 0.54rem;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 6.8rem 0 5.2rem;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: 60px;
  border-radius: 28px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(211, 184, 130, 0.14), rgba(211, 184, 130, 0.04));
  border: 2px solid rgba(211, 184, 130, 0.1);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  animation: slide-rise 0.64s ease both;
}

.hero-copy h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 56ch;
  font-size: 1.03rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.hero-media {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  border: 2px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  animation: slide-rise 0.64s ease 0.16s both;
  background: #000;
}

.hero-media img {
  width: 100%;
  display: block;
}

.section-head {
  max-width: 74ch;
  margin-bottom: 1.85rem;
}

.section-head p {
  margin-top: 0.64rem;
}

/* Features */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 1.3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.4);
  border-color: var(--line-strong);
}

.card .icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(211, 184, 130, 0.16), rgba(211, 184, 130, 0.05));
  font-size: 1.15rem;
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  aspect-ratio: 4 / 3;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.wide {
  grid-column: span 2;
}

/* News */
.news-list {
  display: grid;
  gap: 0.8rem;
}

.news-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.2rem;
}

.news-date {
  flex-shrink: 0;
  min-width: 5.5rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}

.news-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.news-item p {
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  padding: 4.2rem 0;
  background: linear-gradient(132deg, rgba(211, 184, 130, 0.12), rgba(211, 184, 130, 0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  border-top: 2px solid var(--line);
  padding: 1rem 0 1.4rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-wrap nav a {
  color: var(--ink-faint);
  font-weight: 600;
}

.footer-wrap nav a:hover {
  color: var(--accent-strong);
}

/* Rules page */
.rules-list {
  display: grid;
  gap: 1rem;
}

.rules-group {
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.4rem;
}

.rules-group h2 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--accent-strong);
}

.rules-group ol,
.rules-group ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.rules-group li + li {
  margin-top: 0.5rem;
}

.rules-note {
  border-radius: 12px;
  border: 2px dashed var(--line-strong);
  background: rgba(211, 184, 130, 0.06);
  color: var(--ink-soft);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
}

/* Legal pages */
.legal-page main {
  padding: 4.6rem 0 3.1rem;
}

.legal-card {
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2vw, 1.6rem);
}

.legal-content h1 {
  margin-bottom: 0.42rem;
  font-size: clamp(1.85rem, 3.7vw, 2.62rem);
}

.legal-content h2 {
  margin-top: 1.35rem;
  margin-bottom: 0.54rem;
  font-size: 1.12rem;
  color: var(--accent-strong);
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content p + p {
  margin-top: 0.68rem;
}

.legal-meta {
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-actions {
  margin-top: 1.38rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

@keyframes slide-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .menu-toggle + .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    z-index: 5;
    border: 2px solid var(--line);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-soft);
    background: rgba(11, 10, 8, 0.98);
    padding: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.52rem;
  }

  .menu-toggle + .main-nav.open {
    display: flex;
  }

  .menu-toggle + .main-nav a {
    width: 100%;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 5.9rem;
  }

  .hero-grid,
  .cta-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4.2rem 0;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-item {
    flex-direction: column;
    gap: 0.4rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
