/* CrazeLabs site — dark, techy, BONELAB-flavored, built on the brand blue #2D97F8 */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue: #2D97F8;
  --blue-bright: #5BB0FF;
  --blue-deep: #1466C0;
  --blue-glow: rgba(45, 151, 248, .45);
  --blue-faint: rgba(45, 151, 248, .12);

  --bg: #090C11;
  --bg-2: #0F141C;
  --bg-3: #161E29;
  --panel: rgba(255, 255, 255, .02);

  --line: rgba(255, 255, 255, .09);
  --line-blue: rgba(45, 151, 248, .28);

  --text: #EAF1FA;
  --muted: #8B98AB;
  --dim: #5C6675;

  --ok: #37D28A;
  --warn: #F5B24A;
  --bad: #F0596A;

  --display: 'Chakra Petch', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle lab grid + top blue wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(45, 151, 248, .16), transparent 60%),
    linear-gradient(180deg, #0B0F16 0%, var(--bg) 40%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(45, 151, 248, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 151, 248, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 700px at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 700px at 50% 0%, #000 20%, transparent 80%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- kicker / labels (periodic-tile vibe) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  padding: 6px 12px;
  border: 1px solid var(--line-blue);
  border-radius: 6px;
  background: var(--blue-faint);
}
.kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
}

/* ---- buttons */
.btn {
  --b: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #041020;
  box-shadow: 0 6px 22px -6px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost {
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-blue); background: var(--blue-faint); transform: translateY(-2px); }
.btn-discord { background: #5865F2; color: #fff; box-shadow: 0 6px 22px -8px rgba(88, 101, 242, .6); }
.btn-discord:hover { transform: translateY(-2px); background: #4954e6; }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---- header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(9, 12, 17, .72);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.brand img { height: 38px; width: auto; filter: drop-shadow(0 0 10px var(--blue-glow)); }
.brand b { color: var(--blue); }
.hdr__nav { display: flex; gap: 4px; margin-left: 8px; }
.hdr__nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 8px; transition: color .15s, background .15s;
}
.hdr__nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr__user { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.hdr__user img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-blue); }
.hdr__burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ---- hero */
.hero { position: relative; padding: 74px 0 60px; text-align: center; }
.hero__logo { max-width: 340px; margin: 0 auto 26px; filter: drop-shadow(0 0 40px rgba(45, 151, 248, .35)); }
.hero h1 { font-size: clamp(38px, 7vw, 74px); letter-spacing: -.02em; }
.hero h1 .g { color: var(--blue); text-shadow: 0 0 34px var(--blue-glow); }
.hero__sub { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 20px; font-size: 13px; color: var(--dim); display: inline-flex; gap: 8px; align-items: center; }
.hero__note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }

/* ---- element tiles (ladder / pistol / runner / puzzle motif) */
.elements { padding: 8px 0 30px; }
.elements__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.el {
  position: relative;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.el:hover { border-color: var(--line-blue); transform: translateY(-4px); }
.el__sym { position: absolute; top: 12px; right: 14px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--blue); opacity: .85; }
.el__icon { width: 40px; height: 40px; color: var(--blue); margin-bottom: 14px; }
.el h3 { font-size: 18px; }
.el p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---- section */
.section { padding: 68px 0; }
.section--tint { background: linear-gradient(180deg, transparent, rgba(45, 151, 248, .04), transparent); }
.section__head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 4.6vw, 44px); margin-top: 12px; }
.section__head p { color: var(--muted); font-size: 17px; }

