@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #0E1420;
  --panel: #141B29;
  --panel-2: #1B2434;
  --line: #253046;
  --teal: #5EEAD4;
  --teal-dim: #2F6E64;
  --amber: #F5A623;
  --slate: #B8C4D9;
  --slate-dim: #6E7C93;
  --bright: #F2F5FA;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--slate);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
nav.top {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 20, 32, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--mono);
  font-weight: 800;
  color: var(--bright);
  font-size: 15px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
nav.top .links { display: flex; gap: 28px; align-items: center; }
nav.top .links a { color: var(--slate); font-size: 14px; font-weight: 500; }
nav.top .links a:hover { color: var(--bright); }
.btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 4px;
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  background: rgba(94, 234, 212, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-block;
}
.btn:hover { background: rgba(94, 234, 212, 0.14); border-color: var(--teal); }
.btn.solid {
  background: var(--teal);
  color: #06201C;
  border-color: var(--teal);
}
.btn.solid:hover { background: #7FF2DE; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- Hero / terminal ---------- */
.hero { padding: 84px 0 60px; }
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--mono);
  font-size: 44px;
  line-height: 1.15;
  color: var(--bright);
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 720px;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--teal); }
.hero p.lead {
  font-size: 17px;
  color: var(--slate);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero .actions { display: flex; gap: 14px; margin-bottom: 56px; }

.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 640px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.terminal .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate-dim);
}
.terminal .bar .chip { width: 9px; height: 9px; border-radius: 50%; background: #3A4560; }
.terminal .body {
  padding: 20px 18px;
  font-family: var(--mono);
  font-size: 13px;
  min-height: 190px;
}
.terminal .line { display: flex; gap: 10px; margin-bottom: 9px; opacity: 0; animation: fadeIn 0.4s ease forwards; }
.terminal .line .tag { color: var(--slate-dim); width: 96px; flex-shrink: 0; }
.terminal .line .msg { color: var(--slate); }
.terminal .line.ok .msg { color: var(--teal); }
.terminal .line.ring .msg { color: var(--amber); }
.terminal .cursor {
  display: inline-block; width: 7px; height: 14px; background: var(--teal);
  animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 4px;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .terminal .line { animation: none; opacity: 1; }
  .terminal .cursor { animation: none; }
}

/* ---------- Signal divider ---------- */
.signal-divider {
  display: flex; align-items: flex-end; gap: 3px;
  margin: 64px 0 28px;
  height: 16px;
}
.signal-divider span {
  width: 3px; background: var(--teal-dim); border-radius: 1px;
}
.signal-divider span:nth-child(1) { height: 6px; }
.signal-divider span:nth-child(2) { height: 12px; background: var(--teal); }
.signal-divider span:nth-child(3) { height: 8px; }
.signal-divider span:nth-child(4) { height: 16px; background: var(--teal); }
.signal-divider span:nth-child(5) { height: 5px; }
.signal-divider .label {
  font-family: var(--mono); font-size: 12px; color: var(--slate-dim);
  letter-spacing: 0.08em; text-transform: uppercase; margin-left: 10px;
}

section.block { padding: 20px 0 60px; }
section.block h2 {
  font-family: var(--mono);
  color: var(--bright);
  font-size: 24px;
  margin: 0 0 12px;
}
section.block p.sub { max-width: 560px; margin: 0 0 40px; color: var(--slate-dim); }

/* ---------- Plan / port cards ---------- */
.ports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .ports { grid-template-columns: 1fr; } }

.port-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 22px;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.port-card:hover { border-color: var(--teal-dim); transform: translateY(-2px); }
.port-card .jack {
  width: 34px; height: 22px;
  border: 2px solid var(--slate-dim);
  border-radius: 3px;
  position: relative;
  margin-bottom: 18px;
}
.port-card .jack::before, .port-card .jack::after {
  content: ''; position: absolute; top: 4px; width: 2px; height: 10px; background: var(--slate-dim);
}
.port-card .jack::before { left: 9px; }
.port-card .jack::after { left: 20px; }
.port-card.featured .jack { border-color: var(--teal); }
.port-card.featured .jack::before, .port-card.featured .jack::after { background: var(--teal); }
.port-card.featured { border-color: var(--teal-dim); background: linear-gradient(180deg, rgba(94,234,212,0.05), var(--panel) 60%); }

.port-card .plan-name {
  font-family: var(--mono); color: var(--bright); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
}
.port-card .price { font-family: var(--mono); font-size: 32px; color: var(--bright); font-weight: 800; }
.port-card .price span { font-size: 14px; color: var(--slate-dim); font-weight: 500; }
.port-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.port-card li {
  font-size: 13.5px; color: var(--slate);
  padding-left: 18px; position: relative; margin-bottom: 9px;
}
.port-card li::before {
  content: '▸'; position: absolute; left: 0; color: var(--teal-dim); font-size: 12px;
}
.port-card .btn { width: 100%; text-align: center; }

/* ---------- Form ---------- */
.formcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px; max-width: 460px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--mono); font-size: 12px; color: var(--slate-dim);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px;
}
.field input, .field select {
  width: 100%; padding: 11px 12px; background: var(--ink); border: 1px solid var(--line);
  border-radius: 4px; color: var(--bright); font-family: var(--sans); font-size: 14px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); }
.field input:focus-visible, .field select:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
.msg-box { font-size: 13.5px; padding: 12px 14px; border-radius: 4px; margin-top: 16px; display: none; }
.msg-box.show { display: block; }
.msg-box.error { background: rgba(245, 98, 35, 0.1); color: var(--amber); border: 1px solid rgba(245,166,35,0.3); }
.msg-box.info { background: rgba(94, 234, 212, 0.08); color: var(--teal); border: 1px solid var(--teal-dim); }

/* ---------- Credentials panel ---------- */
.cred-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  margin-bottom: 18px;
}
.cred-panel .head {
  padding: 14px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.cred-panel .head .name { font-family: var(--mono); color: var(--bright); font-weight: 700; font-size: 14px; }
.status-pill {
  font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.status-pill.active { color: var(--teal); background: rgba(94,234,212,0.1); border: 1px solid var(--teal-dim); }
.status-pill.pending { color: var(--amber); background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3); }
.status-pill.expired, .status-pill.revoked { color: var(--slate-dim); background: rgba(110,124,147,0.1); border: 1px solid var(--line); }
.cred-panel .rows { padding: 6px 18px 18px; }
.cred-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.cred-row:last-child { border-bottom: none; }
.cred-row .k { color: var(--slate-dim); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.cred-row .v { color: var(--bright); font-family: var(--mono); font-size: 13.5px; }
.copy-btn {
  font-family: var(--mono); font-size: 11px; color: var(--teal); background: none; border: 1px solid var(--teal-dim);
  border-radius: 3px; padding: 3px 8px; cursor: pointer; margin-left: 10px;
}
.copy-btn:hover { background: rgba(94,234,212,0.08); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 60px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer .fine { font-size: 12.5px; color: var(--slate-dim); font-family: var(--mono); }

.center-page {
  min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px;
}
