:root {
  --white: #ffffff;
  --ink: #2a2a2a;
  --muted: #6f7278;
  --surface: #f5f5f7;
  --surface-hover: #ededf0;
  --line: #e4e4e4;
  --blue: #4676da;
  --blue-dark: #2858bc;
  --blue-deep: #063dac;
  --blue-soft: #e8effd;
  --green: #258342;
  --green-soft: #e9f6ed;
  --amber: #9a6418;
  --amber-soft: #fff5df;
  --redaction: #1b212e;
  --redaction-text: #f3f3f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  width: min(1440px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  color: var(--ink);
}

.brand img,
.site-footer img {
  display: block;
}

.header-meta,
.availability {
  display: flex;
  align-items: center;
}

.header-meta {
  gap: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.availability {
  gap: 7px;
  color: var(--green);
}

.availability-dot,
.live-mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.availability-dot {
  box-shadow: 0 0 0 4px var(--green-soft);
}

.product-name {
  color: var(--muted);
}

.hero,
.proof-section,
.coverage-section,
.cases-section {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 170px);
  padding: 46px 0 54px;
  display: grid;
  grid-template-columns: minmax(390px, 0.8fr) minmax(620px, 1.4fr);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 520px;
  font-size: 52px;
  line-height: 1.01;
}

