/* Modern Dark Theme Design System for Jumper Quest / Cyber Runner */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --bg-primary: #0a0d18;
  --bg-secondary: #121829;
  --bg-card: rgba(22, 30, 52, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.05);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  --accent-pink: #e100ff;
  --accent-yellow: #ffb703;
  --accent-green: #00e676;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --gradient-hero: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7f00ff 100%);
  --gradient-accent: linear-gradient(90deg, #ffb703, #ff5e00);
  --gradient-card-border: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02));
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(79, 172, 254, 0.25), transparent 70%);

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 35px rgba(0, 242, 254, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue);
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header & Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  background: rgba(10, 13, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
  transition: transform var(--transition-fast);
}

.nav-brand:hover img {
  transform: scale(1.05) rotate(-3deg);
}

.nav-brand span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #040914;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.6);
  color: #040914;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 10rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.store-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.store-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.25);
  color: var(--text-main);
}

.store-card svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.store-card-text {
  display: flex;
  flex-direction: column;
}

.store-card-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-card-text strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Hero Media / Floating Showcase */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: var(--gradient-hero);
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  z-index: -1;
  animation: pulseGlow 6s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.3; }
  100% { transform: scale(1.1); opacity: 0.5; }
}

.hero-preview-box {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(18, 24, 41, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow);
  text-align: center;
  position: relative;
}

.hero-preview-box img.logo-big {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  animation: floatAnim 4s infinite ease-in-out;
}

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

/* Characters floating grid */
.hero-characters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
}

.hero-characters img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-fast);
}

.hero-characters img:hover {
  transform: scale(1.25);
  border-color: var(--accent-cyan);
}

/* Section Styling */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  border-color: rgba(0, 242, 254, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.feature-card h3 {
  font-size: 1.3rem;
}

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

/* Worlds Showcase Showcase Grid */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.world-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.world-card:hover img {
  transform: scale(1.1);
}

.world-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 24, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.world-card-overlay h4 {
  font-size: 1.1rem;
  color: #fff;
}

.world-card-overlay span {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* app-ads.txt Setup Section */
.app-ads-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.app-ads-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15), transparent 70%);
  pointer-events: none;
}

.code-snippet-wrapper {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-family: monospace;
  font-size: 1rem;
  color: var(--accent-cyan);
  word-break: break-all;
}

.copy-btn {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #040914;
}

.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.instruction-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  background: var(--gradient-hero);
  color: #040914;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

/* Legal / Privacy Policy Layout */
.legal-container {
  padding: 8rem 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-content .meta {
  color: var(--text-subtle);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--accent-cyan);
}

.legal-content p, .legal-content ul {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* Footer */
.footer {
  background: #060810;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: var(--text-main);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-subtitle {
    margin: 0 auto;
  }
  .store-buttons {
    justify-content: center;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none; /* Can add mobile drawer if needed */
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .app-ads-box {
    padding: 1.5rem;
  }
  .code-snippet-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}
