:root {
  color-scheme: light;
  --ink: #20211f;
  --muted: #76766e;
  --paper: #f5f3ed;
  --accent: #0867ff;
  --accent-soft: #3f8cff;
  --logo-filter: none;
  --line: rgba(32, 33, 31, .13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 33, 31, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 33, 31, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px, 32px 32px, auto;
  font-family: Inter, Avenir, "Segoe UI", system-ui, sans-serif;
}

.page {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.nav, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav { padding: 32px 0; }

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: var(--logo-filter);
}

.hero {
  align-self: center;
  text-align: center;
  padding: 72px 0 120px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ip-card {
  position: relative;
  max-width: 780px;
  margin: auto;
  padding: 42px 36px 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 24px 80px rgba(44, 37, 26, .08);
  backdrop-filter: blur(12px);
}

.ip {
  position: relative;
  margin: 0 0 30px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(25px, 5.4vw, 58px);
  font-weight: 600;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.ip.loading { animation: pulse 1.2s ease-in-out infinite; }

.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  font: 600 12px Inter, Avenir, "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}

.copy:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent); background: white; }
.copy:disabled { cursor: wait; opacity: .5; }
.copy svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.details {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1px;
  margin: 34px -36px -34px;
  border-top: 1px solid var(--line);
  background: var(--line);
  text-align: left;
}

.details div {
  min-width: 0;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .66);
}

.details dt {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.details dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.country-flag {
  margin-right: 7px;
  font-size: 17px;
  vertical-align: -1px;
}

footer {
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

footer span:nth-child(2) { text-align: center; }
footer span:last-child { text-align: right; }

@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 600px) {
  .page { width: min(100% - 28px, 1180px); }
  .nav { padding-top: 22px; }
  .brand img { width: 54px; height: 54px; }
  .hero { padding: 48px 0 80px; }
  .eyebrow { margin-bottom: 30px; }
  .ip-card { padding: 34px 16px 28px; border-radius: 18px; }
  .details { grid-template-columns: 1fr; margin: 30px -16px -28px; }
  .details div { padding: 16px 20px; }
  footer { align-items: flex-start; gap: 16px; line-height: 1.5; }
  footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
