/* SIslopcore.ai - HUD stylesheet. Palette lifted from the reel: near-black,
   bone white, the pink-red tick accent. Mono everywhere, display font only
   for the title. */

:root {
  --bg: #07090c;
  --ink: #f3f5f7;
  --ink-2: rgba(243, 245, 247, 0.62);
  --ink-3: rgba(243, 245, 247, 0.34);
  --line: rgba(243, 245, 247, 0.18);
  --acc: #ff5c6c;
  --acc-2: #ff8d99;
  --acc-dim: rgba(255, 92, 108, 0.35);
  --panel: rgba(7, 9, 12, 0.62);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: 'Michroma', var(--mono);
  --gut: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--mono); font-weight: 300; font-size: 13px; letter-spacing: 0.02em; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
::selection { background: var(--acc); color: var(--bg); }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.bg-grade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(7,9,12,0.15) 0%, rgba(7,9,12,0.72) 70%, rgba(7,9,12,0.92) 100%); }
.bg-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; pointer-events: none; opacity: 0.6; }
body[data-view]:not([data-view="home"]) .bg-grade { background: radial-gradient(120% 90% at 50% 40%, rgba(7,9,12,0.55) 0%, rgba(7,9,12,0.88) 70%, rgba(7,9,12,0.96) 100%); }

/* ---------- HUD frame ---------- */
.hud-frame { position: fixed; inset: 0; z-index: 2; pointer-events: none; color: var(--ink-3); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.corner { position: absolute; width: 18px; height: 18px; border: 1px solid var(--ink-3); }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.ruler-right { position: absolute; right: 44px; top: 18vh; height: 64vh; width: 1px; background: var(--ink-3); }
.ruler-right .ticks { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, var(--ink-3) 0 1px, transparent 1px 8%); width: 6px; left: -6px; }
.ruler-right .readout { position: absolute; right: 14px; top: 42%; text-align: right; color: var(--ink); }
.ruler-right .readout b { display: block; font-size: 22px; font-weight: 600; letter-spacing: 0; }
.ruler-right .readout i { font-style: normal; color: var(--ink-3); }
.ruler-right .readout::after { content: ''; position: absolute; right: -14px; top: 50%; width: 0; height: 0; border: 4px solid transparent; border-left-color: var(--acc); }
.ruler-bottom { position: absolute; left: 44px; right: 44px; bottom: 34px; height: 1px; background: var(--acc-dim); }
.ruler-bottom .ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--acc-dim) 0 1px, transparent 1px 5%); height: 5px; top: -5px; }
.coords { position: absolute; left: 44px; bottom: 56px; color: var(--ink-2); }
.cursor { animation: blink 1s steps(1) infinite; color: var(--ink); }
.bar-id { position: absolute; right: 44px; bottom: 56px; color: var(--ink-2); }
.bar-id .dots { color: var(--acc); letter-spacing: 0.05em; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 700px) { .ruler-right, .coords, .bar-id { display: none; } .ruler-bottom { left: 16px; right: 16px; } }

/* ---------- header / nav ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gut); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--disp); font-size: 12px; letter-spacing: 0.12em; }
.brand-mark { color: var(--acc); }
.brand-tick { font-family: var(--mono); color: var(--ink-3); font-size: 10px; letter-spacing: 0.18em; margin-left: 6px; }
.nav { display: flex; gap: clamp(8px, 2vw, 28px); }
.nav-item { position: relative; padding: 8px 6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); transition: color .2s; white-space: nowrap; }
.nav-item:hover, .nav-item.on { color: var(--ink); }
.nav-item.on { color: var(--acc-2); }
.nav-item .bk { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .18s; }
.nav-item .bk::before, .nav-item .bk::after { content: ''; position: absolute; width: 7px; height: 7px; border: 1px solid var(--acc); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.nav-item .bk::before { top: 0; left: 0; border-right: 0; border-bottom: 0; transform: translate(6px, 6px); }
.nav-item .bk::after { bottom: 0; right: 0; border-left: 0; border-top: 0; transform: translate(-6px, -6px); }
.nav-item:hover .bk, .nav-item.on .bk { opacity: 1; }
.nav-item:hover .bk::before, .nav-item:hover .bk::after, .nav-item.on .bk::before, .nav-item.on .bk::after { transform: translate(0, 0); }

/* robot-vision callout */
.callout { position: fixed; inset: 0; pointer-events: none; z-index: 9; opacity: 0; transition: opacity .15s; }
.callout.show { opacity: 1; }
.callout-line { position: absolute; inset: 0; overflow: visible; }
.callout-line polyline { fill: none; stroke: var(--acc); stroke-width: 1; stroke-dasharray: 600; stroke-dashoffset: 600; }
.callout.show polyline { animation: draw .35s cubic-bezier(.2,.8,.2,1) forwards; }
.callout-line circle { fill: var(--acc); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.callout-box { position: absolute; width: min(340px, calc(100vw - 32px)); padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); transform: translateY(-4px); transition: transform .25s; }
.callout.show .callout-box { transform: translateY(0); }
.callout-box::before, .callout-box::after { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid var(--acc); }
.callout-box::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.callout-box::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.callout-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.16em; color: var(--acc-2); margin-bottom: 8px; }
.callout-head span:last-child { color: var(--ink); }
.callout-box p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 12px; }

