:root {
  --bg: #0b1220;
  --bg-soft: #121a2b;
  --card: rgba(19, 29, 49, 0.88);
  --line: rgba(255,255,255,0.08);
  --text: #e7edf7;
  --muted: #aeb8ca;
  --accent: #7cc4ff;
  --accent-2: #91f2c3;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,196,255,0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(145,242,195,0.10), transparent 28%),
    linear-gradient(180deg, #09111d 0%, #0b1220 100%);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(9,17,29,0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
}

nav a:hover,
nav a.active {
  color: var(--text);
}

.hero {
  padding: 88px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 780px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 14px;
}

h3 {
  margin-top: 0;
}

.lead,
.section-intro,
.copy p,
.copy li {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  font-size: 1.08rem;
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #72bcff, #7fe5d3);
  color: #08111c;
  border: none;
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.status-card,
.panel,
.card,
.contact-card,
.metric,
.table-card,
.banner {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-card,
.panel,
.table-card,
.contact-card,
.banner {
  border-radius: 18px;
  padding: 22px;
}

.card {
  border-radius: 18px;
  padding: 24px;
}

.status-head,
.panel-title {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.status-row,
.panel-row,
.table-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.status-row:first-of-type,
.panel-row:first-of-type,
.table-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.ok { color: var(--accent-2); }
.warn { color: #ffd479; }

.metrics {
  padding: 12px 0 36px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric {
  border-radius: 16px;
  padding: 22px 18px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.metric-label {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: rgba(255,255,255,0.025);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.page-hero {
  padding: 72px 0 28px;
}

.page-hero p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
}

.feature-list {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.contact-section {
  padding-bottom: 82px;
}

.contact-card label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #8793a8;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: rgba(0,0,0,0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-text,
.site-footer a {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-box {
  max-width: 640px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .hero-grid,
  .two-col,
  .cards,
  .metrics-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }
}

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
