:root {
  --paper: #f5f5f0;
  --paper-soft: #ffffff;
  --ink: #08090b;
  --muted: #5f6670;
  --line: #d9dedb;
  --line-strong: #b9c2bf;
  --codex-blue: #5d75ff;
  --codex-lilac: #8584ff;
  --codex-sky: #b9dcff;
  --terminal: #050706;
  --terminal-soft: #0b100e;
  --terminal-line: #0d574b;
  --terminal-green: #00ffcc;
  --terminal-dim: #78aaa0;
  --danger: #b42318;
  --success: #157347;
  --radius: 8px;
  --shadow: 0 30px 90px rgba(12, 20, 50, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: rgba(93, 117, 255, 0.28);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(93, 117, 255, 0.38);
  outline-offset: 3px;
}

.codex-landing {
  min-height: 100vh;
  background: #101a5c;
}

.codex-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 62px;
  padding: 0 max(32px, calc((100vw - 1360px) / 2));
  color: rgba(255, 255, 255, 0.74);
  background: rgba(18, 23, 58, 0.46);
  backdrop-filter: blur(24px);
}

.codex-brand,
.codex-links a,
.codex-actions a {
  text-decoration: none;
}

.codex-brand {
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  font-weight: 700;
}

.codex-links,
.codex-actions,
.hero-cta,
.category-list,
.skill-meta,
.site-footer,
.button-row,
.authorize-steps {
  display: flex;
  align-items: center;
}

.codex-links {
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.codex-links .active,
.codex-links a:hover,
.codex-actions a:hover {
  color: #fff;
}

.nav-search {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
}

.nav-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.codex-actions {
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
}

.nav-login,
.nav-trial {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 22px;
}

.nav-login {
  background: rgba(255, 255, 255, 0.08);
}

.nav-trial {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.codex-actions .nav-trial {
  border: 0;
  font: inherit;
}

.codex-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 96px 24px 40px;
  background:
    radial-gradient(1200px 700px at 48% 12%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.44) 30%, rgba(133, 132, 255, 0.34) 56%, rgba(28, 46, 142, 0.78) 100%),
    linear-gradient(135deg, #577aff 0%, #d7ecff 32%, #faf9ff 48%, #7779ff 72%, #16246c 100%);
}

.codex-hero::before,
.codex-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.codex-hero::before {
  inset: 60px -6vw 0 -8vw;
  background:
    radial-gradient(ellipse at 30% 32%, rgba(190, 223, 255, 0.95), rgba(190, 223, 255, 0.08) 42%, transparent 58%),
    radial-gradient(ellipse at 82% 20%, rgba(90, 95, 244, 0.78), rgba(90, 95, 244, 0.18) 42%, transparent 62%),
    radial-gradient(ellipse at 12% 86%, rgba(0, 30, 116, 0.88), rgba(0, 30, 116, 0.24) 36%, transparent 54%);
  filter: blur(24px);
  opacity: 0.88;
}

.codex-hero::after {
  inset: 0;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(310deg, rgba(255, 255, 255, 0.14), transparent 38%);
  mix-blend-mode: soft-light;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(19deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(101deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 11px);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 84%, transparent);
}

.ascii-drift {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 3px;
}

.drift-left {
  top: 78px;
  left: 0;
}

.drift-low {
  left: 13%;
  bottom: 25%;
}

.hero-center {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  margin: 0 auto;
  text-align: center;
}

.codex-app-icon {
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  margin: 0 auto 36px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 18px 54px rgba(50, 58, 185, 0.26);
}

.codex-app-icon span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 28%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(145deg, #8aa5ff, #3b4cff 58%, #122bb8);
  color: #fff;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-weight: 800;
}

.hero-center h1 {
  margin: 0;
  color: #000;
  font-size: 70px;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-center p {
  max-width: 720px;
  margin: 28px auto 0;
  color: rgba(0, 0, 0, 0.84);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
}

.hero-cta {
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-primary,
.hero-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 25px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.hero-primary {
  background: #000;
  color: #fff;
}

.hero-secondary {
  background: rgba(255, 255, 255, 0.27);
  color: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

.availability {
  color: rgba(0, 0, 0, 0.52) !important;
  font-size: 14px !important;
}

.availability a {
  color: #000;
  text-underline-offset: 4px;
}

.hack-window {
  position: relative;
  z-index: 4;
  width: min(1200px, calc(100vw - 48px));
  margin: 12px auto 0;
  border-radius: 11px 11px 0 0;
  color: #e7fff9;
  box-shadow: 0 -20px 80px rgba(12, 15, 80, 0.18), 0 18px 70px rgba(0, 0, 0, 0.28);
}

.win-chrome {
  height: 70px;
  display: grid;
  grid-template-columns: 420px 54px 54px 1fr;
  align-items: center;
  border-radius: 11px 11px 0 0;
  background: #2b2b2b;
  color: #fff;
  overflow: hidden;
}

.win-tab {
  height: 56px;
  display: grid;
  grid-template-columns: 30px 1fr 28px;
  align-items: center;
  gap: 16px;
  align-self: end;
  padding: 0 18px;
  border-radius: 10px 10px 0 0;
  background: #080908;
}

.tiny-terminal {
  display: grid;
  width: 26px;
  height: 20px;
  place-items: center;
  border: 1px solid #aeb4b2;
  font-size: 12px;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.tab-close {
  font-size: 28px;
  font-weight: 300;
}

.win-chrome button {
  height: 70px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: #fff;
  font-size: 30px;
}

.win-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 28px;
  font-size: 34px;
  font-weight: 300;
}

.tui-shell {
  min-height: 640px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 30px 38px 0;
  border-radius: 0 0 8px 8px;
  background: #050706;
  color: var(--terminal-green);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.tui-status {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 40px;
  min-height: 266px;
  padding: 46px 40px;
  border: 3px solid var(--terminal-line);
  border-radius: 8px;
  background: #050706;
}

.tui-status p {
  margin: 0;
  color: #e8e8e8;
  font-size: 28px;
  line-height: 1.16;
}

.tui-status strong {
  color: var(--terminal-green);
}

.tui-status span {
  color: var(--terminal-dim);
}

.tui-status .welcome {
  margin-top: 34px;
  color: #e8e8e8;
}

.tips-box {
  border-left: 4px solid var(--terminal-line);
  padding-left: 38px;
}

.logged {
  margin-bottom: 36px !important;
  color: var(--terminal-green) !important;
  text-align: right;
}

.tips-copy {
  margin-top: 34px;
}

.tips-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 28px;
}

.tips-copy p {
  color: #a7eee0;
}

.tui-tabs {
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  align-items: center;
  gap: 34px;
  padding: 45px 8px 22px;
}

.tui-tabs button {
  border: 0;
  background: transparent;
  color: var(--terminal-dim);
  font: inherit;
  font-size: 32px;
  font-weight: 700;
}

.tui-tabs button.active {
  color: var(--terminal-green);
}

#tui-page-label {
  justify-self: end;
  color: var(--terminal-dim);
  font-size: 32px;
}

.tui-content {
  min-height: 430px;
  color: #e3e5e3;
  font-size: 29px;
  line-height: 1.16;
}

.tui-content p {
  margin: 0;
}

.tui-muted {
  color: var(--terminal-dim);
}

.tui-active-line {
  color: var(--terminal-green);
}

.tui-command {
  color: var(--terminal-green);
  font-weight: 800;
}

.tui-list {
  display: grid;
  gap: 4px;
}

.tui-list button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: #e3e5e3;
  font: inherit;
  text-align: left;
}

.tui-list button.active {
  color: var(--terminal-green);
  font-weight: 800;
}

.tui-skill-desc {
  color: var(--terminal-green);
  max-width: 1000px;
  padding-left: 32px;
}

.tui-footer {
  margin-top: 34px;
  padding: 17px 0 18px;
  border-top: 3px solid var(--terminal-line);
  color: var(--terminal-dim);
  font-size: 29px;
}

.codex-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 0;
  background: var(--paper);
}

.codex-landing main {
  background: var(--paper);
}

.codex-landing main .codex-hero {
  background-color: #6677ff;
}

.product-copy {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 56px;
  padding-top: 118px;
}

.section-kicker {
  margin: 0 0 14px;
  color: #4c60cc;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.codex-section h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.product-copy p,
.workspace-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.search-box {
  width: min(360px, 100%);
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-box input,
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink);
  padding: 10px 12px;
}

.category-list {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.category-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: #42474d;
}

.category-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.skill-grid,
.my-skill-list {
  display: grid;
  gap: 16px;
}

.skill-grid {
  grid-template-columns: repeat(3, 1fr);
}

.skill-card,
.upload-panel,
.my-skill,
.auth-card,
.authorize-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.skill-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 240px;
  padding: 22px;
}

