:root {
  --ink: #121417;
  --muted: #53606d;
  --line: #d9e0e7;
  --surface: #ffffff;
  --soft: #f4f7f8;
  --teal: #0f766e;
  --blue: #2563eb;
  --amber: #b45309;
  --red: #b91c1c;
  --green: #15803d;
  --shadow: 0 22px 55px rgba(18, 20, 23, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--soft);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: 0 clamp(16px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(217, 224, 231, 0.84);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.hero-metrics,
.panel-heading,
.handoff-row {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  justify-content: center;
  gap: clamp(10px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
}

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

.header-action,
.primary-link,
.secondary-link,
.run-button,
.text-button,
.diagnostic-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 800;
}

.header-action,
.primary-link,
.run-button,
.diagnostic-form button {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.secondary-link,
.text-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(18, 20, 23, 0.16);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(18px, 6vw, 82px) 70px;
  background:
    linear-gradient(90deg, rgba(244, 247, 248, 0.98) 0%, rgba(244, 247, 248, 0.88) 34%, rgba(244, 247, 248, 0.22) 68%),
    url("./assets/lawschool-os-workflow.png") center right / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(244, 247, 248, 0.94) 0%, rgba(244, 247, 248, 0) 24%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.55rem, 7vw, 5.85rem);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #2e3842;
  font-size: clamp(1.04rem, 2.1vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.hero-metrics div {
  min-width: 128px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 20, 23, 0.11);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(18, 20, 23, 0.08);
}

.hero-metrics dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-metrics dd {
  margin: 2px 0 0;
  font-weight: 900;
  font-size: 1.3rem;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-item {
  min-width: 0;
  padding: 18px clamp(18px, 4vw, 52px);
  background: #fff;
}

.strip-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.strip-item strong {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 6vw, 82px);
}

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

.section-heading h2,
.diagnostic-copy h2 {
  font-size: clamp(2rem, 4.7vw, 3.6rem);
}

.section-heading p:not(.eyebrow),
.diagnostic-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
}

.console-section {
  background: #f8fafb;
}

.api-section {
  background: #fff;
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
}

.api-overview,
.api-stats,
.api-list-panel {
  min-width: 0;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.api-overview {
  background: #f3f8f7;
  border-left: 5px solid var(--teal);
}

.api-overview p {
  color: var(--muted);
}

.manifest-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--teal);
  border-radius: 7px;
  font-weight: 900;
}

.api-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.api-stats div {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5edf2;
  border-radius: 7px;
}

.api-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.api-stats strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1;
}

.api-list-panel h3 {
  margin-bottom: 14px;
  font-size: 1.08rem;
}

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

.api-list-panel li {
  padding-left: 14px;
  color: #334155;
  border-left: 3px solid var(--blue);
}

.api-boundary li {
  border-left-color: var(--red);
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.1fr) minmax(280px, 1fr);
  gap: 18px;
}

.tool-panel {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(18, 20, 23, 0.06);
}

.panel-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-heading h3 {
  font-size: 1.08rem;
}

.panel-heading span {
  flex: 0 0 auto;
  color: var(--teal);
  font-weight: 900;
  font-size: 0.8rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 0;
  border-top: 1px solid #eef2f5;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.safety-note {
  margin-top: 18px;
  padding: 14px;
  color: #334155;
  background: #f3f7f6;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  font-size: 0.92rem;
}

.safety-note strong {
  display: block;
  margin-bottom: 4px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: #edf2f6;
  border-radius: 8px;
}

.segment {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: #475569;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.segment.is-active {
  color: #fff;
  background: var(--ink);
}

.queue-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.queue-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid #e7edf3;
  border-radius: 7px;
}

.queue-list span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
  font-weight: 900;
}

.queue-list strong {
  display: block;
}

.queue-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.run-button {
  width: 100%;
  cursor: pointer;
}