/* ---- feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
.feature--flip .feature__art { order: 2; }
.feature h3 { font-size: clamp(24px, 3.4vw, 34px); }
.feature p { color: var(--muted); font-size: 16px; }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.feature li { display: flex; gap: 11px; font-size: 15px; }
.feature li svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.feature__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line-blue);
  background:
    radial-gradient(600px 300px at 60% 20%, rgba(45, 151, 248, .16), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .02);
}
.feature__art img { width: 74%; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5)); }
.feature__art .badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-bright); padding: 5px 10px; border: 1px solid var(--line-blue); border-radius: 6px;
  background: rgba(9, 12, 17, .7);
}

/* ---- panel / cards */
.panel {
  background: linear-gradient(180deg, var(--bg-2), rgba(15, 20, 28, .5));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.panel--blue { border-color: var(--line-blue); box-shadow: 0 0 0 1px var(--blue-faint), 0 30px 70px -40px var(--blue-glow); }

/* ---- lock / access strip */
.lock { text-align: center; max-width: 720px; margin: 0 auto; }
.lock__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--warn); padding: 8px 16px; border: 1px solid rgba(245, 178, 74, .3);
  border-radius: 30px; background: rgba(245, 178, 74, .08); margin-bottom: 22px;
}
.lock h2 { font-size: clamp(26px, 4vw, 40px); }
.lock p { color: var(--muted); font-size: 16px; }

/* ---- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; text-align: left; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step__n { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--blue); letter-spacing: .1em; }
.step h4 { font-size: 17px; margin: 10px 0 6px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---- footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 40px; margin-top: 40px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; }
.footer__brand img { height: 30px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--blue-bright); }
.footer__legal { width: 100%; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 6px; }

/* ---- dashboard + status */
.center-page { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 50px 24px; }
.card-narrow { width: 100%; max-width: 560px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 30px;
}
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.status--tester { color: var(--ok); background: rgba(55, 210, 138, .1); border: 1px solid rgba(55, 210, 138, .3); }
.status--tester .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status--wait { color: var(--warn); background: rgba(245, 178, 74, .1); border: 1px solid rgba(245, 178, 74, .3); }
.status--wait .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.who { display: flex; align-items: center; gap: 14px; margin: 6px 0 24px; }
.who img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line-blue); }
.who b { font-family: var(--display); font-size: 19px; }
.who span { color: var(--muted); font-size: 13px; }

/* ---- admin */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { font-size: 30px; margin: 0; }
.admin-stats { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 18px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 24px; color: var(--blue); }
.stat span { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.input {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--body); font-size: 14px; padding: 10px 14px; min-width: 240px;
}
.input:focus { outline: none; border-color: var(--line-blue); }
.table { width: 100%; border-collapse: collapse; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th { text-align: left; font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.u-cell { display: flex; align-items: center; gap: 11px; }
.u-cell img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.u-cell b { font-weight: 600; }
.u-cell span { display: block; font-size: 12px; color: var(--dim); }
.u-cell .req-msg { font-style: italic; color: var(--muted); max-width: 320px; white-space: normal; margin-top: 2px; }
.mono { font-family: 'Chakra Petch', monospace; font-size: 12px; color: var(--dim); }

/* toggle */
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.toggle input { display: none; }
.toggle .track { position: absolute; inset: 0; background: var(--bg-3); border: 1px solid var(--line); border-radius: 30px; transition: .2s; }
.toggle .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--dim); transition: .2s; }
.toggle input:checked + .track { background: rgba(45, 151, 248, .25); border-color: var(--blue); }
.toggle input:checked + .track .knob { left: 23px; background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }

/* ---- reveal (progressive enhancement: visible by default, only hidden once JS arms it) */
.reveal { transition: opacity .6s ease, transform .6s ease; }
body.reveal-armed .reveal { opacity: 0; transform: translateY(22px); }
body.reveal-armed .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.reveal-armed .reveal { opacity: 1; transform: none; }
}

/* ---- toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bg-3); border: 1px solid var(--line-blue); color: var(--text); padding: 12px 20px; border-radius: var(--radius-sm); font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- responsive */
@media (max-width: 860px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: block; }
  .elements__row { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature--flip .feature__art { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .admin-stats { width: 100%; margin-left: 0; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 480px) {
  .elements__row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* mobile nav drawer */
.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(9, 12, 17, .96); backdrop-filter: blur(6px); display: none; flex-direction: column; padding: 24px; }
.mnav.open { display: flex; }
.mnav a { font-family: var(--display); font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mnav__close { align-self: flex-end; background: none; border: 0; color: var(--text); font-size: 30px; cursor: pointer; }
