/* ===== Variables ===== */
:root {
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #8b6914;
  --blue-deep: #0a1628;
  --blue-mid: #122240;
  --blue-light: #1a3055;
  --teal: #2a9d8f;
  --teal-glow: rgba(42, 157, 143, 0.4);
  --cream: #f5f0e6;
  --text: #e8e4dc;
  --text-muted: #9a958a;
  --wood: #3d2914;
  --wood-light: #5c4020;
  --shadow: rgba(0, 0, 0, 0.5);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--blue-deep);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.logo-img {
  display: block;
  object-fit: contain;
}

.logo-img--icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(201, 162, 39, 0.35));
}

.logo-img--wordmark {
  height: 36px;
  width: auto;
  max-width: 180px;
}

.logo-pro {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
  text-align: center;
  width: 100%;
}

.footer-brand .logo-img--wordmark {
  height: 32px;
}

.footer-brand .logo-img--icon {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--blue-deep) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  color: var(--blue-deep) !important;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
  transform: translateY(-1px);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 10px;
}

.lang-btn {
  min-width: 38px;
  padding: 6px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue-deep);
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.3);
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 120px 24px 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(42, 157, 143, 0.05) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  background: rgba(201, 162, 39, 0.08);
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-pro {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 8px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--blue-deep);
  box-shadow: 0 4px 25px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(201, 162, 39, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Hero Showcase ===== */
.hero-board {
  position: relative;
  display: flex;
  justify-content: center;
}

.board-glow {
  position: absolute;
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-showcase {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    0 25px 60px var(--shadow),
    0 0 40px rgba(201, 162, 39, 0.15);
  animation: float-showcase 6s ease-in-out infinite;
  max-width: 520px;
  width: 100%;
}

@keyframes float-showcase {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-showcase-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 60%
  );
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ===== Game Board (Hero) — legacy, kept for reference ===== */
.game-board {
  position: relative;
  transform: rotateX(5deg) rotateY(-5deg);
  animation: float-board 6s ease-in-out infinite;
}

@keyframes float-board {
  0%, 100% { transform: rotateX(5deg) rotateY(-5deg) translateY(0); }
  50% { transform: rotateX(5deg) rotateY(-5deg) translateY(-12px); }
}

.board-frame {
  background: linear-gradient(145deg, var(--wood-light), var(--wood));
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 25px 60px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 2px rgba(201, 162, 39, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.kazan {
  background: linear-gradient(180deg, #2a1a0a, #1a0f05);
  border-radius: 12px;
  padding: 12px 20px;
  margin: 8px 0;
  border: 2px solid rgba(201, 162, 39, 0.25);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kazan-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.7;
}

.kazan-stones {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  max-width: 200px;
}

.board-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.otau {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 30% 30%, #4a3520, #2a1a0a);
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
}

.otau.active {
  border-color: var(--gold);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 162, 39, 0.4);
  animation: otau-pulse 2s ease-in-out infinite;
}

@keyframes otau-pulse {
  0%, 100% { box-shadow: inset 0 4px 8px rgba(0,0,0,0.5), 0 0 15px rgba(201,162,39,0.3); }
  50% { box-shadow: inset 0 4px 8px rgba(0,0,0,0.5), 0 0 25px rgba(201,162,39,0.6); }
}

.otau .stones {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: 36px;
  justify-content: center;
  align-content: center;
}

.stone {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-dark));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  animation: stone-appear 0.3s ease-out;
}

@keyframes stone-appear {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.board-reflection {
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201, 162, 39, 0.08), transparent);
  filter: blur(8px);
  border-radius: 50%;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--cream);
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ===== About ===== */
.about {
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.about-card:hover {
  background: rgba(201, 162, 39, 0.05);
  border-color: rgba(201, 162, 39, 0.2);
  transform: translateY(-4px);
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--cream);
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.about-image {
  grid-column: span 1;
  grid-row: span 2;
}

.image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.2);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s;
}

.image-frame:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.8) 0%, transparent 50%);
}

.image-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Features ===== */
.features {
  background: var(--blue-mid);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--cream);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ===== Gallery ===== */
