* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Catppuccin Latte palette ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #eff1f5 0%, #e6e9ef 50%, #eff1f5 100%);
  color: #4c4f69;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, rgb(30 102 245 / 4%) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgb(136 57 239 / 3%) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e66f5, #8839ef, #ea76cb);
  background-size: 200% 200%;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.subtitle {
  color: #7c7f93;
  font-size: 1.1rem;
  font-weight: 400;
}

.subtitle span {
  display: inline-block;
  background: rgb(30 102 245 / 8%);
  border: 1px solid rgb(30 102 245 / 15%);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  color: #1e66f5;
  margin-top: 0.5rem;
}

.ad-banner {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  min-height: 90px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid #dce0e8;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
}

.card:hover {
  border-color: #bcc0cc;
  box-shadow: 0 4px 12px rgb(0 0 0 / 6%);
  transform: translateY(-1px);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1e66f5, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 0.4;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e6e9ef;
}

.card-header .icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.card-header .icon.connection {
  background: rgb(30 102 245 / 10%);
  color: #1e66f5;
}

.card-header .icon.location {
  background: rgb(23 146 153 / 10%);
  color: #179299;
}

.card-header .icon.browser {
  background: rgb(223 142 29 / 10%);
  color: #df8e1d;
}

.card-header .icon.headers {
  background: rgb(234 118 203 / 10%);
  color: #ea76cb;
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4c4f69;
  margin: 0;
  padding: 0;
  border: none;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e6e9ef;
}

.info-item.full {
  grid-column: 1 / -1;
}

.info-item:last-child,
.info-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca0b0;
}

.info-value {
  font-size: 0.9rem;
  color: #4c4f69;
  overflow-wrap: anywhere;
}

.info-value code {
  font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: #40a02b;
  background: rgb(64 160 43 / 6%);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.info-value small {
  font-size: 0.8rem;
  color: #7c7f93;
}

.info-value .ip-highlight {
  font-family: "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #1e66f5;
  letter-spacing: 0.02em;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-platform {
  background: rgb(30 102 245 / 10%);
  color: #1e66f5;
}

.tag-mobile {
  background: rgb(23 146 153 / 10%);
  color: #179299;
}

.ad-container {
  background: #e6e9ef;
  border: 1px dashed #bcc0cc;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

footer {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #dce0e8;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 120px;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-text {
  text-align: center;
}

.footer-text p {
  color: #9ca0b0;
  font-size: 0.75rem;
  margin-bottom: 0.15rem;
}

.footer-text a {
  color: #1e66f5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: #7287fd;
  text-decoration: underline;
}

@media (width <= 640px) {
  .container {
    padding: 1rem 0.75rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .card {
    padding: 1.25rem 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-item {
    border-bottom: 1px solid #e6e9ef;
  }

  .info-item:last-child {
    border-bottom: none;
  }
}