.answer-preview {
  min-height: 315px;
  padding: 18px;
  background: #fffaf0;
  border: 1px solid #f1d7a8;
  border-radius: 7px;
}

.answer-preview h4 {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.96rem;
}

.answer-preview dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.answer-preview div {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(180, 83, 9, 0.16);
}

.answer-preview dt {
  color: #7c2d12;
  font-weight: 900;
  font-size: 0.82rem;
}

.answer-preview dd {
  margin: 3px 0 0;
  color: #28323a;
}

.handoff-row {
  gap: 10px;
  margin-top: 14px;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.text-button {
  flex: 1 1 auto;
  cursor: pointer;
}

.workflow-section {
  background: #fff;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.workflow-track article {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.workflow-track article:last-child {
  border-right: 0;
}

.workflow-track span {
  color: var(--blue);
  font-weight: 900;
}

.workflow-track h3 {
  margin-top: 14px;
  font-size: 1.18rem;
}

.workflow-track p {
  color: var(--muted);
}

.pilot-section {
  background: #f7f9fb;
}

.pilot-grid,
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.offer-block,
.safety-grid div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offer-block:nth-child(1) {
  border-top: 5px solid var(--teal);
}

.offer-block:nth-child(2) {
  border-top: 5px solid var(--blue);
}

.offer-block:nth-child(3) {
  border-top: 5px solid var(--amber);
}

.offer-block p,
.safety-grid p {
  color: var(--muted);
}

.offer-block strong {
  color: var(--ink);
}

.safety-section {
  background: #fff;
}

.safety-grid div:nth-child(1) {
  border-left: 5px solid var(--green);
}

.safety-grid div:nth-child(2) {
  border-left: 5px solid var(--red);
}

.safety-grid div:nth-child(3) {
  border-left: 5px solid var(--teal);
}

.pricing-section {
  background: #f8fafb;
}

.pricing-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.pricing-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.9fr;
  gap: 1px;
  background: var(--line);
}

.pricing-row span {
  min-width: 0;
  padding: 18px;
  background: #fff;
}

.pricing-head span {
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.diagnostic-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 34px;
  align-items: center;
  background: #eef7f4;
}

.diagnostic-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.diagnostic-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 900;
}

.diagnostic-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.diagnostic-result {
  min-height: 50px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 82px);
  color: #e5edf2;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
}

@media (max-width: 1080px) {
  .console-grid,
  .api-layout,
  .workflow-track,
  .pilot-grid,
  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }

  .output-panel,
  .api-overview,
  .workflow-track article:last-child {
    grid-column: 1 / -1;
  }

  .workflow-track article:nth-child(2) {
    border-right: 0;
  }

  .workflow-track article:nth-child(1),
  .workflow-track article:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 64px;
    padding: 10px 16px;
  }

  .nav-links {
    display: none;
  }

  .brand span:last-child {
    max-width: 42vw;
    white-space: normal;
    line-height: 1.16;
  }

  .header-action {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 82vh;
    padding-top: 98px;
    background:
      linear-gradient(90deg, rgba(244, 247, 248, 0.98) 0%, rgba(244, 247, 248, 0.88) 52%, rgba(244, 247, 248, 0.36) 100%),
      url("./assets/lawschool-os-workflow.png") center / cover no-repeat;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-metrics div {
    min-width: 0;
    padding: 10px;
  }

  .hero-metrics dd {
    font-size: 1.02rem;
  }

  .status-strip,
  .console-grid,
  .api-layout,
  .workflow-track,
  .pilot-grid,
  .safety-grid,
  .diagnostic-section,
  .pricing-row {
    grid-template-columns: 1fr;
  }

  .workflow-track article,
  .workflow-track article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-track article:last-child {
    border-bottom: 0;
  }

  .output-panel,
  .api-overview,
  .workflow-track article:last-child {
    grid-column: auto;
  }

  .api-stats {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .handoff-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link,
  .text-button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .api-stats {
    grid-template-columns: 1fr;
  }
}
