:root {
  --bg: #f6f1ea;
  --bg-deep: #efe4d6;
  --card: #ffffff;
  --ink: #1f2a2e;
  --muted: #516068;
  --accent: #1f9f85;
  --accent-strong: #0e7d66;
  --warm: #f6b36b;
  --stroke: rgba(31, 42, 46, 0.12);
  --shadow: 0 20px 40px rgba(31, 42, 46, 0.12);
  --radius: 20px;
  --font-display: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;
  --font-body: "DM Sans", "Zen Kaku Gothic New", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top right, #e7f4ef 0%, transparent 50%),
    radial-gradient(circle at 20% 40%, #fef3e3 0%, transparent 45%),
    linear-gradient(120deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.5;
  z-index: 0;
}

body::before {
  width: 420px;
  height: 420px;
  background: rgba(31, 159, 133, 0.15);
  top: -120px;
  left: -140px;
}

body::after {
  width: 480px;
  height: 480px;
  background: rgba(246, 179, 107, 0.18);
  bottom: -160px;
  right: -140px;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #4bd4a2 100%);
  box-shadow: 0 12px 20px rgba(31, 159, 133, 0.35);
}

.logo-text {
  font-size: 1.15rem;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 159, 133, 0.12);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 52px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw, 3.1rem);
  line-height: 1.05;
  margin: 12px 0 16px;
  letter-spacing: -0.03em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus {
  outline: 2px solid rgba(31, 159, 133, 0.4);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgba(31, 159, 133, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(31, 159, 133, 0.3);
}

.btn.ghost {
  background: rgba(31, 42, 46, 0.06);
  color: var(--ink);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 42, 46, 0.08);
  font-weight: 600;
  color: var(--ink);
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: floatIn 0.7s ease both;
}

.primary .label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  margin: 0 0 12px;
  font-weight: 700;
}

.ip {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0;
  line-height: 1.1;
  word-break: break-all;
}

.ip-stack {
  display: grid;
  gap: 16px;
}

.ip-block {
  display: grid;
  gap: 6px;
}

.ip-label {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.copyable {
  cursor: pointer;
}

.copyable:hover {
  text-decoration: underline;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  flex: 1 1 140px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 159, 133, 0.08);
}

.pill-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-strong);
  margin-bottom: 6px;
  font-weight: 600;
}

.pill-value {
  font-weight: 600;
}

.map-link {
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid rgba(31, 42, 46, 0.06);
  box-shadow: 0 12px 24px rgba(31, 42, 46, 0.08);
  animation: riseIn 0.6s ease both;
}

.card:nth-child(1) {
  animation-delay: 0.05s;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card:nth-child(3) {
  animation-delay: 0.15s;
}

.card:nth-child(4) {
  animation-delay: 0.2s;
}

.card:nth-child(5) {
  animation-delay: 0.25s;
}

.card:nth-child(6) {
  animation-delay: 0.3s;
}

.card h2 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.item:last-child {
  margin-bottom: 0;
}

.item-label {
  color: var(--muted);
}

.item-value {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.note p {
  margin: 0 0 18px;
  color: var(--muted);
}

.footer {
  margin-top: 36px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

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

.source {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.loading .status-pill {
  background: rgba(246, 179, 107, 0.25);
  color: #8f5a1b;
}

.error .status-pill {
  background: rgba(210, 81, 81, 0.18);
  color: #a23535;
}

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

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

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-card {
    padding: 22px;
  }

  .status-line {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .item-value {
    text-align: left;
  }
}
