/* ============================================
   MaxYourStats — Mobile-First Premium Landing
   Neutral Color Scheme (Gold/Amber Accents)
   ============================================ */

:root {
  --bg-deep: #030305;
  --bg-dark: #0a0a0f;

  /* Swapped to Blue Theme to match Dashboard */
  --accent-gold: #3b82f6;
  /* Primary Blue */
  --accent-amber: #06b6d4;
  /* Cyan */
  --accent-warm: #6366f1;
  /* Indigo */

  --accent-success: #4ade80;

  --glow-gold: rgba(59, 130, 246, 0.4);
  --glow-amber: rgba(6, 182, 212, 0.35);
  --glow-warm: rgba(99, 102, 241, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* Prevent flash - only hide text elements */
.js #badge,
.js #subheadline,
.js #secondary,
.js #cta-wrap,
.js #cta-mobile,
.js #scroll-indicator {
  opacity: 0;
}

/* ============================================
   BACKGROUND LAYERS
   ============================================ */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -3;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(212, 168, 83, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(245, 166, 35, 0.05), transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(232, 196, 124, 0.04), transparent 50%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-dark));
  pointer-events: none;
  z-index: -2;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(212, 168, 83, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(212, 168, 83, 0.3);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* ============================================
   GLOW ORBS
   ============================================ */

.glow-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--glow-gold), transparent 70%);
  top: -120px;
  left: -120px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow-amber), transparent 70%);
  bottom: -100px;
  right: -100px;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--glow-warm), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}

@media (min-width: 1024px) {
  .orb-1 {
    width: 500px;
    height: 500px;
  }

  .orb-2 {
    width: 400px;
    height: 400px;
  }

  .orb-3 {
    width: 350px;
    height: 350px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Nav */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 20px;
}

/* Logo */
.logo-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  border-radius: 50%;
  box-shadow: 0 0 15px var(--glow-gold);
  animation: logoPulse 2s ease-in-out infinite;
}

.logo-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(212, 168, 83, 0.3);
  border-radius: 50%;
  animation: logoRing 3s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes logoRing {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Nav Link */
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 168, 83, 0.3);
}

/* Hero Grid */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }
}

/* ============================================
   HERO COPY
   ============================================ */

.hero-copy {
  text-align: center;
  padding: 0 8px;
}

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

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-success);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@media (min-width: 1024px) {
  .badge {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Headline */
.headline {
  margin-top: 16px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  min-height: 1.2em;
}

@media (min-width: 640px) {
  .headline {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .headline {
    margin-top: 20px;
    font-size: 52px;
  }
}

@media (min-width: 1280px) {
  .headline {
    font-size: 60px;
  }
}

.typed-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typed-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--accent-gold);
  animation: cursorBlink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Subheadlines */
.subheadline {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .subheadline {
    margin-left: 0;
    margin-right: 0;
    font-size: 17px;
    max-width: 460px;
  }
}

.secondary {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 1024px) {
  .secondary {
    font-size: 14px;
  }
}

/* ============================================
   CTA WRAP - Mobile vs Desktop
   ============================================ */

/* Hide desktop CTA on mobile */
.cta-wrap--desktop {
  display: none;
}

/* Show mobile CTA */
.cta-wrap--mobile {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}

@media (min-width: 1024px) {

  /* Show desktop CTA */
  .cta-wrap--desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
  }

  /* Hide mobile CTA */
  .cta-wrap--mobile {
    display: none;
  }
}

/* CTA Button */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 4px 25px rgba(212, 168, 83, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 40px rgba(212, 168, 83, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

.cta-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber), var(--accent-warm));
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.4s ease;
}

.cta-button:hover .cta-glow {
  opacity: 0.5;
}

.cta-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button--secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 168, 83, 0.4);
}

/* Stats Preview - hidden on mobile */
.stats-preview {
  display: none;
}

@media (min-width: 1024px) {
  .stats-preview {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
  }
}

.stats-number {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-success), #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   IMAGE CARDS
   ============================================ */

.hero-images {
  width: 100%;
  max-width: 320px;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-column--offset {
  margin-top: 20px;
}

.image-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: all 0.4s ease;
}

.image-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 168, 83, 0.08);
}

.image-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-card:hover .image-card__img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.card-overlay--after {
  background: linear-gradient(180deg,
      rgba(74, 222, 128, 0.05) 0%,
      transparent 30%,
      transparent 70%,
      rgba(74, 222, 128, 0.08) 100%);
}

.card-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-label--after {
  background: rgba(74, 222, 128, 0.25);
  border-color: rgba(74, 222, 128, 0.35);
}

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.image-card:hover .card-shine {
  transform: translateX(100%);
}

/* Desktop: Larger cards */
@media (min-width: 1024px) {
  .hero-images {
    max-width: 400px;
  }

  .cards-wrapper {
    gap: 14px;
  }

  .card-column {
    gap: 14px;
  }

  .card-column--offset {
    margin-top: 30px;
  }

  .image-card {
    border-radius: 18px;
  }

  .card-label {
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    font-size: 11px;
  }
}

@media (min-width: 1280px) {
  .hero-images {
    max-width: 440px;
  }
}

/* ============================================
   SCROLL INDICATOR - DESKTOP ONLY
   ============================================ */

.scroll-indicator {
  display: none;
}

@media (min-width: 1024px) {
  .scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: auto;
    padding-top: 20px;
  }

  .scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
    position: relative;
    overflow: hidden;
  }

  .scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(180deg, var(--accent-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }

  @keyframes scrollPulse {

    0%,
    100% {
      transform: translateY(-100%);
    }

    50% {
      transform: translateY(400%);
    }
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-section {
  position: relative;
  padding: 60px 16px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .how-section {
    padding: 100px 24px;
  }
}

.how-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(212, 168, 83, 0.04), transparent 50%),
    radial-gradient(ellipse 80% 40% at 20% 100%, rgba(245, 166, 35, 0.03), transparent 50%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-deep));
  pointer-events: none;
}

.how-container {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
}

/* Section Header */
.how-header {
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .how-header {
    margin-bottom: 60px;
  }
}

.section-label {
  display: inline-block;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 100px;
}

@media (min-width: 1024px) {
  .section-label {
    padding: 8px 18px;
    font-size: 11px;
  }
}

.section-title {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 42px;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .section-subtitle {
    font-size: 16px;
    max-width: 450px;
  }
}

.section-line {
  width: 60px;
  height: 3px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber));
  border-radius: 100px;
  box-shadow: 0 0 20px var(--glow-gold);
}

/* ============================================
   STEPS
   ============================================ */

.steps-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.step-card {
  position: relative;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.step-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.step-card:hover .step-accent {
  transform: scaleX(1);
}

.step-number {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 83, 0.06);
  border: 2px solid rgba(212, 168, 83, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
}

@media (min-width: 768px) {
  .step-number {
    width: 70px;
    height: 70px;
  }
}

.step-card:hover .step-number {
  border-color: rgba(212, 168, 83, 0.5);
  box-shadow: 0 0 30px rgba(212, 168, 83, 0.2);
}

.step-number-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-number-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.2), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step-card:hover .step-number-glow {
  opacity: 1;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .step-title {
    font-size: 18px;
  }
}

.step-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .step-desc {
    font-size: 14px;
  }
}

/* How CTA */
.how-cta {
  text-align: center;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .how-cta {
    margin-top: 60px;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  position: relative;
  padding: 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.3);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .particle {
    display: none;
  }
}