:root {
  color-scheme: dark light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: #0b1020;
  color: #f1f5ff;
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 50% -20%, #263d78 0, transparent 48%), #0b1020;
}

button { font: inherit; }

.shell {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b6c3e4;
  font-size: 14px;
  font-weight: 600;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #a7bbff;
  color: #142553;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -3px;
}

.mark span { color: #3159ba; }

.hero {
  margin-top: clamp(64px, 13vh, 122px);
  padding-bottom: 56px;
  border-bottom: 1px solid #2c3856;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a7bbff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.ip-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ip-address {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(27px, 5.3vw, 45px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.copy-button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #a7bbff;
  border-radius: 10px;
  background: #a7bbff;
  color: #10204a;
  cursor: pointer;
  font-weight: 700;
}

.copy-button:hover:not(:disabled) { background: #c6d2ff; }
.copy-button:disabled { cursor: default; opacity: .5; }

.status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status { margin: 18px 0 0; color: #aebcda; font-size: 14px; }

.retry-button {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #b8c8ff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[hidden] { display: none !important; }

.details { padding-top: 40px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.section-heading p { margin: 7px 0 0; color: #9eaccb; font-size: 14px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.detail {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid #2a3757;
  border-radius: 14px;
  background: #151d33;
}

.detail dt { margin-bottom: 10px; color: #9eaccb; font-size: 13px; }
.detail dd { margin: 0; overflow-wrap: anywhere; font-size: 17px; font-weight: 650; }

.note { margin: 28px 0 0; color: #8594b5; font-size: 13px; line-height: 1.55; }

button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .shell { padding-top: 20px; }
  .hero { margin-top: 68px; padding-bottom: 42px; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: light) {
  :root { background: #f5f7fc; color: #152342; }
  body { background: radial-gradient(ellipse at 50% -20%, #dce5ff 0, transparent 50%), #f5f7fc; }
  .topbar, .status { color: #526285; }
  .hero { border-color: #d3daea; }
  .eyebrow { color: #2854bb; }
  .section-heading p, .detail dt { color: #5c6d8f; }
  .detail { border-color: #d3daea; background: #fff; }
  .note { color: #5c6d8f; }
  .retry-button { color: #2854bb; }
}
