/* orkestron.dev — portal styles · Soft UI Neumorphic (gray), self-contained, no external deps */
:root {
  /* neumorphic gray surface */
  --bg: #e0e5ec;          /* the single base surface everything is extruded from */
  --bg-soft: #dfe4eb;     /* faint recess tint */
  --panel: #e0e5ec;       /* cards share the base; depth comes from shadow, not fill */
  --line: #cfd6e0;        /* subtle hairline divider */
  --fg: #3a4252;          /* primary slate text */
  --fg-dim: #5c6675;      /* muted */
  --fg-faint: #8b94a4;    /* faint */
  --accent: #5566f0;      /* indigo — used sparingly, mainly the CTA */
  --accent-2: #1f9d76;    /* green — chain / positive */
  --warn: #b5832a;
  /* neumorphic shadow tokens */
  --nm-dark: #b9c2cf;
  --nm-light: #ffffff;
  --sh-out: 7px 7px 15px var(--nm-dark), -7px -7px 15px var(--nm-light);
  --sh-out-sm: 4px 4px 9px var(--nm-dark), -4px -4px 9px var(--nm-light);
  --sh-in: inset 5px 5px 10px var(--nm-dark), inset -5px -5px 10px var(--nm-light);
  --sh-in-sm: inset 3px 3px 6px var(--nm-dark), inset -3px -3px 6px var(--nm-light);
  --radius: 16px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--bg); border: none; border-radius: 6px; padding: 0.12em 0.45em; color: #2f6f57; box-shadow: var(--sh-in-sm); }
pre { background: var(--bg); border: none; border-radius: 12px; padding: 1.1rem 1.2rem; overflow-x: auto; box-shadow: var(--sh-in); }
pre code { background: none; box-shadow: none; padding: 0; color: var(--fg-dim); }

/* layout */
.wrap { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
nav.side {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  background: var(--bg); padding: 1.6rem 1.1rem;
  box-shadow: var(--sh-out);            /* the rail reads as a raised panel */
  z-index: 2;
}
nav.side .brand { font-family: var(--mono); font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; margin-bottom: 0.2rem; color: var(--fg); }
nav.side .brand b { color: var(--accent); }
nav.side .tag { color: var(--fg-faint); font-size: 0.78rem; margin-bottom: 1.4rem; }
nav.side a.navlink {
  display: block; color: var(--fg-dim); padding: 0.42rem 0.7rem; font-size: 0.92rem;
  border: none; border-radius: 10px; margin: 0.12rem 0; transition: box-shadow .15s, color .15s;
}
nav.side a.navlink:hover { color: var(--fg); text-decoration: none; box-shadow: var(--sh-in-sm); }
nav.side .grp { color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; margin: 1.2rem 0 0.4rem; padding: 0 0.7rem; }

main { padding: 0 clamp(1.2rem, 5vw, 5rem); max-width: 1000px; }
section { padding: 3.4rem 0 2.2rem; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: none; }
section > h2 { font-size: 1.7rem; letter-spacing: -0.02em; margin: 0 0 0.2rem; color: var(--fg); }
section > .lede { color: var(--fg-dim); font-size: 1.05rem; margin: 0 0 1.4rem; }
h3 { font-size: 1.1rem; margin: 1.8rem 0 0.5rem; color: var(--fg); }
section > .lede.lede, p.lede { color: var(--fg-dim); }

/* hero */
header.hero { padding: 4.6rem 0 2.4rem; border-bottom: 1px solid var(--line); }
header.hero .surfaces { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.pill {
  font-family: var(--mono); font-size: 0.78rem; padding: 0.4rem 0.9rem; border: none;
  border-radius: 999px; color: var(--fg-dim); background: var(--bg); box-shadow: var(--sh-out-sm);
}
.pill.here { color: var(--accent); font-weight: 600; box-shadow: var(--sh-in-sm); }
header.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.8rem; color: var(--fg); }
header.hero h1 .mono { font-family: var(--mono); color: var(--accent); }
header.hero p.sub { font-size: 1.15rem; color: var(--fg-dim); max-width: 60ch; margin: 0 0 1.6rem; }
.chain { font-family: var(--mono); font-size: 0.95rem; color: var(--accent-2); display: inline-block; padding: 0.55rem 1rem; border-radius: 12px; box-shadow: var(--sh-out-sm); background: var(--bg); }
.chain .arrow { color: var(--fg-faint); margin: 0 0.4rem; }

/* cards / grid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin: 1.4rem 0; }
.card {
  background: var(--bg); border: none; border-radius: var(--radius); padding: 1.2rem 1.3rem;
  box-shadow: var(--sh-out); transition: box-shadow .18s, transform .18s;
}
.card:hover { transform: translateY(-2px); }
.card h4 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--fg); }
.card p { margin: 0; color: var(--fg-dim); font-size: 0.9rem; }
.card .k { font-family: var(--mono); font-size: 0.74rem; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* tables — soft, hairline rows inside a raised frame feel */
table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 1.2rem 0; font-size: 0.92rem; background: var(--bg); border-radius: 12px; box-shadow: var(--sh-out-sm); overflow: hidden; }
th, td { border: none; border-bottom: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { background: transparent; color: var(--fg-dim); font-weight: 600; }

.note { border-left: 3px solid var(--accent); background: var(--bg); padding: 0.9rem 1.1rem; border-radius: 0 12px 12px 0; margin: 1.3rem 0; color: var(--fg-dim); box-shadow: var(--sh-in-sm); }
.note.warn { border-left-color: var(--warn); }
.note b { color: var(--fg); }

ul.clean { list-style: none; padding: 0; }
ul.clean li { padding: 0.32rem 0 0.32rem 1.4rem; position: relative; color: var(--fg-dim); }
ul.clean li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

footer { padding: 3rem 0 4rem; color: var(--fg-faint); font-size: 0.85rem; }
footer a { color: var(--fg-dim); }

/* ★ Cabinet CTA — top-right, deliberately breaks the monochrome so it stands out */
.cab-cta {
  position: fixed; top: 1.3rem; right: 1.4rem; z-index: 100;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
  color: #fff; background: linear-gradient(135deg, #6577ff 0%, #4a5be6 100%);
  padding: 0.72rem 1.25rem; border-radius: 14px; text-decoration: none;
  box-shadow: 6px 6px 14px var(--nm-dark), -6px -6px 14px var(--nm-light), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cab-cta:hover { text-decoration: none; transform: translateY(-2px); filter: saturate(1.08) brightness(1.04);
  box-shadow: 8px 8px 18px var(--nm-dark), -8px -8px 18px var(--nm-light), inset 0 1px 0 rgba(255,255,255,.4); }
.cab-cta:active { transform: translateY(0);
  box-shadow: inset 4px 4px 9px #3344b0, inset -4px -4px 9px #6b7dff; }
.cab-cta .arrow { font-size: 1.05em; line-height: 1; }
.cab-cta .star { color: #ffe27a; }

@media (max-width: 820px) {
  .wrap { grid-template-columns: 1fr; }
  nav.side { position: static; height: auto; box-shadow: var(--sh-out-sm); padding: 1.2rem 1.1rem; }
  main { padding-top: 4.2rem; }                 /* room under the fixed CTA */
  .cab-cta { top: 0.8rem; right: 0.8rem; padding: 0.6rem 1rem; font-size: 0.85rem; }
}
