:root {
  --iod-ink: #152637;
  --iod-muted: #647487;
  --iod-blue: #1463ff;
  --iod-blue-dark: #0b3d91;
  --iod-cyan: #30c5ff;
  --iod-surface: #ffffff;
  --iod-bg: #f3f7fb;
  --iod-border: #dce5ef;
  --iod-success: #12805c;
  --iod-danger: #a82727;
  --iod-shadow: 0 18px 55px rgba(31, 55, 86, 0.1);
}

html {
  min-height: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--iod-ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(48, 197, 255, 0.12), transparent 25rem),
    linear-gradient(180deg, #f8fbfe 0%, var(--iod-bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--iod-blue); }

.iod-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.iod-site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.iod-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--iod-ink);
  font-weight: 760;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.iod-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, var(--iod-blue-dark), var(--iod-blue) 58%, var(--iod-cyan));
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 22px rgba(20, 99, 255, 0.24);
}

.iod-header-link {
  color: var(--iod-blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.iod-page-shell { padding: 4.5rem 0 5rem; }

.iod-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 3.25rem;
  margin-bottom: 3rem;
}

.iod-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--iod-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.iod-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.iod-hero-copy {
  max-width: 730px;
  margin: 1.45rem 0 0;
  color: var(--iod-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.iod-status-card,
.iod-form-card {
  border: 1px solid var(--iod-border);
  border-radius: 22px;
  background: var(--iod-surface);
  box-shadow: var(--iod-shadow);
}

.iod-status-card { padding: 1.75rem; }

.iod-status-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  color: var(--iod-success);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.iod-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #20b883;
  box-shadow: 0 0 0 5px rgba(32, 184, 131, 0.12);
}

.iod-stat-value {
  margin: 0;
  font-size: 2.65rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.04em;
}

.iod-stat-label { margin: 0.55rem 0 0; color: var(--iod-muted); }

.iod-portal-panel { margin-top: 1.5rem; }

.iod-form-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.iod-form-card { padding: clamp(1.4rem, 3vw, 2.25rem); }
.iod-form-card-wide { grid-column: 1 / -1; }

.iod-form-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.iod-form-card p {
  margin: 0;
  color: var(--iod-muted);
  line-height: 1.7;
}

.iod-endpoint-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.25rem;
  padding: 0.78rem 0.85rem 0.78rem 1rem;
  border: 1px solid var(--iod-border);
  border-radius: 13px;
  background: #f7faff;
}

.iod-endpoint-row code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--iod-blue-dark);
  font-size: 0.92rem;
}

.iod-copy-button {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--iod-blue);
  font-size: 0.8rem;
  font-weight: 750;
}

.iod-copy-button:hover { background: var(--iod-blue-dark); }

.iod-feature-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.iod-feature-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--iod-muted);
  line-height: 1.55;
}

.iod-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iod-cyan);
  box-shadow: 0 0 0 4px rgba(48, 197, 255, 0.13);
}

.iod-error-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 1000;
  width: min(92vw, 680px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid #edb5b5;
  border-radius: 12px;
  color: #701b1b;
  background: #fff2f2;
  box-shadow: 0 12px 35px rgba(95, 18, 18, 0.18);
}

.iod-error-toast[hidden] { display: none; }
.iod-error-toast button { border: 0; color: inherit; background: transparent; font-size: 1.35rem; }

.iod-site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--iod-muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 850px) {
  .iod-hero { grid-template-columns: 1fr; gap: 2rem; }
  .iod-form-sections { grid-template-columns: 1fr; }
  .iod-form-card-wide { grid-column: auto; }
}

@media (max-width: 520px) {
  .iod-site-header-inner { min-height: 64px; }
  .iod-brand > span:last-child { display: none; }
  .iod-page-shell { padding-top: 3rem; }
  .iod-endpoint-row { align-items: stretch; flex-direction: column; }
}
