:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
}

.brand {
  font-weight: 850;
  text-decoration: none;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: #475569;
  text-decoration: none;
}

.nav-cta {
  background: #0f172a;
  border-radius: 999px;
  color: white !important;
  font-weight: 750;
  padding: 10px 14px;
}

.hero,
.app-header {
  background: linear-gradient(135deg, #111827, #312e81);
  color: white;
  padding: 64px clamp(20px, 5vw, 64px);
}

.hero {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.hero > *,
.app-header > *,
main,
footer {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.eyebrow {
  color: #a78bfa;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  color: #e0e7ff;
  font-size: 1.25rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  align-items: center;
  background: #4f46e5;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  padding: 13px 18px;
  text-decoration: none;
  width: fit-content;
}

.button.secondary,
button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  padding: 26px;
}

.step-pill {
  background: #ddd6fe;
  border-radius: 999px;
  color: #312e81;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 5px 10px;
}

.hero-card p {
  color: #eef2ff;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 10px 0 20px;
}

main {
  display: grid;
  gap: 24px;
  padding: 40px 24px;
}

.section-intro {
  max-width: 860px;
}

.section-intro p,
.split p,
.cta-panel p,
.card p {
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.card,
.cta-panel,
.split {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.split {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
}

.checklist {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  background: #f8fafc;
  border-radius: 14px;
  font-weight: 720;
  padding: 13px 14px;
}

.checklist li::before {
  color: #4f46e5;
  content: "✓ ";
  font-weight: 900;
}

.cta-panel {
  background: #111827;
  color: white;
}

.cta-panel p {
  color: #cbd5e1;
}

footer {
  align-items: center;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  padding: 28px 24px 48px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 650;
}

input,
select,
textarea {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  padding: 12px;
}

textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hint,
.meta {
  color: #64748b;
}

.project,
.draft {
  display: grid;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin: 12px 0;
  padding: 14px;
}

.risk {
  display: inline-block;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 750;
  padding: 4px 10px;
}

.risk.blocked {
  background: #fee2e2;
  color: #991b1b;
}

.output pre,
pre {
  overflow: auto;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .hero,
  .split,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}
