/* Noctua theme (noctuaone.com): purple #3f369e, light accent #968cff, Urbanist + Ubuntu. */
@font-face { font-family: "Urbanist"; font-weight: 700; font-display: swap; src: url("/assets/urbanist-700.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 400; font-display: swap; src: url("/assets/ubuntu-400.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 500; font-display: swap; src: url("/assets/ubuntu-500.woff2") format("woff2"); }

:root {
  --primary: #3f369e;
  --accent: #968cff;
  --ink: #1d1a3a;
  --muted: #5d5a78;
  --bg: #f7f6ff;
  --card: #ffffff;
  --line: #e4e1fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 17px/1.6 "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(150, 140, 255, .35), transparent 70%),
    radial-gradient(40rem 25rem at -10% 110%, rgba(63, 54, 158, .18), transparent 70%),
    var(--bg);
}

a { color: var(--primary); }

.top, .bottom, main { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.brand img { display: block; height: 44px; width: auto; }
.tag {
  font-weight: 500; font-size: 14px; color: var(--primary);
  border: 1px solid var(--line); background: var(--card);
  padding: 6px 16px; border-radius: 100px;
}

main { flex: 1; padding-top: 56px; padding-bottom: 56px; }

.hero {
  container-type: inline-size;   /* the IP size follows the card width (cqi units) */
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 24px 60px -30px rgba(63, 54, 158, .45);
}

.eyebrow { margin: 0 0 8px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--muted); }

.ip {
  margin: 0;
  font-family: "Urbanist", "Ubuntu", system-ui, sans-serif;
  font-weight: 700;
  /* Always one line: IPv4 (max 15 characters) up to 56px, IPv6 (max 39) sized to the card. */
  font-size: min(56px, 10cqi);
  line-height: 1.15;
  color: var(--primary);
  white-space: nowrap;
  overflow-x: auto;            /* only scrolls sideways if an address ever does not fit */
  overflow-y: hidden;          /* no vertical scroll control next to the address */
  padding-bottom: .06em;
  user-select: all;            /* one click selects the whole address */
}
.ip.ip6 { font-size: min(40px, 5cqi); }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
.badge {
  font-weight: 500; font-size: 14px; color: #fff; background: var(--primary);
  padding: 6px 16px; border-radius: 100px;
}
.badge + .badge { background: var(--accent); color: var(--ink); }

.hint { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.pill {
  display: inline-block; margin-left: 6px; padding: 8px 18px; border-radius: 100px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 500 14px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.pill:hover { background: var(--primary); }

.path { margin-top: 56px; }
.path h2 { font-family: "Urbanist", "Ubuntu", sans-serif; font-weight: 700; font-size: 28px; margin: 0 0 20px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 20px;
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 10px; border-radius: 100px;
  background: var(--accent); color: var(--ink); font-weight: 500; font-size: 14px;
}
.steps strong { display: block; font-weight: 500; }
.steps span { display: block; color: var(--muted); font-size: 15px; }

.served { margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.served code { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }

.bottom { display: flex; justify-content: space-between; padding-bottom: 28px; color: var(--muted); font-size: 14px; }

@media (max-width: 560px) {
  .hero { padding: 32px 22px; border-radius: 22px; }
  .tag { display: none; }
  .pill { margin: 8px 0 0; }
}
