/* ==========================================================================
   N8R5K WORLD — Landing page styles (loads after app.css)
   Created by N8R5K — Nathan Hladil
   ========================================================================== */

body.landing {
  background: var(--bg);
  overflow-x: hidden;
}
body.landing .bare-content { display: block; padding: 0; }

/* Top nav strip */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(var(--bg-rgb), .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.landing-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.landing-nav .brand .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
.landing-nav .brand .brand-name { font-size: 15px; letter-spacing: .12em; }
.landing-nav .nav-actions { display: flex; align-items: center; gap: 8px; }
.landing-nav .nav-links { display: flex; gap: 4px; }
.landing-nav .nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.landing-nav .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 72px;
  text-align: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(var(--gold-rgb), .18), transparent 70%),
    radial-gradient(40% 40% at 15% 60%, rgba(var(--cyan-rgb), .14), transparent 70%),
    radial-gradient(40% 40% at 85% 65%, rgba(var(--purple-rgb), .14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
  animation: grid-pan 30s linear infinite;
}
.hero-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-particles i {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-2);
  opacity: 0;
  box-shadow: 0 0 10px rgba(var(--gold-rgb), .8);
  animation: float-up var(--dur, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
}
.hero-particles i:nth-child(3n) { background: var(--cyan); box-shadow: 0 0 10px rgba(var(--cyan-rgb), .8); width: 3px; height: 3px; }
.hero-particles i:nth-child(4n) { background: var(--purple); box-shadow: 0 0 10px rgba(var(--purple-rgb), .8); }
.hero-particles i:nth-child(5n) { width: 5px; height: 5px; }

.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--gold-rgb), .35);
  background: rgba(var(--gold-rgb), .08);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 26px;
  animation: fade-up .6s var(--ease) both;
}
.hero-eyebrow .online-dot { width: 8px; height: 8px; flex-basis: 8px; }
.hero-logo { width: 92px; height: 92px; margin: 0 auto 18px; filter: drop-shadow(0 10px 30px rgba(var(--gold-rgb), .45)); animation: hero-float 6s ease-in-out infinite; }
.hero-logo svg { width: 100%; height: 100%; }
.hero-title {
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #fff 0%, var(--gold-2) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: fade-up .7s var(--ease) .05s both;
}
.hero-tagline {
  font-size: clamp(16px, 2.2vw, 21px);
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.55;
  animation: fade-up .7s var(--ease) .12s both;
}
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; animation: fade-up .7s var(--ease) .2s both; }
.hero-cta .btn { min-width: 170px; }
.hero-creator {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
  animation: fade-up .7s var(--ease) .28s both;
}
.hero-creator strong { color: var(--text-2); font-weight: 600; }

