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

:root {
  --bg-void: #05030c;
  --bg-deep: #090617;
  --bg-dark: #0d091c;
  --bg-card: #130c25;
  --bg-card-hover: #1a1130;

  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --violet-bright: #c4b5fd;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #60a5fa;

  --glow-violet: rgba(124, 58, 237, 0.55);
  --glow-cyan: rgba(34, 211, 238, 0.45);
  --glow-blue: rgba(96, 165, 250, 0.35);

  --text-white: #f0eeff;
  --text-primary: #ddd6fe;
  --text-secondary: #9d8fc0;
  --text-muted: #5f5280;

  --border-subtle: rgba(124, 58, 237, 0.18);
  --border-glow: rgba(124, 58, 237, 0.5);
  --border-cyan: rgba(34, 211, 238, 0.3);

  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-h: 76px;
  --radius: 10px;
  --ease: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg-void);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
#preloader img {
  width: 72px;
  animation: rift-pulse 1.6s ease-in-out infinite;
}
@keyframes rift-pulse {
  0%, 100% { opacity: 0.35; filter: drop-shadow(0 0 6px var(--violet)); transform: scale(0.95); }
  50%       { opacity: 1;    filter: drop-shadow(0 0 24px var(--violet)); transform: scale(1.05); }
}

/* ── HEADER ── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(5, 3, 12, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--border-subtle);
}
#header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 42px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 36px; }

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--ease), text-shadow var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -5px; left: 0; right: 0; height: 1px;
  background: var(--violet-light);
  box-shadow: 0 0 6px var(--violet);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.nav-link:hover { color: var(--violet-bright); text-shadow: 0 0 14px var(--glow-violet); }
.nav-link:hover::after { transform: scaleX(1); }

/* ── BURGER ── */
.burger-btn {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: transparent; border: 0; padding: 8px;
}
.burger-btn span {
  display: block; width: 26px; height: 2px;
  background: var(--violet-light);
  box-shadow: 0 0 6px var(--glow-violet);
  transition: transform var(--ease), opacity var(--ease);
}
.burger-btn.act span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
#mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: #05030c;
  flex-direction: column;
  align-items: center; justify-content: center; gap: 44px;
  z-index: 99;
}
#mobile-menu.opened { display: flex; }
#mobile-menu .nav-link { font-size: 26px; letter-spacing: 0.14em; color: var(--text-primary); }

/* ── SHARED SECTION ── */
section { padding: 108px 0; position: relative; overflow: hidden; }

.section-label {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; width: 32px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 8px var(--glow-cyan);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.08;
  color: var(--text-white); margin-bottom: 22px;
}

.hl { color: var(--violet-light); text-shadow: 0 0 18px var(--glow-violet); }

.divider-top {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--violet) 50%, transparent 100%);
}
.divider-top-cyan {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--cyan) 50%, transparent 100%);
}
.divider-top-blue {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--blue) 50%, transparent 100%);
}

/* ── BUTTON ── */
@keyframes hero-btn-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

#home .btn-cta {
  animation: hero-btn-pulse 3s ease-in-out infinite;
}
#home .btn-cta:hover {
  animation-play-state: paused;
}

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-white);
  padding: 15px 44px;
  background: linear-gradient(135deg, #3d1f82 0%, #190c3c 100%);
  border: 1px solid var(--violet);
  border-radius: 3px;
  cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 0 22px var(--glow-violet), inset 0 0 18px rgba(124,58,237,0.12);
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}
.btn-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(196,181,253,0.12), rgba(34,211,238,0.06));
  opacity: 0; transition: opacity var(--ease);
}
.btn-cta:hover {
  box-shadow: 0 0 44px var(--glow-violet), 0 0 16px var(--glow-cyan), inset 0 0 28px rgba(124,58,237,0.2);
  border-color: var(--violet-light); transform: translateY(-2px);
}
.btn-cta:hover::before { opacity: 1; }