/* ---------- views ---------- */
.views { position: relative; z-index: 3; min-height: 100vh; padding: 96px var(--gut) 90px; }
.view { display: none; }
body[data-view="home"] .view-home, body[data-view="generator"] .view-generator, body[data-view="story"] .view-story, body[data-view="reels"] .view-reels, body[data-view="mcp"] .view-mcp { display: block; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* HOME */
.hero { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr); gap: clamp(16px, 4vw, 56px); align-items: center; min-height: min(calc(100vh - 200px), 760px); }
.hero-face { position: relative; aspect-ratio: 1; max-height: 70vh; width: 100%; }
#faceCanvas { width: 100%; height: 100%; display: block; }
.reticle { position: absolute; inset: 8%; pointer-events: none; }
.reticle .r { position: absolute; width: 22px; height: 22px; border: 1px solid var(--acc); opacity: .9; }
.reticle .r.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.reticle .r.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.reticle .r.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.reticle .r.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.reticle .tag { position: absolute; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding-left: 44px; }
.reticle .tag i { position: absolute; left: 0; top: 7px; width: 36px; height: 1px; background: var(--acc); }
.reticle .tag i::before { content: ''; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; background: var(--acc); }
.reticle .tag b { display: block; color: var(--ink); }
.reticle .tag small { font-size: 9px; color: var(--ink-3); }
.reticle .tag-1 { top: 10%; right: -4%; }
.reticle .tag-2 { top: 50%; right: -10%; }
.reticle .tag-3 { bottom: 8%; left: 4%; }
@media (max-width: 900px) { .reticle .tag-1, .reticle .tag-2 { right: 0; } .reticle .tag-2 { top: 60%; } }