/* Live stats strip */
.live-stats-wrap { padding: 0 24px; margin-top: -8px; position: relative; z-index: 2; }
.live-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  max-width: 1240px;
  margin: 0 auto;
}
.live-stat {
  position: relative;
  background: rgba(var(--panel-rgb), .85);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  animation: fade-up .6s var(--ease) both;
  overflow: hidden;
  min-width: 0;
}
.live-stat:nth-child(1) { animation-delay: .25s; }
.live-stat:nth-child(2) { animation-delay: .3s; }
.live-stat:nth-child(3) { animation-delay: .35s; }
.live-stat:nth-child(4) { animation-delay: .4s; }
.live-stat:nth-child(5) { animation-delay: .45s; }
.live-stat:nth-child(6) { animation-delay: .5s; }
.live-stat:nth-child(7) { animation-delay: .55s; }
.live-stat:hover { border-color: rgba(var(--gold-rgb), .45); transform: translateY(-2px); }
.live-stat::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.live-stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-stat-value.gold { color: var(--gold-2); }
.live-stat-value.green { color: var(--green); }
.live-stat-label { margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ticker on landing */
.landing-ticker { margin: 34px 0 0; }
.landing-ticker .ticker { height: 42px; border-color: var(--border); background: rgba(var(--bg2-rgb), .9); }
.landing-ticker .ticker-item { height: 42px; }
.landing-ticker .ticker-empty { padding: 0 20px; color: var(--muted); font-size: 13px; }

/* Sections */
.landing-section { padding: 72px 24px; }
.landing-section.alt { background: linear-gradient(180deg, transparent, rgba(var(--bg2-rgb), .7), transparent); }
.landing-section .section-inner { max-width: 1140px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-kicker { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative;
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 120px at 0% 0%, rgba(var(--accent-rgb, var(--gold-rgb)), .12), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.feature:hover { border-color: rgba(var(--accent-rgb, var(--gold-rgb)), .5); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb, var(--gold-rgb)), .14);
  color: rgb(var(--accent-rgb, var(--gold-rgb)));
  border: 1px solid rgba(var(--accent-rgb, var(--gold-rgb)), .3);
  margin-bottom: 14px;
  position: relative;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; position: relative; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.55; position: relative; }
.feature.gold { --accent-rgb: var(--gold-rgb); }
.feature.cyan { --accent-rgb: var(--cyan-rgb); }
.feature.green { --accent-rgb: var(--green-rgb); }
.feature.purple { --accent-rgb: var(--purple-rgb); }
.feature.orange { --accent-rgb: var(--orange-rgb); }
.feature.red { --accent-rgb: var(--red-rgb); }
.feature.pink { --accent-rgb: 236, 72, 153; }

/* Progression steps */
.steps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--border-2), var(--gold) 60%, var(--gold-2));
  opacity: .6;
  z-index: 0;
}
.step { position: relative; text-align: center; padding: 0 4px; z-index: 1; }
.step-dot {
  counter-increment: step;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 2px solid var(--border-2);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  position: relative;
}
.step-dot::after { content: counter(step); }
.step-dot svg { display: none; }
.step:hover .step-dot { transform: scale(1.08); border-color: var(--gold); box-shadow: 0 0 20px rgba(var(--gold-rgb), .35); }
.step:last-child .step-dot { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: var(--gold-2); color: #1a1200; box-shadow: 0 0 24px rgba(var(--gold-rgb), .4); }
.step:last-child .step-dot::after { content: "★"; }
.step-name { font-weight: 700; font-size: 13.5px; }
.step-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.step-level { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* CTA band */
.cta-band {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 32px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(var(--gold-rgb), .35);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(var(--gold-rgb), .18), transparent 70%),
    var(--panel);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 8px; }
.cta-band p { color: var(--text-2); margin-bottom: 22px; }

/* Footer */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px calc(30px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 12.5px;
}
.landing-footer .footer-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.landing-footer .footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 700; letter-spacing: .08em; }
.landing-footer .footer-brand .brand-logo { width: 26px; height: 26px; flex-basis: 26px; filter: none; }
.landing-footer .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.landing-footer a { color: var(--muted); }
.landing-footer a:hover { color: var(--gold-2); }
.landing-footer .footer-note { width: 100%; text-align: center; font-size: 11.5px; opacity: .8; margin-top: 8px; }

/* Keyframes */
@keyframes hero-drift {
  0% { background-position: 0% 0%, 0% 0%, 100% 100%, 0 0; }
  100% { background-position: 100% 30%, 40% 60%, 60% 40%, 0 0; }
}
@keyframes grid-pan { from { background-position: 0 0, 0 0; } to { background-position: 0 48px, 48px 0; } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-up {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .5; }
  100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

/* Responsive */
@media (max-width: 1100px) {
  .live-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; }
  .steps::before { display: none; }
}
@media (max-width: 768px) {
  .landing-nav { padding: 10px 14px; }
  .landing-nav .nav-links { display: none; }
  .hero { padding: 64px 18px 48px; }
  .hero-logo { width: 72px; height: 72px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .live-stats-wrap { padding: 0 14px; }
  .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .live-stat { padding: 12px 10px 10px; border-radius: 12px; }
  .landing-section { padding: 48px 16px; }
  .section-head { margin-bottom: 26px; }
  .features { gap: 12px; }
  .feature { padding: 18px 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { display: flex; align-items: center; text-align: left; gap: 12px; padding: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
  .step-dot { margin: 0; width: 42px; height: 42px; font-size: 13px; flex: 0 0 42px; }
  .step-body { min-width: 0; }
  .cta-band { padding: 32px 18px; border-radius: 16px; }
  .cta-band .btn { width: 100%; max-width: 320px; }
  .landing-footer .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .live-stats { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-grid, .hero-particles i, .hero-logo { animation: none; }
}
