@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Space+Grotesk:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --bg:        #000;
  --surface:   #080808;
  --surface-2: #0f0f0f;
  --border:    rgba(255,255,255,0.07);
  --border-s:  rgba(255,255,255,0.16);
  --text:      #f0f0f0;
  --muted:     #888;
  --dim:       #3a3a3a;
  --green:     #4ade80;
  --red:       #f87171;
  --yellow:    #facc15;
  --radius:    2px;
  --radius-sm: 2px;
  --t:         .18s ease;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font: 500 .86rem/1 'Space Grotesk', sans-serif;
  cursor: pointer; border: none; transition: var(--t);
  text-decoration: none; white-space: nowrap;
}
.btn-primary        { background: var(--text); color: #000; }
.btn-primary:hover  { background: #fff; }
.btn-outline        { background: transparent; color: var(--muted); border: 1px solid var(--border-s); }
.btn-outline:hover  { color: var(--text); border-color: rgba(255,255,255,.32); }
.btn-ghost          { background: transparent; color: var(--muted); }
.btn-ghost:hover    { color: var(--text); }
.btn-lg  { padding: 12px 26px; font-size: .92rem; }
.btn-sm  { padding: 7px 14px; font-size: .78rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ── */
.input {
  width: 100%; background: var(--surface-2);
  border: 1px solid var(--border-s); border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text); font: 400 .92rem/1 'Space Grotesk', sans-serif;
  transition: var(--t); outline: none;
}
.input:focus       { border-color: rgba(255,255,255,.35); }
.input::placeholder { color: var(--dim); }
.form-group  { margin-bottom: 16px; }
.form-label  {
  display: block; margin-bottom: 7px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}

/* ── Alert ── */
.alert {
  padding: 10px 14px; border-radius: var(--radius);
  font-size: .82rem; display: none; margin-bottom: 16px; border: 1px solid;
}
.alert.show    { display: block; }
.alert.error   { background: rgba(248,113,113,.06); color: var(--red);   border-color: rgba(248,113,113,.2); }
.alert.success { background: rgba(74,222,128,.06);  color: var(--green); border-color: rgba(74,222,128,.2); }
.alert.info    { background: rgba(255,255,255,.03); color: var(--muted); border-color: var(--border-s); }

/* ── Header ── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(0,0,0,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Spectral', Georgia, serif;
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  letter-spacing: .02em; color: var(--text); text-decoration: none;
}
.header-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font: 400 .8rem/1 'Space Grotesk', sans-serif;
  color: var(--muted); padding: 6px 12px; border-radius: var(--radius);
  transition: var(--t); text-decoration: none;
}
.nav-link:hover  { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--text); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: var(--radius);
  font: 500 .65rem/1 'Space Grotesk', sans-serif;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid;
}
.badge-dot     { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-trial   { color: var(--muted); border-color: var(--border-s); }
.badge-active  { color: var(--green); border-color: rgba(74,222,128,.3); }
.badge-expired { color: var(--red);   border-color: rgba(248,113,113,.3); }

/* ── Signal cards ── */
.signal-card {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.signal-card.c-green .signal-name { color: rgba(74,222,128,.85); }
.signal-card.c-red   .signal-name { color: rgba(248,113,113,.85); }
.signal-name { font: 500 .88rem/1 'Space Grotesk', sans-serif; margin-bottom: 5px; }
.signal-body { color: var(--muted); font-size: .8rem; font-weight: 300; white-space: pre-line; line-height: 1.5; }
.signal-body.blurred { filter: blur(6px); user-select: none; pointer-events: none; }
.signal-meta { text-align: right; flex-shrink: 0; }
.signal-time { color: var(--dim); font-size: .72rem; font-variant-numeric: tabular-nums; }

/* ── Container ── */
.container    { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 460px;  margin: 0 auto; padding: 0 32px; }

/* ── Live dot ── */
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 .68rem/1 'Space Grotesk', sans-serif;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
}
.live-dot::before {
  content: ''; flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ── Spinner ── */
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-s); border-top-color: var(--text);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ── Disclaimer ── */
.disclaimer {
  margin-top: 16px; font-size: .82rem; color: var(--text);
  font-weight: 300; line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .header { padding: 0 14px; }
  .container, .container-sm { padding: 0 16px; }
  .header-nav {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; flex-wrap: nowrap; gap: 0;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 5px 7px; font-size: .73rem; white-space: nowrap; }
  #header-badge { display: none; }
}

@media (max-width: 380px) {
  .nav-link { padding: 5px 5px; font-size: .7rem; }
  .logo { font-size: .95rem; }
}
