/* === Kazakhstan.travel Guides: Premium Game-Style CSS Framework === */

:root {
  /* THEME MODE: DARK - Mandatory dark background derived from icon */
  --bg-deep: #0d0d0d;
  --bg-offset: #1a1a1a;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* ACCENTS: Gold/Blue tones from icon */
  --accent: #d4af37; /* Royal Gold */
  --accent-glow: rgba(212, 175, 55, 0.3);
  --blue-glow: rgba(59, 130, 246, 0.2);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --font-heading: 'Zodiak', serif;
  --font-body: 'Supreme', sans-serif;

  --container-width: 1240px;
}

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip; /* Prevent horizontal scroll as requested */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
  color: inherit;
}

ul { list-style: none; }

/* === STRUCTURAL PRIMITIVES === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Diagonal slant dividers */
.divider-slant {
  position: absolute;
  width: 100%;
  height: 100px;
  background: var(--bg-deep);
  z-index: 2;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.divider-slant.bottom {
  bottom: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* === MESH GRADIENT SIMULATION === */
.mesh-gradient {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--blue-glow) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, #151515 0%, var(--bg-deep) 100%);
  z-index: -2;
  background-attachment: fixed; /* Minimal parallax */
}

/* === GLASSMORPHISM === */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--accent);
}

/* === NAVIGATION === */
.nomad-nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block !important; }
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent);
}

/* === HERO SECTION === */
.stunning-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 100px;
}

.hero-app-icon {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* CTA BUTTON STYLE: Outlined pill with fill-on-hover */
.btn-pill {
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-pill:hover {
  background: var(--accent);
  color: #000;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-pill.primary {
  background: var(--accent);
  color: #000;
}

/* === BENTO FEATURES === */
.feature-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-cell {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-cell.large {
  grid-column: span 2;
  grid-row: span 2;
  background: rgba(212, 175, 55, 0.05);
}

.bento-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.bento-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.bento-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .feature-bento {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .feature-bento {
    grid-template-columns: 1fr;
  }
  .bento-cell.large {
    grid-column: span 1;
  }
}

/* === FLOATING STATS === */
.stat-orbit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  flex: 0 1 260px;
  text-align: center;
  padding: 3rem 2rem;
}

/* Different accent border per card */
.stat-card:nth-child(1) { border-top: 4px solid var(--accent); }
.stat-card:nth-child(2) { border-top: 4px solid #3b82f6; }
.stat-card:nth-child(3) { border-top: 4px solid #10b981; }
.stat-card:nth-child(4) { border-top: 4px solid #f43f5e; }

.stat-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  font-family: var(--font-heading);
}

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

/* === REVIEW MASONRY === */
.masonry-wall {
  column-count: 3;
  column-gap: 1.5rem;
}

.review-brick {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
}

.stars {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.review-text {
  font-style: italic;
  font-size: 0.9rem;
}

@media (max-width: 1000px) {
  .masonry-wall { column-count: 2; }
}
@media (max-width: 600px) {
  .masonry-wall { column-count: 1; }
}

/* === SCREENSHOT GALLERY === */
.vision-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vision-slider::-webkit-scrollbar {
  display: none;
}

.vision-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.vision-item img {
  height: 500px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-glass);
}

@media (max-width: 768px) {
  .vision-item img { height: 350px; }
}

/* === FAQ ACCORDION === */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease;
  padding: 0 2rem;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding: 1.5rem 2rem;
}

.faq-item.active .faq-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--accent);
}

/* === DOWNLOAD CTA === */
.download-nexus {
  text-align: center;
  padding: 120px 0;
}

.nexus-header h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.nexus-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
}

.nexus-stat-item b {
  display: block;
  font-size: 2.5rem;
  color: var(--accent);
}

@media (max-width: 768px) {
  .nexus-stats { gap: 2rem; flex-direction: column; }
}

/* === MEGA FOOTER === */
.mega-footer {
  background: #050505;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-info p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.newsletter-wrap {
  display: flex;
  gap: 10px;
}

.newsletter-wrap input {
  background: var(--bg-offset);
  border: 1px solid var(--border-glass);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  color: white;
  flex: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Offset Grid Utility */
.staircase-row {
  display: flex;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.staircase-row:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: 100px;
}

.staircase-row:nth-child(odd) {
  padding-right: 100px;
}

@media (max-width: 1024px) {
  .staircase-row, .staircase-row:nth-child(even) {
    flex-direction: column;
    padding: 0;
    text-align: center;
  }
}