.hero-copy { max-width: 620px; }
.eyebrow { font-size: 10px; letter-spacing: 0.22em; color: var(--acc-2); text-transform: uppercase; margin-bottom: 14px; }
.title { font-family: var(--disp); font-size: clamp(30px, 6vw, 72px); line-height: 1; margin: 0 0 18px; letter-spacing: 0.02em; font-weight: 400; }
.title span { color: var(--acc); }
.lede { font-size: clamp(13px, 1.4vw, 16px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin: 0 0 26px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 22px; }
.stat i, .ca i, .field i, .pay i { display: block; font-style: normal; font-size: 9px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 4px; }
.stat b { font-size: 15px; letter-spacing: 0.06em; }
.ca { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 24px; }
.ca i { margin: 0; }
.ca code { font-family: var(--mono); color: var(--ink-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-mini { background: none; border: 1px solid var(--line); color: var(--ink-2); font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; padding: 6px 10px; cursor: pointer; }
.btn-mini:hover { border-color: var(--acc); color: var(--acc-2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; position: relative; padding: 13px 22px; border: 1px solid var(--acc); background: var(--acc); color: var(--bg); font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--acc-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc-2); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; height: 28px; overflow: hidden; border-top: 1px solid var(--line); background: rgba(7,9,12,0.8); backdrop-filter: blur(8px); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.ticker-track { display: inline-flex; gap: 48px; white-space: nowrap; line-height: 28px; padding-left: 100vw; animation: tick 40s linear infinite; }
.ticker-track span b { color: var(--acc-2); }
@keyframes tick { to { transform: translateX(-100%); } }

/* PANELS */
.panel { max-width: 1180px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); padding: clamp(16px, 3vw, 36px); position: relative; }
.panel::before, .panel::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--acc); }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.panel-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.panel-head h2 { font-family: var(--disp); font-size: clamp(14px, 2vw, 20px); letter-spacing: 0.1em; margin: 0; font-weight: 400; }
.code { font-size: 10px; letter-spacing: 0.2em; color: var(--acc-2); text-transform: uppercase; }
.mode { margin-left: auto; font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; }
.hint { font-size: 11px; line-height: 1.6; color: var(--ink-3); }
.hint b { color: var(--ink-2); }
.hint a { color: var(--acc-2); }

/* GENERATOR */
.gen { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 28px; }
.gen-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: block; }
.field textarea, .field select, .field input { width: 100%; background: rgba(0,0,0,0.35); border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: 12px; padding: 10px 12px; outline: none; resize: vertical; }
.field textarea:focus, .field select:focus { border-color: var(--acc); }
.field select { appearance: none; text-transform: uppercase; letter-spacing: 0.1em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; border: 1px solid var(--line); }
.seg button { flex: 1; background: none; border: 0; color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; padding: 10px 6px; cursor: pointer; }
.seg button.on { background: var(--acc); color: var(--bg); font-weight: 600; }
.pay { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; border: 1px dashed var(--line); }
.pay b { font-size: 12px; }
.gen-out { min-height: 360px; border: 1px solid var(--line); background: rgba(0,0,0,0.3); position: relative; display: grid; place-items: center; overflow: hidden; }
.gen-idle { text-align: center; color: var(--ink-3); }
.gen-idle p { margin: 8px 0 0; }
.gen-job { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.gen-status { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.gen-status b { color: var(--acc-2); }
.gen-status b.done { color: #8df0b0; }
.gen-media { position: relative; display: grid; place-items: center; min-height: 280px; }
.gen-media img, .gen-media video { max-width: 100%; max-height: 60vh; display: block; }
.gen-media .scanning { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--acc-dim) 50%, transparent 100%); background-size: 100% 40%; animation: scan 1.4s linear infinite; }
@keyframes scan { from { background-position: 0 -40%; } to { background-position: 0 140%; } }
.gen-note { padding: 10px 14px; font-size: 10px; color: var(--ink-3); border-top: 1px solid var(--line); letter-spacing: 0.06em; }

/* STORY */
.story { max-width: 820px; }
.bar { position: relative; padding: 28px 0 28px 110px; border-bottom: 1px solid var(--line); }
.bar:last-child { border-bottom: 0; }
.bar-mark { position: absolute; left: 0; top: 32px; width: 90px; font-size: 10px; letter-spacing: 0.18em; color: var(--acc-2); text-transform: uppercase; }
.bar-mark i { display: block; font-style: normal; color: var(--ink-3); margin-top: 4px; }
.bar-mark::after { content: ''; position: absolute; left: 0; top: 36px; width: 60px; height: 1px; background: var(--acc-dim); }
.bar h3 { font-family: var(--disp); font-weight: 400; font-size: 15px; letter-spacing: 0.1em; margin: 0 0 14px; }
.bar p { color: var(--ink-2); line-height: 1.75; font-size: 13.5px; margin: 0 0 14px; max-width: 62ch; }
.bar p.end { color: var(--ink); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 640px) { .bar { padding-left: 0; padding-top: 56px; } .bar-mark { top: 20px; } }

/* REELS */
.reels-panel { max-width: 1180px; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.reel { position: relative; aspect-ratio: 9/16; background: #000; border: 1px solid var(--line); overflow: hidden; cursor: pointer; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.reel:hover video { opacity: 1; }
.reel .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85)); }
.reel .meta b { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.reel .meta span { display: block; font-size: 11px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.reel .origin { position: absolute; top: 10px; left: 10px; font-size: 9px; letter-spacing: 0.2em; padding: 3px 6px; border: 1px solid var(--acc); color: var(--acc-2); background: rgba(7,9,12,0.6); }
.reel .origin.x { border-color: var(--line); color: var(--ink-2); }
.reel .mute { position: absolute; top: 10px; right: 10px; font-size: 9px; letter-spacing: 0.2em; color: var(--ink-3); }
.reel.playing .mute { color: var(--acc-2); }

/* MCP */
.mcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.mcp-grid > * { min-width: 0; }
.mcp h3 { font-size: 10px; letter-spacing: 0.22em; color: var(--acc-2); text-transform: uppercase; margin: 22px 0 10px; font-weight: 400; }
.mcp h3:first-child { margin-top: 0; }
.mcp p { color: var(--ink-2); line-height: 1.7; margin: 0 0 10px; }
.mcp pre { margin: 0; padding: 14px; background: rgba(0,0,0,0.4); border: 1px solid var(--line); overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-size: 11.5px; line-height: 1.6; color: var(--ink); }
.tools { display: flex; flex-direction: column; gap: 8px; }
.tool { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--line); }
.tool b { color: var(--ink); font-size: 12px; }
.tool span { grid-column: 1; color: var(--ink-3); font-size: 11px; }
.tool i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; color: var(--acc-2); font-size: 11px; }
.flow { list-style: none; padding: 0; margin: 0; }
.flow li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.flow li span { color: var(--acc-2); font-size: 10px; letter-spacing: 0.2em; padding-top: 2px; }

/* FOOTER */
.foot { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0 var(--gut) 44px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.foot a { color: var(--ink-2); }
.foot .mute { margin-left: auto; }
body[data-view="home"] .foot { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-face { max-height: 52vh; order: 0; }
  .gen, .mcp-grid { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .top { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px var(--gut); background: linear-gradient(180deg, rgba(7,9,12,0.9), transparent); }
  .nav { width: 100%; justify-content: space-between; gap: 4px; }
  .nav-item { font-size: 9.5px; letter-spacing: 0.08em; padding: 8px 2px; }
  .views { padding-top: 118px; }
  .callout-box { left: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .bg-scan, .cursor { animation: none; }
}
