/* ============================================================
   STARA EKIPA — style.css  v4.0
   Neon-readable text, improved contrast, full design system
   ============================================================ */

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

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Backgrounds — slightly lighter than before for depth contrast */
  --bg-base:    #04060f;
  --bg-surface: #080c1a;
  --bg-raised:  #0c1221;
  --bg-card:    #101828;
  --bg-hover:   #151f30;

  /* Brand */
  --brand:        #6875f5;
  --brand-dim:    #4f5de0;
  --brand-glow:   rgba(104,117,245,0.22);
  --brand-subtle: rgba(104,117,245,0.09);

  /* Neon accents — brighter, visible on dark bg */
  --neon-blue:    #7eb3ff;   /* bright sky blue for body text links */
  --neon-purple:  #c084fc;   /* purple highlight */
  --neon-green:   #4ade80;   /* bright green — readable on dark */
  --neon-orange:  #fb923c;   /* warm orange accent */
  --neon-cyan:    #22d3ee;   /* cyan for special highlights */

  /* Semantic colors */
  --success:  #4ade80;
  --error:    #f87171;
  --warning:  #fbbf24;
  --info:     --neon-blue;

  /* Gold */
  --gold:     #fbbf24;
  --gold-dim: rgba(251,191,36,0.15);

  /* ── TEXT COLORS — the main readability fix ── */
  /* Every text var is now significantly lighter */
  --text-primary:    #f0f4ff;   /* was #eef0f7 — brighter white-blue */
  --text-secondary:  #a8b5d4;   /* was #7882a4 — much more readable */
  --text-tertiary:   #6b7fa0;   /* was #3d4460 — lighter than before */
  --text-muted:      #4a5878;   /* for truly de-emphasised content */
  --text-inverse:    #04060f;

  /* Legacy aliases so old sections still work */
  --text-muted-legacy: var(--text-tertiary);

  /* Borders */
  --border-faint:  rgba(255,255,255,0.06);
  --border-soft:   rgba(255,255,255,0.10);
  --border-medium: rgba(255,255,255,0.18);
  --border-brand:  rgba(104,117,245,0.50);

  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Cascadia Code', 'Fira Code', 'Courier New', monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-brand: 0 0 40px rgba(104,117,245,0.18);
  --shadow-card:  0 4px 32px rgba(0,0,0,0.45);
  --shadow-neon:  0 0 20px rgba(104,117,245,0.35);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── TYPOGRAPHY ────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* Section labels — neon brand color, visible */
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  /* subtle neon glow on labels */
  text-shadow: 0 0 20px rgba(104,117,245,0.6);
}

/* Body text — readable secondary */
p, li, span {
  color: var(--text-secondary);
}

/* Override: headings always bright */
h1, h2, h3, h4, h5, h6,
.heading, .display {
  color: var(--text-primary);
}

/* Neon highlight spans */
.neon-blue   { color: var(--neon-blue);   text-shadow: 0 0 12px rgba(126,179,255,0.5); }
.neon-green  { color: var(--neon-green);  text-shadow: 0 0 12px rgba(74,222,128,0.5); }
.neon-purple { color: var(--neon-purple); text-shadow: 0 0 12px rgba(192,132,252,0.5); }
.neon-orange { color: var(--neon-orange); text-shadow: 0 0 12px rgba(251,146,60,0.5); }
.neon-cyan   { color: var(--neon-cyan);   text-shadow: 0 0 12px rgba(34,211,238,0.5); }
.accent      { color: var(--brand); }
.gold        { color: var(--gold); }
.success     { color: var(--success); }
.error       { color: var(--error); }

/* ── LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section        { padding: 96px 0; }
.section-alt    { background: var(--bg-surface); }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .label { margin-bottom: 14px; }
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-header p {
  font-size: 15px;
  color: var(--text-secondary); /* lighter than old --text-muted */
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dim); }

/* ── SELECTION ─────────────────────────────────────────── */
::selection { background: rgba(104,117,245,0.4); color: #fff; }

/* ── UTILITY ───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── BACKGROUND GRID TEXTURE ───────────────────────────── */
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(104,117,245,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104,117,245,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

/* ── GLOW BLOB ─────────────────────────────────────────── */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.6;
}

/* ── DIVIDER ───────────────────────────────────────────── */
.divider { width: 100%; height: 1px; background: var(--border-faint); }

/* ── STAT BAR ITEMS ─────────────────────────────────────── */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border-faint);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

/* Stat number — bright neon readable */
.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  /* subtle neon glow */
  text-shadow: 0 0 24px rgba(104,117,245,0.4);
  line-height: 1;
  margin-bottom: 6px;
}

/* Stat label — readable secondary */
.stat-l {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── FEATURE CARDS ─────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}

.feat-card {
  padding: 28px 24px;
}

/* Feature card text — fully readable */
.feat-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feat-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Icon box */
.icon-box {
  width: 46px; height: 46px;
  background: var(--brand-subtle);
  border: 1px solid var(--border-brand);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-box svg {
  width: 20px; height: 20px;
  color: var(--brand);
  stroke: var(--brand);
}

/* ── PRICE CHECK ───────────────────────────────────────── */
.pcheck { color: var(--neon-green); font-weight: 700; }

/* ── FADE-IN ON SCROLL ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: 0.05s; }
.fade-up.d2 { transition-delay: 0.12s; }
.fade-up.d3 { transition-delay: 0.19s; }
.fade-up.d4 { transition-delay: 0.26s; }
.fade-up.d5 { transition-delay: 0.33s; }
.fade-up.d6 { transition-delay: 0.40s; }

/* ── MOBILE PRICING FIX ─────────────────────────────────── */
@media (max-width: 600px) {
  .pricing-row { grid-template-columns: 1fr !important; gap: 16px !important; }
  .p-card { max-width: 100% !important; overflow: hidden; }
  .p-price-row { flex-wrap: wrap; word-break: break-word; }
  #price-tabs { flex-wrap: wrap; gap: 8px !important; justify-content: center; }
  .ptab { flex: 0 0 auto; border-radius: var(--r-md) !important; border: 1px solid var(--border-soft) !important; }
}

/* ── BACK-TO-TOP ─────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 90px; right: 22px; z-index: 500;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-raised); border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, color 0.2s;
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-neon); }

/* ── STICKY DISCORD CTA ─────────────────────────────────── */
#sticky-discord {
  position: fixed; bottom: 22px; right: 22px; z-index: 500;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; background: var(--brand); color: #fff;
  font-weight: 700; font-size: 13px; font-family: var(--font-display);
  border-radius: var(--r-full);
  box-shadow: 0 4px 24px rgba(104,117,245,0.5);
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
#sticky-discord:hover {
  background: var(--brand-dim); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(104,117,245,0.6);
}
#sticky-discord svg { flex-shrink: 0; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section   { padding: 64px 0; }
}
@media (max-width: 480px) {
  .section { padding: 48px 0; }
}
