:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #e4e7ec;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --green: #10b981;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */

.site-header {
  background: #0f172a;
  color: #fff;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #34d399);
  color: #052e16;
  font-size: 13px;
  font-weight: 800;
}

.brand-tld {
  color: #93c5fd;
  font-weight: 600;
}

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

.nav a {
  color: #cbd5e1;
}

.nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* Hero */

main {
  padding: 34px 0 42px;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.ip-card {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: 16px;
  color: #fff;
  padding: 26px 24px;
}

.ip-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.ip-note {
  margin-top: 6px;
  color: #bfdbfe;
  font-size: 13px;
}

.alert {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 14px;
}

/* Check form */

.check-form {
  margin-top: 22px;
}

.check-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.check-row {
  display: flex;
  gap: 10px;
}

.check-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cfd6e4;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.check-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.check-row button {
  border: 0;
  border-radius: 10px;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.check-row button:hover {
  background: var(--accent-dark);
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.card-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card strong {
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

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

.result-note {
  margin: 14px 0 0;
}

.sep {
  margin: 0 6px;
  color: #b6bfce;
}

/* Headers */

.headers {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.headers summary {
  cursor: pointer;
  font-weight: 600;
}

.headers dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 8px 16px;
  margin: 14px 0 2px;
  font-size: 14px;
}

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

.headers dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

/* Info pages */

.info,
.page {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.info h2,
.page h1,
.page h2 {
  letter-spacing: -0.02em;
}

.info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.page h1 {
  margin-top: 0;
}

.page h2 {
  margin: 22px 0 6px;
  font-size: 18px;
}

.page p:first-of-type {
  margin-top: 0;
}

.page ul {
  padding-left: 22px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.contact-card a {
  font-size: 18px;
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

  .nav {
    gap: 12px;
  }

  .hero {
    padding: 20px;
    border-radius: 16px;
  }

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

  .check-row {
    flex-direction: column;
  }

  .check-row button {
    width: 100%;
  }

  .headers dl {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .headers dt {
    margin-top: 8px;
  }
}
