:root {
  --bg: #f8faf7;
  --ink: #171817;
  --muted: #686a64;
  --line: #deded6;
  --panel: #ffffff;
  --panel-soft: #eeefea;
  --dark: #20211f;
  --green: #17483f;
  --blue: #2f6feb;
  --sky: #dff0ff;
  --mint: #dff5ec;
  --coral: #ff6f61;
  --violet: #7b61ff;
  --pink: #ff6fb3;
  --gold: #9d6b2f;
  --gold-soft: #fff1d6;
  --shadow: 0 26px 80px rgba(20, 20, 18, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(47, 111, 235, 0.14), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 111, 179, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 28%, #ffffff 62%, #f6fbff 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(222, 222, 214, 0.84);
  background: rgba(250, 251, 248, 0.88);
  backdrop-filter: blur(14px);
}

.brand,
.hero-actions,
.hero-stats,
nav,
.screen-grid,
.research-band,
.split,
.waitlist,
footer {
  display: flex;
}

.brand {
  align-items: center;
  gap: 11px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #151715, #234c43 48%, #2f6feb);
  color: #fff;
}

nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.header-cta,
.button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 760;
}

.header-cta,
.button.secondary {
  background: rgba(239, 243, 250, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.button.primary {
  background: linear-gradient(135deg, #111312, #17483f 42%, #2f6feb 72%, #7b61ff);
  color: #fff;
  box-shadow: 0 14px 36px rgba(47, 111, 235, 0.28);
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1.18fr);
  gap: 36px;
  align-items: center;
  padding: 58px 40px 36px;
  max-width: 1480px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto;
  height: 72%;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 22%, rgba(47, 111, 235, 0.26), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(255, 111, 179, 0.2), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(255, 198, 93, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(223, 240, 255, 0.92), rgba(255, 246, 230, 0.66) 48%, rgba(223, 245, 236, 0.84));
  z-index: -1;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: #116d8f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  max-width: 760px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.04;
  letter-spacing: 0;
  color: #10243a;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats {
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 150px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(20, 20, 18, 0.06);
}

.hero-stats strong {
  display: block;
  font-size: 22px;
  color: #17483f;
}

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

.mock-window {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 34px 90px rgba(23, 72, 63, 0.18), 0 10px 34px rgba(47, 111, 235, 0.12);
}

.mock-topbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fbfbfa, #eef6ff);
}

.mock-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6f61;
}

.mock-topbar span:nth-child(2) {
  background: #ffc65d;
}

.mock-topbar span:nth-child(3) {
  background: #35c78a;
}

.mock-topbar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

.mock-grid {
  min-height: 540px;
  display: grid;
  grid-template-columns: 150px 0.88fr 1.12fr;
}

.mock-grid aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  color: #f5f5ef;
  background: linear-gradient(180deg, #20211f, #17352f);
}

.mock-grid aside span {
  color: #a9aaa3;
  font-size: 13px;
}

.mock-grid aside .active {
  color: #fff;
  background: rgba(47, 111, 235, 0.32);
  border-radius: 6px;
  padding: 8px;
}

.mock-chat,
.mock-doc {
  padding: 20px;
  border-left: 1px solid var(--line);
}

.mock-chat {
  background: linear-gradient(180deg, #ffffff, #f3f9ff);
}

.assistant,
.question-card,
.case-panel,
.screen-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.assistant {
  padding: 12px;
  color: #333;
}

.question-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.question-card small {
  color: #116d8f;
  font-weight: 850;
}

.question-card label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.fake-input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 13px;
  background: #ffffff;
}

.fake-input.muted {
  color: #9a9b95;
}

.mock-doc {
  position: relative;
  background: linear-gradient(180deg, #f6f8fb, #eef7f4);
}

.generated-page {
  position: relative;
  min-height: 340px;
  border: 1px solid #d6d6cf;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #fffefa);
  padding: 28px 30px;
  box-shadow: 0 18px 44px rgba(20, 20, 18, 0.1);
}

.generated-page h3 {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  margin-bottom: 8px;
}

.generated-page p {
  color: #40413d;
  line-height: 1.6;
}

.doc-meta {
  color: var(--muted) !important;
  font-size: 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.selected-clause {
  position: relative;
  margin-top: 26px;
  padding-bottom: 48px;
}

mark {
  background: linear-gradient(90deg, #dff5ec, #dff0ff);
  color: #11352f;
}

.float-tools {
  position: absolute;
  left: 28px;
  top: 250px;
  width: fit-content;
  border-radius: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #1f2424, #17483f 55%, #2f6feb);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 10px 24px rgba(20, 20, 18, 0.22);
}

.case-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(310px, calc(100% - 40px));
  padding: 14px;
  border-left: 3px solid var(--green);
  background: linear-gradient(135deg, #ffffff, #edf8ff);
}

.section,
.research-band,
.waitlist {
  max-width: 1240px;
  margin: 0 auto;
  padding: 82px 32px;
}

.section {
  position: relative;
}

#product::before,
.split::before {
  content: "";
  position: absolute;
  inset: 44px 18px;
  border-radius: 28px;
  pointer-events: none;
  z-index: -1;
}

#product::before {
  background:
    radial-gradient(circle at 16% 24%, rgba(47, 111, 235, 0.1), transparent 28%),
    radial-gradient(circle at 88% 62%, rgba(53, 199, 138, 0.11), transparent 24%);
}

.split::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 111, 97, 0.1), transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(123, 97, 255, 0.1), transparent 28%);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
}

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

