/* ============================================
   SHADOWCASE — tokens
   ============================================ */
:root {
  --bg-void: #07070d;
  --bg-deep: #0b0c16;
  --bg-panel: #12131f;
  --bg-panel-2: #171827;
  --line: rgba(140, 150, 200, 0.14);
  --line-strong: rgba(140, 150, 200, 0.28);

  --text-primary: #eceeF9;
  --text-muted: #9096b5;
  --text-faint: #5c6183;

  --accent-blue: #5b7cff;
  --accent-purple: #9b6bff;
  --accent-cyan: #4ee1ff;

  --success: #33d17a;
  --success-glow: rgba(51, 209, 122, 0.35);
  --danger: #ff4d5e;
  --danger-glow: rgba(255, 77, 94, 0.35);
  --warn: #ffb545;

  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-panel: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.accent {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Background: faint grid + radial glow, ambient, not distracting */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 8%, rgba(91, 124, 255, 0.14), transparent 42%),
    radial-gradient(circle at 84% 22%, rgba(155, 107, 255, 0.12), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 7, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #050510;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text-primary); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  color: #050510;
  box-shadow: 0 8px 24px -8px rgba(91, 124, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(91, 124, 255, 0.7); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

.btn-nav {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-tiny {
  padding: 7px 14px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  border-radius: 8px;
}
.btn-tiny:hover { color: var(--text-primary); border-color: var(--accent-blue); }

.btn-copy { white-space: nowrap; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 108px 24px 88px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(78, 225, 255, 0.08);
  border: 1px solid rgba(78, 225, 255, 0.25);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 0 rgba(78, 225, 255, 0.6);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(78, 225, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(78, 225, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 225, 255, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 9vw, 92px);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.hero-desc {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
}

.tag-warn {
  color: var(--warn);
  border-color: rgba(255, 181, 69, 0.4);
  background: rgba(255, 181, 69, 0.08);
}

/* ============================================
   SECTION HEAD (shared)
   ============================================ */
.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-purple);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ============================================
   STATUS PANEL (signature element)
   ============================================ */
.status-section {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.case-panel {
  position: relative;
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.case-panel-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-cyan);
  opacity: 0.55;
  z-index: 2;
}
.case-panel-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.case-panel-corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.case-panel-corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.case-panel-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.case-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 40px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.case-panel-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.case-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* state-driven colors */
.case-panel[data-state="online"] .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-glow), 0 0 18px var(--success);
  animation: dot-breathe 2.4s ease-in-out infinite;
}
.case-panel[data-state="online"] .status-word { color: var(--success); }

.case-panel[data-state="offline"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-glow), 0 0 18px var(--danger);
}
.case-panel[data-state="offline"] .status-word { color: var(--danger); }

.case-panel[data-state="error"] .status-dot {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(255, 181, 69, 0.3);
}
.case-panel[data-state="error"] .status-word { color: var(--warn); }

.case-panel[data-state="loading"] .status-dot {
  background: var(--text-faint);
  animation: dot-breathe 1.2s ease-in-out infinite;
}

@keyframes dot-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.case-panel-body {
  padding: 32px 40px 8px;
}

.status-primary {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px dashed var(--line-strong);
}

.status-primary-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.status-primary-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 16px;
  margin-bottom: 28px;
}

.status-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.status-field-value {
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-word;
}

.status-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border-radius: 8px;
}

.badge-cracked {
  color: var(--warn);
  background: rgba(255, 181, 69, 0.1);
  border: 1px solid rgba(255, 181, 69, 0.45);
}

.status-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
  min-height: 18px;
}

.status-caveat {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-faint);
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.case-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 40px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 110px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  background: rgba(91, 124, 255, 0.06);
}

.feature-icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   JOIN
   ============================================ */
.join {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 120px;
}

.join-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: linear-gradient(135deg, rgba(91, 124, 255, 0.07), rgba(155, 107, 255, 0.05));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.join-left {
  padding: 52px 48px;
  border-right: 1px solid var(--line);
}

.join-left h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 10px 0 14px;
}

.join-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 28px;
  max-width: 420px;
}

.ip-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.ip-box-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.ip-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ip-box-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-cyan);
}

.join-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.join-right {
  padding: 52px 48px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-purple);
  min-width: 22px;
}

.step-text {
  font-size: 14.5px;
  color: var(--text-primary);
}

.step-text code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  background: rgba(78, 225, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.join-footnote {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .join-panel { grid-template-columns: 1fr; }
  .join-left { border-right: none; border-bottom: 1px solid var(--line); }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 80px 20px 64px; }
  .feature-grid { grid-template-columns: 1fr; }
  .case-panel-header,
  .case-panel-body,
  .case-panel-footer { padding-left: 22px; padding-right: 22px; }
  .join-left, .join-right { padding: 36px 26px; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .case-panel-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
