/* ==========================================================================
   Crux Technology — Core stylesheet (design system, layout, page sections)
   ========================================================================== */

:root {
  /* Brand palette */
  --primary-green: #00ff19;
  --bright-green: #18ff32;
  --deep-green: #003d08;
  --dark-green: #001f05;
  --black: #020804;
  --white: #ffffff;
  --soft-green: #d9ffe0;

  /* Surfaces */
  --bg: var(--black);
  --bg-alt: #04120a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(0, 61, 8, 0.35);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(0, 255, 25, 0.32);

  /* Text */
  --text: var(--white);
  --text-muted: rgba(226, 245, 231, 0.62);
  --text-dim: rgba(226, 245, 231, 0.42);

  /* Effects */
  --glow-sm: 0 0 18px rgba(0, 255, 25, 0.18);
  --glow-md: 0 0 40px rgba(0, 255, 25, 0.22);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --gradient-green: linear-gradient(135deg, var(--primary-green), #00c414);
  --gradient-surface: linear-gradient(160deg, rgba(0, 255, 25, 0.08), rgba(0, 61, 8, 0.05) 45%, rgba(255, 255, 255, 0.02));
  --gradient-hero: radial-gradient(1200px 600px at 80% -10%, rgba(0, 255, 25, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(0, 61, 8, 0.55), transparent 65%);

  /* Radii & spacing */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;
  --container: 1200px;
  --nav-h: 74px;

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5rem; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1rem; }
::selection { background: var(--primary-green); color: var(--black); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #030d07; }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 25, .25); border-radius: 99px; }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(0, 61, 8, .22), transparent); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap { gap: 16px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* Typography helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary-green);
  background: rgba(0, 255, 25, .08);
  border: 1px solid rgba(0, 255, 25, .22);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.h-xl { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 800; }
.h-lg { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.h-md { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; }
.lead { color: var(--text-muted); font-size: 1.05rem; max-width: 62ch; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.green { color: var(--primary-green); }
.gradient-text {
  background: linear-gradient(100deg, var(--white) 20%, var(--primary-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center-head { margin-left: auto; margin-right: auto; text-align: center; }

/* Navbar ----------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(2, 8, 4, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar.is-scrolled { background: rgba(2, 8, 4, .94); box-shadow: 0 12px 40px -24px rgba(0, 255, 25, .5); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 13px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 500;
  color: var(--text-muted); transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--primary-green); background: rgba(0, 255, 25, .1); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--primary-green); position: relative; border-radius: 2px; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--primary-green); border-radius: 2px; transition: .2s;
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 89;
  background: linear-gradient(180deg, rgba(2, 8, 4, .98), rgba(0, 31, 5, .99));
  padding: 26px 20px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a.m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; border-radius: var(--r-md); font-weight: 600;
  border: 1px solid transparent; color: var(--text-muted);
}
.mobile-menu a.m-link:hover, .mobile-menu a.m-link.active {
  color: var(--white); background: var(--surface); border-color: var(--border);
}
.mobile-menu a.m-link.active { color: var(--primary-green); }
.mobile-menu .m-actions { display: grid; gap: 12px; margin-top: 22px; }

/* Logo ------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(0, 255, 25, .18), rgba(0, 61, 8, .5));
  border: 1px solid rgba(0, 255, 25, .4);
  box-shadow: var(--glow-sm);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-mark .cx {
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.06em;
  color: var(--primary-green); text-shadow: 0 0 12px rgba(0, 255, 25, .7);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; }
.logo-text small { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); }
.logo--lg .logo-mark { width: 64px; height: 64px; border-radius: 19px; }
.logo--lg .logo-mark .cx { font-size: 1.5rem; }
.logo--lg .logo-text b { font-size: 1.3rem; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: 74px 0 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%; background: var(--gradient-hero); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.3rem); font-weight: 800; margin: 18px 0 18px; }
.hero .lead { font-size: 1.08rem; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust div b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--primary-green); }
.hero-trust div span { font-size: .8rem; color: var(--text-muted); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--gradient-surface);
  box-shadow: var(--shadow-card), var(--glow-md); aspect-ratio: 4 / 3;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(2, 12, 6, .82); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-card);
  animation: floaty 6s ease-in-out infinite;
}
.float-card i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 255, 25, .12); color: var(--primary-green); }
.float-card small { display: block; font-size: .72rem; color: var(--text-muted); }
.float-card b { font-size: .98rem; color: var(--primary-green); }
.fc-1 { top: 8%; left: -26px; animation-delay: 0s; }
.fc-2 { top: 38%; right: -24px; animation-delay: .8s; }
.fc-3 { bottom: 16%; left: -18px; animation-delay: 1.6s; }
.fc-4 { bottom: -22px; right: 10%; animation-delay: 2.4s; }

/* Stats ------------------------------------------------------------------ */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 26px 22px; border-radius: var(--r-lg); text-align: center;
  background: var(--gradient-surface); border: 1px solid var(--border);
}
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--primary-green); }
.stat span { font-size: .85rem; color: var(--text-muted); }

/* Steps / timeline ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { padding: 26px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: .22s; }
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--glow-sm); }
.step .num { font-size: 1.6rem; font-weight: 800; color: rgba(0, 255, 25, .38); letter-spacing: -.03em; }
.step h4 { margin: 8px 0 6px; font-size: 1.02rem; }
.step p { font-size: .88rem; color: var(--text-muted); margin: 0; }

.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--primary-green), rgba(0, 255, 25, .05)); }
.tl-item { position: relative; padding: 0 0 34px 8px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--black); border: 2px solid var(--primary-green); box-shadow: var(--glow-sm);
}
.tl-item h4 { font-size: 1.1rem; margin-bottom: 4px; }
.tl-item .tl-step { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-green); font-weight: 700; }
.tl-item p { color: var(--text-muted); margin: 6px 0 0; }

/* Footer ----------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(0, 31, 5, .5), var(--black)); padding: 62px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer h5 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer a { display: block; padding: 5px 0; color: var(--text-muted); font-size: .92rem; }
.footer a:hover { color: var(--primary-green); }
.footer .fnote { color: var(--text-muted); font-size: .92rem; max-width: 34ch; margin: 14px 0 18px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
}
.socials a:hover { color: var(--primary-green); border-color: var(--border-strong); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .85rem;
}

/* Page header ------------------------------------------------------------ */
.page-head { padding: 66px 0 40px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -60% 40% auto -10%; height: 200%; background: radial-gradient(700px 340px at 30% 20%, rgba(0, 255, 25, .14), transparent 70%); }
.page-head .inner { position: relative; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 16px 0 12px; }
.breadcrumb { font-size: .84rem; color: var(--text-dim); }
.breadcrumb a:hover { color: var(--primary-green); }

/* Auth layout ------------------------------------------------------------ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand {
  position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, var(--dark-green), var(--black) 60%);
  border-right: 1px solid var(--border); overflow: hidden;
}
.auth-brand::before { content: ""; position: absolute; inset: auto -30% -40% -30%; height: 70%; background: radial-gradient(closest-side, rgba(0, 255, 25, .22), transparent); }
.auth-brand .ab-body { position: relative; max-width: 420px; margin: auto 0; }
.auth-brand h2 { font-size: 2.3rem; margin-bottom: 14px; }
.auth-visual { position: relative; margin-top: 26px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--glow-sm); }
.auth-visual img { width: 100%; height: 210px; object-fit: cover; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--text-muted); font-size: .92rem; }
.auth-foot a { color: var(--primary-green); font-weight: 600; }

/* Leaderboard ------------------------------------------------------------ */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; }
.podium-card {
  position: relative; text-align: center; padding: 30px 20px 26px; border-radius: var(--r-xl);
  background: var(--gradient-surface); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.podium-card.rank-1 { border-color: var(--border-strong); box-shadow: var(--shadow-card), var(--glow-md); transform: translateY(-18px); }
.podium-card .crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); color: var(--primary-green); }
.podium-card .avatar { width: 82px; height: 82px; margin: 0 auto 14px; }
.podium-card .rank-badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 800;
  background: rgba(0, 255, 25, .12); color: var(--primary-green); border: 1px solid rgba(0, 255, 25, .28);
}
.podium-card .amount { font-size: 1.5rem; font-weight: 800; color: var(--primary-green); margin-top: 8px; }
.podium-stats { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: .8rem; color: var(--text-muted); }
.podium-stats b { display: block; color: var(--white); font-size: .95rem; }

.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(145deg, rgba(0, 255, 25, .2), rgba(0, 61, 8, .6));
  border: 2px solid rgba(0, 255, 25, .35); font-weight: 800; color: var(--primary-green); flex: 0 0 auto;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.rank-list { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.rank-row {
  display: grid; grid-template-columns: 56px 1fr 130px 120px 140px; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: rgba(0, 255, 25, .04); }
.rank-row .rk { font-weight: 800; color: var(--text-dim); }
.rank-row .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-row .who b { display: block; font-size: .95rem; }
.rank-row .who small { color: var(--text-dim); }
.rank-head { background: rgba(0, 255, 25, .06); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.rank-you { border: 1px solid var(--border-strong); box-shadow: var(--glow-sm); }

/* Package cards ---------------------------------------------------------- */
.pkg {
  position: relative; padding: 30px 26px; border-radius: var(--r-xl);
  background: var(--gradient-surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: .24s;
}
.pkg:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--glow-sm); }
.pkg.featured { border-color: var(--border-strong); box-shadow: var(--shadow-card), var(--glow-md); }
.pkg .pkg-tag { position: absolute; top: 18px; right: 18px; }
.pkg h3 { font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.pkg .price { font-size: 2.4rem; font-weight: 800; color: var(--primary-green); margin: 6px 0 2px; }
.pkg .price small { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.pkg .benefits { margin: 20px 0 26px; display: grid; gap: 2px; }
.pkg .benefit { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); font-size: .92rem; }
.pkg .benefit span { color: var(--text-muted); }
.pkg .benefit b { color: var(--white); font-weight: 700; }
.pkg .btn { margin-top: auto; }

/* Misc sections ---------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 54px 40px;
  background: linear-gradient(135deg, rgba(0, 61, 8, .7), rgba(2, 8, 4, .9));
  border: 1px solid var(--border-strong); box-shadow: var(--glow-md); text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: -50% 20% auto 20%; height: 160%; background: radial-gradient(closest-side, rgba(0, 255, 25, .18), transparent); }
.cta-band > * { position: relative; }

.value-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.img-slot {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-strong);
  background: var(--gradient-surface); box-shadow: var(--shadow-card); aspect-ratio: 4/3;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.check-list li { display: flex; gap: 12px; padding: 9px 0; color: var(--text-muted); }
.check-list li svg { color: var(--primary-green); flex: 0 0 auto; margin-top: 3px; }

.contact-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-line svg { color: var(--primary-green); flex: 0 0 auto; }
.info-line small { display: block; color: var(--text-dim); font-size: .78rem; }