.hero-description {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.demo-tool {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(32, 39, 54, 0.12);
}

.demo-toolbar,
.demo-footer,
.output-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-toolbar {
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.demo-toolbar-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.live-mark {
  animation: statusPulse 2.4s ease-in-out infinite;
}

.char-counter,
label,
.output-heading,
.copy-button,
.scenario-tab {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.scenario-tabs {
  padding: 12px 18px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.scenario-tab {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
}

.scenario-tab:hover {
  background: var(--surface);
}

.scenario-tab.is-active {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 286px;
}

.editor-pane {
  min-width: 0;
  padding: 18px;
}

.input-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
}

textarea {
  width: 100%;
  flex: 1;
  min-height: 218px;
  padding: 0;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  line-height: 1.65;
}

textarea:disabled {
  opacity: 0.7;
}

.output-pane {
  display: flex;
  flex-direction: column;
  background: #fbfbfc;
}

.copy-button {
  padding: 0;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
}

.copy-button:disabled {
  color: #a9abb0;
  cursor: default;
}

.masked-output {
  min-height: 182px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.masked-output.is-empty {
  color: #a3a5aa;
}

.redaction-token {
  display: inline;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--redaction-text);
  background: var(--redaction);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 650;
  animation: redactIn 320ms ease both;
}

.entity-list {
  min-height: 28px;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entity-chip {
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.demo-footer {
  min-height: 64px;
  padding: 10px 14px 10px 18px;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.privacy-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.primary-button {
  min-width: 150px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  color: var(--white);
  background: var(--blue);
  font-weight: 600;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button:active {
  background: var(--blue-deep);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.analysis-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 2px;
  background: var(--blue);
  opacity: 0;
  transform: translateX(-110%);
}

.analysis-progress.is-active {
  opacity: 1;
  animation: analyze 1.1s ease-in-out infinite;
}

.proof-section,
.coverage-section,
.cases-section {
  padding: 104px 0;
}

.proof-section {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 1fr;
  align-items: start;
  gap: 36px;
}

.section-heading.compact {
  grid-template-columns: 0.7fr 1.25fr 1fr;
}

.section-heading .eyebrow {
  margin-top: 9px;
}

h2 {
  font-size: 40px;
  line-height: 1.12;
}

.section-heading > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
}

.metric-band {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-item {
  min-width: 0;
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.metric-item:first-child {
  padding-left: 0;
}

.metric-item:last-child {
  border-right: 0;
}

.metric-value {
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
}

.metric-label {
  margin-top: 18px;
  font-weight: 600;
}

.metric-detail {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.coverage-section {
  border-top: 1px solid var(--line);
}

.comparison-table {
  margin-top: 54px;
  border-top: 1px solid var(--ink);
}

.comparison-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) repeat(3, 0.55fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.comparison-head {
  min-height: 50px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.comparison-row.is-primary {
  color: var(--blue-deep);
  background: #f5f8ff;
}

.model-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
}

.model-cell small {
  color: var(--muted);
  font-size: 11px;
}

.method-note {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cases-section {
  border-top: 1px solid var(--line);
}

.custom-section {
  border-top: 1px solid #dbe5fa;
  border-bottom: 1px solid #dbe5fa;
  background: #f5f8ff;
}

.custom-inner {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 1fr;
  align-items: start;
  gap: 36px;
}

.custom-inner .eyebrow {
  margin-top: 9px;
}

.custom-description {
  margin: 5px 0 0;
  color: var(--muted);
}

.custom-grid {
  grid-column: 1 / -1;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.custom-item {
  min-width: 0;
  min-height: 250px;
  padding: 24px;
  border: 1px solid #dbe5fa;
  border-radius: 6px;
  background: var(--white);
}

.custom-answer {
  min-height: 48px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.35;
}

.case-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-item {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.case-item.limitation {
  background: var(--amber-soft);
}

.case-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.case-status.success {
  color: var(--green);
  background: var(--green-soft);
}

.case-status.caution {
  color: var(--amber);
  background: #ffe9ba;
}

.case-status.custom {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.case-prompt {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.case-answer {
  margin: 10px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
}

.case-result {
  margin: 28px 0 0;
  font-size: 14px;
}

.security-section {
  width: min(1376px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  border-radius: 8px;
  color: var(--white);
  background: #2465ec;
}

.eyebrow.light,
.security-copy p {
  color: #c7d7fa;
}

.security-copy h2 {
  max-width: 540px;
}

.security-copy > p:last-child {
  max-width: 580px;
  margin: 24px 0 0;
}

.flow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step {
  width: 132px;
  min-height: 142px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
}

.flow-step.active {
  color: var(--ink);
  background: var(--white);
}

.flow-step span,
.flow-step small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.flow-step strong {
  margin-top: auto;
  font-size: 15px;
}

.flow-step small {
  margin-top: 6px;
  opacity: 0.75;
}

.flow-line {
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.site-footer {
  width: min(1376px, calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

@keyframes analyze {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(180%); }
  100% { transform: translateX(310%); }
}

@keyframes redactIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(330px, 0.75fr) minmax(540px, 1.25fr);
    gap: 24px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-description {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
  }

  .hero-copy .eyebrow {
    grid-column: 1 / -1;
  }

  h1 {
    font-size: 48px;
  }

  .hero-description {
    margin-top: 0;
    align-self: end;
  }

  .section-heading,
  .section-heading.compact,
  .custom-inner {
    grid-template-columns: 0.55fr 1.15fr;
  }

  .section-heading > p:last-child,
  .custom-description {
    grid-column: 2;
  }

  .security-section {
    grid-template-columns: 1fr;
    gap: 46px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 58px;
    padding: 0 18px;
  }

  .availability {
    display: none;
  }

  .hero,
  .proof-section,
  .coverage-section,
  .cases-section,
  .custom-inner {
    width: calc(100% - 36px);
  }

  .hero {
    min-height: auto;
    padding: 34px 0 40px;
  }

  .hero-copy {
    display: block;
  }

  h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .hero-description {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.45;
  }

  .demo-tool {
    margin: 0 -8px;
  }

  .scenario-tabs {
    padding: 8px 12px;
    overflow-x: auto;
  }

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

  .input-pane {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .editor-pane {
    padding: 12px;
  }

  textarea {
    min-height: 150px;
    font-size: 12px;
    line-height: 1.5;
  }

  .output-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .copy-button {
    display: none;
  }

  .masked-output {
    min-height: 132px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
  }

  .entity-list {
    display: none;
  }

  .demo-footer {
    align-items: center;
    flex-direction: row;
    padding: 10px 12px;
  }

  .primary-button {
    width: auto;
    min-width: 136px;
  }

  .privacy-note {
    font-size: 10px;
  }

  .proof-section,
  .coverage-section,
  .cases-section {
    padding: 72px 0;
  }

  .custom-inner {
    padding: 64px 0;
  }

  .proof-section {
    padding-top: 40px;
  }

  .section-heading,
  .section-heading.compact,
  .custom-inner {
    display: block;
  }

  .section-heading .eyebrow,
  .custom-inner .eyebrow {
    margin-top: 0;
  }

  h2 {
    font-size: 32px;
  }

  .section-heading > p:last-child,
  .custom-description {
    margin-top: 20px;
  }

  .metric-band {
    grid-template-columns: 1fr 1fr;
  }

  .metric-item,
  .metric-item:first-child {
    padding: 24px 16px;
  }

  .metric-item:nth-child(2) {
    border-right: 0;
  }

  .metric-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .metric-value {
    font-size: 38px;
  }

  .comparison-table {
    overflow: visible;
  }

  .comparison-row {
    width: 100%;
    min-height: 72px;
    grid-template-columns: minmax(148px, 1.5fr) repeat(3, minmax(48px, 0.5fr));
    gap: 5px;
    font-size: 10px;
  }

  .comparison-head {
    min-height: 44px;
    font-size: 8px;
  }

  .model-cell {
    padding-left: 6px;
    overflow-wrap: anywhere;
  }

  .model-cell small {
    display: none;
  }

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

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

  .custom-item {
    min-height: 0;
  }

  .security-section {
    width: calc(100% - 16px);
    padding: 32px 24px;
  }

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

  .flow-step {
    width: 100%;
    min-height: 102px;
  }

  .flow-line {
    width: 1px;
    height: 22px;
    margin-left: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
