:root {
  --bg-0: #f4f1ea;
  --bg-1: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5a4;
  --accent-2: #2563eb;
  --accent-3: #f59e0b;
  --danger: #dc2626;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 28px 70px rgba(15, 23, 42, 0.15);
  --font-body: "Space Grotesk", "Trebuchet MS", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(1200px circle at 12% 10%, rgba(14, 165, 164, 0.18), transparent 60%),
    radial-gradient(900px circle at 85% 15%, rgba(37, 99, 235, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  inset: -20% 0 0 0;
  background: radial-gradient(600px circle at 60% 0%, rgba(14, 165, 164, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
  gap: 24px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 247, 0.82);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(14, 165, 164, 0.45);
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(14, 165, 164, 0.25);
}

.btn.ghost {
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

main {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 100px);
  padding: 0 clamp(20px, 5vw, 72px) 120px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 16px 0 12px;
}

.hero-content p {
  color: var(--muted);
  max-width: 560px;
  white-space: pre-line;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.status {
  color: var(--accent-2);
}

.panel-body {
  display: grid;
  gap: 12px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.panel-row.small {
  font-size: 12px;
  color: var(--muted);
}

.panel-line {
  height: 1px;
  background: var(--border);
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.chip.up {
  color: var(--accent-2);
  border-color: rgba(37, 99, 235, 0.25);
}

.chip.ok {
  color: var(--accent);
  border-color: rgba(14, 165, 164, 0.3);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin: 0 0 8px;
}

.section-title p {
  color: var(--muted);
  max-width: 640px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.system-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.system-card h3 {
  margin-top: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 10px;
  color: var(--muted);
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.desk-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  gap: 12px;
}

.desk-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desk-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 164, 0.35);
  color: var(--accent);
}

.desk-status.warning {
  border-color: rgba(245, 158, 11, 0.45);
  color: var(--accent-3);
}

.desk-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.desk-card li {
  margin-bottom: 6px;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gov-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.console-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.console-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}

.console-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.console-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.console-row.muted {
  color: var(--muted);
  font-size: 12px;
}

.mono {
  font-family: var(--font-mono);
}

.cta {
  padding: 0 clamp(0px, 5vw, 40px);
}

.cta-card {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(14, 165, 164, 0.16), rgba(37, 99, 235, 0.16));
  border: 1px solid rgba(14, 165, 164, 0.25);
  text-align: center;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
  }

  .hero-panel {
    order: -1;
  }
}
