:root {
  --asphalt: #070807;
  --fog: #e8efe6;
  --signal: #b6ff3c;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fog);
  background: var(--asphalt);
  -webkit-font-smoothing: antialiased;
}

/* same atmosphere as the desk */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, rgba(182, 255, 60, 0.12), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(20, 40, 30, 0.9), transparent 50%),
    linear-gradient(180deg, #070807 0%, #0c100d 45%, #050605 100%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.wrap {
  width: 100%;
  max-width: 1152px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* left: the desk header, verbatim */
.hero .eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--signal);
}
.hero h1 {
  margin: 0 0 20px;
  max-width: 640px;
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
}
.hero h1 span { display: block; color: var(--signal); }
.hero .lead {
  margin: 0 0 20px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}
.hero .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero .tags i { color: rgba(255,255,255,0.2); font-style: normal; }

/* right: the card — same as desk cards */
.card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 28px 28px 24px;
}
.card .title {
  margin: 0 0 6px;
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
}
.card .sub {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.card .sub strong { color: #fff; font-weight: 500; }

form { display: grid; gap: 16px; }

.field { display: grid; gap: 6px; }
.field label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.field .box { position: relative; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 44px 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: rgba(255,255,255,0.25); }
.field input:focus {
  border-color: rgba(182, 255, 60, 0.7);
  box-shadow: 0 0 0 3px rgba(182, 255, 60, 0.15);
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #050605 inset;
  transition: background-color 9999s ease-out;
}
.field small { font-size: 12px; color: var(--faint); }

.eye {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  display: grid; place-items: center;
}
.eye:hover { color: #fff; }
.eye[aria-pressed="true"] { color: var(--signal); }
.eye svg { width: 18px; height: 18px; }

/* strength: same accent chips as onScreen words */
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.meter i { height: 3px; background: rgba(255,255,255,0.1); transition: background .2s; }
.meter[data-score="1"] i:nth-child(-n+1) { background: #ff6b6b; }
.meter[data-score="2"] i:nth-child(-n+2) { background: #ffb347; }
.meter[data-score="3"] i:nth-child(-n+3) { background: rgba(182,255,60,0.7); }
.meter[data-score="4"] i:nth-child(-n+4) { background: var(--signal); }
.meter-hint { margin: 6px 0 0; font-size: 12px; color: var(--faint); min-height: 16px; }

/* button: same as active tab */
button.primary {
  margin-top: 4px;
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #000;
  background: var(--signal);
  border: 0;
  border-radius: 0;
  padding: 12px 16px;
  cursor: pointer;
  transition: filter .15s, transform .1s;
}
button.primary:hover { filter: brightness(1.05); }
button.primary:active { transform: translateY(1px); }
button.primary[disabled] { cursor: progress; opacity: 0.7; }
button.primary .spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #000;
  animation: spin .8s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}
button.primary[disabled] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.error, .success {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  border-left: 2px solid;
}
.error   { color: #ffc9c9; border-color: rgba(255,90,90,0.9); background: rgba(255,60,60,0.06); }
.success { color: #e6ffc2; border-color: var(--signal); background: rgba(182,255,60,0.06); }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}
.foot a { color: var(--signal); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .chip {
  padding: 4px 8px;
  border: 1px solid rgba(182,255,60,0.5);
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--signal);
}

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; gap: 28px; max-width: 560px; }
  .hero .lead { font-size: 15px; }
}
@media (max-width: 480px) {
  .shell { padding: 28px 14px; }
  .card { padding: 22px 18px 18px; }
}
