/* Ohm documentation. Dark by design, with a light theme for the in-app Help tab. */
:root {
  color-scheme: dark;
  --bg: #090b15;
  --surface: #101321;
  --surface-2: #161a2b;
  --text: #f5f5fb;
  --muted: #b4b8c9;
  --quiet: #858ba2;
  --line: rgba(219, 221, 255, .13);
  --violet: #a48cff;
  --teal: #69e6d5;
  --code-bg: #161a2b;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --sidebar: 260px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f8fc;
  --surface-2: #eef0f8;
  --text: #15172a;
  --muted: #4a4f66;
  --quiet: #6b7185;
  --line: rgba(22, 24, 48, .13);
  --violet: #6742d8;
  --teal: #0f8d80;
  --code-bg: #f1f2f8;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #f7f8fc;
    --surface-2: #eef0f8;
    --text: #15172a;
    --muted: #4a4f66;
    --quiet: #6b7185;
    --line: rgba(22, 24, 48, .13);
    --violet: #6742d8;
    --teal: #0f8d80;
    --code-bg: #f1f2f8;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 860px;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 48% at 77% 18%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 72%),
              radial-gradient(ellipse 42% 44% at 14% 42%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 72%);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--violet); color: #080b14; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 30; padding: 14px 24px 0; }
.nav-shell {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(1400px, 100%); margin-inline: auto; min-height: 62px;
  padding: 10px 14px 10px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand small { font-size: 10px; color: var(--quiet); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-left: 2px; vertical-align: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 650; }
.nav-links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-links a.on { color: var(--text); background: color-mix(in srgb, var(--violet) 18%, transparent); }
.theme-toggle { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 8px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.menu-button { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--text); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }

/* ---------------------------------------------------------------- doc shell */
.shell { position: relative; z-index: 1; display: flex; gap: 28px; width: min(1400px, 100%); margin: 26px auto 0; padding: 0 24px; align-items: flex-start; }
.side {
  position: sticky; top: 92px; width: var(--sidebar); flex: none;
  max-height: calc(100vh - 116px); overflow: auto; padding-bottom: 30px;
}
.side-search input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px;
}
.side-search input::placeholder { color: var(--quiet); }
.nav-group h4 { margin: 20px 0 6px; color: var(--quiet); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.nav-group ul { margin: 0; padding: 0; list-style: none; }
.nav-group li a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.nav-group li a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav-group li a.on { color: var(--text); background: color-mix(in srgb, var(--violet) 20%, transparent); box-shadow: inset 2px 0 0 var(--violet); }
.results { margin-top: 10px; }
.results a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--muted); font-size: 12.5px; }
.results a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.results .where { display: block; color: var(--quiet); font-size: 11px; }
.results mark { background: color-mix(in srgb, var(--teal) 30%, transparent); color: inherit; border-radius: 3px; }
main { flex: 1; min-width: 0; }
article { max-width: 860px; padding-bottom: 90px; }

/* ---------------------------------------------------------------- prose */
article h1 { margin: 6px 0 20px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 780; }
article h2 { margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1.5rem; letter-spacing: -.035em; }
article h3 { margin: 30px 0 10px; font-size: 1.12rem; letter-spacing: -.02em; }
article h4 { margin: 22px 0 8px; font-size: 1rem; }
article p, article li { color: var(--muted); }
article strong { color: var(--text); }
article a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
article a:hover { color: var(--teal); }
article code { padding: 2px 6px; border-radius: 5px; background: var(--code-bg); color: var(--text); font-family: var(--mono); font-size: .86em; }
article pre { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: auto; }
article pre code { padding: 0; background: none; font-size: 12.5px; line-height: 1.6; }
article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
article th, article td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); }
article th { background: var(--surface); color: var(--text); font-weight: 700; }
article tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
article blockquote { margin: 16px 0; padding: 10px 18px; border-left: 3px solid var(--violet); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--violet) 9%, transparent); }
article blockquote p { margin: 0; }
article img { max-width: 100%; height: auto; margin: 6px 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.28); }
article hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
article ul, article ol { padding-left: 22px; }
article li { margin: 4px 0; }
article li::marker { color: var(--quiet); }
.anchor { margin-left: 10px; color: var(--quiet); font-weight: 400; opacity: 0; text-decoration: none; }
h1:hover .anchor, h2:hover .anchor, h3:hover .anchor { opacity: 1; }

