:root {
  color-scheme: dark;
  --bg: #101214;
  --bg-elevated: #171a1e;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --bg-panel-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f4;
  --text-muted: #a8b0ba;
  --accent: #a7c4ff;
  --accent-soft: rgba(167, 196, 255, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(167, 196, 255, 0.14), transparent 0 34%),
    linear-gradient(180deg, #101214 0%, #0c0e10 100%);
  color: var(--text);
}

body {
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 70%);
  pointer-events: none;
}

.site-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(14, 16, 18, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.nav, .topbar-actions, .hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a, .ghost-button, .primary-button {
  text-decoration: none;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.primary-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: 140ms ease;
}

.primary-button {
  color: #0b0d10;
  background: linear-gradient(180deg, #d8e5ff 0%, #9cbcff 100%);
  box-shadow: 0 12px 30px rgba(156, 188, 255, 0.24);
}

.ghost-button {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.primary-button:hover, .ghost-button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  padding: 78px 0 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.lede,
.section-heading p,
.card p,
.workflow-step p,
.pricing-panel p,
.hero-note {
  color: var(--text-muted);
}

.lede {
  max-width: 60ch;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.hero-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel,
.card,
.pricing-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-panel-strong) 0%, var(--bg-panel) 100%);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
  border-radius: 28px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.status-pill,
.card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.panel-grid,
.cards {
  display: grid;
  gap: 16px;
}

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

.panel-grid article,
.workflow-step,
.pricing-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.panel-grid p,
.panel-grid strong {
  display: block;
}

.section {
  padding: 42px 0;
}

.section-heading {
  max-width: 70ch;
  margin-bottom: 24px;
}

.section-heading.narrow {
  max-width: 56ch;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card ul {
  padding-left: 18px;
  color: var(--text-muted);
}

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

.accent-card {
  border-color: rgba(167, 196, 255, 0.24);
  background: linear-gradient(180deg, rgba(167, 196, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.card-note {
  margin-top: 14px;
  font-size: 0.95rem;
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.workflow-step span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-weight: 700;
}

.outputs .card,
.pricing-panel {
  min-height: 100%;
}

.pricing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-radius: 24px;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .two-up,
  .three-up,
  .panel-grid,
  .pricing-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .topbar-actions,
  .hero-actions {
    flex-wrap: wrap;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 10px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero-panel,
  .card,
  .pricing-panel,
  .workflow-step,
  .panel-grid article {
    padding: 18px;
  }
}