.skill-card h3 {
  margin: 0;
  font-size: 22px;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.skill-meta {
  gap: 8px;
  flex-wrap: wrap;
}

.source-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #d8ecff;
  color: #17324a;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.skill-card footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.button,
.button-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #a9cde8;
  border-radius: var(--radius);
  background: #d8ecff;
  color: var(--ink);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.text-link,
.site-footer a {
  text-decoration: none;
}

.text-link:hover,
.site-footer a:hover {
  color: #4c60cc;
}

.message {
  min-height: 22px;
  color: var(--muted);
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: var(--success);
}

.workspace-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 96px;
}

.workspace-copy h2 {
  margin-bottom: 18px;
}

.upload-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.file-field {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.file-field input {
  width: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
}

.my-skill-list {
  grid-column: 2;
}

.my-skill {
  padding: 18px;
}

.my-skill h3 {
  margin: 0 0 8px;
}

.my-skill p {
  margin: 0 0 12px;
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  gap: 20px;
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}

.skill-dialog {
  width: min(760px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink);
  padding: 26px;
  box-shadow: var(--shadow);
}

.skill-dialog::backdrop {
  background: rgba(16, 17, 19, 0.38);
}

.icon-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
}

.skill-detail-body {
  display: grid;
  gap: 16px;
}

.skill-detail-body h2 {
  padding-right: 42px;
}

