@font-face {
  font-family: "Proxima Nova";
  src: url("/anonymization-demo/fonts/proximanova_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/anonymization-demo/fonts/proximanova_bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("/anonymization-demo/fonts/proximanova_black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aber Mono";
  src: url("/anonymization-demo/fonts/Aber-Mono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aber Mono";
  src: url("/anonymization-demo/fonts/Aber-Mono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #f6f7f9;
  --hero-bg: #082136;
  --hero-bg-deep: #051829;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.84);
  --surface-glass: rgba(255, 255, 255, 0.08);
  --surface-glass-strong: rgba(255, 255, 255, 0.12);
  --text: #1f2f3d;
  --text-muted: rgba(31, 47, 61, 0.7);
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-faint: rgba(255, 255, 255, 0.56);
  --border: #e5e9ee;
  --border-strong: #cdd6de;
  --green: #2ed14d;
  --green-soft: #effcf1;
  --violet: #8c7cf8;
  --violet-soft: #f6f2ff;
  --rose: #ef0061;
  --rose-soft: #fff3f8;
  --accent: #c92a20;
  --accent-dark: #a61f18;
  --shadow: 0 24px 64px rgba(5, 24, 41, 0.12);
  --shadow-strong: 0 30px 70px rgba(5, 24, 41, 0.28);
  --container: 1164px;
  --hero-cutoff: 76rem;
  --hero-overlay-height: 77rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  max-width: 100%;
  background: var(--hero-bg-deep);
  overflow-x: clip;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  color: var(--text);
  background: var(--hero-bg);
  font-family: "Proxima Nova", sans-serif;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body[data-results="ready"] {
  background:
    linear-gradient(
      180deg,
      var(--hero-bg) 0 var(--hero-cutoff),
      var(--page-bg) var(--hero-cutoff) 100%
    );
}

button,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--hero-overlay-height);
  background:
    radial-gradient(circle at 14% 16%, rgba(46, 209, 77, 0.12), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(201, 42, 32, 0.18), transparent 22%),
    radial-gradient(circle at 78% 36%, rgba(140, 124, 248, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 156px
    ),
    linear-gradient(180deg, rgba(5, 24, 41, 0.2), rgba(5, 24, 41, 0));
  pointer-events: none;
}

.hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 1rem 6rem;
}

.hero-gridline {
  position: absolute;
  top: 9.4rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.04)
  );
  pointer-events: none;
}

.hero-gridline--left {
  left: calc(1rem + 0px);
}

.hero-gridline--right {
  right: calc(1rem + 0px);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: white;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Aber Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--accent));
  box-shadow: 0 0 18px rgba(46, 209, 77, 0.36);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: "Aber Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.status-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.status-pill[data-state="running"]::before,
.status-pill[data-state="done"]::before {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(46, 209, 77, 0.14);
}

.status-pill[data-state="error"]::before {
  background: #f1736a;
  box-shadow: 0 0 0 6px rgba(241, 115, 106, 0.14);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 4.75rem;
}

.hero-grid > *,
.results-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 39rem;
}

.eyebrow,
.section-label,
.field-label,
.message-channel,
.message-state {
  font-family: "Aber Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.64);
}

.hero-title {
  margin: 1rem 0 1.25rem;
  font-family: "Aber Mono", monospace;
  font-size: clamp(2.9rem, 6.6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: white;
}

.hero-title span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.hero-lead {
  margin: 0;
  max-width: 33rem;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.how-it-works {
  max-width: 34rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.how-it-works__title {
  margin: 0.7rem 0 0;
  font-family: "Aber Mono", monospace;
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: white;
}

.how-it-works__list {
  display: grid;
  gap: 0;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
}

.how-it-works__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.how-it-works__list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.66);
  font-family: "Aber Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.how-it-works__list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.62;
  font-size: 0.98rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  color: white;
  font-family: "Aber Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-link::after {
  content: "↗";
  font-size: 0.95rem;
  transition: transform 160ms ease;
}

.product-link:hover::after {
  transform: translate(2px, -2px);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  font-family: "Aber Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.chat-shell {
  padding: 0 0 2rem 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
}

.chat-shell__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.chat-shell__title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.05;
  color: white;
}