/* ---------------------------------------------------------------- landing */
.landing main { position: relative; z-index: 1; }
.landing section { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.hero { text-align: center; padding: 96px 0 68px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: color-mix(in srgb, var(--violet) 80%, var(--text)); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .19em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 13px var(--teal); }
.hero h1 { max-width: 900px; margin: 20px auto; font-size: clamp(3rem, 8vw, 6.4rem); line-height: 1; font-weight: 780; letter-spacing: -.07em; }
.gradient-text { background: linear-gradient(102deg, #e2d9ff 0%, #a78cff 45%, #72e4d7 100%); color: transparent; -webkit-background-clip: text; background-clip: text; }
/* The dark gradient is near-white at one end, so on a light background the heading half
   disappears. Both ways of being in light mode need the darker ramp, not just the toggle. */
:root[data-theme="light"] .gradient-text { background: linear-gradient(102deg, #5b34d4 0%, #7b5bea 45%, #0c7d72 100%); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .gradient-text { background: linear-gradient(102deg, #5b34d4 0%, #7b5bea 45%, #0c7d72 100%); -webkit-background-clip: text; background-clip: text; }
}
.hero-copy { max-width: 620px; margin-inline: auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 720; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #111323; background: linear-gradient(105deg, #d3c3ff, #a9a1ff 58%, #8de6d9); }
.button-secondary { border: 1px solid var(--line); background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
.button-secondary:hover { border-color: color-mix(in srgb, var(--violet) 50%, transparent); }
.hero-note { margin-top: 24px; color: var(--quiet); font-size: 12px; letter-spacing: .03em; }
.section-label { color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.interface-section { padding-bottom: 116px; }
.interface-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.interface-heading h2 { margin: 8px 0 0; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.05em; }
.interface-heading p { margin: 0 0 3px; color: var(--quiet); font-size: 12px; }
.browser-stage { padding: 16px; border: 1px solid color-mix(in srgb, var(--violet) 25%, transparent); border-radius: 26px; background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 12%, transparent), color-mix(in srgb, var(--teal) 5%, transparent) 56%, color-mix(in srgb, var(--violet) 8%, transparent)); }
.browser-window { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 28px 70px rgba(0,0,0,.34); }
.browser-window img { display: block; width: 100%; height: auto; }
.mock-caption { margin-top: 16px; color: var(--quiet); text-align: center; font-size: 12px; }
.features-section { padding-bottom: 120px; }
.section-intro { max-width: 620px; margin-bottom: 32px; }
.section-intro h2, .vision-copy h2, .faq-header h2 { margin: 12px 0 12px; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.06em; }
.section-intro p, .vision-copy p, .faq-header p { color: var(--muted); font-size: 15.5px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(155deg, var(--surface-2) 0%, var(--surface) 80%); transition: transform .25s, border-color .25s; }
.feature-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.feature-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -130px; top: -130px; border-radius: 50%; background: var(--glow); filter: blur(13px); pointer-events: none; }
.feature-card:nth-child(1) { --glow: color-mix(in srgb, var(--violet) 20%, transparent); }
.feature-card:nth-child(2) { --glow: color-mix(in srgb, var(--teal) 18%, transparent); }
.feature-card:nth-child(3) { --glow: color-mix(in srgb, #c68fe2 16%, transparent); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 42px; border: 1px solid color-mix(in srgb, var(--violet) 28%, transparent); border-radius: 13px; background: color-mix(in srgb, var(--violet) 12%, transparent); color: var(--violet); }
.feature-card:nth-child(2) .feature-icon { border-color: color-mix(in srgb, var(--teal) 26%, transparent); background: color-mix(in srgb, var(--teal) 10%, transparent); color: var(--teal); }
.feature-card .tag { color: var(--quiet); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.feature-card h3 { margin: 8px 0 9px; font-size: 21px; letter-spacing: -.04em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.72; }
.feature-card code { padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--text) 8%, transparent); font-family: var(--mono); font-size: .88em; }
.vision-section { padding-bottom: 120px; }
.vision-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 28px; padding: clamp(30px, 6vw, 68px); border: 1px solid color-mix(in srgb, var(--violet) 24%, transparent); border-radius: 26px; background: radial-gradient(ellipse 65% 110% at 100% 0%, color-mix(in srgb, var(--violet) 20%, transparent), transparent), linear-gradient(125deg, var(--surface-2), var(--surface)); }
.vision-copy { position: relative; z-index: 1; max-width: 620px; }
.vision-copy p { max-width: 60ch; line-height: 1.75; }
.vision-art { position: relative; width: min(100%, 250px); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.vision-art .orbit { position: absolute; inset: 8%; border: 1px solid color-mix(in srgb, var(--violet) 25%, transparent); border-radius: 50%; }
.vision-art .orbit:nth-child(2) { inset: 25%; border-color: color-mix(in srgb, var(--teal) 30%, transparent); }
.vision-art .orbit:nth-child(3) { inset: 0; border-style: dashed; border-color: color-mix(in srgb, var(--violet) 14%, transparent); }
.vision-art .brand-mark { position: relative; z-index: 1; width: 92px; height: 92px; }
.faq-section { padding-bottom: 110px; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 7vw, 96px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 74px; padding: 18px 2px; border: 0; background: transparent; color: var(--text); text-align: left; font-size: 15px; font-weight: 680; cursor: pointer; }
.faq-question:hover { color: var(--violet); }
.faq-question .plus { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal); transition: transform .2s, background .2s; font-size: 19px; font-weight: 300; line-height: 1; }
.faq-question[aria-expanded="true"] .plus { transform: rotate(45deg); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.faq-answer { padding: 0 44px 20px 2px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-answer p { margin: 0; }
.faq-answer code { padding: 2px 6px; border-radius: 5px; background: var(--code-bg); font-family: var(--mono); font-size: .88em; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 26px 24px 36px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; width: min(1400px, 100%); margin-inline: auto; }
.footer-inner .brand { font-size: 15px; }
.footer-inner .brand-mark { width: 28px; height: 28px; }
.footer-inner p { margin: 0; color: var(--quiet); font-size: 12px; }
.footer-inner > a:last-child { color: var(--muted); font-size: 12px; font-weight: 650; }
.footer-inner > a:last-child:hover { color: var(--text); }

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr; }
  .vision-panel { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .menu-button { display: inline-flex; }
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
  .nav-links.open { display: flex; }
  .nav-shell { position: relative; }
  .theme-toggle { margin-left: 0; width: 100%; height: 40px; }
  .shell { flex-direction: column; padding: 0 18px; gap: 0; }
  .side { position: static; width: 100%; max-height: none; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .landing section { width: calc(100% - 36px); }
  .hero { padding: 64px 0 52px; }
  .interface-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .browser-stage { padding: 8px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