.skill-detail-body pre {
  max-height: 360px;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--terminal);
  color: #e7f0ed;
  padding: 16px;
  white-space: pre-wrap;
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(216, 236, 255, 0.68), rgba(247, 247, 242, 0) 360px),
    var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(16, 17, 19, 0.1);
  background: rgba(247, 247, 242, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.auth-shell {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 42px;
  align-items: center;
  margin: 0 auto;
  padding: 54px 0;
}

.auth-intro h1,
.authorize-panel h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #4c60cc;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-note {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-note span {
  color: #4c60cc;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.card-title h2 {
  margin: 0;
  font-size: 24px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.button-row {
  gap: 10px;
  flex-wrap: wrap;
}

.authorize-shell {
  width: min(760px, calc(100% - 48px));
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 56px 0;
}

.authorize-panel {
  display: grid;
  gap: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.authorize-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.code-field input {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 24px;
  text-transform: uppercase;
}

.authorize-steps {
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.authorize-steps span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.column-auth {
  min-height: 100vh;
  overflow-x: hidden;
  background: #fbfbfb;
  color: #15171a;
}

.column-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: clamp(76px, 13vh, 142px) 24px 48px;
}

.column-login {
  width: min(328px, 100%);
  text-align: center;
  animation: auth-rise 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-dialog {
  width: min(426px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: #fbfbfb;
  color: #15171a;
  padding: 0;
  box-shadow: 0 30px 90px rgba(4, 8, 18, 0.24);
}

.auth-dialog::backdrop {
  background: rgba(12, 16, 24, 0.38);
  backdrop-filter: blur(8px);
}

.auth-modal-card {
  width: 100%;
  padding: 42px 48px 34px;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #90949c;
  font-size: 26px;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease;
}

.auth-close:hover {
  background: #f0f0f1;
  color: #25272d;
}

.auth-modal-copy {
  margin: -10px auto 22px;
  color: #7a7f89;
  font-size: 13px;
  line-height: 1.5;
}

.auth-authorize-view {
  display: grid;
  gap: 14px;
}

.auth-authorize-view .eyebrow {
  margin-bottom: 0;
}

.auth-terminal-link {
  margin-top: 10px;
}

.column-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0 auto 26px;
  color: #090a0d;
  text-decoration: none;
}

.column-logo-shape {
  position: relative;
  width: 24px;
  height: 22px;
  display: block;
}

.column-logo-shape::before,
.column-logo-shape::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.column-logo-shape::before {
  inset: 0;
  border-radius: 8px 4px 4px 8px;
}

.column-logo-shape::after {
  top: 7px;
  right: -1px;
  width: 13px;
  height: 8px;
  border-radius: 6px 0 0 6px;
  background: #fbfbfb;
}

.column-login h1 {
  margin: 0 0 24px;
  color: #111318;
  font-size: 23px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: 0;
}

.account-choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  margin: 18px 0 0;
  padding: 3px;
  border: 1px solid #eceef1;
  border-radius: 999px;
  background: #f5f5f6;
}

.account-choice button {
  min-width: 58px;
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a8e95;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.account-choice button.active {
  background: #fff;
  color: #1b1d22;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

.column-form {
  display: grid;
  gap: 14px;
}

.column-code-form {
  margin-top: 2px;
}

.column-field {
  position: relative;
  display: block;
}

.column-field input {
  width: 100%;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f0f0f1;
  color: #2d3036;
  padding: 0 15px;
  font-size: 15px;
  line-height: 42px;
  outline: 0;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.column-field input::placeholder {
  color: #b3b5ba;
}

.column-field input:hover {
  background: #ececee;
}

.column-field input:focus {
  border-color: #7fa0d5;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(79, 126, 227, 0.16), 0 7px 18px rgba(45, 74, 132, 0.08);
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 8px;
  align-items: stretch;
}

.verification-row .column-secondary {
  min-height: 42px;
  margin: 0;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.password-field input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: #b5b8bd;
  transition: color 150ms ease, transform 150ms ease;
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: #69707a;
}

.password-toggle:active {
  transform: scale(0.94);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.column-primary,
.column-secondary {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, color 150ms ease;
}

.column-primary {
  margin-top: 6px;
  border: 1px solid #4679df;
  background: #4f7ee3;
  color: #fff;
  box-shadow: 0 2px 0 rgba(20, 61, 143, 0.16), 0 10px 20px rgba(79, 126, 227, 0.14);
}

.column-primary:hover {
  background: #416fd6;
  border-color: #416fd6;
  transform: translateY(-1px);
}

.column-primary:active {
  transform: translateY(0);
}

.column-secondary {
  border: 1px solid #e4e5e8;
  background: #fff;
  color: #5a5e66;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.column-secondary:hover {
  border-color: #d7d9de;
  color: #272a30;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.button-label {
  transition: opacity 130ms ease;
}

.button-spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-top-color: #fff;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.86);
  animation: column-spin 760ms linear infinite;
}

.is-loading .button-label {
  opacity: 0;
}

.is-loading .button-spinner {
  opacity: 1;
  transform: scale(1);
}

.is-loading {
  pointer-events: none;
}

.forgot-button {
  width: fit-content;
  justify-self: center;
  min-height: 22px;
  margin-top: 1px;
  border: 0;
  background: transparent;
  color: #a0a3a9;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.forgot-button:hover {
  color: #626975;
}

.column-login .message {
  min-height: 22px;
  margin: -2px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.signup-area {
  margin-top: 20px;
}

.signup-area p {
  margin: 0 0 14px;
  color: #4b4f58;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

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

@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .column-auth-shell {
    padding: 58px 20px 36px;
    place-items: start center;
  }

  .column-login {
    width: min(328px, 100%);
  }

  .column-logo {
    margin-bottom: 22px;
  }
}

@media (max-width: 1180px) {
  .codex-nav {
    padding: 0 22px;
  }

  .codex-links {
    gap: 16px;
  }

  .tui-status p,
  .tips-copy strong,
  .tui-content,
  .tui-footer {
    font-size: 22px;
  }

  .tui-tabs button,
  #tui-page-label {
    font-size: 26px;
  }

  .win-chrome {
    grid-template-columns: 330px 54px 54px 1fr;
  }
}

@media (max-width: 980px) {
  .codex-nav {
    position: absolute;
  }

  .codex-links {
    display: none;
  }

  .codex-actions .nav-login {
    display: none;
  }

  .codex-hero {
    padding-top: 92px;
  }

  .hero-center h1 {
    font-size: 54px;
  }

  .hack-window {
    width: calc(100vw - 24px);
    margin-top: 74px;
  }

  .win-chrome {
    grid-template-columns: 1fr 46px 46px;
  }

  .win-controls {
    display: none;
  }

  .tui-shell {
    min-height: 560px;
    padding: 18px 18px 0;
  }

  .tui-status {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px;
  }

  .tips-box {
    border-left: 0;
    border-top: 3px solid var(--terminal-line);
    padding: 20px 0 0;
  }

  .logged {
    text-align: left;
  }

  .tui-tabs {
    grid-template-columns: repeat(4, auto);
    gap: 16px;
    overflow-x: auto;
  }

  #tui-page-label {
    display: none;
  }

  .product-copy,
  .workspace-section,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .skill-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .my-skill-list {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .codex-nav {
    height: 56px;
  }

  .codex-brand {
    font-size: 18px;
  }

  .nav-trial {
    min-height: 36px;
    padding: 0 14px;
  }

  .codex-hero {
    min-height: auto;
    padding: 98px 12px 44px;
  }

  .codex-app-icon {
    width: 78px;
    height: 78px;
    margin-bottom: 24px;
  }

  .codex-app-icon span {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .hero-center h1 {
    font-size: 44px;
  }

  .hero-center p {
    font-size: 16px;
  }

  .hero-cta {
    gap: 10px;
  }

  .win-chrome {
    height: 56px;
    grid-template-columns: 1fr 42px 42px;
  }

  .win-tab {
    height: 44px;
    gap: 10px;
    padding: 0 12px;
  }

  .win-chrome button {
    height: 56px;
    font-size: 22px;
  }

  .tui-status p,
  .tips-copy strong,
  .tui-content,
  .tui-footer {
    font-size: 17px;
  }

  .tui-tabs {
    gap: 10px;
    padding-top: 28px;
  }

  .tui-tabs button {
    font-size: 21px;
  }

  .tui-content {
    min-height: 330px;
  }

  .codex-section,
  .site-footer,
  .auth-shell,
  .authorize-shell {
    width: min(100% - 28px, 1180px);
  }

  .codex-section h2,
  .auth-intro h1,
  .authorize-panel h1 {
    font-size: 32px;
  }

  .section-head.split {
    display: grid;
  }

  .site-header {
    min-height: auto;
    padding: 14px 18px;
  }

  .header-actions .text-link {
    display: none;
  }

  .site-footer {
    display: grid;
  }
}

/* Compact the TUI preview as a whole so the complete demo fits in one viewport. */
.hack-window {
  width: min(900px, calc(100vw - 48px));
  margin-top: 8px;
  border-radius: 8px 8px 0 0;
}

.win-chrome {
  height: 52px;
  grid-template-columns: 315px 40px 40px 1fr;
  border-radius: 8px 8px 0 0;
}

.win-tab {
  height: 42px;
  grid-template-columns: 22px 1fr 21px;
  gap: 12px;
  padding: 0 14px;
  border-radius: 7px 7px 0 0;
}

.tiny-terminal {
  width: 20px;
  height: 16px;
  font-size: 9px;
}

.tab-close {
  font-size: 21px;
}

.win-chrome button {
  height: 52px;
  font-size: 22px;
}

.win-controls {
  gap: 32px;
  padding-right: 22px;
  font-size: 25px;
}

.tui-shell {
  min-height: 480px;
  padding: 19px 24px 0;
}

.tui-status {
  gap: 25px;
  min-height: 165px;
  padding: 28px 24px;
  border-width: 2px;
}

.tui-status p,
.tips-copy strong {
  font-size: 18px;
}

.tui-status .welcome {
  margin-top: 22px;
}

.tips-box {
  border-left-width: 3px;
  padding-left: 24px;
}

.logged {
  margin-bottom: 22px !important;
}

.tips-copy {
  margin-top: 22px;
}

.tui-tabs {
  gap: 22px;
  padding: 28px 5px 14px;
}

.tui-tabs button,
#tui-page-label {
  font-size: 22px;
}

.tui-content {
  min-height: 250px;
  font-size: 20px;
}

.tui-skill-desc {
  padding-left: 22px;
}

.tui-footer {
  margin-top: 20px;
  padding: 11px 0 12px;
  border-top-width: 2px;
  font-size: 20px;
}

@media (max-width: 980px) {
  .hack-window {
    width: min(760px, calc(100vw - 24px));
    margin-top: 34px;
  }

  .win-chrome {
    height: 48px;
    grid-template-columns: 1fr 38px 38px;
  }

  .win-tab {
    height: 38px;
  }

  .win-chrome button {
    height: 48px;
    font-size: 20px;
  }

  .tui-shell {
    min-height: 470px;
    padding: 16px 16px 0;
  }

  .tui-status {
    padding: 18px;
  }

  .tui-status p,
  .tips-copy strong,
  .tui-content,
  .tui-footer {
    font-size: 16px;
  }

  .tui-tabs button {
    font-size: 19px;
  }

  .tui-content {
    min-height: 230px;
  }
}

@media (max-width: 640px) {
  .hack-window {
    width: calc(100vw - 18px);
    margin-top: 28px;
  }

  .tui-shell {
    min-height: 430px;
    padding: 14px 12px 0;
  }

  .tui-status {
    padding: 14px;
  }

  .tui-tabs {
    padding-top: 20px;
  }

  .tui-content {
    min-height: 200px;
  }
}

/* Final viewport-fit pass: hero + full TUI demo visible without page scrolling. */
.codex-hero {
  height: 100vh;
  min-height: 640px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 66px 24px 14px;
}

.hero-center {
  width: min(700px, 100%);
}

.codex-app-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 16px;
}

.codex-app-icon span {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 17px;
}

.hero-center h1 {
  font-size: 44px;
}

.hero-center p {
  max-width: 620px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.hero-cta {
  gap: 12px;
  margin-top: 16px;
}

.hero-primary,
.hero-secondary {
  min-height: 38px;
  padding: 0 20px;
}

.availability {
  margin-top: 10px !important;
  font-size: 13px !important;
}

.hack-window {
  width: min(720px, calc(100vw - 48px));
  margin-top: 0;
  box-shadow: 0 -12px 48px rgba(12, 15, 80, 0.16), 0 12px 42px rgba(0, 0, 0, 0.24);
}

.win-chrome {
  height: 38px;
  grid-template-columns: 252px 30px 30px 1fr;
}

.win-tab {
  height: 31px;
  grid-template-columns: 18px 1fr 17px;
  gap: 9px;
  padding: 0 11px;
}

.tiny-terminal {
  width: 16px;
  height: 13px;
  font-size: 8px;
}

.tab-close {
  font-size: 17px;
}

.win-chrome button {
  height: 38px;
  font-size: 18px;
}

.win-controls {
  gap: 25px;
  padding-right: 18px;
  font-size: 20px;
}

.tui-shell {
  min-height: 294px;
  padding: 12px 14px 0;
}

.tui-status {
  gap: 14px;
  min-height: 106px;
  padding: 14px;
  border-width: 2px;
}

.tui-status p,
.tips-copy strong {
  font-size: 13px;
  line-height: 1.12;
}

.tui-status .welcome {
  margin-top: 10px;
}

.tips-box {
  border-left-width: 2px;
  padding-left: 14px;
}

.logged {
  margin-bottom: 10px !important;
}

.tips-copy {
  margin-top: 10px;
}

.tui-tabs {
  gap: 14px;
  padding: 14px 4px 8px;
}

.tui-tabs button,
#tui-page-label {
  font-size: 15px;
}

.tui-content {
  min-height: 125px;
  font-size: 14px;
}

.tui-skill-desc {
  padding-left: 16px;
}

.tui-footer {
  margin-top: 8px;
  padding: 6px 0 7px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .codex-hero {
    min-height: 720px;
    padding: 62px 10px 12px;
  }

  .hero-center p {
    font-size: 14px;
  }

  .hack-window {
    width: calc(100vw - 18px);
  }

  .win-chrome {
    grid-template-columns: 1fr 30px 30px;
  }

  .tui-shell {
    min-height: 306px;
  }

  .tui-status {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tips-box {
    border-left: 0;
    border-top: 2px solid var(--terminal-line);
    padding: 10px 0 0;
  }

  .logged {
    text-align: left;
  }

  .tui-tabs {
    overflow-x: auto;
  }

  .tui-content {
    min-height: 104px;
  }

  .tui-footer {
    font-size: 12px;
  }
}

/* macOS shell + smaller type, with a slightly taller TUI area. */
.hero-center {
  width: min(660px, 100%);
}

.codex-app-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}

.codex-app-icon span {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.hero-center h1 {
  font-size: 40px;
}

.hero-center p {
  max-width: 590px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.hero-cta {
  margin-top: 14px;
}

.hero-primary,
.hero-secondary {
  min-height: 34px;
  padding: 0 18px;
  font-size: 13px;
}

.availability {
  margin-top: 8px !important;
  font-size: 12px !important;
}

.hack-window {
  width: min(760px, calc(100vw - 48px));
  border-radius: 10px;
  overflow: hidden;
}

.mac-chrome {
  position: relative;
  height: 34px;
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  background: linear-gradient(180deg, #343434, #272727);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.mac-lights {
  display: flex;
  gap: 7px;
  padding-left: 13px;
}

.mac-lights span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.mac-close {
  background: #ff5f57;
}

.mac-minimize {
  background: #ffbd2e;
}

.mac-zoom {
  background: #28c840;
}

.mac-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.mac-title .tiny-terminal {
  width: 18px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.88);
  font-size: 8px;
}

.tui-shell {
  min-height: 334px;
  padding: 13px 16px 0;
}

.tui-status {
  min-height: 118px;
  padding: 16px;
}

.tui-status p,
.tips-copy strong {
  font-size: 12px;
  line-height: 1.14;
}

.tui-tabs {
  gap: 13px;
  padding: 13px 4px 8px;
}

.tui-tabs button,
#tui-page-label {
  font-size: 13px;
}

.tui-content {
  min-height: 143px;
  font-size: 12px;
  line-height: 1.18;
}

.tui-footer {
  margin-top: 7px;
  padding: 6px 0 7px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .hack-window {
    width: calc(100vw - 18px);
  }

  .mac-chrome {
    height: 32px;
    grid-template-columns: 72px 1fr 72px;
  }

  .mac-lights {
    gap: 6px;
    padding-left: 11px;
  }

  .mac-lights span {
    width: 9px;
    height: 9px;
  }

  .tui-shell {
    min-height: 340px;
    padding: 12px 11px 0;
  }

  .tui-status p,
  .tips-copy strong,
  .tui-content,
  .tui-footer {
    font-size: 11px;
  }

  .tui-tabs button {
    font-size: 12px;
  }

  .tui-content {
    min-height: 118px;
  }
}

/* Taller TUI pass: increase terminal height by roughly one third while keeping the first viewport complete. */
.codex-hero {
  gap: 7px;
  padding: 10px 24px 10px;
}

.codex-app-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
}

.codex-app-icon span {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.hero-center h1 {
  font-size: 46px;
}

.hero-center p {
  max-width: 680px;
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.36;
}

.hack-window {
  width: min(760px, calc(100vw - 48px));
}

.install-card {
  width: min(720px, 100%);
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(31, 54, 119, 0.11);
  backdrop-filter: blur(16px);
  text-align: left;
}

.install-card p {
  margin: 0 0 8px;
  max-width: none;
  color: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  line-height: 1.25;
}

.install-commands {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) minmax(74px, 0.55fr);
  gap: 8px;
  font-size: 12px;
}

.install-command {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: rgba(15, 23, 42, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.install-command span {
  color: rgba(15, 23, 42, 0.5);
}

.install-command code {
  min-width: 0;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  color: #07100d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-command {
  min-height: 27px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(15, 23, 42, 0.66);
  padding: 0 9px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.copy-command:hover {
  border-color: rgba(57, 88, 180, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: #25305f;
}

.copy-command.copied {
  border-color: rgba(21, 115, 71, 0.2);
  background: rgba(230, 255, 241, 0.86);
  color: #157347;
}

.tui-shell {
  min-height: 414px;
  padding: 13px 16px 0;
}

.tui-content {
  min-height: 223px;
}

@media (max-width: 640px) {
  .codex-hero {
    gap: 6px;
    padding: 16px 9px 9px;
  }

  .hero-center {
    width: min(340px, 100%);
  }

  .codex-app-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
  }

  .codex-app-icon span {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .hero-center h1 {
    font-size: 34px;
  }

  .hero-center p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.28;
  }

  .install-card {
    width: min(340px, 100%);
    margin-top: 9px;
    padding: 10px;
  }

  .install-card p,
  .install-commands {
    font-size: 11px;
  }

  .install-commands {
    grid-template-columns: 1fr;
    gap: 4px 6px;
  }

  .install-command {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .install-command code {
    padding: 5px 7px;
  }

  .tui-shell {
    min-height: 430px;
  }

  .tui-content {
    min-height: 208px;
  }
}

/* Final homepage/auth polish requested after visual review. */
.codex-nav {
  padding-right: clamp(24px, 4vw, 72px);
  padding-left: clamp(24px, 4vw, 72px);
}

.codex-actions .nav-trial {
  min-height: 42px;
  padding: 0 25px;
}

.codex-app-icon {
  display: none;
}

.hero-center {
  width: min(840px, calc(100% - 32px));
}

.hero-center h1 {
  margin: 0;
  font-size: clamp(58px, 5.2vw, 86px);
  font-weight: 740;
  line-height: 0.96;
}

.hero-center p {
  margin-top: 14px;
}

.auth-modal-card {
  padding-top: 46px;
}

.auth-brand {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 22px;
  color: #111318;
  font-size: 25px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
}

.auth-modal-card .column-logo {
  display: none;
}

@media (max-width: 640px) {
  .codex-nav {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-center {
    width: min(360px, calc(100% - 24px));
  }

  .hero-center h1 {
    font-size: 44px;
  }

  .auth-brand {
    font-size: 23px;
    margin-bottom: 20px;
  }
}

/* Low-key tech redesign for the user landing page. */
.codex-landing {
  --surface-deep: #06090d;
  --surface-panel: rgba(11, 17, 21, 0.72);
  --surface-glass: rgba(15, 24, 27, 0.66);
  --line-circuit: rgba(119, 241, 213, 0.16);
  --line-muted-dark: rgba(214, 231, 224, 0.11);
  --text-strong: #edf6f1;
  --text-muted-dark: rgba(218, 232, 226, 0.66);
  --accent-cyan: #6de7d6;
  --accent-green: #9ff3c4;
  --accent-brass: #d7c47b;
  background: var(--surface-deep);
}

.codex-landing main,
.codex-landing main .codex-hero {
  background: var(--surface-deep);
}

.codex-nav {
  height: 72px;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(300px, auto);
  justify-content: space-between;
  gap: 22px;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid rgba(129, 244, 216, 0.13);
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.92), rgba(9, 16, 20, 0.74) 48%, rgba(5, 8, 12, 0.9)),
    repeating-linear-gradient(90deg, rgba(120, 238, 212, 0.06) 0 1px, transparent 1px 42px);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(130%);
}

.codex-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-strong);
}

.brand-sigil {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(109, 231, 214, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(109, 231, 214, 0.16), rgba(215, 196, 123, 0.08)),
    rgba(3, 7, 10, 0.78);
  color: var(--accent-green);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(109, 231, 214, 0.08), 0 8px 22px rgba(0, 0, 0, 0.24);
}

.brand-sigil::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: 8px;
  width: 10px;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: 8px 0 0 rgba(215, 196, 123, 0.62);
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-copy strong {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 760;
}

.brand-copy em {
  color: rgba(159, 243, 196, 0.62);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.codex-links {
  justify-self: center;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-muted-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 700;
}

.codex-links a,
.nav-link-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(231, 244, 239, 0.64);
  padding: 0 14px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-link-button {
  font: inherit;
}

.codex-links .active,
.codex-links a:hover,
.nav-link-button:hover {
  background: rgba(109, 231, 214, 0.1);
  color: #f8fffb;
  box-shadow: inset 0 0 0 1px rgba(109, 231, 214, 0.14);
}

.codex-actions {
  justify-self: end;
  justify-content: flex-end;
  gap: 10px;
}

.nav-signal {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(159, 243, 196, 0.16);
  border-radius: 999px;
  background: rgba(159, 243, 196, 0.055);
  color: rgba(222, 241, 232, 0.68);
  padding: 0 13px;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.nav-signal span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(159, 243, 196, 0.09), 0 0 14px rgba(159, 243, 196, 0.46);
}

.nav-login,
.nav-trial {
  min-height: 38px;
  border: 1px solid rgba(226, 242, 236, 0.12);
  border-radius: 999px;
  padding: 0 17px;
  font-weight: 760;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.codex-actions .nav-login,
.codex-actions .nav-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 760;
}

.nav-login {
  background: rgba(255, 255, 255, 0.045);
  color: rgba(241, 249, 245, 0.78);
}

.nav-account {
  min-width: 0;
  max-width: min(310px, 32vw);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(109, 231, 214, 0.16);
  border-radius: 999px;
  background: rgba(109, 231, 214, 0.06);
  padding: 4px 11px 4px 5px;
  color: var(--text-strong);
}

.nav-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(159, 243, 196, 0.16);
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 800;
}

.nav-account-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.nav-account-copy strong,
.nav-account-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-copy strong {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 740;
}

.nav-account-copy em {
  color: rgba(159, 243, 196, 0.62);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-style: normal;
}

.nav-logout {
  padding-inline: 15px;
}

.nav-trial {
  background: linear-gradient(135deg, rgba(109, 231, 214, 0.92), rgba(159, 243, 196, 0.88));
  color: #03110e;
  box-shadow: 0 10px 28px rgba(109, 231, 214, 0.16);
}

.nav-login:hover,
.nav-trial:hover {
  transform: translateY(-1px);
  border-color: rgba(159, 243, 196, 0.34);
}

.codex-hero {
  min-height: 100svh;
  height: auto;
  isolation: isolate;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 92px 24px 18px;
  background:
    linear-gradient(180deg, rgba(6, 9, 13, 0.94), rgba(8, 13, 16, 0.82) 48%, #05080b 100%),
    linear-gradient(118deg, #05080b 0%, #101416 37%, #0b292b 68%, #06090d 100%);
}

.codex-hero::before {
  inset: 72px 0 0;
  background:
    linear-gradient(rgba(109, 231, 214, 0.078) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 231, 214, 0.064) 1px, transparent 1px),
    linear-gradient(112deg, transparent 0 42%, rgba(215, 196, 123, 0.13) 42.2%, transparent 43.2% 62%, rgba(109, 231, 214, 0.1) 62.3%, transparent 63.2%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  filter: none;
  opacity: 0.54;
  mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 82%, transparent 100%);
}

.codex-hero::after {
  inset: 72px 0 0;
  background:
    linear-gradient(90deg, transparent, rgba(109, 231, 214, 0.14) 48%, rgba(215, 196, 123, 0.1) 52%, transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 6px);
  clip-path: polygon(0 27%, 100% 9%, 100% 30%, 0 48%);
  mix-blend-mode: screen;
  opacity: 0.68;
  animation: field-scan 12s ease-in-out infinite alternate;
}

.hero-noise {
  opacity: 0.2;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(109, 231, 214, 0.035) 0 1px, transparent 1px 17px);
  mix-blend-mode: screen;
}

.ascii-drift {
  color: rgba(159, 243, 196, 0.24);
  text-shadow: 0 0 20px rgba(109, 231, 214, 0.18);
}

.drift-left {
  top: 108px;
  left: clamp(12px, 4vw, 58px);
}

.drift-low {
  left: auto;
  right: clamp(18px, 8vw, 120px);
  bottom: 26%;
}

.hero-center {
  width: min(860px, calc(100% - 32px));
  text-align: center;
}

.hero-center::before {
  content: "workspace://skill-terminal";
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid rgba(109, 231, 214, 0.16);
  border-radius: 999px;
  background: rgba(109, 231, 214, 0.055);
  color: rgba(159, 243, 196, 0.74);
  padding: 7px 12px;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.hero-center h1 {
  color: var(--text-strong);
  font-size: clamp(58px, 5.4vw, 88px);
  font-weight: 780;
  text-shadow: 0 20px 64px rgba(109, 231, 214, 0.13);
}

.hero-center p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--text-muted-dark);
  font-size: 16px;
  line-height: 1.58;
}

.install-card {
  width: min(760px, 100%);
  margin-top: 16px;
  border: 1px solid rgba(109, 231, 214, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(5, 10, 12, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.install-card p {
  color: rgba(237, 246, 241, 0.72);
}

.install-command {
  color: rgba(221, 236, 229, 0.58);
}

.install-command span {
  color: rgba(215, 196, 123, 0.76);
}

.install-command code {
  border-color: rgba(109, 231, 214, 0.13);
  background: rgba(2, 7, 9, 0.72);
  color: #e9f7ef;
  box-shadow: inset 0 0 18px rgba(109, 231, 214, 0.035);
}

.copy-command {
  border-color: rgba(109, 231, 214, 0.16);
  background: rgba(109, 231, 214, 0.075);
  color: rgba(231, 250, 242, 0.8);
}

.copy-command:hover {
  border-color: rgba(159, 243, 196, 0.34);
  background: rgba(109, 231, 214, 0.14);
  color: #f8fffb;
}

.hack-window {
  width: min(800px, calc(100vw - 48px));
  border: 1px solid rgba(109, 231, 214, 0.16);
  background: rgba(2, 6, 8, 0.78);
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.mac-chrome {
  height: 36px;
  background:
    linear-gradient(180deg, rgba(29, 39, 40, 0.96), rgba(10, 14, 16, 0.98)),
    repeating-linear-gradient(90deg, rgba(109, 231, 214, 0.05) 0 1px, transparent 1px 38px);
  border-bottom: 1px solid rgba(109, 231, 214, 0.12);
}

.mac-title {
  color: rgba(235, 248, 242, 0.76);
}

.tui-shell {
  min-height: 316px;
  padding: 11px 14px 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 10, 0.98), rgba(3, 7, 8, 0.98)),
    repeating-linear-gradient(0deg, rgba(109, 231, 214, 0.03) 0 1px, transparent 1px 5px);
}

.tui-status {
  min-height: 102px;
  padding: 14px;
  border-color: rgba(109, 231, 214, 0.28);
  background: rgba(2, 7, 8, 0.58);
}

.tui-tabs {
  padding: 11px 4px 7px;
}

.tui-content {
  min-height: 134px;
}

.tips-box {
  border-color: rgba(109, 231, 214, 0.3);
}

.tui-footer {
  margin-top: 6px;
  padding: 5px 0 6px;
  border-color: rgba(109, 231, 214, 0.24);
}

@keyframes field-scan {
  from {
    transform: translateY(-3%) skewY(-1deg);
  }

  to {
    transform: translateY(7%) skewY(-1deg);
  }
}

@media (max-width: 1120px) {
  .codex-nav {
    grid-template-columns: minmax(180px, auto) auto;
  }

  .nav-signal {
    display: none;
  }
}

@media (max-width: 900px) {
  .codex-nav {
    grid-template-columns: 1fr auto;
  }

  .codex-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .codex-nav {
    height: 62px;
    padding: 0 14px;
  }

  .brand-sigil {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy em {
    display: none;
  }

  .codex-actions {
    gap: 6px;
  }

  .nav-account {
    max-width: 42vw;
    padding-right: 8px;
  }

  .nav-avatar {
    width: 26px;
    height: 26px;
  }

  .nav-account-copy em {
    display: none;
  }

  .verification-row {
    grid-template-columns: 1fr;
  }

  .nav-login,
  .nav-trial {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .codex-hero {
    min-height: 100svh;
    gap: 10px;
    padding: 78px 9px 12px;
  }

  .hero-center {
    width: min(360px, calc(100% - 18px));
  }

  .hero-center::before {
    margin-bottom: 8px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .hero-center h1 {
    font-size: 43px;
  }

  .hero-center p {
    font-size: 12px;
    line-height: 1.42;
  }

  .install-card {
    width: min(360px, 100%);
    margin-top: 10px;
  }

  .tui-shell {
    min-height: 350px;
  }

  .tui-content {
    min-height: 130px;
  }

  .hack-window {
    width: calc(100vw - 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .codex-hero::after {
    animation: none;
  }
}

/* macOS Terminal treatment for the landing-page TUI preview. */
.hack-window {
  width: min(824px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #060606;
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.58),
    0 12px 34px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(0, 0, 0, 0.72);
}

.mac-chrome {
  position: relative;
  height: 38px;
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.58);
  background:
    linear-gradient(180deg, rgba(78, 82, 86, 0.96), rgba(39, 41, 44, 0.98) 58%, rgba(31, 33, 36, 0.98));
  color: rgba(244, 244, 244, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(24px) saturate(130%);
}

.mac-chrome::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.035));
  opacity: 0.72;
}

.mac-lights {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding-left: 14px;
}

.mac-lights span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 1px rgba(0, 0, 0, 0.3);
}

.mac-close {
  background: #ff5f57;
}

.mac-minimize {
  background: #febc2e;
}

.mac-zoom {
  background: #28c840;
}

.mac-title {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: rgba(246, 246, 246, 0.86);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.58);
}

.mac-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mac-title strong::after {
  content: " - zsh - 80x24";
  color: rgba(235, 235, 235, 0.62);
  font-weight: 500;
}

.mac-title .tiny-terminal {
  width: 18px;
  height: 14px;
  border: 1px solid rgba(238, 238, 238, 0.38);
  border-radius: 2px;
  background: rgba(20, 21, 23, 0.88);
  color: rgba(245, 245, 245, 0.9);
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  line-height: 1;
}

.tui-shell {
  position: relative;
  min-height: 318px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 14px 16px 0;
  background:
    radial-gradient(circle at 48% 0, rgba(255, 255, 255, 0.035), transparent 42%),
    #050505;
  color: #f2f2f2;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.tui-status {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
  gap: 22px;
  min-width: 0;
  min-height: 108px;
  padding: 12px 13px;
  border: 1px solid rgba(142, 142, 147, 0.34);
  border-radius: 5px;
  background: rgba(12, 12, 12, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.tui-status::before {
  content: "Last login: Thu Jun 18 09:42:18 on ttys000";
  grid-column: 1 / -1;
  margin-bottom: -4px;
  color: rgba(196, 196, 196, 0.72);
  font-size: 12px;
  line-height: 1.25;
}

.tui-status p,
.tips-copy strong {
  margin: 0;
  color: #f1f1f1;
  font-size: 12px;
  line-height: 1.28;
}

.tui-status strong {
  color: #7ee787;
  font-weight: 700;
}

.tui-status span {
  color: rgba(218, 218, 218, 0.68);
}

.tui-status .welcome {
  margin-top: 8px;
  color: rgba(245, 245, 245, 0.88);
}

.tui-status > div:first-child p:first-child::before {
  content: "tester@Hack-Terminal ~ % ";
  color: #7ee787;
  font-weight: 500;
}

.tips-box {
  min-width: 0;
  border-left: 1px solid rgba(142, 142, 147, 0.36);
  padding-left: 20px;
}

.logged {
  margin-bottom: 12px !important;
  color: rgba(218, 218, 218, 0.74) !important;
  font-size: 11px !important;
  text-align: right;
  overflow-wrap: anywhere;
}

.tips-copy {
  margin-top: 0;
}

.tips-copy strong {
  display: block;
  margin-bottom: 5px;
  color: #7ee787;
  font-weight: 700;
}

.tips-copy p {
  color: rgba(232, 232, 232, 0.82);
}

.tui-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(142, 142, 147, 0.18);
}

.tui-tabs button {
  flex: 0 0 auto;
  min-height: 26px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(205, 205, 205, 0.68);
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.tui-tabs button.active {
  background: #252527;
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 1px 2px rgba(0, 0, 0, 0.32);
}

#tui-page-label {
  flex: 0 0 auto;
  margin-left: auto;
  color: rgba(205, 205, 205, 0.58);
  font-size: 12px;
}

.tui-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 120px;
  padding-top: 9px;
  color: #eeeeee;
  font-size: 12px;
  line-height: 1.34;
}

.tui-content::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: rgba(244, 244, 244, 0.9);
  animation: terminal-caret 1.05s steps(1, end) infinite;
}

.tui-content p {
  margin: 0;
  overflow-wrap: anywhere;
}

.tui-muted {
  color: rgba(205, 205, 205, 0.58);
}

.tui-command {
  color: #7ee787;
  font-weight: 700;
}

.tui-skill-desc {
  max-width: 100%;
  padding-left: 18px;
  color: #7ee787;
  overflow-wrap: anywhere;
}

.tui-list {
  display: grid;
  gap: 2px;
}

.tui-list button {
  width: fit-content;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #e4e4e4;
  padding: 1px 5px;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}

.tui-list button.active {
  background: #252527;
  color: #ffffff;
  font-weight: 700;
}

.tui-footer {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 7px 0 8px;
  overflow: hidden;
  border-top: 1px solid rgba(142, 142, 147, 0.2);
  color: rgba(205, 205, 205, 0.6);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes terminal-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .codex-landing {
    overflow-x: hidden;
  }

  .codex-hero {
    width: 100%;
    overflow-x: hidden;
  }

  .hero-center {
    width: min(360px, calc(100vw - 18px));
  }

  .hero-center p {
    overflow-wrap: anywhere;
  }

  .install-card {
    width: min(330px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .install-commands,
  .install-command {
    min-width: 0;
  }

  .install-command {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .install-command code {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 10px;
  }

  .copy-command {
    min-height: 26px;
    padding: 0 6px;
    font-size: 11px;
  }

  .hack-window {
    width: calc(100vw - 18px);
  }

  .mac-chrome {
    height: 34px;
    grid-template-columns: 70px minmax(0, 1fr) 70px;
  }

  .mac-lights {
    gap: 7px;
    padding-left: 12px;
  }

  .mac-lights span {
    width: 10px;
    height: 10px;
  }

  .mac-title {
    font-size: 11px;
  }

  .mac-title strong::after {
    content: "";
  }

  .tui-shell {
    min-height: 362px;
    padding: 12px 11px 0;
  }

  .tui-status {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 132px;
    padding: 11px;
  }

  .tips-box {
    border-top: 1px solid rgba(142, 142, 147, 0.28);
    border-left: 0;
    padding: 9px 0 0;
  }

  .logged {
    text-align: left;
  }

  .tui-tabs {
    overflow-x: auto;
    padding-top: 10px;
  }

  .tui-tabs button,
  #tui-page-label,
  .tui-status p,
  .tips-copy strong,
  .tui-content,
  .tui-footer {
    font-size: 11px;
  }

  .tui-content {
    min-height: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tui-content::after {
    animation: none;
  }
}

.terminal-showcase {
  position: relative;
  z-index: 4;
  width: min(824px, calc(100vw - 48px));
  margin: 12px auto 0;
}

.terminal-stage {
  display: grid;
  width: 100%;
}

.terminal-stage .hack-window {
  width: 100%;
  margin: 0;
}

.terminal-step {
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: auto 1fr;
  align-self: stretch;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.992);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms ease;
  visibility: hidden;
}

.terminal-step.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.terminal-command-shell {
  min-height: 318px;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 32px 36px 34px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.04), transparent 42%),
    #050505;
  color: #eeeeee;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.terminal-step-label {
  width: fit-content;
  border: 1px solid rgba(126, 231, 135, 0.22);
  border-radius: 999px;
  background: rgba(126, 231, 135, 0.075);
  color: rgba(126, 231, 135, 0.86);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.terminal-command-line,
.terminal-output p {
  margin: 0;
}

.terminal-command-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  color: #f2f2f2;
  font-size: clamp(14px, 2.1vw, 22px);
  line-height: 1.38;
}

.terminal-prompt {
  flex: 0 0 auto;
  color: #7ee787;
}

.terminal-typed {
  position: relative;
  min-width: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.terminal-typed::after {
  content: "";
  display: inline-block;
  width: 0.56em;
  height: 1.14em;
  margin-left: 4px;
  vertical-align: -0.16em;
  background: rgba(244, 244, 244, 0.92);
  animation: terminal-caret 1.05s steps(1, end) infinite;
}

.terminal-output {
  display: grid;
  gap: 4px;
  padding-left: 0;
  color: rgba(218, 218, 218, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.terminal-output p::before {
  content: ">";
  margin-right: 8px;
  color: rgba(126, 231, 135, 0.72);
}

@media (max-width: 640px) {
  .terminal-showcase {
    width: calc(100vw - 18px);
  }

  .terminal-command-shell {
    min-height: 362px;
    gap: 12px;
    padding: 24px 18px 26px;
  }

  .terminal-command-line {
    display: grid;
    gap: 4px;
    font-size: 14px;
  }

  .terminal-prompt,
  .terminal-typed {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-step {
    transition: none;
  }

  .terminal-typed::after {
    animation: none;
  }
}
