/* ckip.top — shared design system (header + footer shell + home page)
   Plain CSS, no build step. Pair with index.html and app.js. */

:root {
  --brand: #3f6c96;
  --brand-dark: #345779;
  --brand-tint: #eaf1f8;
  --coral: #e8836f;
  --amber: #e3a53f;
  --teal: #3fa39b;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #37424f;
  --muted: #7b8794;
  --neutral: #eff1f4;
  --border: #e7eaee;
  --success-bg: #e9f5ec;
  --success-text: #3d7c53;
  --warning-bg: #fde3cc;
  --warning-text: #9a3412;
  --warning-border: #f0a84e;
  --radius: 12px;
  --shadow-soft: 0 1px 2px rgba(40, 55, 75, 0.05), 0 8px 24px rgba(40, 55, 75, 0.06);
  --shadow-lift: 0 4px 10px rgba(40, 55, 75, 0.08), 0 18px 40px rgba(40, 55, 75, 0.1);
}

* {
  box-sizing: border-box;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header shell ---------- */
.topbar {
  height: 5px;
  background: var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex: none;
}

.logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  background: var(--neutral);
  color: #4a5563;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-item:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.nav-item.is-active,
.nav-item.is-active:hover {
  background: var(--brand);
  color: #fff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  background: var(--neutral);
  color: #4a5563;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.icon-btn:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

/* mobile dropdown */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 8px 20px 16px;
}

.mobile-nav.open {
  display: block;
  animation: fade-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-nav .nav-item {
  display: flex;
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
  margin-bottom: 6px;
}

.menu-btn {
  display: none;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .logo {
    font-size: 17px;
  }
}
/* ---------- Content ---------- */
.main {
  padding: 48px 0 8px;
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.ip-card {
  padding: 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.eyebrow svg {
  color: var(--brand);
}

.ip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.ip-value {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pill {
  flex: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--success-bg);
  color: var(--success-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pill.pill-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

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

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ip-value {
    font-size: 30px;
  }
  .ip-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Footer shell ---------- */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  padding: 32px 0;
}

.footer-stats {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.footer-copy {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
