:root {
  --bg: #0d0f12;
  --panel: #14171c;
  --panel-2: #1b1f26;
  --ink: #e6e9ee;
  --muted: #8a93a0;
  --line: #2a3038;
  --accent: #ffb000;
  --accent-dim: #b87c00;
  --steel: #5b6b7a;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(13,15,18,0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--accent); font-size: 20px; }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: 4px; font-size: 20px; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  margin-left: 24px;
  transition: color .2s ease;
}
.topnav a:hover { color: var(--accent); }

/* ---- Hero ---- */
main { flex: 1; }
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 90px 32px 60px;
  animation: rise .6s ease both;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 3px;
  margin: 0 0 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 1px;
  margin: 0 0 22px;
}
h1 .accent { color: var(--accent); }
.lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 40px;
}

/* ---- Console form ---- */
.console {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8);
}
.field {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 16px 18px;
  background: var(--panel-2);
}
.field-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--steel);
  margin-bottom: 8px;
}
#url-input, #server-select {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  outline: none;
}
#server-select { cursor: pointer; }
#server-select option { background: var(--panel); color: var(--ink); }
.go-btn {
  border: none;
  background: var(--accent);
  color: #11140f;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 15px;
  padding: 0 30px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.go-btn:hover { background: #ffc233; }
.go-btn:active { transform: translateY(1px); }
.hint {
  color: var(--steel);
  font-size: 12px;
  margin-top: 16px;
  letter-spacing: 1px;
}

/* ---- Grid strip ---- */
.grid-strip {
  max-width: 920px;
  margin: 30px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cell { background: var(--bg); padding: 28px 22px; }
.cell-no { color: var(--accent-dim); font-size: 12px; letter-spacing: 2px; }
.cell h3 { font-family: var(--display); font-weight: 500; letter-spacing: 2px; font-size: 18px; margin: 10px 0 8px; }
.cell p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

/* ---- Ad zone ---- */
.ad-zone {
  max-width: 920px;
  margin: 50px auto;
  padding: 0 32px;
}
.ad-zone ins { background: var(--panel); min-height: 100px; border: 1px dashed var(--line); }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 32px;
  display: flex;
  gap: 12px;
  color: var(--steel);
  font-size: 12px;
  letter-spacing: 2px;
}
.footer .dot { color: var(--accent-dim); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .console { grid-template-columns: 1fr; }
  .field { border-right: none; border-bottom: 1px solid var(--line); }
  .grid-strip { grid-template-columns: 1fr; }
  .topnav { display: none; }
}
