:root {
  --bg: #07111f;
  --panel: rgba(16, 27, 46, 0.9);
  --panel-2: rgba(10, 20, 38, 0.95);
  --text: #e8f2ff;
  --muted: #9db2ce;
  --line: rgba(146, 174, 217, 0.16);
  --accent: #43d0ff;
  --accent-2: #7f5cff;
  --good: #29d17d;
  --bad: #ff6b6b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(67,208,255,0.14), transparent 28%), linear-gradient(180deg, #07111f 0%, #030814 100%);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; backdrop-filter: blur(14px); background: rgba(3, 8, 20, 0.75); border-bottom: 1px solid var(--line); z-index: 10; }
.nav { display:flex; justify-content:space-between; align-items:center; min-height:72px; gap:20px; }
.nav nav { display:flex; align-items:center; gap:14px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand span { color: var(--accent); }
.hero, .dashboard-layout { padding: 48px 0; }
.hero { display:grid; grid-template-columns: 1.3fr .9fr; gap: 28px; align-items:center; min-height: calc(100vh - 72px); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); font-size: 0.75rem; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.02; margin: 8px 0 14px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 8px; }
h3 { margin: 0 0 8px; }
.hero-copy, p { color: var(--muted); line-height: 1.6; }
.hero-actions, .stats-grid, .card-grid, .summary-grid, .grid-2, .auth-grid { display:grid; gap:16px; }
.hero-actions { display:flex; flex-wrap:wrap; margin: 24px 0; }
.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #03101c; }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); border:1px solid var(--line); }
.btn-danger { background: rgba(255,107,107,0.13); color: #ffd2d2; border:1px solid rgba(255,107,107,0.28); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 18px 60px rgba(0,0,0,0.22); }
.inset { background: var(--panel-2); }
.preview-panel { min-height: 420px; }
.preview-bar { height: 6px; width: 110px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-bottom: 18px; }
.stats-grid, .summary-grid, .card-grid, .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-card, .metric, .card { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stat-card strong, .metric strong, .price { display:block; font-size: 1.8rem; color: #fff; }
.section { padding: 18px 0 40px; }
.section-head { margin-bottom: 18px; }
.feature-list { padding-left: 18px; color: var(--muted); }
.site-footer { padding: 24px 0 40px; }
.auth-page { min-height: 100vh; display:grid; place-items:center; padding: 24px; }
.auth-shell { width:min(980px, 100%); }
.auth-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 20px 0; }
.stack-form, .chat-form { display:grid; gap:12px; }
input, textarea { width:100%; background: rgba(255,255,255,0.04); color: var(--text); border:1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.dashboard-layout { display:grid; gap:20px; }
.dashboard-hero { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; flex-wrap:wrap; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stack-list { display:grid; gap:14px; margin-top:16px; }
.server-card { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; background: rgba(255,255,255,0.03); border:1px solid var(--line); border-radius: 18px; padding:16px; }
.server-head { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.status-pill { display:inline-flex; align-items:center; justify-content:center; min-width:94px; padding: 8px 12px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,0.05); color:#fff; }
.status-pill.online { background: rgba(41,209,125,0.15); color:#c7ffdf; border-color: rgba(41,209,125,0.3); }
.status-pill.offline { background: rgba(255,107,107,0.14); color:#ffd2d2; border-color: rgba(255,107,107,0.3); }
.chat-box { min-height: 420px; max-height: 420px; overflow:auto; display:grid; gap:12px; margin-bottom:14px; }
.chat-msg { border-radius: 18px; padding: 14px; border:1px solid var(--line); }
.chat-msg.user { background: rgba(127,92,255,0.12); }
.chat-msg.assistant { background: rgba(67,208,255,0.08); }
.public-status-wrap { min-height:100vh; display:grid; place-items:center; }
.public-status-card { width:min(760px, 100%); }
.public-metrics { display:grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap:16px; margin-top:20px; }
.public-metrics div { background: rgba(255,255,255,0.04); padding:16px; border-radius: 16px; border:1px solid var(--line); }
.public-metrics span { display:block; color: var(--muted); margin-bottom: 6px; }
.message { min-height: 24px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 28px; }
  .server-card { flex-direction: column; }
}

/* NodeNorth dashboard polish */
body {
  background: radial-gradient(circle at top, #0f172a 0%, #020617 45%, #000 100%);
}

.dashboard-shell,
main,
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
}

.card,
.server-card,
.panel,
section {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}

.server-card {
  padding: 22px;
  margin: 18px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.status-pill.online {
  background: rgba(34,197,94,.14);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.45);
}

.status-pill.offline {
  background: rgba(239,68,68,.14);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.45);
}

button,
.btn {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  border: 0;
  border-radius: 14px;
  padding: 11px 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37,99,235,.25);
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(2,6,23,.78);
  border: 1px solid rgba(148,163,184,.24);
  color: #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 7px 0;
}

pre {
  background: #020617;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 16px;
  padding: 14px;
  overflow-x: auto;
  color: #67e8f9;
}

code {
  color: #67e8f9;
}

a {
  color: #38bdf8;
}

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

h1, h2, h3 {
  letter-spacing: -0.03em;
}

@media (max-width: 720px) {
  .dashboard-shell,
  main,
  .container {
    padding: 18px 12px;
  }

  .server-card,
  .card,
  section {
    padding: 16px;
  }

  pre {
    font-size: 12px;
  }
}

/* BIG install command box */
pre {
  width: 100%;
  max-width: 100%;
  min-height: 70px;
  font-size: 15px;
  line-height: 1.5;
  padding: 18px;
  overflow-x: auto;
  white-space: nowrap; /* prevent wrapping */
  background: #020617;
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 16px;
}

/* make code text cleaner */
pre code {
  display: block;
  font-family: monospace;
}

/* optional: copy button style */
.copy-btn {
  margin-top: 8px;
  background: #0ea5e9;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

/* FIX install command overflow */
.server-card {
  max-width: 100%;
  overflow: hidden;
}

.server-card pre {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 82px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  word-break: normal;
  padding: 18px 20px;
  margin: 12px 0;
}

.server-card pre code {
  display: inline-block;
  min-width: max-content;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.6;
}

.server-card a {
  word-break: break-all;
}


/* Clean install command UI */
.install-box {
  margin-top: 14px;
  padding: 16px;
  background: rgba(2, 6, 23, .75);
  border: 1px solid rgba(56, 189, 248, .25);
  border-radius: 18px;
  max-width: 100%;
  overflow: hidden;
}

.install-box code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px;
  margin: 10px 0;
  background: #020617;
  border-radius: 12px;
  color: #67e8f9;
  font-size: 13px;
}

.install-box button {
  width: auto;
  min-width: 180px;
}

.server-card p {
  line-height: 1.55;
}


/* Pro Agent Command Card */
.agent-card {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 45px rgba(0,0,0,.28);
  max-width: 100%;
  overflow: hidden;
}

.agent-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.agent-card-head strong {
  display: block;
  font-size: 15px;
  color: #f8fafc;
}

.agent-card-head small {
  display: block;
  color: #94a3b8;
  margin-top: 3px;
  font-size: 12px;
}

.agent-command {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #020617;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
  padding: 14px 16px;
  color: #67e8f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.copy-agent-btn {
  flex: 0 0 auto;
  padding: 9px 14px;
  min-width: 76px;
  border-radius: 12px;
}

.server-card code {
  background: rgba(2,6,23,.65);
  padding: 3px 7px;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .agent-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-agent-btn {
    width: 100%;
  }
}

.agent-card {
  margin-top: 16px;
  padding: 16px;
  background: rgba(2,6,23,.8);
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.agent-card strong {
  display: block;
  color: #f8fafc;
}

.agent-card small {
  display: block;
  color: #94a3b8;
  margin-top: 4px;
}

.agent-card button {
  white-space: nowrap;
}
