/* Shared public theme. Kept local to each app for independent deployment. */
:root {
    --bg-base: #111c17;
    --bg-surface: #19271f;
    --bg-elevated: #223329;
    --text-main: #f3f0e5;
    --text-muted: #abb7ac;
    --text-dim: #91a191;
    --text-dark: #152119;
    --gold: #ead56c;
    --gold-light: #ead56c;
    --emerald: #a8c686;
    --emerald-light: #a8c686;
    --border-subtle: #34443a;
    --font-display: 'Bricolage Grotesque', 'Arial', sans-serif;
    --font-sans: 'DM Sans', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 106px; color-scheme: dark; }
body { margin: 0; background: var(--bg-base); color: var(--text-main); font: 400 15px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
body.menu-open, body.modal-open { overflow: hidden; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
button { border: 0; background: none; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
::selection { color: var(--text-dark); background: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; background: var(--gold); color: var(--text-dark); padding: 10px 20px; border-radius: 6px; z-index: 2000; }
.skip-link:focus { top: 12px; }
.announcement { border-bottom: 1px solid var(--border-subtle); background: #203026; font-size: 11px; letter-spacing: .02em; }
.announcement .container { display: flex; justify-content: space-between; align-items: center; min-height: 35px; gap: 16px; }
.announcement span { color: #cad6bd; }
.announcement a { color: var(--gold); display: flex; gap: 7px; align-items: center; }
.announcement .icon { width: 13px; height: 13px; }
.main-nav { position: sticky; top: 0; z-index: 100; background: rgb(17 28 23 / 96%); border-bottom: 1px solid var(--border-subtle); backdrop-filter: blur(16px); }
.nav-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark { display: block; width: 58px; height: 44px; overflow: hidden; position: relative; }
.brand-mark img { position: absolute; width: 64px; max-width: none; height: 64px; left: -3px; top: -10px; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -.7px; }
.brand-tag { font: 9px/1.8 var(--font-mono); color: var(--text-dim); letter-spacing: 1.35px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 27px; list-style: none; margin: 0; padding: 0; }
.nav-link { position: relative; display: inline-block; font-size: 12px; font-weight: 500; color: var(--text-muted); padding: 29px 0; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text-main); }
.nav-link.active::after { content: ''; position: absolute; bottom: 18px; left: 0; width: 18px; height: 2px; background: var(--gold); }
.nav-actions { display: flex; gap: 20px; align-items: center; }
.nav-status { display: flex; align-items: center; gap: 8px; font: 10px var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.pulse-dot { display: inline-block; flex-shrink: 0; height: 6px; width: 6px; background: var(--emerald); border-radius: 50%; box-shadow: 0 0 0 4px rgb(168 198 134 / 9%); }
.pulse-dot.checking { background: var(--gold); box-shadow: 0 0 0 4px rgb(234 213 108 / 9%); }
.pulse-dot.offline { background: #db9579; box-shadow: 0 0 0 4px rgb(219 149 121 / 9%); }
.btn-primary, .btn-secondary { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 11px 21px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; line-height: 1.4; transition: background .2s, transform .2s, border-color .2s; }
.btn-primary { color: var(--text-dark); background: var(--gold); border-color: var(--gold); }
.btn-primary:hover { background: #f4e48f; border-color: #f4e48f; transform: translateY(-2px); }
.btn-secondary { color: var(--text-main); border-color: #485649; background: transparent; }
.btn-secondary:hover { background: var(--bg-elevated); border-color: #708064; transform: translateY(-2px); }
.btn-primary .icon, .btn-secondary .icon { width: 17px; height: 17px; }
.nav-actions .btn-primary, .nav-actions .btn-secondary { min-height: 39px; padding: 9px 15px; font-size: 11px; gap: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-size: 12px; font-weight: 600; }
.text-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }
.mobile-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border-subtle); border-radius: 6px; place-items: center; }
.mobile-toggle .menu-close { display: none; }
.mobile-toggle[aria-expanded="true"] .menu-close { display: block; }
.mobile-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.section { padding-block: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 36px; }
.section-head > div { max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 10px/1.6 var(--font-mono); color: var(--emerald); letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow .section-number { color: var(--text-dim); margin-right: 8px; }
.section-heading { font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -1.5px; text-wrap: balance; }
.section-desc { color: var(--text-muted); max-width: 560px; font-size: 14px; line-height: 1.8; }
.section-head > .section-desc { max-width: 345px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font: 10px/1.5 var(--font-mono); padding: 5px 9px; border: 1px solid var(--border-subtle); border-radius: 4px; color: var(--text-muted); }
.empty-state { text-align: center; color: var(--text-muted); padding: 35px 20px; margin: auto; font-size: 13px; }
.empty-state .icon { width: 32px; height: 32px; margin-bottom: 14px; color: var(--emerald); opacity: .65; }
.empty-state strong { display: block; font-family: var(--font-display); color: var(--text-main); font-size: 20px; font-weight: 600; margin-bottom: 7px; }
.empty-state p { font-size: 12px; max-width: 310px; margin-inline: auto; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; color: var(--text-main); font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.form-control { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #455347; border-radius: 6px; color: var(--text-main); background: var(--bg-base); font-size: 13px; transition: border-color .2s; }
.form-control::placeholder { color: var(--text-dim); opacity: 1; }
.form-control:focus { border-color: var(--gold); outline: 2px solid rgb(234 213 108 / 12%); outline-offset: 0; }
.site-footer { border-top: 1px solid var(--border-subtle); padding-top: 56px; background: #0d1712; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer-intro p { color: var(--text-dim); font-size: 12px; margin-block: 17px; max-width: 285px; }
.footer-intro .nav-brand { gap: 6px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; }
.footer-socials a:hover { color: var(--gold); }
.footer-col-title { font-family: var(--font-sans); font-size: 12px; font-weight: 600; margin: 7px 0 19px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; list-style: none; padding: 0; margin: 0; font-size: 12px; color: var(--text-dim); }
.footer-links button { padding: 0; font-size: inherit; text-align: left; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--border-subtle); padding-block: 22px; font-size: 10px; color: var(--text-dim); }
.footer-signature { font-family: var(--font-display); font-size: clamp(48px, 10vw, 137px); font-weight: 700; letter-spacing: -.055em; line-height: 1.03; color: #203025; padding: 4px 0 12px; user-select: none; }
.toast-box { position: fixed; z-index: 2000; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 13px 20px; background: var(--gold); color: var(--text-dark); border-radius: 8px; box-shadow: 0 8px 35px #0005; font-size: 13px; font-weight: 600; text-align: center; }
.toast-box:empty { display: none; }
@media (min-width: 1800px) { .container { max-width: 1420px; } }
@media (max-width: 1100px) {
    .nav-inner { gap: 18px; }
    .nav-links { gap: 20px; }
    .nav-status { display: none; }
    .brand-title { font-size: 18px; }
}
@media (max-width: 800px) {
    html { scroll-padding-top: 90px; }
    .container { padding-inline: 24px; }
    .nav-inner { min-height: 73px; }
    .mobile-toggle { display: grid; }
    .nav-actions { gap: 10px; margin-left: auto; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 24px; background: var(--bg-base); border-bottom: 1px solid var(--border-subtle); max-height: calc(100dvh - 73px); overflow-y: auto; }
    .nav-menu.is-open { display: block; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { display: block; padding: 15px 0; font-size: 15px; border-bottom: 1px solid var(--border-subtle); }
    .nav-link.active::after { bottom: 8px; }
    .section { padding-block: 64px; }
    .section-head { gap: 22px; align-items: flex-start; }
    .section-head > .section-desc { max-width: 280px; font-size: 12px; }
    .footer-grid { grid-template-columns: 1.3fr 1fr; gap: 34px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 540px) {
    .container { padding-inline: 20px; }
    .announcement .container { min-height: 32px; justify-content: center; text-align: center; }
    .announcement a { display: none; }
    .announcement span { font-size: 9px; }
    .brand-mark { width: 43px; height: 36px; }
    .brand-mark img { width: 50px; height: 50px; left: -4px; top: -6px; }
    .brand-title { font-size: 16px; letter-spacing: -.5px; }
    .brand-tag { font-size: 8px; letter-spacing: .9px; }
    .nav-inner { gap: 8px; }
    .nav-actions .btn-primary, .nav-actions .btn-secondary { padding: 8px 11px; gap: 6px; font-size: 10px; }
    .nav-actions .optional-action { display: none; }
    .mobile-toggle { width: 37px; height: 39px; }
    .section-head { flex-direction: column; }
    .section-head > .section-desc { max-width: 100%; font-size: 13px; }
    .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
    .section-heading { letter-spacing: -1px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .footer-intro { grid-column: 1 / -1; }
    .footer-grid > :last-child { grid-column: 1 / -1; }
    .footer-signature { font-size: 12vw; }
    .toast-box { bottom: 16px; }
}
@media (max-width: 360px) {
    .brand-title { font-size: 14px; }
    .brand-tag { display: none; }
    .brand-mark { width: 32px; height: 32px; }
    .brand-mark img { width: 42px; height: 42px; left: -5px; top: -4px; }
    .nav-brand { gap: 6px; }
    .nav-actions { gap: 7px; }
    .nav-actions .btn-primary, .nav-actions .btn-secondary { padding-inline: 9px; }
    .nav-actions .btn-primary .icon:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
