:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e9f0eb;
  background: #09110e;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(49, 129, 91, 0.2), transparent 30rem),
    #09110e;
}

.hero,
main {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 0 42px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #78d4a7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
}

.intro {
  max-width: 700px;
  margin-bottom: 0;
  color: #a6b4ab;
  font-size: 1.05rem;
  line-height: 1.7;
}

.status-card {
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #24352c;
  border-radius: 16px;
  background: #101b16;
}

.status-card strong,
.status-card span {
  display: block;
}

.status-card span:not(.pulse) {
  margin-top: 4px;
  color: #819087;
  font-size: 0.78rem;
}

.pulse {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #65e6a2;
  box-shadow: 0 0 0 7px rgba(101, 230, 162, 0.1);
}

.warning,
.location-panel,
.data-section,
details {
  border: 1px solid #23342b;
  border-radius: 20px;
  background: rgba(15, 25, 20, 0.88);
}

.warning {
  padding: 20px 24px;
  border-left: 4px solid #d5ae58;
}

.warning strong {
  color: #f0cb77;
}

.warning p {
  margin: 6px 0 0;
  color: #9aa9a0;
  line-height: 1.6;
}

code {
  color: #d6e5dc;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.summary-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid #22332a;
  border-radius: 18px;
  background: #0e1813;
}

.summary-grid span {
  display: block;
  margin-bottom: 9px;
  color: #73847a;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px;
}

.location-panel p:not(.eyebrow, .location-status) {
  max-width: 720px;
  margin-bottom: 0;
  color: #94a39a;
  line-height: 1.6;
}

button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #07110c;
  background: #71dea6;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

button:hover:not(:disabled) {
  background: #93ecc0;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.location-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: #90a197;
  font-size: 0.88rem;
}

.success {
  color: #71dea6;
}

.error {
  color: #ef8d83;
}

.data-section {
  margin-top: 18px;
  padding: 30px;
}

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

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

button.secondary {
  min-height: 40px;
  color: #bdd0c4;
  border: 1px solid #33483d;
  background: transparent;
}

.data-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.data-group {
  min-width: 0;
  padding: 22px;
  border: 1px solid #22342a;
  border-radius: 15px;
  background: #0a1410;
}

.data-group h3 {
  padding-bottom: 13px;
  border-bottom: 1px solid #1e3026;
  color: #79d5a8;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr);
  gap: 0;
  margin: 0;
}

dt,
dd {
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid #17261e;
  font-size: 0.8rem;
  line-height: 1.45;
}

dt {
  padding-right: 14px;
  color: #728279;
  overflow-wrap: anywhere;
}

dd {
  margin: 0;
  color: #c6d3cb;
  overflow-wrap: anywhere;
}

details {
  margin: 18px 0 60px;
  padding: 22px;
}

summary {
  cursor: pointer;
  color: #9eb0a5;
  font-weight: 700;
}

pre {
  max-height: 600px;
  overflow: auto;
  margin: 20px 0 0;
  padding: 20px;
  border-radius: 12px;
  color: #b8dcc7;
  background: #050b08;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.loading-text {
  color: #84958b;
}

@media (max-width: 850px) {
  .hero {
    display: block;
    padding-top: 48px;
  }

  .status-card {
    margin-top: 28px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero,
  main {
    width: min(100% - 24px, 1180px);
  }

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

  .location-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .location-panel button {
    width: 100%;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .data-section {
    padding: 20px 14px;
  }

  dl {
    grid-template-columns: 1fr;
  }

  dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  dd {
    padding-top: 0;
  }
}
