:root {
  color-scheme: light dark;
  --bg: #0d0f1a;
  --surface: rgba(13, 15, 26, 0.85);
  --card: rgba(255, 255, 255, 0.06);
  --text: #e7ecff;
  --muted: #a0a8c3;
  --accent: #5c8dff;
  --accent-strong: #a855f7;
  --header-bg: rgba(13, 15, 26, 0.7);
  --header-border: rgba(255, 255, 255, 0.1);
}

body.theme-dark {
  --bg: #0d0f1a;
  --surface: rgba(13, 15, 26, 0.85);
  --card: rgba(255, 255, 255, 0.06);
  --text: #e7ecff;
  --muted: #a0a8c3;
  --accent: #5c8dff;
  --accent-strong: #a855f7;
  --header-bg: rgba(13, 15, 26, 0.7);
  --header-border: rgba(255, 255, 255, 0.1);
  color-scheme: dark;
}

body.theme-light {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --card: #f0f4ff;
  --text: #1c1f33;
  --muted: #4c5168;
  --accent: #3b82f6;
  --accent-strong: #7c3aed;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

body.theme-sunset {
  --bg: #1b1324;
  --surface: rgba(34, 16, 45, 0.88);
  --card: rgba(249, 115, 22, 0.25);
  --text: #ffe8f1;
  --muted: #f9b4c7;
  --accent: #f97316;
  --accent-strong: #f43f5e;
  --header-bg: rgba(31, 19, 34, 0.86);
  --header-border: rgba(244, 63, 94, 0.25);
  color-scheme: dark;
}

body.theme-forest {
  --bg: #031a1d;
  --surface: rgba(1, 58, 53, 0.85);
  --card: rgba(16, 185, 129, 0.2);
  --text: #d2fdf5;
  --muted: #7ed7c4;
  --accent: #10b981;
  --accent-strong: #22d3ee;
  --header-bg: rgba(2, 36, 34, 0.85);
  --header-border: rgba(16, 185, 129, 0.25);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.25;
  z-index: -1;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
  padding: 60px 0;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  z-index: 10;
}

.site-header .container {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  margin-inline: 12px;
  font-weight: 600;
}

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

nav a.active {
  color: var(--accent);
}

button,
.primary-btn,
.secondary-btn,
.ghost-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: white;
  display: inline-block;
}

.secondary-btn,
.ghost-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.hero {
  padding-top: 80px;
}

.hero--split .hero__content {
  align-items: stretch;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero__panel {
  background: var(--surface);
  border-radius: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  background: var(--surface);
  border-radius: 24px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-panel span {
  font-size: 2.4rem;
  font-weight: 700;
}

.hero__panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__panel li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.hero__panel li:last-child {
  border-bottom: none;
}

.hero__panel--accent {
  background: linear-gradient(135deg, rgba(92, 141, 255, 0.18), rgba(168, 85, 247, 0.18));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--accent);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 18px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.features {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.hero--features {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.08));
}

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

.feature-grid article {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
}

.feature-highlights .highlight {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 18px;
}

.intro-cards {
  background: rgba(255, 255, 255, 0.02);
}

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

.card-grid article {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.checklist {
  background: rgba(255, 255, 255, 0.04);
}

.checklist__items {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.muted {
  color: var(--muted);
}

.workflow .timeline {
  background: var(--surface);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero--workflow {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.12));
}

.timeline__step {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 14px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.timeline__step:hover,
.timeline__step.active {
  background: rgba(92, 141, 255, 0.08);
}

.step__badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.timeline__details {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.runbook {
  background: rgba(255, 255, 255, 0.02);
}

.runbook ol {
  counter-reset: rb;
  list-style: none;
  padding-left: 0;
}

.runbook li {
  counter-increment: rb;
  background: var(--surface);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.runbook li strong {
  margin-right: 8px;
}

.lab {
  background: linear-gradient(135deg, rgba(92, 141, 255, 0.15), rgba(168, 85, 247, 0.15));
}

.hero--lab {
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.18), rgba(168, 85, 247, 0.12));
}

.lab__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lab__form input {
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
}

.lab__preview {
  margin-top: 20px;
  padding: 24px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-tips {
  background: rgba(255, 255, 255, 0.02);
}

.logs {
  background: rgba(0, 0, 0, 0.2);
}

.log-stream {
  display: grid;
  gap: 12px;
}

.log-line {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-line.success {
  border-color: rgba(34, 197, 94, 0.6);
}

.log-line.info {
  border-color: rgba(59, 130, 246, 0.6);
}

.log-line.warning {
  border-color: rgba(251, 191, 36, 0.6);
}

.faq details {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero--faq {
  background: linear-gradient(140deg, rgba(248, 113, 113, 0.16), rgba(59, 130, 246, 0.12));
}

.contact-card__body {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card__body ul {
  list-style: none;
  padding-left: 0;
}

.contact-card__body li + li {
  margin-top: 8px;
}

.site-footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

  .site-header .container {
    justify-content: space-between;
  }

  .hero__panel {
    order: -1;
  }
}
