:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #596276;
  --line: #1f2933;
  --paper: #fff7dc;
  --panel: #ffffff;
  --accent: #ef233c;
  --accent-dark: #b80d28;
  --blue: #2f80ed;
  --gold: #ffbe0b;
  --teal: #00a896;
  --shadow: 0 24px 60px rgba(23, 32, 51, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18px 18px, rgba(239, 35, 60, 0.18) 0 5px, transparent 6px),
    radial-gradient(circle at 58px 54px, rgba(47, 128, 237, 0.16) 0 5px, transparent 6px),
    linear-gradient(135deg, rgba(255, 190, 11, 0.36), transparent 34%),
    linear-gradient(315deg, rgba(0, 168, 150, 0.18), transparent 35%),
    var(--paper);
  background-size: 76px 76px, 92px 92px, auto, auto, auto;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
  padding: 16px 0 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--gold);
}

.mark svg,
.icon-button svg,
.primary-button svg,
.detail-icon svg {
  width: 100%;
  height: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #006b5f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.85rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 rgba(255, 190, 11, 0.72);
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: #475467;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.ip-panel {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ip-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 22px, #fff 22px 44px, var(--blue) 44px 66px, #fff 66px 88px);
}

.panel-label,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  margin: 12px 0 10px;
}

.ip-address {
  min-height: 54px;
  display: flex;
  align-items: center;
  color: var(--accent-dark);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.icon-button,
.primary-button,
.tool-button {
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #fff7dc;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--blue);
}

.icon-button svg,
.primary-button svg,
.detail-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border-color: var(--line);
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--gold);
}

.primary-button svg {
  width: 19px;
  height: 19px;
}

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

.detail-card {
  min-height: 154px;
  display: flex;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(47, 128, 237, 0.18);
}

.detail-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #006b5f;
}

.detail-card h2,
.tools h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.detail-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px;
  padding: 26px 0 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: auto;
  gap: 10px;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 3px 3px 0 rgba(239, 35, 60, 0.28);
}

.icon-button:hover,
.tool-button:hover {
  background: #fff7dc;
  transform: translateY(-1px);
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: 8px;
  }

  .hero-grid,
  .details,
  .tools {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    display: grid;
  }

  .details {
    display: grid;
  }

  .tools {
    display: block;
  }

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

  .tool-button {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 1120px);
    padding-bottom: 26px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .ip-panel {
    padding: 20px;
  }

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

  .icon-button {
    justify-self: start;
  }

  .detail-card {
    min-height: 128px;
  }
}
