/* ════════════════════════════════════════════════════
   NARATHONG MONITOR — Landing Page Styles
   Dark theme: #0a0a0f / #00d4ff / #7c3aed
════════════════════════════════════════════════════ */

:root {
  --bg-main:  #0a0a0f;
  --bg-soft:  #0f0f1a;
  --panel:    rgba(255, 255, 255, 0.04);
  --panel-2:  rgba(255, 255, 255, 0.02);
  --line:     rgba(255, 255, 255, 0.09);
  --text:     #f0f0f8;
  --muted:    #8b8ba0;
  --muted2:   #5a5a72;
  --cyan:     #00d4ff;
  --purple:   #7c3aed;
  --shadow:   0 30px 80px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-main);
  overflow-y: auto;
}
body { min-height: 100vh; }

/* ── Ambient glows ── */
.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.ambient-1 {
  width: 360px; height: 360px;
  background: rgba(0, 212, 255, 0.18);
  top: -80px; right: -60px;
}
.ambient-2 {
  width: 300px; height: 300px;
  background: rgba(124, 58, 237, 0.2);
  bottom: -60px; left: -30px;
}

/* ── Page shell ── */
.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px 60px;
  overflow-y: auto;
}

/* ── Hero card ── */
.hero-card {
  width: min(560px, 100%);
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.brand-mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.06em;
}
.brand-copy { flex: 1; min-width: 0; }
.eyebrow {
  display: block;
  color: var(--muted);
  letter-spacing: 0.14em;
  font-size: 10px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.brand-copy h1 {
  margin: 0;
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--cyan), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Gateway status indicator ── */
.gw-status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 11px; font-weight: 600; color: var(--muted);
  flex-shrink: 0; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.gw-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted2);
  transition: background 0.3s;
}
.gw-dot--online {
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}
.gw-dot--offline {
  background: #ef4444;
}
.gw-status:has(.gw-dot--online)  { border-color: rgba(16,185,129,0.35); color: #10b981; }
.gw-status:has(.gw-dot--offline) { border-color: rgba(239,68,68,0.35);  color: #ef4444; }
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.55; transform:scale(.78); }
}

/* ── Landing description ── */
.landing-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 28px;
}

/* ── Action buttons ── */
.action-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.action-btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.22);
}
.action-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.32);
}
.action-btn--secondary {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
}
.action-btn--secondary:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  transform: translateY(-1px);
  border-color: rgba(0,212,255,0.3);
}

/* ── Info chips row ── */
.info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.info-chip {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 12px;
}
.info-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 5px;
}
.info-chip span:last-child { font-weight: 600; color: var(--text); }

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted2);
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .hero-card { padding: 24px 20px; }
  .info-row  { grid-template-columns: 1fr; }
  .topbar    { flex-wrap: wrap; }
  .gw-status { order: 3; }
}
@media (max-width: 400px) {
  .info-row  { grid-template-columns: repeat(2, 1fr); }
  .action-btn { font-size: 14px; }
}