.chat-shell__lead {
  margin-top: 1.25rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.stage-strip {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.stage-strip li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stage-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-family: "Aber Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-strip strong {
  display: block;
  line-height: 1.35;
  color: white;
  font-size: 0.95rem;
}

.stage-strip p {
  margin: 0.22rem 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.55;
  font-size: 0.95rem;
}

.composer-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 0 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.field-label {
  color: rgba(255, 255, 255, 0.7);
}

.prompt-input {
  width: 100%;
  min-height: 18rem;
  resize: vertical;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(246, 247, 249, 0.98);
  outline: none;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.prompt-input:focus {
  border-color: rgba(201, 42, 32, 0.36);
  box-shadow: 0 0 0 4px rgba(201, 42, 32, 0.12);
}

.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.4;
}

.loading-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.helper-copy {
  margin: 0;
  max-width: 19rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

.send-button {
  border: 0;
  min-width: 10rem;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: white;
  font-family: "Aber Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.send-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(166, 31, 24, 0.28);
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-box {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(201, 42, 32, 0.18);
  background: rgba(201, 42, 32, 0.08);
  color: #8f221b;
}

.content-shell {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

body[data-results="ready"] .content-shell {
  padding: 1.25rem 1rem 5rem;
}

.message-panel,
.result-card {
  background: transparent;
  box-shadow: none;
}

.message-panel {
  padding: 0.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.panel-heading {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.section-label {
  color: rgba(31, 47, 61, 0.92);
}

.section-copy {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.message-frame {
  padding: 1rem 0 0;
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.message-channel {
  color: rgba(31, 47, 61, 0.72);
}

.message-state {
  color: rgba(31, 47, 61, 0.48);
}

.chat-bubble {
  max-width: 52rem;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid #d9e0e8;
}

.chat-role {
  font-family: "Aber Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(31, 47, 61, 0.56);
}

.chat-text,
.result-text {
  margin: 0.6rem 0 0;
  word-break: break-word;
  font-family: "Proxima Nova", sans-serif;
}

.chat-text {
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.72;
}

.results-wrap {
  margin-top: 0.25rem;
}

.results-intro {
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.results-title {
  margin: 0.8rem 0 0;
  font-family: "Aber Mono", monospace;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.results-copy {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.result-card {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.result-card--green {
  border-top-color: #c9ebd1;
}

.result-card--violet {
  border-top-color: #e2d8ff;
}

.result-card--rose {
  border-top-color: #f8d4e3;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.result-card--green .step-badge {
  background: rgba(46, 209, 77, 0.12);
  color: #1e8f35;
}

.result-card--violet .step-badge {
  background: rgba(140, 124, 248, 0.14);
  color: #6857da;
}

.result-card--rose .step-badge {
  background: rgba(239, 0, 97, 0.1);
  color: #cc0053;
}

.result-text {
  min-height: 16rem;
  margin: 0;
  padding: 1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
}

.result-text > :first-child {
  margin-top: 0;
}

.result-text > :last-child {
  margin-bottom: 0;
}

.result-text p {
  margin: 0 0 0.9rem;
}

.result-text h1,
.result-text h2,
.result-text h3 {
  margin: 1.1rem 0 0.65rem;
  font-family: "Aber Mono", monospace;
  font-size: 1em;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-text ul,
.result-text ol {
  margin: 0 0 0.9rem 1.15rem;
  padding: 0;
}

.result-text li {
  margin: 0 0 0.45rem;
}

.result-text hr {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.result-text code {
  padding: 0.08rem 0.28rem;
  background: rgba(31, 47, 61, 0.06);
  font-family: "Aber Mono", monospace;
  font-size: 0.94em;
}

@media (max-width: 1100px) {
  .hero {
    padding-bottom: 5.5rem;
  }

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

  .hero-copy {
    max-width: none;
  }

  .how-it-works {
    max-width: none;
  }

  .chat-shell {
    max-width: 42rem;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 780px) {
  body {
    background: var(--hero-bg);
  }

  .page-shell::before {
    background:
      radial-gradient(circle at 20% 10%, rgba(46, 209, 77, 0.12), transparent 28%),
      radial-gradient(circle at 85% 12%, rgba(201, 42, 32, 0.18), transparent 24%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
  }

  .hero {
    padding-bottom: 5.5rem;
  }

  .hero-grid {
    gap: 1.85rem;
    margin-top: 2.6rem;
  }

  .hero-gridline {
    display: none;
  }

  .hero-title {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2.45rem, 15vw, 4rem);
  }

  .hero-lead {
    max-width: none;
    font-size: 1.02rem;
    line-height: 1.62;
  }

  .how-it-works {
    margin-top: 1.65rem;
    padding-top: 1rem;
  }

  .how-it-works__title {
    font-size: 1rem;
  }

  .how-it-works__list li,
  .stage-strip li {
    gap: 0.7rem;
    padding: 0.72rem 0;
  }

  .how-it-works__list p,
  .stage-strip p {
    font-size: 0.93rem;
    line-height: 1.52;
  }

  .chat-shell {
    padding-bottom: 1.4rem;
  }

  .chat-shell__title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .chat-shell__lead {
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .composer-form {
    margin-top: 1.2rem;
    padding-top: 0.9rem;
  }

  .form-footer,
  .message-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .helper-copy {
    max-width: none;
  }

  .send-button {
    width: 100%;
  }

  .content-shell {
    padding-top: 1rem;
  }

  .prompt-input {
    min-height: 12.5rem;
    padding: 1rem;
    line-height: 1.62;
  }

  .result-text {
    min-height: 12rem;
  }
}

@media (max-width: 560px) {
  .hero,
  .content-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.75rem 0.85rem;
    border-radius: 1.4rem;
  }

  .brand-mark {
    gap: 0.5rem;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .status-pill {
    padding: 0.36rem 0.68rem;
    font-size: 0.62rem;
  }

  .prompt-input {
    min-height: 14rem;
  }
}
