/* ═══════════════════════════════════════════════════════════════
   WEEP — site design system
   Black theme · blurple accent · glass cards · mono command chips
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #060609;
  --bg-soft: #0b0b12;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f6;
  --muted: #9aa0b5;
  --faint: #5f6579;
  --blurple: #5865f2;
  --blurple-2: #7b84ff;
  --violet: #8b5cf6;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ── layered background: glows + grid + noise ─────────────────── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52rem 30rem at 50% -8%, rgba(88, 101, 242, 0.16), transparent 62%),
    radial-gradient(40rem 26rem at 82% 12%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(30rem 22rem at 8% 32%, rgba(88, 101, 242, 0.06), transparent 60%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 78%);
}

/* ── type ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(100deg, #a5b4fc 0%, var(--blurple-2) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--font-mono); }

/* ── layout ───────────────────────────────────────────────────── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
section { position: relative; padding: 6.5rem 0; }

/* ── nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 6, 9, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blurple), var(--violet));
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.45);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ── buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-discord {
  background: var(--blurple);
  color: #fff;
  box-shadow: 0 8px 26px rgba(88, 101, 242, 0.35);
}
.btn-discord:hover { background: #6b76f4; box-shadow: 0 10px 34px rgba(88, 101, 242, 0.5); transform: translateY(-1px); }
.btn-discord svg { width: 19px; height: 19px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: var(--panel-strong); transform: translateY(-1px); }

.btn-block { width: 100%; justify-content: center; padding: 0.9rem; font-size: 1rem; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── hero ─────────────────────────────────────────────────────── */
.hero { padding: 7rem 0 5.5rem; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s infinite; }

.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.1rem); margin-bottom: 1.2rem; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 32rem; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.stat span { color: var(--faint); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* terminal mockup */
.term {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 17, 26, 0.9), rgba(10, 10, 16, 0.95));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(88, 101, 242, 0.06), 0 0 60px rgba(88, 101, 242, 0.07);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.term-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-title { margin-left: auto; color: var(--faint); font-size: 0.72rem; letter-spacing: 0.06em; }
.term-body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.term-line { color: var(--muted); white-space: pre-wrap; word-break: break-all; }
.term-line .prompt { color: var(--blurple-2); }
.term-line .cmd { color: var(--text); }
.term-line.ok { color: var(--green); }
.term-line .dim { color: var(--faint); }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: var(--blurple-2); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.term-typing { min-height: 1.2em; color: var(--text); }

/* ── cards / features ─────────────────────────────────────────── */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.012));
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem 10rem at 30% -20%, rgba(88, 101, 242, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(88, 101, 242, 0.4); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.card:hover::before { opacity: 1; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.28);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--blurple-2); }
.card h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* ── commands ─────────────────────────────────────────────────── */
.cmds-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.cmd-card { padding: 1.5rem; }
.cmd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cmd-head h3 { font-size: 1rem; }
.cmd-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); background: var(--panel-strong); border: 1px solid var(--line); padding: 0.2rem 0.55rem; border-radius: 999px; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cmd-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #c3c9e2;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.32rem 0.6rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cmd-chip:hover { border-color: rgba(88, 101, 242, 0.55); color: #fff; background: rgba(88, 101, 242, 0.12); }
.cmd-chip .pfx { color: var(--blurple-2); }

/* ── CTA band ─────────────────────────────────────────────────── */
.cta-band {
  border-radius: 22px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  background:
    radial-gradient(38rem 16rem at 50% -30%, rgba(88, 101, 242, 0.25), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: 3.4rem 2.5rem;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.7rem; }
.cta-band p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.9rem; }
.cta-band .btn-discord { font-size: 1.05rem; padding: 0.9rem 2rem; }

