.ip-intro {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.ip-intro-inner {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.ip-intro-copy {
  max-width: 720px;
}

.ip-intro-copy h1 {
  color: var(--color-accent);
}

.ip-intro-mark {
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--color-cream-12);
  border-radius: var(--radius-sm);
  background-color: var(--color-night);
  background-image: radial-gradient(var(--color-dots) 1px, var(--color-transparent) 1.2px);
  background-size: 12px 12px;
  box-shadow: var(--shadow-raised);
}

.ip-intro-mark svg {
  width: 78%;
}

.ip-mark-orbit,
.ip-mark-route {
  fill: none;
  stroke: var(--color-cream-30);
  stroke-width: 1.5;
}

.ip-mark-route {
  stroke: var(--color-cream-60);
  stroke-dasharray: 5 6;
}

.ip-mark-node {
  fill: var(--color-cream);
}

.ip-mark-pin {
  fill: var(--color-lilac);
  stroke: var(--color-cream);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.ip-result-section {
  background: var(--color-surface-muted);
}

.ip-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.ip-section-heading h2 {
  margin-bottom: 0;
}

.ip-result-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-raised);
}

.ip-query-state {
  min-height: 48px;
  padding: 12px clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: 14px;
}

.ip-query-state.is-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.ip-query-state.is-error {
  background: var(--color-surface-muted);
  color: var(--color-error);
}

.ip-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.ip-fact {
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
  border-bottom: 1px solid var(--color-border);
}

.ip-fact:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}

.ip-fact dt {
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.ip-fact dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.5vw, 25px);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.proxy-state.is-clear {
  color: var(--color-success);
}

.proxy-state.is-detected {
  color: var(--color-warning);
}

.proxy-state.is-unknown {
  color: var(--color-text-muted);
}

.ip-result-actions {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(20px, 4vw, 34px);
}

.ip-copy-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.meaning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.meaning-card {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.meaning-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: var(--radius-round);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.meaning-card h3 {
  font-size: 22px;
}

.meaning-card p {
  color: var(--color-text-muted);
}

.dns-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: start;
}

.dns-copy > p:not(.eyebrow) {
  max-width: 600px;
}

.dns-note {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--color-cream-12);
  border-radius: var(--radius-sm);
  background: var(--color-night-panel);
}

.dns-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-cream);
}

.dns-note p {
  margin: 0;
}

.dns-steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-cream-12);
  border-radius: var(--radius-sm);
  background: var(--color-cream-12);
  counter-reset: dns-step;
  list-style: none;
}

.dns-steps li {
  position: relative;
  min-width: 0;
  padding: 26px 26px 26px 78px;
  background: var(--color-night-panel);
  counter-increment: dns-step;
}

.dns-steps li::before {
  position: absolute;
  top: 25px;
  left: 24px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--color-cream-30);
  border-radius: var(--radius-round);
  color: var(--color-cream);
  content: counter(dns-step);
  font-family: var(--font-mono);
  font-size: 12px;
}

.dns-steps strong {
  display: block;
  margin-bottom: 7px;
  color: var(--color-cream);
}

.dns-steps p {
  margin: 0;
}

.privacy-section {
  background: var(--color-bg);
}

.privacy-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.privacy-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-success-soft);
  color: var(--color-success);
}

.privacy-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 38px);
}

.privacy-panel p:last-child {
  color: var(--color-text-muted);
}

.copy-buffer {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
}

@media (max-width: 900px) {
  .ip-intro-inner {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.6fr);
    gap: 32px;
  }

  .dns-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .ip-intro-inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .ip-intro-mark {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 8;
    justify-self: stretch;
  }

  .ip-intro-mark svg {
    width: min(68%, 300px);
    max-height: 210px;
  }

  .ip-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .ip-fact:nth-child(odd) {
    border-right: 0;
  }

  .meaning-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .ip-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ip-section-heading .btn {
    width: 100%;
  }

  .ip-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ip-result-actions .btn {
    width: 100%;
  }

  .ip-copy-note {
    text-align: center;
  }

  .dns-steps li {
    padding: 72px 22px 24px;
  }

  .dns-steps li::before {
    top: 22px;
    left: 22px;
  }

  .privacy-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}