:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --bg-accent: #e8eefb;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --fg: #111827;
  --muted: #5b6577;
  --line: #dfe5ef;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --good: #16a34a;
  --good-soft: #dcfce7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --pending: #d97706;
  --pending-soft: #fef3c7;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-accent: #101a33;
    --card: #111a2e;
    --card-soft: #0e1729;
    --fg: #e8eefc;
    --muted: #94a3b8;
    --line: #24314b;
    --accent: #60a5fa;
    --accent-strong: #93c5fd;
    --good: #4ade80;
    --good-soft: #12351f;
    --bad: #f87171;
    --bad-soft: #3b1212;
    --pending: #fbbf24;
    --pending-soft: #3a2a08;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 500px at 10% -10%, var(--bg-accent), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, var(--bg-accent), transparent 55%),
    var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-strong);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  color: var(--fg);
  z-index: 20;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--fg);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.brand-name {
  font-size: 17px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  padding: 6px 2px;
}

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

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 48px;
}

.hero {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  box-shadow: var(--shadow);
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

.status--pending {
  color: var(--pending);
  background: var(--pending-soft);
}

.status--ok {
  color: var(--good);
  background: var(--good-soft);
}

.status--fail {
  color: var(--bad);
  background: var(--bad-soft);
}

.ip-card {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(56, 189, 248, 0.2), transparent 65%),
    linear-gradient(135deg, #0f172a, #172554 65%, #0f172a);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ip-label {
  display: block;
  color: #a5b4cf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ip-value {
  display: block;
  margin: 8px 0 20px;
  font: 700 clamp(30px, 6vw, 48px)/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.04em;
  word-break: break-all;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 16px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

button:active {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.65);
  outline-offset: 3px;
}

.button--secondary {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.35);
}

.button--secondary:hover {
  background: rgba(226, 232, 240, 0.1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.card h2 {
  margin: 0 0 16px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

dl {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
  font-size: 14px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.about {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.about h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.about > p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.note {
  padding: 16px;
  border-radius: 14px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.note span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.offscreen {
  position: fixed;
  left: -9999px;
  top: 0;
}

.noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--pending-soft);
  color: var(--fg);
  font-size: 14px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 860px) {
  .grid,
  .notes {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    width: 100%;
  }

  .hero-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ip-value {
    font-size: clamp(26px, 8vw, 38px);
  }

  .actions button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Winter decor: tree in a Santa hat, snowflakes */
.brand-flake {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -2px;
  opacity: .7;
}

.brand:hover .brand-flake {
  color: var(--accent);
  opacity: 1;
}

.winter-divider {
  display: flex;
  justify-content: center;
  padding: 14px 0 6px;
  color: var(--muted);
  opacity: .55;
}

.winter-scene {
  display: block;
  width: 190px;
  height: auto;
}

@media (max-width: 640px) {
  .winter-divider {
    padding: 10px 0 4px;
    opacity: .5;
  }

  .winter-scene {
    width: 150px;
  }
}

.snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

@media print {
  .snow-canvas,
  .winter-divider,
  .brand-flake {
    display: none;
  }
}