/* ── HERO ── */
#home {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex; align-items: center;
  background: var(--bg-void) url('../img/hero-bg.webp') center top / cover no-repeat;
  position: relative;
}
#home::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(5,3,12,0.95) 0%, rgba(5,3,12,0.72) 55%, rgba(5,3,12,0.18) 100%);
}
#home::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 220px;
  background: linear-gradient(to top, var(--bg-void), transparent);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 60px 0;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; width: 36px; height: 1px;
  background: var(--cyan); box-shadow: 0 0 8px var(--glow-cyan);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 700; text-transform: uppercase; line-height: 1.06; letter-spacing: 0.03em;
  color: var(--text-white); margin-bottom: 30px;
  text-shadow: 0 0 40px rgba(124,58,237,0.28);
}

.hero-body { margin-bottom: 40px; max-width: 520px; }
.hero-body p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 12px;
}
.hero-body p:last-child { margin-bottom: 0; }
.hero-body .hero-name {
  color: var(--violet-bright);
  font-weight: 600; font-style: italic;
}
.hero-body .hero-tagline {
  color: var(--text-primary); font-size: 16px; font-weight: 500;
}

.hero-img-wrap {
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.hero-img-wrap::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 65%; height: 45%;
  background: radial-gradient(ellipse, rgba(124,58,237,0.38) 0%, transparent 70%);
  z-index: 0;
}
.hero-img-wrap img {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px;
  filter: drop-shadow(0 0 36px rgba(124,58,237,0.55)) drop-shadow(0 0 60px rgba(34,211,238,0.2));
}

/* ── SHATTERED GRID ── */
#shattered-grid { background: var(--bg-deep); }

.sg-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.sg-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 40px rgba(124,58,237,0.18);
}
.sg-img img { width: 100%; border-radius: var(--radius); display: block; }
.sg-img::after {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 32px rgba(124,58,237,0.1);
}

.sg-text .section-title { margin-bottom: 18px; }
.sg-text > p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 14px;
}
.sg-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px;
}
.sg-highlight {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.sg-highlight:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 16px rgba(124,58,237,0.18);
}
.sg-highlight-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 7px; overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.sg-highlight-icon img { width: 100%; height: 100%; object-fit: cover; }
.sg-highlight p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6; font-style: italic;
}

/* ── RIFTS ── */
#rifts { background: var(--bg-void); }

.rifts-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.rifts-text { position: sticky; top: 110px; }
.rifts-text > p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 14px;
}
.rifts-text .section-title { margin-bottom: 20px; }

.rift-rule {
  margin-top: 32px; padding: 20px 22px;
  border-left: 2px solid var(--cyan);
  background: rgba(34,211,238,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.rift-rule p {
  font-size: 17px; font-style: italic;
  color: var(--cyan); line-height: 1.7; margin: 0;
}

.rifts-cards { display: flex; flex-direction: column; gap: 18px; }

.rift-card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.rift-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(124,58,237,0.16);
}
.rift-card-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 10px rgba(124,58,237,0.18);
}
.rift-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.rift-card-body h3 {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-white); margin-bottom: 5px;
}
.rift-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

/* ── BRIDGES ── */
#bridges { background: var(--bg-dark); }

.bridges-header { text-align: center; margin-bottom: 56px; }
.bridges-header .section-label { justify-content: center; }
.bridges-header .section-label::before { display: none; }
.bridges-header .section-title { max-width: 700px; margin-left: auto; margin-right: auto; }
.bridges-header > p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-top: 6px;
}

.bridges-grid {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
  margin-bottom: 44px;
}
.bridge-card {
  flex: 0 1 calc(33.333% - 14px); min-width: 190px;
  padding: 28px 20px; text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.bridge-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 24px rgba(124,58,237,0.2);
  transform: translateY(-4px);
}
.bridge-icon {
  width: 68px; height: 68px; margin: 0 auto 16px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 14px rgba(124,58,237,0.22);
}
.bridge-icon img { width: 100%; height: 100%; object-fit: cover; }
.bridge-card h3 {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-white); line-height: 1.35;
}

.bridges-footer { text-align: center; max-width: 580px; margin: 0 auto; }
.bridges-footer p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 10px;
}
.bridges-footer .accent-line {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--violet-bright); text-shadow: 0 0 14px var(--glow-violet);
}

/* ── STRATEGY ── */
#strategy { background: var(--bg-deep); }

