:root {
  --ink: #040814;
  --panel: rgba(9, 17, 35, .86);
  --panel-strong: #0a1327;
  --line: rgba(133, 175, 221, .16);
  --line-bright: rgba(61, 225, 255, .34);
  --text: #eef8ff;
  --muted: #91a5bc;
  --cyan: #43e4ff;
  --cyan-soft: #b8f7ff;
  --violet: #8c78ff;
  --amber: #ffbf5b;
  --red: #ff7888;
  --green: #73f6be;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(67, 228, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 228, 255, .025) 1px, transparent 1px),
    radial-gradient(circle at 50% -18%, #14284c 0, var(--ink) 43%);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: "Aptos", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
}
.site-header > *, .execution-shell, .workspace, .workspace > *, .panel-heading > *, .scenario { min-width: 0; }

button, textarea { font: inherit; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.ambient { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(100px); opacity: .15; }
.ambient-a { width: 440px; height: 440px; background: var(--cyan); left: -260px; top: 30%; }
.ambient-b { width: 500px; height: 500px; background: var(--violet); right: -340px; top: 10%; }

.site-header {
  height: 78px;
  padding: 0 clamp(22px, 4vw, 68px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 20, .7);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 850; letter-spacing: .19em; }
.brand-mark { display: flex; gap: 3px; align-items: end; height: 24px; }
.brand-mark i { display: block; width: 4px; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); transform: skew(-13deg); }
.brand-mark i:nth-child(1) { height: 13px; }.brand-mark i:nth-child(2) { height: 24px; }.brand-mark i:nth-child(3) { height: 18px; }
.header-center { text-align: center; font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.header-center strong { display: block; margin-top: 4px; color: #dcecff; font-size: 11px; }
.eyebrow { color: var(--cyan); }
.safety-chip { justify-self: end; display: flex; gap: 8px; align-items: center; font-size: 10px; letter-spacing: .13em; color: var(--cyan-soft); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(115, 246, 190, .08); }

main { width: min(1480px, calc(100% - 42px)); margin: 0 auto; }
.hero { padding: 72px 0 46px; text-align: center; animation: reveal .65s ease-out both; }
.kicker { color: var(--muted); font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.kicker span { color: var(--cyan); margin-right: 10px; }
h1 { margin: 18px 0; font-size: clamp(42px, 6vw, 82px); line-height: .98; letter-spacing: -.052em; font-weight: 760; }
h1 em { color: var(--cyan); font-style: normal; text-shadow: 0 0 38px rgba(67, 228, 255, .2); }
.hero-copy { margin: 0 auto; max-width: 690px; color: var(--muted); font-size: clamp(15px, 2vw, 19px); }

.scenario-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 980px; margin: 0 auto 24px; }
.scenario { border: 1px solid var(--line); background: rgba(8, 15, 31, .65); color: var(--muted); padding: 13px 15px; border-radius: 14px; display: flex; gap: 12px; text-align: left; cursor: pointer; transition: .2s ease; }
.scenario:hover:not(:disabled), .scenario.active { color: var(--text); border-color: var(--line-bright); background: rgba(14, 30, 53, .88); transform: translateY(-2px); }
.scenario b { color: var(--cyan); font-family: Consolas, monospace; }
.scenario span, .scenario strong, .scenario small { display: block; }.scenario small { margin-top: 3px; color: var(--muted); }
.scenario:disabled { opacity: .55; cursor: not-allowed; }

.execution-shell { overflow: hidden; border: 1px solid var(--line-bright); border-radius: 28px; background: rgba(5, 10, 24, .83); box-shadow: 0 32px 90px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.04); animation: reveal .7s .12s ease-out both; }
.shell-rail { min-height: 68px; padding: 0 28px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background: rgba(12, 22, 42, .7); }
.rail-step { display: flex; align-items: center; gap: 8px; color: #6e829b; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: .25s ease; }
.rail-step span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-family: Consolas, monospace; }
.rail-step.current { color: var(--amber); }.rail-step.complete { color: var(--cyan); }
.rail-step.current span { border-color: var(--amber); box-shadow: 0 0 16px rgba(255,191,91,.15); }.rail-step.complete span { border-color: var(--cyan); }
.rail-line { width: clamp(25px, 5vw, 90px); height: 1px; margin: 0 11px; background: var(--line); }
.workspace { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 650px; }
.orqetra-panel, .sandbox-panel { padding: clamp(24px, 3vw, 42px); }
.orqetra-panel { border-right: 1px solid var(--line); }
.sandbox-panel { background: linear-gradient(145deg, rgba(14, 27, 48, .68), rgba(7, 13, 29, .82)); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.panel-index { color: var(--cyan); font: 700 10px/1 Consolas, monospace; letter-spacing: .16em; }
.panel-heading h2 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.025em; }
.state-label, .sandbox-badge { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font: 700 9px/1 Consolas, monospace; letter-spacing: .12em; }
.state-ready, .sandbox-badge { color: var(--cyan-soft); }.state-working { color: var(--amber); border-color: rgba(255,191,91,.45); }.state-blocked { color: var(--red); border-color: rgba(255,120,136,.45); }.state-verified { color: var(--green); border-color: rgba(115,246,190,.45); }

.intent-form label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.intent-form textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: rgba(1, 7, 18, .75); color: var(--text); padding: 16px; line-height: 1.55; transition: border-color .2s; }
.intent-form textarea:focus { border-color: var(--cyan); }
.input-meta { display: flex; justify-content: space-between; margin: 8px 1px 15px; color: #657991; font: 10px/1.2 Consolas, monospace; }
.primary-button, .approval-button, .reuse-button { border: 0; border-radius: 12px; cursor: pointer; font-weight: 780; transition: transform .18s, filter .18s; }
.primary-button { width: 100%; padding: 14px 16px; display: flex; justify-content: space-between; color: #021017; background: linear-gradient(100deg, var(--cyan), #9ef2ff); box-shadow: 0 12px 34px rgba(67,228,255,.13); }
.primary-button:hover, .approval-button:hover, .reuse-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }
.proposal-region { margin-top: 25px; min-height: 225px; }
.empty-state { padding: 40px 24px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); }
.empty-glyph { display: block; color: var(--cyan); font-size: 30px; }.empty-state h3 { margin: 12px 0 6px; color: #d8e8f5; font-size: 16px; }.empty-state p { margin: 0; font-size: 13px; }

.proposal-card, .blocked-card, .failed-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(12, 23, 44, .72); animation: card-in .3s ease-out both; }
.proposal-card header, .blocked-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.proposal-card header span, .blocked-card header span { color: var(--cyan); font: 700 10px Consolas, monospace; letter-spacing: .12em; }
.proposal-card h3, .blocked-card h3 { margin: 9px 0 13px; font-size: 18px; }.proposal-card blockquote { margin: 0; padding: 15px; border-left: 2px solid var(--violet); background: rgba(4,9,21,.6); color: #dce9f2; line-height: 1.55; font-size: 14px; }
.commitment-list { display: grid; gap: 8px; margin: 15px 0; }
.commitment { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }.commitment i { color: var(--green); font-style: normal; }
.approval-box { margin-top: 17px; padding: 14px; border: 1px solid rgba(255,191,91,.28); border-radius: 12px; background: rgba(255,191,91,.045); }
.approval-box p { margin: 0 0 11px; color: #e6d1ad; font-size: 12px; }.approval-button { width: 100%; padding: 12px; color: #1b1102; background: var(--amber); }
.blocked-card { border-color: rgba(255,120,136,.32); }.blocked-icon { color: var(--red) !important; }.blocked-card p, .failed-card p { color: var(--muted); line-height: 1.55; }.no-action { margin-top: 15px; padding: 11px; border-radius: 10px; color: var(--red); background: rgba(255,120,136,.07); font: 700 11px Consolas, monospace; letter-spacing: .07em; }
.failed-card { border-color: rgba(255,191,91,.25); }.failed-card h3 { color: var(--amber); }

.case-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(3,9,21,.62); }
.case-card header { padding: 17px 18px; border-bottom: 1px solid var(--line); }.case-card header small { color: var(--cyan); font: 10px Consolas, monospace; letter-spacing: .12em; }.case-card header h3 { margin: 7px 0 2px; font-size: 18px; }.case-card header p { margin: 0; color: var(--muted); font-size: 12px; }
.case-body { padding: 18px; }.inquiry { margin: 0 0 18px; color: #dce9f4; line-height: 1.55; font-size: 14px; }.facts { display: grid; gap: 9px; }.fact { padding: 10px 12px; border-radius: 10px; background: rgba(18,34,58,.68); }.fact b { display: block; margin-bottom: 3px; color: var(--cyan-soft); font-size: 10px; letter-spacing: .08em; }.fact span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.sandbox-action { display: flex; gap: 14px; margin-top: 17px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; transition: .25s ease; }.sandbox-action.verified { border-color: rgba(115,246,190,.45); background: rgba(115,246,190,.045); }.sandbox-action.pending { border-color: rgba(255,191,91,.35); }.action-icon { color: var(--cyan); font-size: 20px; }.sandbox-action small { color: var(--muted); font: 9px Consolas, monospace; letter-spacing: .12em; }.sandbox-action strong { display: block; margin: 5px 0; }.sandbox-action p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.draft-readback { margin-top: 13px; max-height: 150px; overflow: auto; padding: 13px; border-radius: 10px; color: #c7d6e2; background: rgba(0,0,0,.2); font-size: 12px; line-height: 1.5; }
.proof-region { margin-top: 18px; }.proof-region h3 { margin: 0 0 12px; color: var(--green); font-size: 15px; }.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.proof-item { padding: 11px; border: 1px solid var(--line); border-radius: 10px; }.proof-item small { color: var(--muted); font: 9px Consolas, monospace; letter-spacing: .08em; }.proof-item strong { display: block; margin-top: 5px; font-size: 11px; line-height: 1.35; }.proof-item:last-child strong { color: var(--green); }
.reuse-button { width: 100%; margin-top: 13px; padding: 12px; color: var(--cyan-soft); background: rgba(67,228,255,.1); border: 1px solid rgba(67,228,255,.3); }
.usage { margin-top: 12px; color: var(--muted); font: 10px Consolas, monospace; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 70px 0; }
.principles article { padding: 24px; border-top: 1px solid var(--line-bright); background: linear-gradient(180deg, rgba(12,24,45,.5), transparent); }.principles span { color: var(--cyan); font: 10px Consolas, monospace; letter-spacing: .15em; }.principles h3 { margin: 11px 0 7px; font-size: 16px; }.principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
footer { padding: 25px clamp(22px,4vw,68px); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #60758e; font: 10px Consolas, monospace; letter-spacing: .05em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .header-center { display: none; }.site-header { grid-template-columns: 1fr auto; }
  .workspace { grid-template-columns: 1fr; }.orqetra-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .shell-rail { overflow-x: auto; justify-content: flex-start; }.rail-step b { display: none; }.rail-line { min-width: 22px; }
  .principles { grid-template-columns: 1fr; }.scenario small { display: none; }
}
@media (max-width: 580px) {
  main { width: min(100% - 22px, 1480px); }.site-header { height: 66px; padding: 0 14px; }.safety-chip { font-size: 8px; }
  .hero { padding-top: 48px; }.scenario-switcher { grid-template-columns: 1fr; }.scenario small { display: block; }
  .orqetra-panel, .sandbox-panel { padding: 20px; }.proof-grid { grid-template-columns: 1fr; }.input-meta span:last-child { display: none; }
  .safety-chip { display: none; }.site-header { grid-template-columns: 1fr; }
  .panel-heading { flex-wrap: wrap; }.state-label, .sandbox-badge { max-width: 100%; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
