/* ============================================================
   Shuttlestepz — style.css
   Premium Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

:root {
  /* Palette */
  --bg:         #050908;
  --bg2:        #0b120d;
  --bg3:        #111a13;
  --bg4:        #172019;
  --card:       #0e1610;
  --card2:      #131d15;

  --border:     rgba(56, 210, 90, 0.12);
  --border2:    rgba(56, 210, 90, 0.30);
  --border3:    rgba(56, 210, 90, 0.55);

  --accent:     #38d25a;
  --accent2:    #22a83e;
  --accent3:    #16742a;
  --accent-glow:rgba(56, 210, 90, 0.22);
  --accent-dim: rgba(56, 210, 90, 0.07);

  --gold:       #f0c040;
  --gold-dim:   rgba(240, 192, 64, 0.12);
  --amber:      #f09040;
  --red:        #e04848;
  --red-dim:    rgba(224, 72, 72, 0.10);
  --blue:       #40a0f0;

  --text:       #e2ede4;
  --text2:      #6e9475;
  --text3:      #364e3a;
  --text4:      #1e301f;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Atmospheric Background ─────────────────────────────────── */
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.bg-radial {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(56,210,90,0.08) 0%, transparent 70%);
}

.bg-lines {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(56,210,90,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,210,90,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Layout Wrapper ─────────────────────────────────────────── */
.page-root {
  position: relative; z-index: 1;
  min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(5,9,8,0.7);
  position: sticky; top: 0; z-index: 100;
}

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

.nav-logo {
  width: 34px; height: 34px;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text2);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--text); background: var(--accent-dim); }

.nav-link.active { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  padding: 13px 28px;
  font-size: 13px;
  background: var(--accent);
  color: #050908;
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-primary:hover {
  background: #4ae870;
  box-shadow: 0 0 42px rgba(56,210,90,0.38);
}

.btn-secondary {
  padding: 12px 24px;
  font-size: 13px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border3);
  background: var(--accent-dim);
}

.btn-gold {
  padding: 13px 28px;
  font-size: 13px;
  background: var(--gold);
  color: #050908;
  box-shadow: 0 0 28px var(--gold-dim);
}

.btn-gold:hover { background: #f8d060; box-shadow: 0 0 40px rgba(240,192,64,0.3); }

.btn-ghost {
  padding: 10px 20px;
  font-size: 12px;
  background: transparent;
  color: var(--text3);
  border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--text2); border-color: var(--border2); }

.btn-danger {
  padding: 10px 20px;
  font-size: 12px;
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(224,72,72,0.25);
}

.btn-danger:hover { background: var(--red-dim); border-color: var(--red); }

.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn-lg { padding: 16px 36px; font-size: 15px; letter-spacing: 2px; }
.btn-full { width: 100%; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
}

.card-sm  { padding: 16px; border-radius: var(--r-lg); }
.card-lg  { padding: 32px; }
.card-glow { box-shadow: 0 0 40px rgba(56,210,90,0.06); }

.card-hd {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.card-hd svg { flex-shrink: 0; }

/* ── Form Elements ───────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input::placeholder { color: var(--text3); }

.form-input:focus {
  border-color: var(--border3);
  box-shadow: 0 0 0 3px rgba(56,210,90,0.1);
}

.form-input.error { border-color: var(--red); }

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 6px;
  min-height: 16px;
}

.form-hint {
  font-size: 11px;
  color: var(--text3);
  margin-top: 5px;
}

/* ── Typography ──────────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1px;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
}

.display-md {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.label-xs {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
}

/* ── Badges / Pills ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-free {
  color: var(--text2);
  border: 1px solid var(--border);
  background: var(--accent-dim);
}

.badge-premium {
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  background: var(--gold-dim);
}

.badge-live {
  color: var(--accent);
  border: 1px solid var(--border2);
}

.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.6s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Stat blocks ─────────────────────────────────────────────── */
.stat-block {
  text-align: center;
  padding: 16px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.stat-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.stat-val.accent { color: var(--accent); }
.stat-val.gold   { color: var(--gold); }

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text3);
  margin-top: 5px;
  text-transform: uppercase;
}

/* ── Progress bar ────────────────────────────────────────────── */
.progress-wrap {
  height: 5px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.gold   { background: var(--gold); }
.progress-fill.red    { background: var(--red); }
.progress-fill.amber  { background: var(--amber); }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.divider-text {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--text3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
}

.divider-text::before, .divider-text::after {
  content: ''; flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.alert-error  { background: var(--red-dim); border: 1px solid rgba(224,72,72,0.25); color: #f0a0a0; }
.alert-success{ background: var(--accent-dim); border: 1px solid var(--border2); color: #90dfa0; }
.alert-warning{ background: rgba(240,144,64,0.1); border: 1px solid rgba(240,144,64,0.25); color: #f0b870; }
.alert-info   { background: rgba(64,160,240,0.08); border: 1px solid rgba(64,160,240,0.2); color: #90c8f0; }

.alert svg { flex-shrink: 0; margin-top: 1px; }

/* ── Toggle ──────────────────────────────────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info { flex: 1; }
.toggle-title { font-size: 13px; color: var(--text); margin-bottom: 2px; }
.toggle-desc  { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; }

.toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text3);
  transition: transform 0.2s, background 0.2s;
}
.toggle input:checked + .toggle-slider {
  background: var(--accent-dim);
  border-color: var(--border3);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent);
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.anim-fade-up  { animation: fadeUp 0.5s ease both; }
.anim-delay-1  { animation-delay: 0.1s; }
.anim-delay-2  { animation-delay: 0.2s; }
.anim-delay-3  { animation-delay: 0.3s; }
.anim-delay-4  { animation-delay: 0.4s; }

/* ── Sliders ─────────────────────────────────────────────────── */
input[type=range] {
  width: 100%; height: 4px;
  -webkit-appearance: none;
  background: var(--bg3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text2); }
.text-dim    { color: var(--text3); }
.text-center { text-align: center; }
.mt-sm  { margin-top: 8px; }
.mt-md  { margin-top: 16px; }
.mt-lg  { margin-top: 24px; }
.mt-xl  { margin-top: 40px; }
.mb-sm  { margin-bottom: 8px; }
.mb-md  { margin-bottom: 16px; }
.mb-lg  { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 14px 18px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links .nav-link { display: none; }
}
