:root {
  --bg: #0f0e13;
  --panel: #18171f;
  --line: #2a2833;
  --ink: #ece9f2;
  --muted: #a39fae;
  --accent: #f2a65a;
  --accent-ink: #1b1206;
  --cue: #59d18c;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5rem; }
kbd { font: 600 .8em var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; }

.hero, main > section, footer { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero { padding-top: 88px; padding-bottom: 56px; }
.eyebrow { color: var(--accent); font: 600 .8rem var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.02em; max-width: 14ch; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }

.btn { display: inline-block; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: .7rem 1.1rem; border-radius: 10px; font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { padding: .45rem .75rem; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

main > section { padding-top: 56px; padding-bottom: 24px; }
.section-head p { color: var(--muted); max-width: 70ch; margin-top: 0; }
.section-head h2 { font-size: 1.8rem; }

/* ---------- demo rig ---------- */
.rig { display: grid; grid-template-columns: 340px 1fr; gap: 20px; margin-top: 1.25rem; }
.operator { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.op-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; }
.op-tabs button { background: none; border: 0; color: var(--muted); font: 600 .8rem var(--sans); padding: .5rem .2rem; border-radius: 7px; cursor: pointer; }
.op-tabs button[aria-selected="true"] { background: var(--line); color: var(--ink); }
.cue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cue-list button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: baseline; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: .55rem .7rem; font: .88rem var(--sans); cursor: pointer; }
.cue-list .num { font: 600 .75rem var(--mono); color: var(--muted); min-width: 1.2em; }
.cue-list li.done button { opacity: .45; }
.cue-list li.next button { border-color: var(--cue); box-shadow: 0 0 0 1px var(--cue) inset; }
.cue-list li.next .num { color: var(--cue); }
.op-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.go { flex: 1 1 100%; background: var(--cue); color: #04210f; border: 0; border-radius: 12px; padding: .9rem; font: 800 1.1rem var(--sans); letter-spacing: .04em; cursor: pointer; }
.go:disabled { background: var(--line); color: var(--muted); cursor: default; }
.op-note { color: var(--muted); font-size: .8rem; margin: 0; }

.stage-wrap { position: relative; }
.stage { position: relative; height: 560px; border-radius: 14px; overflow: hidden; background: #050507; border: 1px solid var(--line); display: grid; place-items: center; }
.stage > .screen { width: 100%; height: 100%; display: grid; place-items: center; }
.prop-tag { position: absolute; right: 12px; bottom: 8px; margin: 0; font: 600 .65rem var(--mono); letter-spacing: .12em; color: rgba(255,255,255,.45); pointer-events: none; }

/* fullscreen pop-out */
body[data-mode="view"] { background: #000; overflow: hidden; }
.stage.fullscreen { position: fixed; inset: 0; height: auto; border: 0; border-radius: 0; }
.view-hint { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; color: var(--muted); font-size: .85rem; background: var(--panel); padding: .5rem .9rem; border-radius: 8px; }

/* ---------- phone ---------- */
.phone { position: relative; width: 290px; height: 520px; max-height: 94%; border-radius: 36px; background: #fbfaf7; color: #1c1b22; border: 10px solid #1d1c22; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.stage.fullscreen .phone { transform: scale(1.4); }
.phone-status { display: flex; justify-content: space-between; padding: 8px 18px 4px; font: 600 .75rem var(--sans); }
.phone-status .bars { letter-spacing: -.05em; font-size: .6rem; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 8px 14px 10px; border-bottom: 1px solid #ece8e0; }
.chat-head small { display: block; color: #7a7684; font-size: .7rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #e9a46b; color: #fff; display: grid; place-items: center; font-weight: 700; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.msg { display: flex; }
.msg span { max-width: 78%; padding: .5rem .75rem; border-radius: 16px; font-size: .9rem; line-height: 1.3; animation: pop .18s ease-out; }
.msg.in span { background: #ece8e0; border-bottom-left-radius: 5px; }
.msg.out { justify-content: flex-end; }
.msg.out span { background: #2f7d6d; color: #fff; border-bottom-right-radius: 5px; }
.receipt { align-self: flex-end; font-size: .65rem; color: #7a7684; margin-top: -2px; }
.typing span { display: inline-flex; gap: 4px; padding: .7rem .8rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8f8a99; animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.chat-input { margin: 8px 12px 14px; border: 1px solid #ddd8ce; border-radius: 18px; padding: .45rem .8rem; color: #a19dab; font-size: .85rem; }
.banner span { grid-column: 1 / -1; color: #dcd8e4; }
.banner { position: absolute; top: 30px; left: 8px; right: 8px; z-index: 2; background: rgba(40,38,48,.98); color: #fff; border-radius: 16px; padding: .6rem .8rem; display: grid; grid-template-columns: 1fr auto; font-size: .82rem; animation: drop .3s ease-out; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.banner small { color: #a9a4b4; }
.call { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, #2c3a4a, #12161d); color: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 90px; gap: 4px; animation: fade .25s ease-out; }
.call small { color: #b9c4d0; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.call b { font-size: 1.9rem; font-weight: 500; }
.call span { color: #b9c4d0; }
.call-btns { margin-top: auto; margin-bottom: 60px; display: flex; gap: 90px; }
.call-btns i { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.4rem; }
.call-btns .decline { background: #d9534f; }
.call-btns .accept { background: #3fb36c; animation: ring 1s infinite; }

/* ---------- job site ---------- */
.web { width: min(860px, 94%); height: 92%; background: #fff; color: #23222b; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.browser { display: flex; align-items: center; gap: 6px; background: #e9e7ee; padding: 8px 12px; }
.browser i { width: 10px; height: 10px; border-radius: 50%; background: #c9c5d2; }
.browser .url { margin-left: 10px; flex: 1; background: #fff; border-radius: 6px; padding: 3px 10px; font: .75rem var(--mono); color: #6b6876; }
.site-nav { display: flex; align-items: center; gap: 24px; padding: 12px 24px; border-bottom: 1px solid #ecebf0; }
.logo { font-size: 1.3rem; letter-spacing: -.03em; color: #3b2a8f; }
.logo span { color: #e0745b; }
.site-nav nav { display: flex; gap: 18px; font-size: .88rem; color: #6b6876; flex: 1; }
.site-nav nav .on { color: #3b2a8f; font-weight: 600; }
.inbox { position: relative; }
.inbox em { position: absolute; top: -8px; right: -14px; background: #e0745b; color: #fff; font: 700 .65rem var(--sans); border-radius: 9px; padding: 1px 6px; animation: pop .25s ease-out; }
.me { width: 30px; height: 30px; border-radius: 50%; background: #3b2a8f; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.site-body { padding: 20px 24px; overflow-y: auto; }
.job-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; border: 1px solid #ecebf0; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.job-card small { display: block; color: #7a7785; font-size: .8rem; }
.job-card.dim { opacity: .6; }
.co { width: 44px; height: 44px; border-radius: 9px; background: #1f6f5c; color: #fff; display: grid; place-items: center; font-weight: 700; }
.co.alt { background: #8a6bbf; }
.pill { font: 600 .75rem var(--sans); padding: .3rem .65rem; border-radius: 99px; background: #eef0f6; color: #4c5370; white-space: nowrap; }
.pill.review { background: #fff3d6; color: #8a5a00; }
.pill.closed { background: #f4e6e6; color: #8f3434; }
.pill.offer { background: #dff4e8; color: #1d6b42; }
.letter { margin-top: 16px; border-left: 3px solid #8f3434; background: #faf8fb; padding: 14px 18px; border-radius: 6px; font-size: .9rem; animation: fade .3s ease-out; }
.letter.good { border-color: #1d6b42; }
.letter p { margin: .4rem 0; }
.letter .sig { color: #7a7785; font-size: .82rem; }

/* ---------- terminal ---------- */
.term { width: 94%; height: 92%; background: #030805; border: 1px solid #12301d; border-radius: 8px; padding: 18px 20px; color: #6ff59a; font: 1rem/1.5 var(--mono); position: relative; overflow: hidden; text-shadow: 0 0 6px rgba(111,245,154,.45); }
.term pre { margin: 0; white-space: pre-wrap; font: inherit; }
.caret { animation: blink 1s steps(1) infinite; }
.bar { margin-top: 6px; }
.verdict { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(1.8rem, 5vw, 3.4rem) var(--mono); letter-spacing: .12em; animation: flash .9s steps(2) 3; }
.verdict.denied { color: #ff5a5a; background: rgba(60,0,0,.55); text-shadow: 0 0 14px rgba(255,90,90,.7); }
.verdict.granted { color: #6ff59a; background: rgba(0,40,15,.55); }

/* ---------- projection ---------- */
.proj-canvas { width: 100%; height: 100%; display: block; }

/* ---------- content sections ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.grid p, .safe li, .steps li, .about p { color: var(--muted); }
.grid h3 { font-size: 1.05rem; }
.safe ul, .steps { padding-left: 1.2rem; display: grid; gap: .6rem; max-width: 75ch; }
.safe b, .steps b { color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
td:last-child { white-space: nowrap; color: var(--accent); font-weight: 600; }
.fine { color: var(--muted); font-size: .85rem; }
.about p { max-width: 70ch; }
footer { padding-top: 48px; padding-bottom: 48px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); margin-top: 48px; }

@keyframes pop { from { transform: scale(.9); opacity: 0; } }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ring { 50% { transform: scale(1.08); } }
@keyframes flash { 50% { opacity: .2; } }

@media (max-width: 900px) {
  .rig { grid-template-columns: 1fr; }
  .stage { height: 520px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .site-nav nav span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
