:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #667085;
  --soft: #f5f7fb;
  --surface: #ffffff;
  --line: #d9e0ec;
  --blue: #2457ff;
  --blue-dark: #1734a6;
  --green: #12b76a;
  --orange: #f79009;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
  --radius: 26px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(36, 87, 255, 0.14), transparent 36rem),
    linear-gradient(180deg, #fbfcff 0%, #eef3ff 58%, #ffffff 100%);
  color: var(--ink);
}

a { color: inherit; }
.site-header,
.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  letter-spacing: -0.07em;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.22);
}
.site-header nav a,
.footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:hover,
.footer nav a:hover { color: var(--blue); }

main { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: 54px;
  padding: 64px 0 44px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3.3rem, 9vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-wrap: balance;
}
.lede {
  max-width: 650px;
  color: #344054;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.55;
}
.hero-actions,
.controls,
.mode-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 14px 26px rgba(36, 87, 255, 0.25); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: var(--ink); color: #fff; }
.button.ghost { background: #eef2ff; color: var(--blue-dark); }
.button.compact { min-height: 40px; padding-inline: 14px; }
.microcopy { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }

.before-after {
  padding: 18px;
  border: 1px solid rgba(36, 87, 255, 0.14);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}
.phone-card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.phone-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.phone-card p { margin-bottom: 0; color: #475467; line-height: 1.5; }
.phone-card.clean {
  background: #101828;
  color: #fff;
  border-color: #101828;
}
.phone-card.clean span { color: #9db5ff; }
.phone-card.clean ul { margin: 0; padding-left: 20px; line-height: 1.7; }
.arrow { text-align: center; color: var(--blue); font-size: 1.8rem; font-weight: 900; padding: 8px; }

.workflow,
.use-cases,
.demo-shell,
.history-card {
  margin: 34px 0;
}
.workflow,
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.workflow article,
.use-cases article,
.use-cases > div,
.panel,
.history-card,
.legal-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.07);
}
.workflow article,
.use-cases article,
.use-cases > div { padding: 24px; }
.workflow article span {
  color: var(--blue);
  font-weight: 900;
}
.workflow h2,
.use-cases h2 { letter-spacing: -0.04em; }
.workflow p,
.use-cases p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.use-cases > div { grid-column: span 3; }

.demo-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}
.panel { padding: 24px; }
.section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 4px; letter-spacing: -0.035em; }
.section-heading p { color: var(--muted); line-height: 1.45; margin-bottom: 0; }
.step {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8eeff;
  color: var(--blue);
  font-weight: 900;
}
.upload-zone {
  min-height: 176px;
  border: 2px dashed #b9c7ee;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  cursor: pointer;
  background: #f8faff;
}
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-icon { font-size: 2rem; color: var(--blue); }
.upload-title { display: block; font-size: 1.1rem; font-weight: 850; margin-top: 4px; }
.upload-subtitle { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.preview-wrap { margin: 16px 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.preview-wrap img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #f2f4f7; }
.split { margin: 16px 0; }
.status { color: var(--muted); font-size: 0.92rem; }
.status.error { color: #b42318; }
.text-label { display: block; font-weight: 800; margin: 12px 0 8px; }
textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  font: 0.98rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
  background: #fff;
}
.mode-tabs { margin-bottom: 16px; }
.mode {
  border: 1px solid var(--line);
  background: #fff;
  color: #475467;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}
.mode.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.insights div {
  padding: 14px;
  border-radius: 18px;
  background: #f2f5ff;
  text-align: center;
}
.insights span { display: block; font-size: 1.6rem; font-weight: 900; color: var(--blue); }
.insights small { color: var(--muted); font-weight: 750; }
.summary {
  padding: 14px;
  border-radius: 16px;
  background: #ecfdf3;
  color: #027a48;
  font-weight: 800;
  margin-bottom: 12px;
}
.result {
  min-height: 300px;
  white-space: pre-wrap;
  overflow: auto;
  border-radius: 20px;
  padding: 18px;
  background: #101828;
  color: #f8fbff;
  font: 0.95rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.bottom { justify-content: flex-end; }
.history-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}
.history-card p { color: var(--muted); margin-bottom: 0; }
.history-list { min-width: min(100%, 440px); color: var(--muted); }
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history-title { display: block; color: var(--ink); font-weight: 800; }
.history-meta { display: block; color: var(--muted); font-size: 0.84rem; }
.history-item button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef2ff;
  color: var(--blue-dark);
  font-weight: 800;
  cursor: pointer;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  margin-top: 60px;
}
.footer p { color: var(--muted); margin: 4px 0 0; }
.legal-page {
  max-width: 860px;
  margin: 50px auto;
  padding: clamp(24px, 5vw, 54px);
  line-height: 1.7;
}
.legal-page h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 0.95; }
.legal-page h2 { margin-top: 28px; }
.legal-page p,
.legal-page li { color: #475467; }

@media (max-width: 900px) {
  .site-header,
  .footer,
  .history-card { align-items: flex-start; flex-direction: column; }
  .site-header nav,
  .footer nav { flex-wrap: wrap; }
  .hero,
  .demo-shell,
  .workflow,
  .use-cases { grid-template-columns: 1fr; }
  .use-cases > div { grid-column: auto; }
  .hero { min-height: 0; padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
