@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #1A1815;
  --bg-2: #211E1A;
  --bg-3: #26221D;
  --stone: #3A352E;
  --stone-2: #4A443B;
  --stone-light: #8C8377;
  --stone-light-2: #A39A8C;
  --text: #E8E2D6;
  --text-bone: #D9D2C5;
  --text-muted: #9B9286;
  --moss: #6B7355;
  --moss-2: #7E8761;
  --bronze: #A8804A;
  --bronze-2: #C49A5E;
  --line: rgba(140, 131, 119, 0.18);
  --line-strong: rgba(140, 131, 119, 0.32);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-head: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --header-h: 84px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html.hide #preloader { display: none; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-bone);
  font-weight: 300;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.fixed { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
section { position: relative; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze-2);
  display: inline-block;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--bronze);
  vertical-align: middle;
  margin-right: 14px;
  transform: translateY(-3px);
}

.section-title { font-size: clamp(30px, 4vw, 46px); }
.lead { color: var(--text-muted); font-size: 18px; }

/* crack divider */
.crack {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
}
.crack.top { top: 0; }
.crack.bottom { bottom: 0; }

/* texture / noise overlay */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ---------- preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 34px;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), filter 0.4s var(--ease);
  color: var(--text);
}
.btn-primary {
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-2) 40%, var(--stone-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.4);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  animation: stone-glow 3.4s var(--ease) infinite;
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(107, 115, 85, 0.3);
}

@keyframes stone-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 135, 97, 0); }
  50% { box-shadow: 0 0 26px 2px rgba(126, 135, 97, 0.42), 0 0 60px 6px rgba(168, 128, 74, 0.14); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before { animation: none; }
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-bone);
}
.btn-ghost:hover {
  border-color: var(--bronze);
  color: var(--bronze-2);
  transform: translateY(-2px);
}
.btn::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 16px;
  transition: transform 0.4s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1200;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  height: 68px;
  background: rgba(26, 24, 21, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.22em;
  color: var(--text);
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bronze-2);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width 0.4s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}
.burger-btn span {
  position: absolute;
  left: 9px;
  width: 26px; height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.burger-btn span:nth-child(1) { top: 15px; }
.burger-btn span:nth-child(2) { top: 22px; }
.burger-btn span:nth-child(3) { top: 29px; }
.burger-btn.act span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(20, 18, 16, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--text-bone);
  letter-spacing: 0.16em;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% 20%, rgba(107, 115, 85, 0.16), transparent 55%),
    linear-gradient(90deg, var(--bg) 18%, rgba(26, 24, 21, 0.55) 60%, rgba(26, 24, 21, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 4%, transparent 38%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 640px; padding: 60px 0; }
.hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 26px;
}
.hero h1 .accent { color: var(--bronze-2); }
.hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text);
  font-weight: 300;
  margin-bottom: 24px;
  max-width: 560px;
}
.hero-text { color: var(--text-muted); margin-bottom: 38px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-pills { display: flex; gap: 14px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-bone);
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: rgba(58, 53, 46, 0.3);
}
.pill::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--moss-2);
  border-radius: 1px;
  transform: rotate(45deg);
}

.hero-figure { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.hero-figure img {
  position: relative;
  z-index: 2;
  max-height: 78vh;
  width: auto;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
}
.hero-figure::before {
  content: "";
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: 360px; height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168, 128, 74, 0.16), transparent 65%);
  z-index: 1;
}

/* ---------- generic section ---------- */
.section { padding: 120px 0; }
.section.alt { background: var(--bg-2); }
.section.deep { background: var(--bg-3); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media { position: relative; }
.split-media .frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.split-media .frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.split-media:hover .frame img { transform: scale(1.04); }
.split-media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 24, 21, 0.55));
  pointer-events: none;
}
.split-media .tag {
  position: absolute;
  bottom: -1px; left: -1px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--moss-2);
  padding: 12px 20px;
}

.split-body p { color: var(--text-muted); margin-bottom: 18px; }
.split-body p:last-child { margin-bottom: 0; }
.split-body .section-title { margin-bottom: 28px; }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 20px; }

/* ---------- gameplay / how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 38px 30px 34px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.section.alt .step { background: var(--bg-3); }
.step:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.step-num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bronze-2);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.step-num::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--moss-2);
  margin-top: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 14px; }
.step p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
}
.feature {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.feature:nth-last-child(1), .feature:nth-last-child(2) { border-bottom: 0; }
.feature-mark {
  flex: none;
  width: 14px; height: 14px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--bronze-2), var(--bronze));
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(168, 128, 74, 0.1);
}
.feature p { color: var(--text-bone); font-size: 16px; line-height: 1.6; }

/* ---------- reacts / signs ---------- */
.signs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 30px 0 6px;
}
.sign {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-bone);
  padding: 16px 20px;
  border-left: 2px solid var(--moss);
  background: rgba(58, 53, 46, 0.28);
}

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .section-title { margin-bottom: 22px; }
.contact .lead { max-width: 560px; margin: 0 auto 36px; }
.contact-mail {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.06em;
  color: var(--bronze-2);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-mail:hover { color: var(--bronze); border-color: var(--bronze); }

/* ---------- footer ---------- */
.footer {
  position: relative;
  padding: 90px 0 40px;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.footer-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.footer-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 8%, rgba(26, 24, 21, 0.82));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-name {
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--text);
}
.footer-copy { text-align: center; color: var(--text-muted); font-size: 14px; }
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--bronze-2); }
.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  margin-top: 28px;
  opacity: 0.7;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal-page { padding: calc(var(--header-h) + 80px) 0 110px; }
.legal-page .container { max-width: 880px; }
.legal-head { margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.legal-head .eff { color: var(--text-muted); font-size: 14px; letter-spacing: 0.04em; }
.legal-content h2 {
  font-size: 24px;
  margin: 46px 0 18px;
  padding-left: 18px;
  border-left: 3px solid var(--moss-2);
}
.legal-content h3 { font-size: 18px; margin: 28px 0 12px; color: var(--text-bone); }
.legal-content p { color: var(--text-muted); margin-bottom: 16px; }
.legal-content ol, .legal-content ul { margin: 0 0 18px 22px; color: var(--text-muted); }
.legal-content li { margin-bottom: 12px; padding-left: 6px; }
.legal-content ul li { list-style: none; position: relative; }
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: -18px; top: 11px;
  width: 6px; height: 6px;
  background: var(--bronze);
  transform: rotate(45deg);
}
.legal-content a { color: var(--bronze-2); border-bottom: 1px solid var(--line-strong); }
.legal-content a:hover { color: var(--bronze); }
.legal-content strong { color: var(--text-bone); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .section { padding: 96px 0; }
  .hero .container { grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
  .split { gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .burger-btn { display: block; }
  .header .container { padding: 0 28px; }
  .section { padding: 80px 0; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 30px); padding-bottom: 70px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-content { padding: 0; }
  .hero-figure { display: none; }
  .hero-bg img { opacity: 0.3; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .split-media .frame img { aspect-ratio: 16 / 11; }
  .features { grid-template-columns: 1fr; gap: 0; }
  .feature:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .footer-links { justify-content: center; }
  .section-head { margin-bottom: 48px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header .container { padding: 0 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .signs { grid-template-columns: 1fr; }
  .pill { font-size: 11px; padding: 9px 14px; }
}