/* ── footer ───────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 2.6rem 0 3rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner .brand-name { font-size: 0.95rem; }
.footer-inner p { color: var(--faint); font-size: 0.85rem; }

/* ── reveal animation ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── toast ────────────────────────────────────────────────────── */
.toast-wrap { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 100; display: flex; flex-direction: column; gap: 0.6rem; }
.toast {
  background: #14141d;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  animation: toast-in 0.3s ease;
  max-width: 340px;
}
.toast.err { border-color: rgba(248, 113, 113, 0.4); }
.toast.err .t-ic { color: var(--red); }
.toast.ok .t-ic { color: var(--green); }
.toast .t-ic { font-family: var(--font-mono); font-weight: 700; }

.host-card { position: relative; }
.host-card.locked > *:not(.lock-overlay) { opacity: 0.3; filter: grayscale(0.8); pointer-events: none; }
.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem;
  text-align: center;
  background: rgba(6, 6, 9, 0.45);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-radius: inherit;
}
.lock-overlay[hidden] { display: none; }
.lock-overlay svg { width: 30px; height: 30px; color: var(--faint); }
.lock-overlay p { color: var(--muted); font-size: 0.85rem; max-width: 22rem; }

/* ── panel page ───────────────────────────────────────────────── */
.panel-shell { min-height: 100vh; display: flex; flex-direction: column; }
.panel-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 6, 9, 0.8);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.user-pill { display: flex; align-items: center; gap: 0.7rem; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(88, 101, 242, 0.6);
  object-fit: cover;
  background: var(--panel-strong);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta b { font-size: 0.92rem; font-weight: 600; }
.user-meta span { color: var(--faint); font-size: 0.75rem; }
.btn-mini { padding: 0.45rem 0.85rem; font-size: 0.82rem; border-radius: 8px; }

.panel-main { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.panel-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
.panel-desc { color: var(--muted); margin-bottom: 2.2rem; font-size: 1rem; }

.host-card { padding: 2rem; }
.host-card label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.55rem; font-weight: 500; }

.token-row { display: flex; gap: 0.6rem; margin-bottom: 0.7rem; }
.token-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.token-input::placeholder { color: var(--faint); font-family: var(--font-body); letter-spacing: 0; }
.token-input:focus { border-color: rgba(88, 101, 242, 0.65); box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15); }
.token-input.invalid { border-color: rgba(248, 113, 113, 0.6); }

.token-actions { display: flex; gap: 0.5rem; }
.icon-btn {
  width: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 18px; height: 18px; }

.field-hint { color: var(--faint); font-size: 0.8rem; margin-bottom: 1.3rem; }
.field-hint b { color: var(--muted); font-weight: 500; }

.staging-note {
  display: flex; gap: 0.75rem;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
  margin-bottom: 1.6rem;
  font-size: 0.88rem;
  color: #e5d9b0;
}
.staging-note .sn-ic { font-family: var(--font-mono); }

.token-list { margin-top: 2.2rem; }
.token-list h3 { font-size: 0.95rem; color: var(--muted); font-weight: 500; margin-bottom: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.78rem; }
.token-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.6rem;
  animation: toast-in 0.3s ease;
}
.token-item .masked { font-family: var(--font-mono); font-size: 0.85rem; color: #c3c9e2; flex: 1; }
.status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid;
}
.status-pill.queued { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.06); }
.status-pill.online { color: var(--green); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.06); }
.status-pill.failed { color: var(--red); border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.06); }
.token-del {
  background: none; border: none; color: var(--faint);
  cursor: pointer; padding: 0.3rem; border-radius: 6px; line-height: 0;
  transition: color 0.2s;
}
.token-del:hover { color: var(--red); }
.token-del svg { width: 16px; height: 16px; }
.token-empty { color: var(--faint); font-size: 0.9rem; text-align: center; padding: 1.6rem 0; border: 1px dashed var(--line); border-radius: 12px; }

.panel-foot { text-align: center; color: var(--faint); font-size: 0.8rem; padding: 1.4rem 0 2.4rem; }

/* ── small screens ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cmds-grid { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 3.5rem; }
  section { padding: 4rem 0; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
  .token-row { flex-direction: column; }
}

/* ── keyframes ────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--green); }
  50% { opacity: 0.45; box-shadow: 0 0 4px var(--green); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
