.ip-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, var(--color-bg), var(--color-water-soft), var(--color-bg));
}

.ip-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(var(--color-accent-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent-line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, var(--color-text), transparent);
  pointer-events: none;
}

.ip-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  min-height: 520px;
  gap: clamp(30px, 7vw, 92px);
}

.ip-hero-copy {
  position: relative;
  z-index: 2;
}

.ip-hero-copy h1 {
  max-width: none;
}

.ip-hero-copy .lead {
  max-width: 40rem;
}

.ip-hero-facts {
  justify-content: flex-start;
  margin-top: 26px;
}

.ip-route-mark {
  position: relative;
  z-index: 1;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background:
    linear-gradient(145deg, var(--color-white-soft), var(--color-water-soft)),
    var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.ip-route-mark::before,
.ip-route-mark::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.ip-route-mark::before {
  inset: 12px;
  border: 1px dashed var(--color-accent-line);
}

.ip-route-mark::after {
  top: -8px;
  right: 28px;
  width: 70px;
  height: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-error);
}

.ip-route-mark svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.ip-route-path {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 18;
  stroke-linecap: round;
}

.ip-route-flow {
  fill: none;
  stroke: var(--color-success);
  stroke-width: 3;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
}

.ip-route-node {
  fill: var(--color-bg);
  stroke: var(--color-accent);
  stroke-width: 2;
}

.ip-route-core {
  fill: var(--color-error);
}

.ip-route-label {
  fill: var(--color-paper-soft);
  stroke: var(--color-border);
}

.ip-route-text {
  fill: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.ip-result-section {
  background:
    linear-gradient(180deg, var(--color-bg), var(--color-panel));
}

.ip-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  align-items: end;
  margin-bottom: 34px;
  gap: 28px;
}

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

.ip-query-status {
  justify-self: end;
  margin-bottom: 7px;
  padding-left: 17px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ip-query-status::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: var(--radius-pill);
  content: "";
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.ip-query-status.is-error {
  color: var(--color-error);
}

.ip-query-status.is-error::before {
  background: var(--color-error);
}

.ip-result-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-accent);
  border-radius: var(--radius-small);
  background: var(--color-bg);
  box-shadow: var(--shadow-panel);
}

.ip-primary-card {
  display: flex;
  min-height: 330px;
  padding: clamp(26px, 5vw, 48px);
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--color-border);
  background:
    linear-gradient(145deg, var(--color-water), var(--color-paper-soft));
}

.ip-field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ip-address {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.18;
}

.ip-primary-card p,
.ip-detail-card p {
  color: var(--color-muted);
  font-size: 13px;
}

.ip-primary-card p {
  max-width: 28rem;
  margin-top: 16px;
}

.ip-copy-button {
  width: fit-content;
  margin-top: 12px;
  gap: 9px;
}

.ip-copy-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ip-detail-grid {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.ip-detail-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.48fr) minmax(170px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  min-height: 110px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
  gap: 22px;
}

.ip-detail-card:last-child {
  border-bottom: 0;
}

.ip-detail-card .ip-field-label,
.ip-detail-card p {
  margin-bottom: 0;
}

.ip-detail-card strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.ip-reading-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(34px, 7vw, 90px);
}

.ip-reading-index {
  align-self: start;
  padding-top: 8px;
}

.ip-reading-index .mono {
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.ip-reading-copy {
  max-width: 52rem;
}

.ip-explain-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  gap: 30px;
}

.ip-explain-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.ip-explain-row h3 {
  font-family: var(--font-mono);
  font-size: 15px;
}

.ip-explain-row p {
  color: var(--color-muted);
}

.ip-check-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.ip-check-sheet article {
  min-height: 210px;
  padding: 26px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-paper-soft);
}

.ip-check-sheet article:nth-child(3n) {
  background: var(--color-water);
}

.ip-check-sheet h3 {
  font-size: 19px;
}

.ip-check-sheet p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.ip-privacy-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-error);
  border-radius: var(--radius-small);
  background: var(--color-bg);
  box-shadow: var(--shadow-panel);
  gap: 28px;
}

.ip-privacy-panel h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.ip-privacy-panel p {
  max-width: 52rem;
  margin-bottom: 0;
  color: var(--color-muted);
}

.ip-privacy-mark {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-small);
  color: var(--color-accent);
  background: var(--color-water);
}

.ip-privacy-mark svg {
  width: 45px;
  height: 45px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ip-copy-proxy {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .ip-hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .ip-route-mark {
    width: min(560px, 100%);
  }

  .ip-result-panel {
    grid-template-columns: 1fr;
  }

  .ip-primary-card {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .ip-detail-card {
    grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  }

  .ip-detail-card p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ip-hero-layout {
    gap: 32px;
  }

  .ip-route-mark {
    padding: 20px;
  }

  .ip-section-heading,
  .ip-reading-grid {
    grid-template-columns: 1fr;
  }

  .ip-query-status {
    justify-self: start;
    margin-bottom: 0;
  }

  .ip-reading-index {
    padding-top: 0;
  }

  .ip-reading-index .mono {
    width: fit-content;
    margin-bottom: 0;
  }

  .ip-check-sheet {
    grid-template-columns: 1fr;
  }

  .ip-check-sheet article {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .ip-route-mark {
    display: none;
  }

  .ip-hero-facts {
    justify-content: flex-start;
  }

  .ip-primary-card {
    min-height: 0;
    padding: 26px 20px;
  }

  .ip-copy-button {
    width: 100%;
  }

  .ip-detail-card {
    display: block;
    min-height: 0;
    padding: 22px 20px;
  }

  .ip-detail-card strong {
    display: block;
    margin-bottom: 8px;
  }

  .ip-explain-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ip-privacy-panel {
    grid-template-columns: 1fr;
  }

  .ip-privacy-mark {
    width: 60px;
    height: 60px;
  }

  .ip-privacy-mark svg {
    width: 36px;
    height: 36px;
  }
}