/* DNA2C Labs: shared styles for the landing page and the prototype screens.
   Visual language follows DNA2C: navy base, teal/cyan glow on active elements only,
   sepia for warnings, Inter + JetBrains Mono (self-hosted, OFL). */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-400.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: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin-500.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: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-600.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: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-latin-700.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: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-greek-400.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-greek-500.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-greek-600.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-greek-700.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-400.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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-500.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: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-600.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: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-mono-greek-400.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-greek-500.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/jetbrains-mono-greek-600.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

:root {
  --navy-900: #0A1628; --navy-850: #0C1B31; --navy-800: #0F1F38; --navy-700: #162A4A; --navy-600: #1E3A5F; --navy-500: #2C4F7A;
  --teal: #00D4D4; --cyan: #7FFFD4; --sepia: #C9A961; --blue: #6C9BFF;
  --ink: #E8F0F8; --ink-2: #C9D6E6; --mute-hi: #9FB3CC; --mute: #7A93B2;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy-900); color: var(--ink); font-family: var(--sans); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }

@keyframes labsPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: labsPulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--teal); text-transform: uppercase; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--mute); text-transform: uppercase; }
.muted { color: var(--mute-hi); }
.body { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 12px; color: var(--mute); }

/* Prototype preview bar */
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 8px 16px; background: #1A1608; border-bottom: 1px solid rgba(201,169,97,.4); font-size: 13px; color: #E9DDB8; }
.preview-bar a { color: var(--sepia); font-weight: 600; }

/* App header */
.hdr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 10px 20px; background: var(--navy-800); border-bottom: 1px solid var(--navy-600); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand b { font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.brand span { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .28em; color: var(--teal); }
.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; flex: 1 1 auto; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--mute); }
.hud .live { display: inline-flex; align-items: center; gap: 6px; }
.pill-warn { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--sepia); border: 1px solid rgba(201,169,97,.5); border-radius: 999px; padding: 4px 10px; }

/* App layout */
.shell { display: flex; flex-wrap: wrap; min-height: calc(100vh - 100px); }
.side { flex: 1 1 200px; padding: 16px 12px; border-right: 1px solid var(--navy-600); display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 8px; text-decoration: none; color: var(--mute-hi); font-size: 14px; font-weight: 500; }
.side a:hover { background: rgba(0,212,212,.05); color: var(--ink); }
.side a[aria-current=page] { color: var(--ink); background: rgba(0,212,212,.10); font-weight: 600; }
.side a[aria-current=page] svg { stroke: var(--teal); }
.side .ver { margin-top: auto; padding: 16px 14px 4px; font-family: var(--mono); font-size: 10px; line-height: 1.6; letter-spacing: .06em; color: var(--mute); }
.main { flex: 999 1 560px; min-width: 0; padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.title { display: flex; flex-direction: column; gap: 6px; }
.title h1 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.sub { font-family: var(--mono); font-size: 12px; color: var(--mute-hi); }

.card { background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.stage { position: relative; background: var(--navy-850); border: 1px solid var(--navy-600); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.stage canvas { display: block; width: 100%; }
.corner { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.corner.tl { top: 10px; left: 10px; border-top: 1.5px solid var(--teal); border-left: 1.5px solid var(--teal); }
.corner.tr { top: 10px; right: 10px; border-top: 1.5px solid var(--teal); border-right: 1.5px solid var(--teal); }
.rule { height: 1px; background: var(--navy-600); }

.btn { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--navy-600); background: transparent; color: var(--mute-hi); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { border-color: var(--navy-500); color: var(--ink); }
.btn[aria-pressed=true], .btn[aria-checked=true] { border-color: var(--teal); background: rgba(0,212,212,.14); color: var(--ink); }
.btn.primary { border-color: var(--teal); background: rgba(0,212,212,.16); color: var(--ink); font-weight: 600; box-shadow: 0 0 22px rgba(0,212,212,.18); }
.btn.primary:hover { background: rgba(0,212,212,.24); }
.btn:disabled { cursor: default; opacity: .55; box-shadow: none; }
.group { display: flex; flex-wrap: wrap; gap: 6px; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 18px; border-top: 1px solid var(--navy-600); font-size: 12px; color: var(--mute-hi); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 18px; height: 4px; border-radius: 2px; }

.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.facts .src { color: var(--mute); }

.foot { font-size: 12px; color: var(--mute); }

@media (max-width: 760px) {
  .side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--navy-600); }
  .side .ver { display: none; }
  .main { padding: 18px 16px 24px; }
  .title h1 { font-size: 24px; }
}