.feature-grid article {
  min-height: 260px;
  border: 1px solid rgba(222, 222, 214, 0.78);
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 38px rgba(20, 20, 18, 0.05);
}

.feature-grid article::after {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.feature-grid span {
  color: var(--blue);
  font-weight: 850;
}

.feature-grid article:nth-child(2) {
  background: linear-gradient(180deg, #ffffff, #f4fff9);
}

.feature-grid article:nth-child(2) span {
  color: var(--green);
}

.feature-grid article:nth-child(2)::after {
  background: linear-gradient(90deg, #35c78a, var(--green));
}

.feature-grid article:nth-child(3) {
  background: linear-gradient(180deg, #ffffff, #fff8ec);
}

.feature-grid article:nth-child(3) span {
  color: var(--gold);
}

.feature-grid article:nth-child(3)::after {
  background: linear-gradient(90deg, #ffc65d, var(--gold));
}

.feature-grid article:nth-child(4) {
  background: linear-gradient(180deg, #ffffff, #fff4f1);
}

.feature-grid article:nth-child(4) span {
  color: var(--coral);
}

.feature-grid article:nth-child(4)::after {
  background: linear-gradient(90deg, var(--coral), var(--pink));
}

.feature-grid h3 {
  margin: 36px 0 10px;
  font-size: 20px;
}

.feature-grid p,
.research-band p,
.waitlist p,
figcaption {
  color: var(--muted);
  line-height: 1.55;
}

.screens {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 12%, rgba(123, 97, 255, 0.12), transparent 26%),
    radial-gradient(circle at 88% 24%, rgba(255, 111, 97, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(223, 240, 255, 0.42));
  max-width: none;
}

.screens .section-head,
.screens .screen-grid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.screen-grid {
  gap: 14px;
}

figure {
  flex: 1;
  margin: 0;
}

.screen-card {
  height: 330px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(47, 111, 235, 0.1), 0 12px 32px rgba(20, 20, 18, 0.07);
}

.screen-bar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: #4c5e7a;
  font-size: 13px;
  font-weight: 780;
}

.intake-screen {
  padding: 0;
}

.mini-workspace {
  height: 100%;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  overflow: hidden;
}

.mini-workspace aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px 10px;
  background: linear-gradient(180deg, #20211f, #123b52);
  color: #f5f5ef;
  font-size: 11px;
}

.mini-workspace aside b {
  margin-bottom: 8px;
}

.mini-workspace aside span {
  color: #a9aaa3;
  border-radius: 6px;
  padding: 7px 8px;
}

.mini-workspace aside .active {
  background: rgba(94, 185, 255, 0.25);
  color: #fff;
}

.mini-workspace section {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: linear-gradient(180deg, #fbfbfa, #f2f8ff);
}

.mini-controls {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.mini-controls span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  color: #4b4d49;
  font-size: 11px;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-thread {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 11px;
}

.mini-message,
.mini-intake-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font-size: 12px;
}

.mini-message {
  width: 88%;
  background: #eaf4ff;
}

.mini-intake-card {
  display: grid;
  gap: 6px;
}

.mini-intake-card small {
  color: var(--blue);
  font-weight: 850;
}

.mini-intake-card label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.mini-input {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfbfa;
  color: #969891;
  padding: 7px 8px;
}

.mini-input.filled {
  color: var(--ink);
}

.mini-compose {
  margin: 10px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 760;
}

.review-screen {
  grid-template-rows: auto auto auto auto auto;
}

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

.review-steps span {
  min-height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f1f1ec;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.review-steps .done {
  background: var(--mint);
  color: var(--green);
}

.review-steps .active {
  background: linear-gradient(135deg, #111, #2f6feb);
  color: #fff;
}

.clause-card,
.guided-panel,
.fallback-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  padding: 12px;
}

.clause-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-left: 4px solid var(--coral);
  background: #fff7f5;
}

.clause-card b,
.clause-card strong {
  color: #33201e;
}

.clause-card p,
.guided-panel p,
.fallback-row p {
  margin: 4px 0 0;
  color: #535550;
  font-size: 13px;
  line-height: 1.4;
}

.guided-panel {
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
}

.guided-panel small,
.fallback-row span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fallback-row {
  border-left: 4px solid var(--green);
  background: #f4fff9;
}

.research-screen {
  gap: 10px;
}

.selected-text,
.answer-box,
.research-question,
.authority-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
  padding: 10px;
}

.selected-text {
  border-left: 4px solid var(--blue);
  background: #f4f9ff;
}

.selected-text small,
.answer-box small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.selected-text p,
.answer-box p {
  margin: 5px 0 0;
  color: #40413d;
  font-size: 13px;
  line-height: 1.4;
}

.research-question {
  background: linear-gradient(90deg, #eef6ff, #edf8f3);
  color: #123b52;
  font-weight: 760;
  font-size: 13px;
}

.answer-box {
  border-left: 4px solid var(--gold);
  background: #fff9ee;
}

.authority-list {
  display: grid;
  gap: 7px;
}

.authority-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.authority-list em {
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.research-screen button {
  width: fit-content;
  border: 0;
  border-radius: 7px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #e5f0ff, #dff5ec);
  color: #123b52;
  font-weight: 760;
}

figcaption {
  margin-top: 10px;
  font-size: 14px;
}

.research-band {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 30px;
  align-items: start;
  max-width: none;
  padding-left: max(32px, calc((100vw - 1240px) / 2 + 32px));
  padding-right: max(32px, calc((100vw - 1240px) / 2 + 32px));
  border-top: 1px solid rgba(222, 222, 214, 0.7);
  border-bottom: 1px solid rgba(222, 222, 214, 0.7);
  background:
    linear-gradient(135deg, rgba(223, 240, 255, 0.72), rgba(255, 241, 214, 0.66) 54%, rgba(223, 245, 236, 0.72));
}

.research-band ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.research-band li {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px 14px;
  box-shadow: 0 12px 32px rgba(20, 20, 18, 0.05);
}

.research-band li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  vertical-align: middle;
}

.research-band li:nth-child(2)::before {
  background: linear-gradient(135deg, var(--coral), var(--pink));
}

.research-band li:nth-child(3)::before {
  background: linear-gradient(135deg, #ffc65d, var(--gold));
}

.research-band li:nth-child(4)::before {
  background: linear-gradient(135deg, #35c78a, var(--blue));
}

.split {
  align-items: start;
  gap: 32px;
  padding-top: 92px;
  padding-bottom: 92px;
}

.split > div {
  flex: 1;
}

.coverage-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.coverage-list span {
  border: 1px solid rgba(47, 111, 235, 0.12);
  border-radius: 999px;
  padding: 9px 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 249, 255, 0.92));
  color: #343531;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 8px 22px rgba(20, 20, 18, 0.04);
}

.coverage-list span:nth-child(3n + 2) {
  border-color: rgba(23, 72, 63, 0.16);
  background: linear-gradient(135deg, #ffffff, #f0fff8);
}

.coverage-list span:nth-child(3n + 3) {
  border-color: rgba(255, 111, 97, 0.16);
  background: linear-gradient(135deg, #ffffff, #fff6f3);
}

.waitlist {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 34px;
  align-items: start;
  border-top: 1px solid rgba(222, 222, 214, 0.72);
}

.waitlist::before {
  content: "";
  position: absolute;
  inset: 40px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 111, 235, 0.18), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(255, 111, 179, 0.13), transparent 26%),
    radial-gradient(circle at 72% 86%, rgba(53, 199, 138, 0.17), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(223, 240, 255, 0.48));
  z-index: -1;
}

.waitlist-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 70px rgba(47, 111, 235, 0.13), 0 10px 36px rgba(20, 20, 18, 0.07);
  backdrop-filter: blur(18px);
}

.waitlist-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.waitlist-form .full,
.waitlist-form button,
.waitlist-form p {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(47, 111, 235, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 111, 235, 0.64);
  box-shadow: 0 0 0 4px rgba(47, 111, 235, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

#waitlist-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

footer {
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 26px 32px;
  color: var(--muted);
  font-size: 13px;
}

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

  .hero,
  .research-band,
  .waitlist {
    grid-template-columns: 1fr;
  }

  .mock-grid,
  .feature-grid,
  .screen-grid,
  .split {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mock-grid aside {
    display: none;
  }
}

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

  .header-cta {
    display: none;
  }

  .hero,
  .section,
  .research-band,
  .waitlist {
    padding-left: 18px;
    padding-right: 18px;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }
}
