:root {
  --ink: #101322;
  --muted: #5d6475;
  --soft: #f6f5fb;
  --line: #e6e2ef;
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(32, 19, 75, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 38px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(230, 226, 239, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions,
.hero-actions,
.request-row,
.preview-topline,
.preview-head,
.metric-row,
.workflow-strip,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--purple);
  border-radius: 10px;
}

.site-nav {
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover,
.text-link:hover,
.ghost-link:hover {
  color: var(--purple);
}

.header-actions,
.hero-actions {
  gap: 12px;
}

.dark-button,
.primary-button,
.secondary-button,
.request-row button,
.ghost-link {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 14px;
}

.dark-button {
  color: white;
  background: var(--ink);
}

.primary-button,
.request-row button {
  color: white;
  background: var(--purple);
  border: 0;
  cursor: pointer;
}

.secondary-button,
.ghost-link {
  background: #f3f0fb;
  color: #35275f;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 80px 54px 72px;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.request-card {
  width: min(100%, 740px);
  margin: 30px 0 20px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(61, 45, 102, 0.08);
}

.request-card label {
  display: block;
  margin-bottom: 10px;
  color: #34384a;
  font-size: 14px;
  font-weight: 800;
}

.request-row {
  gap: 10px;
}

.request-row input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9d4e8;
  border-radius: 12px;
  color: var(--ink);
  outline: none;
}

.request-row input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.request-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-preview {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.preview-topline {
  justify-content: space-between;
  padding: 8px 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-shell {
  display: grid;
  grid-template-columns: 124px 1fr;
  min-height: 430px;
  overflow: hidden;
  background: #fbfbfe;
  border: 1px solid #ede9f7;
  border-radius: 20px;
}

.preview-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 18px;
  color: #706984;
  background: #f2effb;
  font-size: 13px;
}

.preview-rail strong {
  color: var(--ink);
  font-size: 15px;
}

.preview-main {
  padding: 26px;
}

.preview-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.preview-head p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.preview-head h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.status-pill {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--purple-dark);
  background: #eee7ff;
  font-size: 12px;
  font-weight: 850;
}

.metric-row {
  gap: 14px;
}

.metric-row div {
  flex: 1;
  padding: 16px;
  background: white;
  border: 1px solid #e9e4f5;
  border-radius: 16px;
}

.metric-row strong {
  display: block;
  font-size: 28px;
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
}

.pipeline {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 20px;
  background: white;
  border: 1px solid #e9e4f5;
  border-radius: 18px;
}

.pipeline span {
  display: block;
  width: var(--w);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), #b794f6);
}

.workflow-strip {
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-strip span {
  padding: 10px 12px;
  background: #f5f2fc;
  border: 1px solid #e8e2f6;
  border-radius: 12px;
  color: #3b3350;
  font-size: 13px;
  font-weight: 750;
}

.section {
  padding: 78px 54px;
}

.intro-grid,
.module-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.module-card,
.workflow-grid article,
.scope-card,
.kai-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(50, 39, 82, 0.06);
}

.intro-grid article {
  padding: 28px;
}

.icon-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 18px;
  background: var(--purple);
  border-radius: 50%;
}

.intro-grid h2,
.module-card h3,
.workflow-grid h3,
.scope-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.intro-grid p,
.module-card p,
.workflow-grid p,
.scope-card li,
.section-heading p,
.section-copy p,
.safety-band p,
.packet-card p {
  color: var(--muted);
  line-height: 1.55;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.section-copy h2,
.safety-band h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.module-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.module-preview {
  min-height: 150px;
  padding: 16px;
  background: linear-gradient(180deg, #fbfaff, #f4f1fb);
  border: 1px solid #e8e2f6;
  border-radius: 16px;
}

.module-preview-row {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 10px;
  margin-bottom: 10px;
}

.module-preview-row span,
.module-preview-line {
  height: 12px;
  border-radius: 999px;
  background: #d8cff2;
}

.module-preview-tile {
  height: 54px;
  margin-top: 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid #e5def4;
}

.module-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.module-card small {
  color: var(--muted);
  font-weight: 700;
}

.module-card button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--purple-dark);
  background: #f0e9ff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 42px;
  align-items: center;
}

.split-section.reversed {
  grid-template-columns: 1fr 0.82fr;
}

.comparison-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-card {
  padding: 26px;
}

.scope-card.active {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.14);
}

.scope-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.scope-card ul {
  margin: 0;
  padding-left: 18px;
}

.text-link {
  color: var(--purple-dark);
  font-weight: 850;
}

.kai-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: #fbfaff;
}

.chat-line {
  width: fit-content;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.chat-line.user {
  justify-self: end;
  color: white;
  background: var(--purple);
}

.chat-line.kai {
  background: white;
  border: 1px solid var(--line);
}

.packet-card {
  margin-top: 8px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.packet-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.packet-card strong {
  display: block;
  margin: 8px 0;
}

.workflow-grid article {
  padding: 28px;
}

.workflow-grid article span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 14px;
  font-weight: 850;
}

.safety-band {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin: 24px 54px 72px;
  padding: 38px;
  background: #f5f2fc;
  border: 1px solid var(--line);
  border-radius: 26px;
}

.safety-band div {
  max-width: 760px;
}

.site-footer {
  justify-content: space-between;
  gap: 22px;
  padding: 30px 54px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .split-section,
  .split-section.reversed {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 58px 24px;
  }

  .section {
    padding: 58px 24px;
  }

  .intro-grid,
  .module-grid,
  .workflow-grid,
  .comparison-panel {
    grid-template-columns: 1fr;
  }

  .safety-band {
    margin: 10px 24px 52px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .header-actions .ghost-link {
    display: none;
  }

  h1 {
    font-size: 54px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .request-row {
    align-items: stretch;
    flex-direction: column;
  }

  .request-row button,
  .request-row input {
    width: 100%;
  }

  .preview-shell {
    grid-template-columns: 1fr;
  }

  .preview-rail {
    flex-direction: row;
    overflow-x: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 24px;
  }
}
