/* Frost Protocol / finux.tech — original Frost Resonance HD theme
   Inspired by dark crypto-analytics aesthetics; not a copy of any third-party UI. */

:root {
  --bg-deep: #070b12;
  --bg-panel: #0d1420;
  --bg-panel-2: #111a28;
  --bg-elevated: #162033;
  --border: #1e2d45;
  --border-glow: #2a4a6e;
  --text: #e8eef7;
  --text-muted: #8b9bb4;
  --text-dim: #5c6d86;
  --accent: #3db8ff;
  --accent-2: #7c5cff;
  --accent-cyan: #2ee6d6;
  --accent-warm: #ff8c42;
  --good: #3dd68c;
  --warn: #f5c542;
  --bad: #ff5c7a;
  --frost: #a8d4ff;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(61, 184, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(124, 92, 255, 0.1), transparent),
    linear-gradient(180deg, #070b12 0%, #0a1018 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* —— Nav —— */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--frost);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #061018;
  box-shadow: 0 0 16px rgba(61, 184, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.95rem;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(61, 184, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(61, 184, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* —— Layout —— */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.wrap-wide {
  max-width: 1280px;
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #e8eef7 20%, var(--frost) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2a8fd4);
  color: #061018;
}

.btn-primary:hover {
  color: #061018;
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-glow);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Cards / panels —— */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card .tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.section-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.muted {
  color: var(--text-muted);
}

.dim {
  color: var(--text-dim);
}

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

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer a {
  color: var(--text-muted);
}

/* —— Rez HD dashboard —— */
.rez-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rez-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.rez-header .sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.clock-panel {
  text-align: right;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  min-width: 200px;
}

.clock-panel .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.clock-panel .time {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 0.15rem 0;
}

.clock-panel .countdown {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--warn);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.panel {
  background: linear-gradient(160deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.6;
}

.panel.span-3 { grid-column: span 3; }
.panel.span-4 { grid-column: span 4; }
.panel.span-6 { grid-column: span 6; }
.panel.span-8 { grid-column: span 8; }
.panel.span-12 { grid-column: span 12; }

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.panel-title h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.status-pill {
  font-size: 0.65rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
}

.status-pill.live {
  color: var(--good);
  border-color: rgba(61, 214, 140, 0.4);
  background: rgba(61, 214, 140, 0.12);
}

.status-pill.pending {
  color: var(--warn);
  border-color: rgba(245, 197, 66, 0.4);
  background: rgba(245, 197, 66, 0.12);
}

.status-pill.offline {
  color: var(--text-dim);
  border-color: var(--border);
  background: rgba(92, 109, 134, 0.15);
}

.status-pill.bootstrap {
  color: var(--accent);
  border-color: rgba(61, 184, 255, 0.4);
  background: rgba(61, 184, 255, 0.12);
}

.metric {
  margin-bottom: 0.65rem;
}

.metric:last-child {
  margin-bottom: 0;
}

.metric .k {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric .v {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.1rem;
}

.metric .v.accent { color: var(--accent); }
.metric .v.good { color: var(--good); }
.metric .v.warn { color: var(--warn); }
.metric .v.cyan { color: var(--accent-cyan); }

.metric .hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.bar-track {
  height: 6px;
  background: var(--bg-deep);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  width: 0%;
  transition: width 0.6s ease;
}

.table-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.table-mini th,
.table-mini td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--border);
}

.table-mini th {
  color: var(--text-dim);
  font-weight: 550;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-mini td {
  font-family: var(--mono);
  color: var(--text-muted);
}

.note-box {
  background: rgba(61, 184, 255, 0.06);
  border: 1px solid rgba(61, 184, 255, 0.2);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.note-box strong {
  color: var(--frost);
}

.warn-box {
  background: rgba(245, 197, 66, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare .path {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  background: var(--bg-panel);
}

.compare .path.baseline {
  border-color: rgba(61, 214, 140, 0.35);
}

.compare .path.option {
  border-color: rgba(245, 197, 66, 0.35);
}

.compare h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.compare ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.compare li {
  margin-bottom: 0.35rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.prose ul,
.prose ol {
  color: var(--text-muted);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-elevated);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--frost);
}

@media (max-width: 900px) {
  .panel.span-3,
  .panel.span-4,
  .panel.span-6,
  .panel.span-8 {
    grid-column: span 12;
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .clock-panel {
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
