/* ACE / Aurora system — shared visual upgrade for every application page. */
:root {
  --bg: #0b100d;
  --bg-2: #111912;
  --bg-3: #18221a;
  --surface: rgba(225, 255, 202, 0.065);
  --surface-2: rgba(225, 255, 202, 0.11);
  --line: rgba(222, 255, 206, 0.15);
  --line-strong: rgba(222, 255, 206, 0.28);
  --fg: #f2f8ec;
  --fg-dim: #b7c5b3;
  --fg-faint: #7e907e;
  --accent: #c9ff82;
  --accent-dim: rgba(201, 255, 130, 0.14);
  --accent-2: #94b9ff;
  --accent-3: #78e8ff;
  --danger: #ff8c9e;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --nav-h: 76px;
}

body:not(.cinematic-home) {
  background:
    radial-gradient(ellipse 70% 44% at 78% -6%, rgba(194, 255, 143, .13), transparent 68%),
    radial-gradient(ellipse 55% 35% at 8% 24%, rgba(104, 191, 255, .075), transparent 72%),
    var(--bg);
  color: var(--fg);
}
body:not(.cinematic-home)::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background: linear-gradient(115deg, rgba(255,255,255,.022), transparent 28%, rgba(201,255,130,.025) 72%, transparent);
}
body:not(.cinematic-home) .grid-bg {
  opacity: .9;
  background-image: linear-gradient(rgba(220,255,200,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(220,255,200,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 75% at 50% 0%, #000 35%, transparent 100%);
}
body:not(.cinematic-home) .noise { opacity: .018; }

body:not(.cinematic-home) .nav {
  height: var(--nav-h); padding-inline: clamp(22px, 4.5vw, 70px);
  border-bottom-color: rgba(222,255,206,.08);
  background: rgba(11,16,13,.46);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
body:not(.cinematic-home) .nav.is-scrolled { background: rgba(11,16,13,.82); border-bottom-color: var(--line); box-shadow: 0 10px 42px rgba(0,0,0,.16); }
body:not(.cinematic-home) .nav-logo { font-family: var(--font-display); font-size: 19px; letter-spacing: -.04em; }
body:not(.cinematic-home) .nav-logo .logo-mark { width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(140deg, #dfffad, #a8ef75); color: #10200f; box-shadow: 0 0 30px rgba(201,255,130,.22); }
body:not(.cinematic-home) .nav-links a { font-family: var(--font-body); color: #bdcbbb; font-size: 13px; border-radius: 999px; }
body:not(.cinematic-home) .nav-links a:hover { color: var(--fg); background: rgba(211,255,190,.08); }
body:not(.cinematic-home) .nav-links a.active { color: var(--accent); background: rgba(201,255,130,.08); }
body:not(.cinematic-home) .nav-cta { border-radius: 999px; padding: 10px 17px; color: #12200f; background: linear-gradient(135deg, #d8ffa5, #a9f17b); box-shadow: 0 8px 28px rgba(168,239,117,.16); font-family: var(--font-body); }
body:not(.cinematic-home) .nav-cta:hover { box-shadow: 0 12px 34px rgba(168,239,117,.27); transform: translate3d(0,-2px,0); }
body:not(.cinematic-home) .nav-toggle { color: var(--fg); }

body:not(.cinematic-home) .page-main { padding-top: var(--nav-h); }
body:not(.cinematic-home) .page-hero {
  min-height: 390px; display: flex; align-items: flex-end; padding: clamp(95px, 13vw, 170px) 0 clamp(62px, 7vw, 96px);
  border-bottom-color: var(--line); isolation: isolate;
  background: radial-gradient(ellipse 56% 110% at 84% 8%, rgba(201,255,130,.105), transparent 66%);
}
body:not(.cinematic-home) .page-hero::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: 9%; bottom: -180px; border-radius: 50%;
  border: 1px solid rgba(201,255,130,.15); box-shadow: 0 0 90px rgba(201,255,130,.06), inset 0 0 50px rgba(201,255,130,.05); transform: rotate(-22deg) rotateX(62deg); pointer-events: none; z-index: -1;
}
body:not(.cinematic-home) .page-hero .h-display { font-size: clamp(54px, 8vw, 110px); font-weight: 650; letter-spacing: -.07em; text-shadow: 0 4px 40px rgba(196,255,143,.07); }
body:not(.cinematic-home) .page-hero .lede { max-width: 690px; color: #c0cdbb; }
body:not(.cinematic-home) .page-hero-bg { color: rgba(201,255,130,.018); -webkit-text-stroke-color: rgba(201,255,130,.11); font-size: clamp(145px, 25vw, 370px); letter-spacing: -.1em; transform: translate3d(0,-50%,0); transition: transform .25s linear; }
body:not(.cinematic-home) .section { padding-block: clamp(80px, 10vw, 150px); }
body:not(.cinematic-home) .section-head { margin-bottom: clamp(38px, 5vw, 72px); }
body:not(.cinematic-home) .kicker { color: var(--accent); font-size: 11px; }
body:not(.cinematic-home) .h-xl { font-weight: 620; letter-spacing: -.055em; }
body:not(.cinematic-home) .text-outline { -webkit-text-stroke-color: rgba(236,255,224,.48); }

body:not(.cinematic-home) .card,
body:not(.cinematic-home) .community-panel,
body:not(.cinematic-home) .clinic-card,
body:not(.cinematic-home) .proposal-card,
body:not(.cinematic-home) .box,
body:not(.cinematic-home) .admin-side,
body:not(.cinematic-home) .stat-card {
  background: linear-gradient(140deg, rgba(220,255,205,.095), rgba(220,255,205,.028));
  border-color: rgba(220,255,205,.16);
  box-shadow: 0 18px 70px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body:not(.cinematic-home) .card:hover { border-color: rgba(201,255,130,.55); background: linear-gradient(140deg, rgba(220,255,205,.145), rgba(220,255,205,.05)); box-shadow: 0 24px 80px rgba(0,0,0,.22), 0 0 36px rgba(201,255,130,.06); }
body:not(.cinematic-home) .card-icon { background: rgba(201,255,130,.12); border-color: rgba(201,255,130,.3); box-shadow: inset 0 0 22px rgba(201,255,130,.08); }
body:not(.cinematic-home) .card h3 { font-weight: 620; }
body:not(.cinematic-home) .card p, body:not(.cinematic-home) .lede { color: #b5c3b2; }
body:not(.cinematic-home) .tag.tag-accent { background: rgba(201,255,130,.13); border-color: rgba(201,255,130,.46); }
body:not(.cinematic-home) .btn { border-radius: 999px; font-family: var(--font-body); }
body:not(.cinematic-home) .btn-primary { background: linear-gradient(135deg, #d9ffa7, #a9f27a); color: #10200e; box-shadow: 0 12px 35px rgba(169,242,122,.14); }
body:not(.cinematic-home) .btn-primary:hover { box-shadow: 0 18px 45px rgba(169,242,122,.3); }
body:not(.cinematic-home) .btn-ghost { background: rgba(224,255,210,.045); border-color: rgba(224,255,210,.25); }
body:not(.cinematic-home) .btn-ghost:hover { background: rgba(201,255,130,.1); }

body:not(.cinematic-home) .stats-row { border-color: var(--line); background: rgba(220,255,205,.025); box-shadow: 0 20px 70px rgba(0,0,0,.16); }
body:not(.cinematic-home) .stat-cell { background: rgba(220,255,205,.04); border-color: var(--line); }
body:not(.cinematic-home) .stat-num { color: var(--accent); text-shadow: 0 0 28px rgba(201,255,130,.14); }
body:not(.cinematic-home) .list-item:hover { background: rgba(201,255,130,.06); }
body:not(.cinematic-home) .list-item .title:hover { color: var(--accent); }
body:not(.cinematic-home) .marquee-track { color: #82917f; }
body:not(.cinematic-home) .terminal { background: linear-gradient(150deg, #172119, #0b100d); border-color: rgba(220,255,205,.25); box-shadow: 0 30px 90px rgba(0,0,0,.35), 0 0 50px rgba(201,255,130,.05); }

body:not(.cinematic-home) .field input,
body:not(.cinematic-home) .field textarea,
body:not(.cinematic-home) .field select { background: rgba(7,14,9,.72); border-color: rgba(220,255,205,.25); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
body:not(.cinematic-home) .field input:focus, body:not(.cinematic-home) .field textarea:focus, body:not(.cinematic-home) .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,255,130,.11), 0 0 26px rgba(201,255,130,.08); }
body:not(.cinematic-home) .data-table th { color: #9bab96; border-color: var(--line-strong); }
body:not(.cinematic-home) .data-table td { border-color: var(--line); }
body:not(.cinematic-home) .data-table tr:hover td { background: rgba(201,255,130,.055); }
body:not(.cinematic-home) .row-btn { background: rgba(220,255,205,.05); border-color: rgba(220,255,205,.22); color: #c2d0bd; }
body:not(.cinematic-home) .row-btn:hover { background: rgba(201,255,130,.11); }
body:not(.cinematic-home) .form-mask, body:not(.cinematic-home) .modal-backdrop { background: rgba(2,7,3,.72); backdrop-filter: blur(15px); }
body:not(.cinematic-home) .form-modal, body:not(.cinematic-home) dialog { background: linear-gradient(145deg, #182419, #0e160f); border-color: rgba(220,255,205,.25); box-shadow: 0 35px 120px rgba(0,0,0,.45); }

body:not(.cinematic-home) .footer { background: linear-gradient(180deg, transparent, rgba(201,255,130,.045)); border-top-color: var(--line); }
body:not(.cinematic-home) .footer-brand p, body:not(.cinematic-home) .footer ul a { color: #aab9a6; }
body:not(.cinematic-home) .footer-social a { border-color: rgba(220,255,205,.23); }
body:not(.cinematic-home) ::-webkit-scrollbar-track { background: #0a0f0c; }
body:not(.cinematic-home) ::-webkit-scrollbar-thumb { background: #456044; border: 2px solid #0a0f0c; }
body:not(.cinematic-home) ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Shared scroll affordances injected by main.js. */
.site-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 220; background: rgba(201,255,130,.1); transform-origin: left; pointer-events: none; }
.site-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #b4ef70, #e2ffb9); box-shadow: 0 0 12px rgba(201,255,130,.6); }
.site-light { position: fixed; width: 180px; height: 180px; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0; background: radial-gradient(circle, rgba(201,255,130,.1), transparent 65%); transform: translate3d(-50%,-50%,0); transition: opacity .25s; mix-blend-mode: screen; }
.site-ready .is-magnetic { transform: translate3d(var(--magnetic-x, 0), var(--magnetic-y, 0), 0); }
body:not(.cinematic-home).site-ready .site-light { opacity: .8; }
@media (max-width: 1120px) {
  body:not(.cinematic-home) .nav-links { top: var(--nav-h); background: rgba(11,17,13,.96); border-color: var(--line); }
  body:not(.cinematic-home) .nav-links a { font-size: 15px; padding: 15px 13px; }
}
@media (max-width: 760px) {
  body:not(.cinematic-home) .page-hero { min-height: 330px; padding-block: 105px 50px; }
  body:not(.cinematic-home) .page-hero::after { width: 220px; height: 220px; right: -8%; bottom: -125px; }
  body:not(.cinematic-home) .page-hero .h-display { font-size: clamp(46px, 13vw, 72px); }
  body:not(.cinematic-home) .page-hero-bg { font-size: 31vw; }
  body:not(.cinematic-home) .section { padding-block: 68px; }
  body:not(.cinematic-home) .card, body:not(.cinematic-home) .box, body:not(.cinematic-home) .community-panel { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .site-light { display: none; } .site-progress span { transition: none; } }
