/* unity-loop · islo.dev-aligned theme
 * Palette + typography pulled from islo-landing-page/src/index.css:
 *   --color-islo-400 #8b5cf6 (violet accent), --color-islo-300 #a78bfa
 *   --color-navy-{50..950} (slate scale for neutrals)
 *   --font-body Inter, --font-mono/display JetBrains Mono
 *   Body bg #0a0a0a, card #111, card border rgba(255,255,255,0.1)
 *   CTA button: white bg, #0a0a0a text
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --panel: #111;
  --panel-2: #161616;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --ink: #ffffff;
  --ink-dim: #94a3b8;
  --ink-dimmer: #64748b;
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-deep: #7c3aed;
  --cyan: #00d8ff;
  --good: #10b981;
  --warn: #f59e0b;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2);
    text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); text-decoration-color: var(--accent-bright); }

code, pre, .mono, .hud, .brand, header .lead { font-family: var(--font-mono); }
pre {
  background: #0d0d0d;
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.65;
}
code { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 3px; font-size: 0.88em; }
pre code { background: transparent; padding: 0; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .lead {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
header .lead::before {
  content: "■ ";
  color: var(--accent);
}
header .sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
  font-weight: 400;
}
header .sub b { color: var(--ink); font-weight: 600; }
header nav { display: flex; gap: 22px; font-size: 13px; font-family: var(--font-mono);
             letter-spacing: 0; text-transform: none; }
header nav a { text-decoration: none; color: var(--ink-dim); }
header nav a:hover { color: var(--ink); }

/* Hero movie */
.movie {
  padding: 36px 36px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.movie-frame {
  width: min(680px, 90vw);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.movie-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.movie-caption {
  font-size: 11px;
  color: var(--ink-dimmer);
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}

/* Stage (live demo iframe + readout) */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 20px 36px 36px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}
.stage .frame {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
}
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }

.readout { display: flex; flex-direction: column; gap: 12px; }
.metric {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 8px;
}
.metric .label {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.metric .value { font-family: var(--font-mono); font-size: 38px; font-weight: 700;
                 color: var(--accent-bright); line-height: 1.1; margin-top: 4px; }
.metric .value-sm { font-family: var(--font-mono); font-size: 13px; color: var(--ink);
                    margin-top: 4px; word-break: break-all; }
.metric .mono { font-family: var(--font-mono); }

.bars { display: flex; gap: 4px; margin-top: 10px; align-items: flex-end; height: 60px; }
.bars .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-deep));
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.4s;
  position: relative;
}
.bars .bar::after {
  content: attr(data-score);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--ink-dimmer);
}

/* Buttons (islo-style: white inverted) */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: #e5e5e5; color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--accent-bright); }

/* Explain */
.explain {
  padding: 36px;
  max-width: 880px;
  margin: 0 auto;
}
.explain h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 36px 0 12px;
}
.explain p { font-size: 15px; color: var(--ink); }
.explain p.dim { color: var(--ink-dim); }
.explain ul { font-size: 15px; padding-left: 22px; }
.explain ul li { margin-bottom: 6px; }

footer {
  padding: 24px 36px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-dimmer);
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  header { padding: 14px 18px; }
  .stage, .explain, .movie { padding-left: 18px; padding-right: 18px; }
}
