@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/ui/fonts/fira-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/ui/fonts/fira-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/ui/fonts/fira-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/ui/fonts/fira-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/ui/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/ui/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/ui/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/ui/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/ui/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/ui/fonts/plus-jakarta-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/ui/fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/ui/fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/ui/fonts/sora-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/ui/fonts/sora-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Landing page at / (#301). Rules: DESIGN.md; colour values copied from tokens.css. No script, so the
   theme follows the system: light tokens first, dark tokens when the system asks for dark. */
:root {
  --bg: #F3F5FC;
  --dot: #C6CCE9;
  --text: #14191F;
  --text2: #3B434D;
  --text3: #535C66;
  --title: #210F89;
  --card: rgba(255,255,255,.74);
  --edge: rgba(33,15,137,.16);
  --hair: rgba(33,15,137,.10);
  --edge-dash: rgba(33,15,137,.36);
  /* Not a tokens.css value: the dashed boxes need 3:1 contrast on the light canvas. */
  --more-edge: rgba(33,15,137,.55);
  --shadow: 0 18px 40px rgba(33,15,137,.10);
  --glow: 0 0 70px rgba(46,196,216,.24);
  --glass: rgba(255,255,255,.68);
  --glass2: rgba(33,15,137,.04);
  --active: rgba(33,15,137,.10);
  --line: #C6CCE9;
  --line2: #9DA8D8;
  --flow: #4C57B7;
  --gate: #210F89;
  --signal: #2EC4D8;
  --btn: #210F89;
  --btn-text: #FFFFFF;
  --focus: #7380C8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080535;
    --dot: #241A78;
    --text: #FFFFFF;
    --text2: #C6CCE9;
    --text3: #9DA8D8;
    --title: #FFFFFF;
    --card: rgba(255,255,255,.05);
    --edge: rgba(157,168,216,.24);
    --hair: rgba(157,168,216,.16);
    --edge-dash: rgba(157,168,216,.5);
    --more-edge: var(--edge-dash);
    --shadow: 0 18px 40px rgba(3,2,25,.5);
    --glow: 0 0 70px rgba(46,196,216,.14);
    --glass: rgba(255,255,255,.05);
    --glass2: rgba(255,255,255,.03);
    --active: rgba(255,255,255,.14);
    --line: #3234A0;
    --line2: #9DA8D8;
    --flow: #C6CCE9;
    --gate: #FFFFFF;
    --signal: #2EC4D8;
    --btn: #2EC4D8;
    --btn-text: #080535;
    --focus: #9DA8D8;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 2px 2px, var(--dot) 1px, transparent 1.5px);
  background-size: 24px 24px;
}
body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--text); text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; color: var(--title); font-weight: 700; }
p { margin: 0; }

.hero { padding: 24px 0 40px; }
.hero-bar { display: flex; align-items: center; gap: 12px; }
.hero-bar img { display: block; height: 32px; width: auto; }
.hero-by { color: var(--text3); font-size: 12px; }
.hero h1 { max-width: 800px; margin-top: 80px; font-size: 48px; line-height: 1.15; }
.hero-name { max-width: 640px; margin-top: 20px; color: var(--text2); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 22px; font-weight: 600; text-decoration: none;
}
.btn-primary { color: var(--btn-text); background: var(--btn); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { color: var(--text); background: var(--glass); border-color: var(--edge); }
.btn-secondary:hover { background: var(--active); }

section { margin-top: 80px; scroll-margin-top: 24px; }
h2 { font-size: 30px; line-height: 1.2; }
.lead { max-width: 720px; margin-top: 8px; color: var(--text2); font-size: 14px; }

/* Glass card (DESIGN.md 1.4). */
.flow-card, .why-card, .shot {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow), var(--glow);
}
.flow-card { margin-top: 24px; padding: 32px; }
.flow { display: block; width: 100%; height: auto; }
.flow-tall { display: none; max-width: 400px; margin: 0 auto; }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.why-card { display: grid; gap: 8px; align-content: start; padding: 24px; }
.why-card h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.why-card p { color: var(--text2); }
.why-icon { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--text2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.box-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; max-width: 880px; margin: 16px 0 0; padding-left: 20px; color: var(--text2); }
.box-contact { margin-top: 24px; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; align-items: start; }
.shot { padding: 12px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hair); }
.shot figcaption { margin-top: 12px; font-size: 13px; font-weight: 600; }
.chat { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  margin-top: 80px; padding: 24px 0 40px; border-top: 1px solid var(--hair);
  color: var(--text3); font-size: 12px;
}
.foot a { color: var(--text2); }
.foot-lang { display: flex; gap: 16px; margin-left: auto; }
.foot-lang a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }

/* Drawings: the same line language as the console (DESIGN.md 4). */
.d-node, .d-ducto { fill: var(--bg); stroke: var(--edge); stroke-width: 1; }
.d-ducto { stroke: var(--line2); stroke-width: 1.5; }
.d-bound { fill: none; stroke: var(--more-edge); stroke-width: 1.5; stroke-dasharray: 6 6; }
.d-more { fill: none; stroke: var(--more-edge); stroke-width: 1; stroke-dasharray: 5 5; }
.d-base { fill: none; stroke: var(--line); stroke-width: 1.5; }
.d-flow { fill: none; stroke: var(--flow); stroke-width: 2; stroke-dasharray: 10 46; animation: d-flow 2.2s linear infinite; }
@keyframes d-flow { to { stroke-dashoffset: -56; } }
.d-passive { fill: none; stroke: var(--line2); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.1 7; }
.d-pass { fill: none; stroke: var(--signal); stroke-width: 2.5; }
.d-gate { fill: none; stroke: var(--gate); stroke-width: 3; stroke-linecap: round; }
.d-gate-dashed { stroke-width: 2; stroke-linecap: butt; stroke-dasharray: 3 4.5; }
.d-pt { fill: var(--bg); stroke: var(--line2); stroke-width: 1.5; }
.d-title { fill: var(--text3); font-size: 13px; font-weight: 600; }
.d-label { fill: var(--text); font-size: 14px; font-weight: 600; }
.d-muted, .c-muted { fill: var(--text3); font-size: 12px; }
.d-brand { fill: var(--title); font-family: "Sora", "Plus Jakarta Sans", sans-serif; font-size: 30px; font-weight: 600; }
.m-ink, .m-pass { fill: none; stroke-width: 2; stroke-linecap: round; }
.m-ink { stroke: var(--gate); }
.m-pass { stroke: var(--signal); }
.c-frame { fill: var(--bg); stroke: var(--edge); }
.c-rule { stroke: var(--hair); }
.c-me { fill: var(--active); stroke: none; }
.c-bot { fill: var(--glass2); stroke: var(--edge); }
.c-text { fill: var(--text); font-size: 13px; }
.c-strong { fill: var(--title); font-size: 13px; font-weight: 700; }
.c-mono { font-family: "Fira Mono", ui-monospace, monospace; font-size: 12px; }

@media (max-width: 959px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .why { grid-template-columns: minmax(0, 1fr); }
  body { padding: 0 16px; }
  .hero h1 { margin-top: 48px; font-size: 30px; }
  section { margin-top: 56px; }
  h2 { font-size: 22px; }
  .flow-card { padding: 16px; }
  .flow-wide { display: none; }
  .flow-tall { display: block; }
  .shots, .box-points { grid-template-columns: minmax(0, 1fr); }
  .foot-lang { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .d-flow { animation: none; display: none; }
}