.strategy-header { max-width: 680px; margin-bottom: 56px; }
.strategy-header .section-title { margin-bottom: 18px; }
.strategy-header p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.9;
}

.strategy-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-bottom: 60px;
}
.strategy-card {
  padding: 30px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.strategy-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--violet), var(--cyan));
  opacity: 0; transition: opacity var(--ease);
}
.strategy-card:hover { border-color: var(--border-glow); box-shadow: 0 0 24px rgba(124,58,237,0.16); }
.strategy-card:hover::before { opacity: 1; }
.strategy-card-icon {
  width: 62px; height: 62px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border-subtle); margin-bottom: 18px;
}
.strategy-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.strategy-card h3 {
  font-family: var(--font-heading);
  font-size: 19px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-white); line-height: 1.3;
}

.strategy-closing { max-width: 680px; margin: 0 auto; }
.strategy-closing p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 14px;
}
.strategy-closing .emphasis {
  font-size: 17px; color: var(--text-primary); font-style: italic; font-weight: 500;
}

/* ── FINAL CTA ── */
#play { padding: 0; background: var(--bg-void); overflow: hidden; }

.cta-bg {
  position: absolute; inset: 0;
  background: url('../img/block6-cta.webp') center / cover no-repeat;
}
.cta-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(5,3,12,0.86) 0%, transparent 100%),
    linear-gradient(to bottom, rgba(5,3,12,0.84) 0%, rgba(5,3,12,0.6) 50%, rgba(5,3,12,0.9) 100%);
}
.cta-inner {
  position: relative; z-index: 2;
  min-height: 660px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 130px 0;
}
.cta-inner .section-label { justify-content: center; }
.cta-inner .section-label::before { display: none; }
.cta-inner .section-title { max-width: 700px; }

.cta-poem {
  margin: 28px 0 10px;
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 500; letter-spacing: 0.07em;
  color: var(--text-white); line-height: 2;
  text-shadow: 0 0 18px var(--glow-violet);
}

.cta-sub {
  max-width: 520px; margin: 20px auto 40px; text-align: center;
}
.cta-sub .game-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700; letter-spacing: 0.07em;
  color: var(--text-white); text-shadow: 0 0 12px var(--glow-violet);
  margin-bottom: 8px;
}
.cta-sub p { font-size: 15px; color: var(--text-white); line-height: 1.85; }

/* ── FOOTER ── */
footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  padding: 30px 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.footer-brand a { color: var(--violet-light); transition: color var(--ease); }
.footer-brand a:hover { color: var(--violet-bright); }
.footer-copy { font-size: 13px; color: var(--text-muted); text-align: center; white-space: nowrap; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.footer-links a {
  font-size: 13px; color: var(--text-muted); white-space: nowrap;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--violet-light); }

/* ── LEGAL ── */
.legal-page {
  padding: calc(var(--header-h) + 80px) 0 100px;
  min-height: 100vh; background: var(--bg-void);
}
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 46px); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-white); margin-bottom: 40px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle);
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--violet-light); margin: 36px 0 14px;
}
.legal-content p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 12px;
}
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 7px; }
.legal-content strong { color: var(--text-primary); }
.legal-content a { color: var(--violet-light); transition: color var(--ease); }
.legal-content a:hover { color: var(--cyan); }
.legal-content .legal-section-bold { font-weight: 700; color: var(--text-primary); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .sg-inner { gap: 50px; }
  .rifts-inner { gap: 50px; }
  .strategy-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-desktop { display: none; }
  .burger-btn { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-eyebrow { justify-content: center; }
  .hero-body { margin-left: auto; margin-right: auto; }
  .hero-img-wrap { order: -1; }

  .sg-inner { grid-template-columns: 1fr; }
  .sg-highlights { grid-template-columns: 1fr; }

  .rifts-inner { grid-template-columns: 1fr; }
  .rifts-text { position: static; }

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

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }

  .cookies-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .section-title { font-size: 24px; }
  .bridge-card { flex: 0 1 100%; }
  .hero-title { font-size: 26px; }
  .cta-inner { padding: 90px 0; min-height: 500px; }
}