.gallery {
  background: linear-gradient(180deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(900px, 95vw);
  max-height: 80vh;
  border-radius: 12px;
  border: 2px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.gallery-large {
  grid-row: span 2;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
}

/* Mockup screens */
.gallery-mockup {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--blue-light), var(--blue-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mockup-screen {
  width: 100%;
  background: #1a2540;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-dot:first-child { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-title {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mockup-board {
  padding: 16px;
}

.mockup-kazan {
  height: 20px;
  background: rgba(201, 162, 39, 0.15);
  border-radius: 4px;
  margin: 4px 0;
}

.mockup-otau-row {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 6px 0;
}

.mockup-hole {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #4a3520, #2a1a0a);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.mockup-hole.active {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
  animation: otau-pulse 2s infinite;
}

.mockup-score {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 0.7rem;
  color: var(--gold);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Phone mockup */
.mockup-phone {
  width: 120px;
  height: 200px;
  background: #111;
  border-radius: 16px;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-notch {
  width: 40px;
  height: 6px;
  background: #222;
  border-radius: 3px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: var(--blue-light);
  border-radius: 10px;
  height: calc(100% - 20px);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-title {
  font-size: 0.6rem;
  color: var(--gold);
  font-weight: 600;
}

.phone-board-mini {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.mini-row {
  display: flex;
  gap: 4px;
}

.mini-row span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #4a3520, #2a1a0a);
  border: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.phone-btn {
  background: var(--gold);
  color: var(--blue-deep);
  padding: 6px 20px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
}

/* ===== Rules ===== */
.rules {
  background: var(--blue-deep);
}

.rules-timeline {
  max-width: 800px;
  margin: 0 auto 64px;
}

.rule-step {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.rule-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 60px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.rule-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-deep);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.rule-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--cream);
}

.rule-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

.rule-content strong {
  color: var(--gold-light);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.term-card {
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
}

.term-card:hover {
  background: rgba(201, 162, 39, 0.12);
  transform: translateY(-2px);
}

.term-kz {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.term-ru {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== Download ===== */
.download {
  position: relative;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--blue-deep), var(--blue-mid));
}

.download-content {
  position: relative;
  text-align: center;
  padding: 60px 0;
}

.download-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  color: var(--cream);
}

.download-content > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.store-btn svg {
  width: 28px;
  height: 28px;
}

.store-btn:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.store-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.store-name {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.download-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 24px;
}

/* ===== QR Codes ===== */
.qr-group {
  margin-top: 28px;
}

.qr-group--hero {
  margin: 0;
  width: 100%;
  max-width: 520px;
}

.qr-group--hero .qr-hint {
  text-align: center;
}

.qr-group--hero .qr-cards {
  justify-content: center;
}

.qr-hint,
.qr-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.qr-group--download {
  margin-top: 8px;
  margin-bottom: 8px;
}

.qr-group--download .qr-title {
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.5px;
}

.qr-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.qr-group--download .qr-cards {
  justify-content: center;
}

.qr-cards--footer {
  gap: 12px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.qr-card:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qr-card img {
  display: block;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}

.qr-cards--large .qr-card img {
  width: 120px;
  height: 120px;
}

.qr-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.footer-qr h4 {
  font-family: var(--font-display);
  color: var(--cream);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-display);
  color: var(--cream);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===== Reveal Animations ===== */
.reveal, .reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .qr-group--hero .qr-hint,
  .qr-group--hero .qr-cards {
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-side {
    order: -1;
  }

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

  .about-image {
    grid-column: span 2;
    grid-row: span 1;
  }

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

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

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

  .footer-brand,
  .footer-qr {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 80px 32px;
    gap: 24px;
    transition: right 0.4s;
    border-left: 1px solid rgba(201, 162, 39, 0.15);
  }

  .nav-links.open {
    right: 0;
  }

  .lang-switcher {
    position: absolute;
    top: 18px;
    right: 64px;
  }

  .logo-img--wordmark {
    height: 28px;
    max-width: 140px;
  }

  .logo-img--icon {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .about-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-large,
  .gallery-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

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

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

  .rule-step {
    flex-direction: column;
    gap: 16px;
  }

  .rule-step:not(:last-child)::after {
    display: none;
  }

  .otau {
    width: 36px;
    height: 36px;
  }

  .board-frame {
    padding: 12px;
  }

  .row {
    gap: 4px;
  }
}
