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

:root {
  /* Theme: Dark Mode #09090b / #1a1a2a */
  --bg: #09090b;
  --bg-darker: #050507;
  --bg-lighter: #1a1a2a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f59e0b; /* Coin Gold */
  --accent-glow: rgba(245, 158, 11, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --ff-heading: 'Bebas Neue', sans-serif;
  --ff-body: 'Open Sans', sans-serif;
}

body {
  font-family: var(--ff-body);
  line-height: 1.6;
  font-size: 15px; /* Content Density: High density */
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px; /* Dot grid pattern */
  animation: gridPulse 10s infinite alternate;
}

@keyframes gridPulse {
  from { background-position: 0 0; }
  to { background-position: 20px 20px; }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

h1, h2, h3 {
  font-family: var(--ff-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  color: var(--text-muted);
}

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

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

/* === NAVIGATION: Tabbed Top Nav === */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
}

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

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

.nav-logo span {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  color: var(--text);
}

.nav-tabs {
  display: flex;
  gap: 4px;
}

.nav-tab {
  padding: 10px 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.active {
  color: var(--accent);
  background: var(--glass-bg);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: block;
  }
}

/* === BUTTONS: Sharp rectangular, 3px border === */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border: 3px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* === SECTION DIVIDERS: Accent stripe === */
.section-divider {
  width: 100%;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* === HERO: Asymmetric Layout === */
.hero-section {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 60% 50%, var(--bg-lighter) 0%, var(--bg-darker) 40%, var(--bg) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 60px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 4fr 6fr;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-title {
  font-size: 5rem;
  line-height: 0.9;
  margin-bottom: 20px;
  color: var(--text);
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-rating {
    justify-content: flex-start;
  }
}

.rating-badge {
  background: var(--accent);
  color: var(--bg);
  padding: 4px 12px;
  font-weight: 800;
  border-radius: 4px;
}

.stars {
  color: var(--accent);
}

.hero-downloads {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-downloads {
    justify-content: flex-start;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-screenshot-container {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  transform: translateY(40px); /* tension offset */
  border: 1px solid var(--glass-border);
}

.hero-screenshot-container img {
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

/* === REVIEWS: Horizontal scroll reviews === */
.reviews-section {
  padding: 100px 0;
  background: var(--bg-darker);
}

.reviews-header {
  text-align: center;
  margin-bottom: 60px;
}

.reviews-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.reviews-scroller::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 350px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.review-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  color: #fff;
}

.review-info h4 {
  font-family: var(--ff-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

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

/* === GALLERY: Masonry mosaic === */
.gallery-section {
  padding: 100px 0;
}

.masonry-grid {
  columns: 3;
  column-gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .masonry-grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    columns: 1;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--glass-border);
}

.masonry-item:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* === FEATURES: Magazine editorial blocks === */
.features-section {
  padding: 100px 0;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
  padding: 0 40px;
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even) .feature-text {
  direction: ltr;
}

.feature-text {
  position: relative;
}

.feature-number {
  font-family: var(--ff-heading);
  font-size: 8rem;
  line-height: 1;
  color: rgba(245, 158, 11, 0.1);
  position: absolute;
  top: -40px;
  left: -20px;
  z-index: -1;
}

.feature-text h3 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-text p {
  font-size: 1.1rem;
  max-width: 500px;
}

.feature-visual {
  background: var(--bg-lighter);
  padding: 40px;
  border-radius: 40px;
  display: flex;
  justify-content: center;
}

.feature-visual img {
  max-width: 280px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Staircase effect */
.feature-block:nth-child(2) { transform: translateY(60px); }
.feature-block:nth-child(3) { transform: translateY(120px); }

/* === STATS: Circular SVG rings === */
.stats-section {
  padding: 180px 0 100px;
  background: var(--bg-darker);
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item {
  width: 200px;
}

.svg-ring {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  position: relative;
}

.svg-ring svg {
  transform: rotate(-90deg);
}

.svg-ring circle {
  fill: none;
  stroke-width: 8;
}

.circle-bg {
  stroke: var(--glass-border);
}

.circle-progress {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 2s ease-out;
}

.stat-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-heading);
  font-size: 2rem;
  color: var(--text);
}

.stat-label {
  font-family: var(--ff-heading);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* === DOWNLOAD CTA: Split layout === */
.download-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-lighter) 100%);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.download-content h2 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.app-badges {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.download-visual img {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 40px;
  border: 10px solid var(--bg-darker);
}

/* === FOOTER: Asymmetric Footer === */
.main-footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-darker);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

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

.footer-brand {
  max-width: 500px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.footer-logo h2 {
  font-size: 1.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* MOBILE NAV */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: 0.3s;
}

.nav-tabs.mobile-open {
  display: flex;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--bg);
  flex-direction: column;
  padding: 40px;
  gap: 20px;
}

@media (max-width: 767px) {
  .nav-tabs {
    display: none;
  }
}

/* LEGAL PAGES SPECIFIC */
.legal-content {
  padding: 160px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 { font-size: 3rem; margin-bottom: 2rem; color: var(--accent); }
.legal-content h2 { font-size: 1.8rem; margin: 2rem 0 1rem; color: var(--text); }
.legal-content p { margin-bottom: 1.5rem; }
.legal-content ul { margin-bottom: 1.5rem; padding-left: 20px; color: var(--text-muted); }
.legal-content li { margin-bottom: 0.5rem; }

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
