:root {
  color-scheme: light;
  --ink: #11120f;
  --ink-soft: #41443c;
  --paper: #f3f0e8;
  --paper-light: #fbfaf6;
  --line: rgba(17, 18, 15, 0.16);
  --acid: #d8ff3e;
  --orange: #ff6b35;
  --violet: #7d5cff;
  --shadow: 0 24px 80px rgba(34, 30, 20, 0.12);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  font-size: 8px;
  letter-spacing: 0.24em;
  opacity: 0.62;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.router-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.router-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf3d;
  box-shadow: 0 0 0 5px rgba(111, 191, 61, 0.13);
}

.ghost-button {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  transition: opacity 160ms ease;
}

.ghost-button:hover {
  opacity: 0.55;
}

.workspace {
  position: relative;
  z-index: 1;
  width: min(1020px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 54px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.45fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -24px;
}

.eyebrow,
.step-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.intro h1,
.login-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.intro h1 em,
.login-intro h1 em {
  color: var(--violet);
  font-weight: 400;
}

.intro-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.prompt-panel,
.response-panel {
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.prompt-panel {
  padding: 28px;
}

.field-heading {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
}

.field-heading label {
  font-size: 13px;
  font-weight: 700;
}

.field-heading span {
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 23px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.38;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea::placeholder {
  color: #a4a298;
}

textarea:focus,
.login-field input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(125, 92, 255, 0.12);
}

.form-footer {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.form-footer p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 8px 0 22px;
  border: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #26291f;
}

.primary-button:focus-visible,
.ghost-button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.button-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  font-size: 18px;
}

.response-panel {
  margin-top: 30px;
  padding: 34px;
  scroll-margin-top: 24px;
}

.response-panel[hidden] {
  display: none;
}

.response-heading {
  display: flex;
  padding-bottom: 24px;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.response-heading h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.model-badge {
  display: flex;
  max-width: 54%;
  padding: 10px 13px;
  align-items: center;
  gap: 9px;
  background: var(--acid);
  font-size: 11px;
}

.model-badge span {
  opacity: 0.58;
}

.model-badge strong {
  overflow-wrap: anywhere;
}

.answer {
  padding-top: 28px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.75;
}

.request-status {
  min-height: 22px;
  margin: 16px 4px 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 34px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.6;
}

.ambient-one {
  top: 145px;
  right: -130px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(125, 92, 255, 0.26);
  box-shadow: inset 0 0 80px rgba(125, 92, 255, 0.08);
}

.ambient-two {
  bottom: 20px;
  left: -80px;
  width: 180px;
  height: 180px;
  background: rgba(216, 255, 62, 0.23);
}

.login-page {
  background: var(--ink);
  color: white;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 0.9fr);
}

.login-intro {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  flex-direction: column;
  justify-content: space-between;
  background: #6847df;
}

.login-intro::before,
.login-intro::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.login-intro::before {
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
}

.login-intro::after {
  right: 80px;
  bottom: -240px;
  width: 500px;
  height: 500px;
}

.login-intro > * {
  position: relative;
  z-index: 1;
}

.brand-light {
  align-self: flex-start;
  color: var(--paper);
}

.brand-light .brand-copy small {
  opacity: 1;
}

.login-intro .eyebrow {
  margin-bottom: 24px;
  color: var(--paper);
}

.login-intro h1 {
  max-width: 700px;
  font-size: clamp(54px, 7vw, 100px);
}

.login-intro h1 em {
  color: var(--acid);
}

.login-intro > div > p:last-child {
  max-width: 520px;
  margin: 32px 0 0;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

.login-domain {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-form-wrap {
  display: grid;
  padding: clamp(28px, 7vw, 100px);
  place-items: center;
  background: var(--paper);
  color: var(--ink);
}

.login-card {
  width: min(100%, 460px);
}

.login-card-heading {
  margin-bottom: 42px;
}

.login-card-heading h2 {
  margin: 14px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.login-card-heading p,
.privacy-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.login-field {
  display: block;
  margin-top: 22px;
}

.login-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--paper-light);
}

.form-error {
  min-height: 22px;
  margin: 14px 0 4px;
  color: #b43b24;
  font-size: 12px;
}

.full-button {
  width: 100%;
}

.privacy-note {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 860px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro .eyebrow {
    margin-bottom: -8px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 48vh;
    gap: 70px;
  }

  .login-intro h1 {
    font-size: clamp(46px, 11vw, 72px);
  }

  .login-form-wrap {
    min-height: 52vh;
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 600px) {
  .site-header,
  .workspace,
  .site-footer {
    width: min(100% - 28px, 1020px);
  }

  .site-header {
    padding: 18px 0;
  }

  .brand-copy small,
  .router-status {
    display: none;
  }

  .header-actions {
    gap: 14px;
  }

  .workspace {
    padding-top: 56px;
  }

  .intro {
    margin-bottom: 34px;
  }

  .intro h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .prompt-panel,
  .response-panel {
    padding: 20px;
  }

  .form-footer,
  .response-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer p {
    display: none;
  }

  .primary-button,
  .model-badge {
    width: 100%;
    max-width: none;
  }

  .site-footer {
    gap: 8px;
  }

  .login-intro,
  .login-form-wrap {
    padding-right: 24px;
    padding-left: 24px;
  }
}

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