.beta-page { min-height: 100vh; }
.beta-main { padding-bottom: 100px; }
.beta-nav-actions { display: flex; align-items: center; gap: 16px; }
.language-menu { position: relative; z-index: 30; }
.language-trigger, .language-options button { display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: #fffdf8; color: var(--ink); cursor: pointer; }
.language-trigger { width: 55px; height: 38px; gap: 4px; padding: 0; font-size: 1.18rem; }
.flag-icon { display: inline-block; width: 25px; height: 16px; flex: 0 0 auto; border: 1px solid rgba(20, 20, 20, .28); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset; }
.flag-bg { background: linear-gradient(to bottom, #fff 0 33.333%, #00966e 33.333% 66.666%, #d62612 66.666% 100%); }
.flag-en { background: linear-gradient(32deg, transparent 43%, #fff 43% 49%, #c8102e 49% 53%, #fff 53% 59%, transparent 59%), linear-gradient(-32deg, transparent 43%, #fff 43% 49%, #c8102e 49% 53%, #fff 53% 59%, transparent 59%), linear-gradient(90deg, transparent 39%, #fff 39% 46%, #c8102e 46% 54%, #fff 54% 61%, transparent 61%), linear-gradient(transparent 35%, #fff 35% 43%, #c8102e 43% 57%, #fff 57% 65%, transparent 65%), #012169; }
.language-trigger:hover, .language-trigger[aria-expanded="true"], .language-options button:hover { background: var(--acid); }
.language-chevron { font: 500 .72rem/1 "DM Mono", monospace; transform: translateY(-1px); }
.language-options { position: absolute; top: calc(100% + 7px); right: 0; min-width: 55px; padding: 5px; border: 1px solid var(--ink); background: #fffdf8; box-shadow: 4px 4px 0 var(--ink); }
.language-options[hidden], .language-options button[hidden] { display: none !important; }
.language-options button { width: 43px; height: 36px; padding: 0; border: 0; font-size: 1.22rem; }
.beta-hero { padding: clamp(64px, 10vw, 122px) 0 70px; border-bottom: 1px solid var(--ink); }
.beta-hero h1 { max-width: 980px; font-size: clamp(3.8rem, 9.6vw, 8.2rem); }
.beta-hero > p:last-child { max-width: 730px; margin: 34px 0 0; font-size: 1.16rem; line-height: 1.65; }
.ask-panel { margin: 46px 0 0; border: 1px solid var(--ink); background: #fffdf8; }
.ask-labels { display: flex; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--ink); color: var(--muted); font: 500 .63rem/1 "DM Mono", monospace; letter-spacing: .07em; }
.ask-tools { display: flex; align-items: center; gap: 14px; }
.typing-sound-toggle { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.typing-sound-toggle:hover, .typing-sound-toggle:focus-visible { color: var(--ink); outline: 0; }
.typing-sound-toggle[aria-pressed="false"] { opacity: .62; }
.ask-panel textarea { display: block; width: 100%; min-height: 190px; resize: vertical; padding: 27px 28px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 700 clamp(1.35rem, 3vw, 2.25rem)/1.3 "Manrope", sans-serif; letter-spacing: -.045em; }
.ask-panel textarea::placeholder { color: #aaa89f; }
.ask-panel textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.ask-actions { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 20px 18px 28px; border-top: 1px solid var(--ink); }
.ask-actions p { max-width: 580px; margin: 0; color: var(--muted); font: .62rem/1.45 "DM Mono", monospace; }
.run-status { display: flex; align-items: center; gap: 14px; margin: 28px 0; padding: 18px 20px; border: 1px solid var(--ink); background: var(--acid); }
.run-status[hidden], .beta-results[hidden] { display: none !important; }
.run-status.error { background: #ffd8cd; }
.run-status p { margin: 0; font: 500 .68rem/1.4 "DM Mono", monospace; letter-spacing: .04em; }
.status-pulse { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--coral); animation: status-pulse 1s ease-in-out infinite alternate; }
.run-status.error .status-pulse { animation: none; }
@keyframes status-pulse { to { opacity: .28; transform: scale(.65); } }
.beta-results { padding-top: 75px; }
.results-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 55px; }
.results-title h2 { font-size: clamp(3rem, 7vw, 6rem); }
.remaining { margin: 0 0 5px; color: var(--muted); font: .63rem/1.4 "DM Mono", monospace; text-align: right; }
.live-question { padding: 22px 24px 28px; border: 1px solid var(--ink); background: #fffdf8; }
.live-question span { color: var(--coral); font: 500 .63rem/1 "DM Mono", monospace; letter-spacing: .07em; }
.live-question p { margin: 20px 0 0; font-size: clamp(1.25rem, 2.7vw, 2.15rem); font-weight: 700; letter-spacing: -.045em; }
.live-answers { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--ink); }
.live-model { padding: 24px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: #eeece5; }
.live-model:nth-child(2) { background: #e5efcc; }
.live-model:nth-child(3) { background: #f4ddcf; }
.live-model header { display: flex; align-items: center; justify-content: space-between; gap: 15px; font: 500 .61rem/1.3 "DM Mono", monospace; letter-spacing: .05em; }
.live-model header span:last-child { color: var(--muted); }
.live-model .model-answer { margin: 28px 0 0; white-space: pre-wrap; font-size: .97rem; line-height: 1.62; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1.22fr 1fr; gap: 18px; margin-top: 22px; }
.comparison-card { padding: 23px 24px 28px; border-top: 2px solid var(--ink); }
.comparison-agree { background: #f0eee8; }
.comparison-check { background: var(--acid); }
.comparison-diff { background: var(--coral); }
.comparison-card ul { margin: 0; padding-left: 18px; }
.comparison-card li { margin-top: 12px; font-size: .92rem; line-height: 1.5; }
.beta-disclaimer { margin: 24px 0 0; color: var(--muted); font: .62rem/1.55 "DM Mono", monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .live-answers, .comparison-grid { grid-template-columns: 1fr; }
  .results-title { align-items: flex-start; flex-direction: column; }
  .remaining { text-align: left; }
}
@media (max-width: 620px) {
  .beta-main { padding-bottom: 70px; }
  .beta-nav-actions { gap: 9px; }
  .language-trigger { width: 48px; height: 35px; }
  .language-options { min-width: 48px; }
  .language-options button { width: 36px; }
  .beta-hero { padding-top: 70px; }
  .ask-panel textarea { min-height: 175px; padding: 22px 18px; }
  .ask-actions { align-items: stretch; flex-direction: column; padding: 18px; }
  .ask-actions .button { width: 100%; }
  .beta-results { padding-top: 52px; }
}

/* CRT terminal theme */
.beta-page {
  --ink: #78ff9d;
  --paper: #030805;
  --acid: #102b18;
  --coral: #b9ffca;
  --line: rgba(120, 255, 157, .25);
  --muted: #54aa6c;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 20%, rgba(31, 110, 58, .18), transparent 45%),
    #030805;
  font-family: "Tiny5", monospace;
  text-shadow: 0 0 7px rgba(120, 255, 157, .18);
}
.beta-page::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(120, 255, 157, .055) 3px 4px);
  opacity: .65;
}
.beta-page::after {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 130px rgba(0, 0, 0, .88), inset 0 0 22px rgba(120, 255, 157, .08);
}
.beta-page ::selection { color: #020603; background: #8dffab; }
.beta-page .nav { border-bottom: 1px solid var(--line); }
.beta-page .nav .brand { color: #a0ffb8; font-family: "Press Start 2P", "Tiny5", monospace; font-size: 1rem; letter-spacing: -.04em; text-shadow: 0 0 9px rgba(120, 255, 157, .7); }
.beta-page .nav-link { color: var(--muted); }
.beta-page .nav-link:hover { color: var(--ink); }
.beta-page .nav-link span:last-child { color: var(--ink); }
.beta-page .language-trigger,
.beta-page .language-options,
.beta-page .language-options button {
  border-color: var(--ink);
  color: var(--ink);
  background: #061109;
  box-shadow: 0 0 11px rgba(120, 255, 157, .12);
}
.beta-page .language-trigger:hover,
.beta-page .language-trigger[aria-expanded="true"],
.beta-page .language-options button:hover { background: #15351e; }
.beta-page .flag-icon { border-color: var(--ink); box-shadow: 0 0 5px rgba(120, 255, 157, .35); }
.beta-page .beta-hero { border-color: var(--line); }
.beta-page .beta-hero h1,
.beta-page .results-title h2 {
  font-family: "Tiny5", monospace;
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 0 13px rgba(120, 255, 157, .32);
}
.beta-page .beta-hero h1 { max-width: 1050px; font-size: clamp(3rem, 7.4vw, 6.5rem); }
.beta-page h1 em,
.beta-page h2 em { color: #b9ffca; font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.beta-page .beta-hero > p:last-child { color: #85d99c; font-family: "Tiny5", monospace; font-size: 1.15rem; }
.beta-page .eyebrow { color: var(--muted); }
.beta-page .pulse { width: 9px; height: 9px; border-radius: 0; background: var(--ink); box-shadow: 0 0 9px var(--ink); }
.beta-page .ask-panel,
.beta-page .live-question { border-color: var(--ink); background: rgba(5, 18, 9, .86); box-shadow: 0 0 22px rgba(120, 255, 157, .07); }
.beta-page .ask-labels,
.beta-page .ask-actions { border-color: var(--line); }
.beta-page .typing-sound-toggle { color: #78ff9d; text-shadow: 0 0 6px rgba(120, 255, 157, .28); }
.beta-page .typing-sound-toggle:hover,
.beta-page .typing-sound-toggle:focus-visible { color: #d0ffdc; text-shadow: 0 0 9px rgba(120, 255, 157, .55); }
.beta-page .typing-sound-toggle[aria-pressed="false"] { color: #568f64; text-shadow: none; }
.beta-page .ask-panel textarea {
  color: #a0ffb8;
  background: rgba(0, 5, 2, .72);
  caret-color: #d4ffde;
  font: 400 clamp(1.3rem, 2.7vw, 2rem)/1.4 "Tiny5", monospace;
  letter-spacing: -.035em;
  text-shadow: 0 0 7px rgba(120, 255, 157, .24);
}
.beta-page .ask-panel textarea::placeholder { color: #397b4c; }
.beta-page .ask-panel textarea:focus { box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 24px rgba(120, 255, 157, .07); }
.beta-page .ask-actions p {
  max-width: 650px;
  padding: 12px 14px;
  border: 1px solid #ff6b6b;
  background: #220808;
  color: #ff9a9a;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: .015em;
  text-shadow: none;
  box-shadow: inset 3px 0 0 #ff6b6b;
}
.beta-page .button { border-color: var(--ink); color: var(--ink); background: #07120a; box-shadow: 3px 3px 0 #2c7a43; }
.beta-page .button-primary { color: #020603; background: #78ff9d; text-shadow: none; box-shadow: 4px 4px 0 #285f38, 0 0 14px rgba(120, 255, 157, .24); }
.beta-page .button-primary:hover { background: #a0ffb8; box-shadow: 6px 6px 0 #285f38, 0 0 18px rgba(120, 255, 157, .32); }
.beta-page .run-status { border-color: var(--ink); color: #9dffb5; background: #0b2412; }
.beta-page .run-status.error { color: #ffd7d7; border-color: #ff7979; background: #2a0909; text-shadow: 0 0 6px rgba(255, 90, 90, .25); }
.beta-page .status-pulse { border-radius: 0; background: var(--ink); box-shadow: 0 0 8px var(--ink); }
.beta-page .live-question span { color: #9dffb5; }
.beta-page .live-question p { color: #b9ffca; font-family: "Tiny5", monospace; font-weight: 400; letter-spacing: -.02em; }
.beta-page .live-answers { border-color: var(--ink); }
.beta-page .live-model,
.beta-page .live-model:nth-child(2),
.beta-page .live-model:nth-child(3) {
  border-color: var(--ink);
  color: #82d999;
  background: rgba(5, 16, 8, .92);
}
.beta-page .live-model:nth-child(2) { background: rgba(8, 24, 12, .94); }
.beta-page .live-model:nth-child(3) { background: rgba(6, 20, 10, .94); }
.beta-page .live-model header { color: #b9ffca; }
.beta-page .live-model .model-answer { font-family: "Tiny5", monospace; font-size: 1.08rem; line-height: 1.55; text-shadow: 0 0 5px rgba(120, 255, 157, .13); }
.beta-page .comparison-card,
.beta-page .comparison-agree,
.beta-page .comparison-check,
.beta-page .comparison-diff {
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  color: #82d999;
  background: rgba(5, 17, 9, .93);
}
.beta-page .comparison-check { box-shadow: inset 0 0 24px rgba(120, 255, 157, .045); }
.beta-page .insight-label { color: #b9ffca; }
.beta-page .beta-disclaimer { padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); }
.beta-page .footer { border-top: 1px solid var(--line); color: var(--muted); }
.beta-page .footer .brand { color: #78ff9d; }
.beta-page .nav-link,
.beta-page .language-chevron,
.beta-page .eyebrow,
.beta-page .ask-labels,
.beta-page .ask-actions p,
.beta-page .button,
.beta-page .run-status p,
.beta-page .remaining,
.beta-page .live-question span,
.beta-page .live-model header,
.beta-page .insight-label,
.beta-page .comparison-card li,
.beta-page .beta-disclaimer,
.beta-page .footer { font-family: "Tiny5", monospace; }
.beta-page .eyebrow,
.beta-page .ask-labels,
.beta-page .ask-actions p,
.beta-page .run-status p,
.beta-page .remaining,
.beta-page .live-question span,
.beta-page .live-model header,
.beta-page .insight-label,
.beta-page .beta-disclaimer,
.beta-page .footer { font-size: .78rem; }
.beta-page .ask-actions p { font-size: 1.05rem; }
.beta-page a:focus-visible,
.beta-page button:focus-visible,
.beta-page textarea:focus-visible { outline: 2px solid #b9ffca; outline-offset: 3px; }
.beta-page::-webkit-scrollbar { width: 10px; }
.beta-page::-webkit-scrollbar-track { background: #020503; }
.beta-page::-webkit-scrollbar-thumb { border: 2px solid #020503; background: #275b36; }

@media (max-width: 620px) {
  .beta-page .beta-hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); letter-spacing: -.08em; }
  .beta-page .beta-hero > p:last-child { font-size: .8rem; line-height: 1.75; }
  .beta-page .ask-panel textarea { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .beta-page::before { opacity: .4; }
}
