/* ==========================================================================
   Arewa Nexgen public component layer
   Native PHP/Tailwind/vanilla JS. Brand green only. No framework dependency.
   ========================================================================== */

:root {
  --nxui-green: var(--brand-accent);
  --nxui-green-strong: var(--brand-accent-hover);
  --nxui-green-soft: var(--brand-soft);
  --nxui-green-line: var(--brand-line);
  --nxui-ink: var(--brand-ink);
  --nxui-muted: var(--brand-muted);
  --nxui-line: var(--brand-border);
  --nxui-surface: var(--brand-surface);
  --nxui-radius: 14px;
  --nxui-shadow: 0 18px 40px -28px rgba(15, 23, 42, .35);
}
.dark {
  --nxui-green: #4ade80;
  --nxui-green-strong: #86efac;
  --nxui-green-soft: #0f291d;
  --nxui-green-line: #214b35;
  --nxui-ink: #f8fafc;
  --nxui-muted: #94a3b8;
  --nxui-line: #1e3323;
  --nxui-surface: #111a15;
  --nxui-shadow: 0 18px 40px -26px rgba(0, 0, 0, .7);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nx-inview, .nx-inview * { transition: none !important; animation: none !important; }
}

/* ── Scroll progress ────────────────────────────────────────────────────── */
.nx-scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  z-index: 10000; pointer-events: none; border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #22a85a, #4ade80 60%, #a7f3c4);
  box-shadow: 0 0 12px rgba(34, 168, 90, .28);
  transition: width .12s linear;
}

/* ── Theme menu ─────────────────────────────────────────────────────────── */
.nx-theme { position: relative; }
.nx-theme-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--nxui-line);
  background: var(--nxui-surface); color: var(--nxui-muted);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.nx-theme-btn:hover, .nx-theme-btn[aria-expanded="true"] {
  color: var(--nxui-green); border-color: var(--nxui-green-line);
  background: var(--nxui-green-soft);
}
.nx-theme-btn i { font-size: 1.05rem; }
.nx-theme-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); width: 168px; padding: .35rem;
  background: var(--nxui-surface); border: 1px solid var(--nxui-line); border-radius: 12px;
  box-shadow: var(--nxui-shadow); z-index: 80;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nx-theme-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nx-theme-option {
  width: 100%; display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem;
  border: 0; border-radius: 8px; background: transparent; color: var(--nxui-ink);
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; text-align: left;
}
.nx-theme-option i { color: var(--nxui-muted); font-size: .95rem; }
.nx-theme-option:hover { background: var(--nxui-green-soft); color: var(--nxui-green); }
.nx-theme-option:hover i { color: var(--nxui-green); }
.nx-theme-option[aria-checked="true"] { background: var(--nxui-green-soft); color: var(--nxui-green); }
.nx-theme-option[aria-checked="true"] i { color: var(--nxui-green); }

/* ── Six-slot OTP ───────────────────────────────────────────────────────── */
.nx-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.nx-otp-slot {
  width: 100%; height: 58px; text-align: center; border-radius: 12px;
  border: 1px solid var(--nxui-line); background: var(--nxui-green-soft);
  color: var(--nxui-ink); font-size: 1.35rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
}
.nx-otp-slot:focus {
  border-color: var(--nxui-green); background: var(--nxui-surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--nxui-green) 14%, transparent);
}
.nx-otp-slot.is-filled { border-color: var(--nxui-green-line); background: var(--nxui-surface); }
.nx-otp.is-error .nx-otp-slot { border-color: #ef4444; background: #fff5f5; }
.dark .nx-otp.is-error .nx-otp-slot { background: #2a1518; }
@media (max-width: 420px) {
  .nx-otp { gap: .35rem; }
  .nx-otp-slot { height: 50px; font-size: 1.15rem; border-radius: 10px; }
}

/* ── Scrollable icon category tabs ──────────────────────────────────────── */
.nx-tabs-scroll {
  display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .25rem .65rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.nx-tabs-scroll::-webkit-scrollbar { display: none; }
.nx-tab-icon {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border-radius: 999px;
  border: 1px solid var(--nxui-line); background: var(--nxui-surface);
  color: var(--nxui-muted); font: inherit; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.nx-tab-icon i { font-size: 1rem; }
.nx-tab-icon:hover { color: var(--nxui-green); border-color: var(--nxui-green-line); transform: translateY(-1px); }
.nx-tab-icon.active, .nx-tab-icon[aria-pressed="true"] {
  color: #fff; border-color: var(--nxui-green); background: var(--nxui-green);
  box-shadow: 0 8px 20px -12px var(--nxui-green);
}
.dark .nx-tab-icon.active, .dark .nx-tab-icon[aria-pressed="true"] { color: #07110c; }

/* ── Underline pagination ───────────────────────────────────────────────── */
.nx-pagination { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.nx-page-link {
  position: relative; min-width: 34px; height: 34px; display: inline-grid; place-items: center;
  padding: 0 .45rem; color: var(--nxui-muted); font-size: .82rem; font-weight: 700;
  border-radius: 7px; text-decoration: none; transition: color .18s, background .18s;
}
.nx-page-link::after {
  content: ""; position: absolute; left: .45rem; right: .45rem; bottom: 3px;
  height: 2px; border-radius: 2px; background: transparent; transition: background .18s;
}
.nx-page-link:hover { color: var(--nxui-green); background: var(--nxui-green-soft); }
.nx-page-link[aria-current="page"] { color: var(--nxui-green); background: var(--nxui-green-soft); }
.nx-page-link[aria-current="page"]::after { background: var(--nxui-green); }
.nx-page-link.is-disabled { opacity: .35; pointer-events: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.nx-btn-danger, .nx-btn-warning, .nx-btn-notify, .nx-btn-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem .8rem; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.nx-btn-danger { background: #dc2626; color: #fff; }
.nx-btn-danger:hover { background: #b91c1c; box-shadow: 0 8px 18px -10px #dc2626; }
.nx-btn-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.nx-btn-warning:hover { background: #fef3c7; }
.nx-btn-notify { background: var(--nxui-green); color: #fff; position: relative; }
.nx-btn-notify:hover { background: var(--nxui-green-strong); }
.nx-btn-notify[data-count]::after {
  content: attr(data-count); position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; background: #ef4444; color: #fff;
  font-size: .6rem; font-weight: 800; border: 2px solid var(--nxui-surface);
}
.nx-btn-copy { background: var(--nxui-surface); color: var(--nxui-ink); border-color: var(--nxui-line); }
.nx-btn-copy:hover { border-color: var(--nxui-green); color: var(--nxui-green); }
.nx-btn-copy.is-copied { background: var(--nxui-green-soft); color: var(--nxui-green); border-color: var(--nxui-green-line); }

/* ── Spotlight card with grid pattern ───────────────────────────────────── */
.nx-spotlight {
  position: relative; isolation: isolate; overflow: hidden;
  --mx: 50%; --my: 50%;
}
.nx-spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--nxui-green) 9%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--nxui-green) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 78%);
  opacity: 0; transition: opacity .25s;
}
.nx-spotlight::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--nxui-green) 13%, transparent), transparent 65%);
  opacity: 0; transition: opacity .25s;
}
.nx-spotlight:hover::before, .nx-spotlight:hover::after,
.nx-spotlight:focus-within::before, .nx-spotlight:focus-within::after { opacity: 1; }

/* ── In-view reveal ─────────────────────────────────────────────────────── */
.nx-inview {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--nx-delay, 0ms);
}
.nx-inview.is-inview { opacity: 1; transform: none; }

/* ── Text treatments ────────────────────────────────────────────────────── */
.nx-text-shimmer {
  background: linear-gradient(100deg, var(--nxui-green) 20%, #86efac 40%, var(--nxui-green) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nx-shimmer 2.6s linear infinite;
}
@keyframes nx-shimmer { to { background-position: -220% 0; } }
.nx-text-loop { display: inline-grid; overflow: hidden; height: 1.25em; vertical-align: bottom; }
.nx-text-loop > span { grid-area: 1 / 1; animation: nx-loop 9s infinite; }
.nx-text-loop > span:nth-child(2) { animation-delay: 3s; }
.nx-text-loop > span:nth-child(3) { animation-delay: 6s; }
@keyframes nx-loop {
  0%, 26% { transform: translateY(0); opacity: 1; }
  33%, 93% { transform: translateY(-120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.nx-scramble { font-variant-numeric: tabular-nums; }

/* ── Segmented control ──────────────────────────────────────────────────── */
.nx-segmented {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px;
  background: var(--nxui-green-soft); border: 1px solid var(--nxui-green-line);
}
.nx-segmented button {
  border: 0; background: transparent; color: var(--nxui-muted);
  border-radius: 7px; padding: .35rem .65rem; font: inherit; font-size: .72rem;
  font-weight: 700; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s;
}
.nx-segmented button[aria-pressed="true"] {
  background: var(--nxui-surface); color: var(--nxui-green);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
}

/* ── Accordion ──────────────────────────────────────────────────────────── */
.nx-accordion { border: 1px solid var(--nxui-line); border-radius: 12px; background: var(--nxui-surface); overflow: hidden; }
.nx-accordion + .nx-accordion { margin-top: .55rem; }
.nx-accordion summary {
  list-style: none; cursor: pointer; padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: var(--nxui-ink); font-size: .85rem; font-weight: 700;
}
.nx-accordion summary::-webkit-details-marker { display: none; }
.nx-accordion summary i { color: var(--nxui-green); transition: transform .22s; }
.nx-accordion[open] summary i { transform: rotate(45deg); }
.nx-accordion > div { padding: 0 1rem .9rem; color: var(--nxui-muted); font-size: .84rem; line-height: 1.65; }

@media (max-width: 640px) {
  .nx-theme-btn { width: 34px; height: 34px; }
  .nx-theme-menu { right: 0; }
}

/* ── Dark theme for public Tailwind sections ─────────────────────────────── */
/* The public pages use explicit Tailwind colours. These mappings keep those
   pages readable in Dark mode without changing the light design. */
html.dark body { background: #07110c !important; color: #eefbf1 !important; }
html.dark .bg-white { background-color: #101d16 !important; }
html.dark .bg-slate-50,
html.dark .bg-gray-50,
html.dark .bg-neutral-50,
html.dark .bg-zinc-50,
html.dark .bg-stone-50,
html.dark .bg-slate-100,
html.dark .bg-gray-100,
html.dark .bg-slate-200,
html.dark .bg-\[\#f8fafc\] { background-color: #0d1912 !important; }
html.dark .bg-green-50,
html.dark .bg-emerald-50,
html.dark .bg-green-50\/50,
html.dark .bg-emerald-50\/50,
html.dark .bg-green-50\/60 { background-color: #0f291d !important; }
html.dark .bg-green-100,
html.dark .bg-emerald-100 { background-color: #143823 !important; }
html.dark .bg-white\/80,
html.dark .bg-white\/90,
html.dark .bg-white\/95 { background-color: rgba(16, 29, 22, .92) !important; }

html.dark .text-slate-950,
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-slate-700,
html.dark .text-gray-950,
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-gray-700,
html.dark .text-black,
html.dark .text-green-950,
html.dark .text-green-900 { color: #eefbf1 !important; }
html.dark .text-slate-600,
html.dark .text-slate-500,
html.dark .text-gray-600,
html.dark .text-gray-500 { color: #a7bfae !important; }
html.dark .text-slate-400,
html.dark .text-gray-400 { color: #86a392 !important; }
html.dark .text-green-700,
html.dark .text-green-600,
html.dark .text-emerald-700,
html.dark .text-emerald-600 { color: #86efac !important; }

html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-200\/50,
html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-green-100,
html.dark .border-green-150,
html.dark .border-green-200,
html.dark .border-emerald-100 { border-color: #214b35 !important; }
html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: #1e3323 !important; }

html.dark input,
html.dark textarea,
html.dark select { color: #eefbf1; }
html.dark input::placeholder,
html.dark textarea::placeholder { color: #86a392; }
html.dark .shadow-slate-200,
html.dark .shadow-slate-200\/50,
html.dark .shadow-slate-100 { --tw-shadow-color: rgba(0, 0, 0, .5) !important; }
html.dark [class*="text-green-950/"],
html.dark [class*="text-green-900/"] { color: #bfd7c5 !important; }
html.dark .hero-dock-link { color: #bfd7c5; }
html.dark .bg-green-600,
html.dark .bg-brand-600,
html.dark .bg-emerald-600 { background-color: #15803d !important; }
html.dark .hover\:bg-green-600:hover,
html.dark .hover\:bg-brand-600:hover { background-color: #166534 !important; }
html.dark .hover\:bg-green-500:hover,
html.dark .hover\:bg-emerald-500:hover { background-color: #16a34a !important; }
html.dark .bg-green-500.text-slate-900 { color: #07110c !important; }

/* Home page header and hero, which use their own light-only scene styles. */
html.dark #main-header.home-hero-header {
  background: linear-gradient(180deg, rgba(7, 17, 12, .96) 0%, rgba(7, 17, 12, .64) 62%, rgba(7, 17, 12, 0) 100%);
  border-bottom-color: transparent;
}
html.dark #main-header.home-hero-header .site-brand-text,
html.dark #main-header.home-hero-header.scrolled .site-brand-text { color: #eefbf1 !important; }
html.dark .home-hero-header .nav-shell {
  background: rgba(16, 29, 22, .72);
  border-color: rgba(134, 239, 172, .14) !important;
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(134, 239, 172, .08);
}
html.dark .home-hero-header .nav-shell .nav-link { color: #bfd7c5 !important; }
html.dark .home-hero-header .nav-shell .nav-link:hover { background: #0f291d; color: #86efac !important; }
html.dark .home-hero-header .nav-shell .nav-link.active { background: #143823; color: #86efac !important; }
html.dark .home-hero-header .header-hamburger,
html.dark .home-hero-header.scrolled .header-hamburger { color: #eefbf1 !important; }
html.dark .home-hero-header .header-hamburger:hover { background: #16261d; }
html.dark #main-header.home-hero-header.scrolled {
  background: rgba(7, 17, 12, .97);
  border-bottom-color: #1e3323;
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, .8);
}
html.dark .home-hero-header.scrolled .nav-shell {
  background: rgba(16, 29, 22, .92);
  border-color: #274235 !important;
}
html.dark .home-hero-header.scrolled .nav-shell .nav-link { color: #bfd7c5 !important; }
html.dark .home-hero-header.scrolled .nav-shell .nav-link:hover { background: #0f291d; color: #86efac !important; }
html.dark .home-hero-header.scrolled .nav-shell .nav-link.active { background: #143823; color: #86efac !important; }

html.dark .home-hero { background: linear-gradient(180deg, #07110c 0%, #0a1710 100%); }
html.dark .home-hero-frame {
  background: #0a1710;
  border-color: #214b35;
  box-shadow: 0 34px 100px -72px rgba(0, 0, 0, .9), 0 2px 0 rgba(134, 239, 172, .05) inset;
}
html.dark .hero-sky {
  background:
    radial-gradient(75% 58% at 64% 20%, rgba(34, 197, 94, .16) 0%, rgba(15, 41, 29, .24) 50%, transparent 76%),
    radial-gradient(55% 48% at 8% 82%, rgba(34, 197, 94, .10), transparent 72%),
    radial-gradient(42% 38% at 92% 78%, rgba(250, 204, 21, .05), transparent 74%),
    linear-gradient(180deg, #08130d 0%, #0b1a12 50%, #0d2116 100%);
}
html.dark .hero-aurora {
  background: linear-gradient(100deg, transparent 0%, rgba(74, 222, 128, .13) 34%, rgba(250, 204, 21, .05) 58%, transparent 100%);
  opacity: .65;
}
html.dark .hero-contours {
  background: repeating-radial-gradient(ellipse 62% 38% at 54% 66%, transparent 0 34px, rgba(134, 239, 172, .08) 35px, transparent 36px 68px);
  opacity: .55;
}
html.dark .hero-grid {
  background-image:
    linear-gradient(rgba(134, 239, 172, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, .07) 1px, transparent 1px);
}
html.dark .hero-halo {
  border-color: rgba(134, 239, 172, .10);
  box-shadow: inset 0 0 90px rgba(34, 197, 94, .08);
}
html.dark .hero-halo::before { border-color: rgba(134, 239, 172, .08); }
html.dark .hero-watermark { color: rgba(134, 239, 172, .035); }
html.dark .hero-mist {
  background: radial-gradient(ellipse at 50% 50%, rgba(34, 197, 94, .08), transparent 70%);
}
html.dark .hero-grain { opacity: .035; mix-blend-mode: screen; }
html.dark .hero-glass-curve {
  border-top-color: rgba(134, 239, 172, .16);
  background: linear-gradient(180deg, rgba(16, 29, 22, .68) 0%, rgba(10, 23, 16, .24) 38%, rgba(10, 23, 16, .02) 100%);
  box-shadow: inset 0 42px 80px rgba(134, 239, 172, .04), 0 -30px 80px rgba(0, 0, 0, .2);
}
html.dark .hero-glass-curve::before {
  border-top-color: rgba(134, 239, 172, .12);
  background: linear-gradient(180deg, rgba(134, 239, 172, .05), transparent 70%);
}
html.dark .hero-display { color: #eefbf1; }
html.dark .hero-accent { color: #86efac; }
html.dark .hero-accent::after {
  background: linear-gradient(90deg, rgba(134, 239, 172, .5), rgba(163, 230, 53, .18) 72%, transparent);
}
html.dark .hero-kicker {
  border-color: #214b35;
  background: rgba(16, 29, 22, .78);
  color: #bfd7c5;
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(134, 239, 172, .08);
}
html.dark .hero-cta-secondary {
  border-color: #274235;
  background: rgba(16, 29, 22, .82);
  color: #dceee2;
  box-shadow: 0 14px 30px -26px rgba(0, 0, 0, .7);
}
html.dark .hero-cta-secondary:hover { background: #16261d; border-color: #2f6b49; }
html.dark .hero-stage::before {
  background: linear-gradient(135deg, rgba(34, 197, 94, .18), rgba(16, 29, 22, .4) 62%, rgba(250, 204, 21, .08));
  box-shadow: 0 30px 70px -45px rgba(0, 0, 0, .8);
}
html.dark .hero-panel {
  background: linear-gradient(150deg, #101d16 0%, #0d1c14 56%, #12271b 100%);
  border-color: #274235;
  outline-color: #274235;
  box-shadow: 0 60px 110px -58px rgba(0, 0, 0, .9), 0 26px 48px -32px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(134, 239, 172, .07);
}
html.dark .hero-panel::before {
  background:
    radial-gradient(120% 72% at 50% -18%, rgba(134, 239, 172, .10) 0%, rgba(134, 239, 172, .03) 42%, transparent 68%),
    linear-gradient(120deg, rgba(134, 239, 172, .05), transparent 30%, transparent 72%, rgba(34, 197, 94, .04));
}
html.dark .hero-panel-title { color: #eefbf1; }
html.dark .hero-orbit-ring { border-color: rgba(134, 239, 172, .16); }
html.dark .hero-orbit-ring.r2 { border-color: rgba(134, 239, 172, .12); }
html.dark .hero-orbit-ring.r3 { border-color: rgba(134, 239, 172, .22); }
html.dark .hero-float-pill {
  border-color: #274235;
  background: rgba(16, 29, 22, .9);
  color: #dceee2;
  box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(134, 239, 172, .07);
}
html.dark .hero-float-pill:hover { border-color: #2f6b49; box-shadow: 0 26px 48px -24px rgba(0, 0, 0, .85); }
html.dark .hero-proof {
  background: rgba(16, 29, 22, .88);
  border-color: rgba(134, 239, 172, .14);
  box-shadow: 0 22px 45px -34px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(134, 239, 172, .06);
}
html.dark .hero-proof:hover { border-color: #2f6b49; }
html.dark .hero-proof-value { color: #86efac; }
html.dark .hero-dock {
  background: rgba(16, 29, 22, .94);
  color: #dceee2;
  border-color: #274235;
  outline-color: #274235;
  box-shadow: 0 34px 70px -38px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(134, 239, 172, .07);
}
html.dark .hero-dock-link:hover { color: #86efac; }
html.dark .hero-seal {
  background: radial-gradient(circle at 34% 24%, #16261d, #101d16 54%, #0d1c14 100%);
  border-color: #274235;
  outline-color: #2f6b49;
  box-shadow: 0 26px 48px -22px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(134, 239, 172, .08);
}
html.dark .hero-seal::before { border-color: rgba(134, 239, 172, .24); }
html.dark .hero-seal-value { color: #86efac; }
html.dark .hero-seal-label { color: #bfd7c5; }

/* Shared public layout. Narrow article/form max-widths are intentionally kept. */
.public-site .container,
.public-site .site-container {
  width: 100%; max-width: var(--site-width);
  margin-inline: auto; padding-inline: var(--site-gutter);
}
.public-site { line-height: 1.6; }
.public-site :where(h1, h2, h3, h4) { text-wrap: balance; }
.public-site :where(p, li, h1, h2, h3, a, label) { overflow-wrap: break-word; }
.public-site :where(input, select, textarea) { max-width: 100%; }
.public-site :where(.t-btn-primary, .t-btn-secondary, .nxui-btn) {
  min-height: 44px; justify-content: center; line-height: 1.4; text-align: center;
}
.public-site :where(button, .t-btn-primary, .t-btn-secondary):disabled {
  opacity: .55; box-shadow: none; transform: none;
}
.site-skip-link {
  position: fixed; top: .75rem; left: var(--site-gutter); z-index: 10001;
  padding: .6rem 1rem; border-radius: .75rem;
  background: var(--surface); color: var(--text-1); transform: translateY(-200%);
}
.site-skip-link:focus { transform: none; }
.public-site #main-content { scroll-margin-top: 6rem; }
.public-site #main-header .nav-link { padding-inline: .7rem; }
.public-site #resources-dropdown {
  left: auto; right: 0; transform: none; width: min(520px, calc(100vw - 3rem));
}
.public-site #mobile-menu { visibility: hidden; }
.public-site #mobile-menu.open { visibility: visible; max-height: calc(100dvh - 82px); }
.public-site .auth-card { border-radius: var(--nx-radius); }
.public-site .auth-card-header { background: var(--brand-inverse); }
.public-site .auth-field { min-height: 48px; border-radius: var(--nx-radius-sm); }
.public-site :where(.t-input, .filter-input, .filter-select, .auth-field) { font-size: 1rem; }

/* Explicit inverse contexts: utility text must use the section, not page, palette. */
html:not(.dark) .public-site .text-emerald-600 { color: var(--brand-accent); }
.public-site .site-inverse {
  --text-1: #eefbf1; --text-2: #bfd7c5; --text-3: #a1bba9;
  --accent-text: #86efac;
  color: var(--text-1); background: var(--brand-inverse);
}
.public-site .site-inverse :is(.text-slate-500, .text-slate-400, .text-slate-600) {
  color: var(--text-2) !important;
}
.public-site .site-footer {
  color: #eefbf1; background: var(--brand-inverse);
}
.public-site .site-footer :is(.site-footer-muted, .site-footer-link) { color: #bfd7c5; }
.public-site .site-footer-link:hover { color: #fff; }
.public-site .site-footer-social { flex-shrink: 0; }
.public-site .site-footer-socials { flex-wrap: wrap; }
.public-site .site-footer-input { min-height: 44px; }
.public-site .site-footer-input::placeholder { color: #a1bba9; }

/* Home composition: a common rhythm without flattening the bespoke hero. */
.home-page > .site-section { padding-block: var(--section-space); }
.home-page .site-section-title {
  font-size: clamp(1.9rem, 3.3vw, 2.75rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -.035em; margin-bottom: var(--space-6);
}
.home-page .site-section-head { margin-bottom: var(--space-12); }
.home-page .site-section-head > p { font-size: 1rem; line-height: 1.75; max-width: 65ch; }
.home-page .site-card {
  border-radius: var(--nx-radius); border-color: var(--border);
  box-shadow: var(--nx-shadow); padding: var(--space-6);
}
.home-page .site-card:hover { transform: translateY(-2px); }
.home-page .site-icon {
  background: var(--brand-soft); color: var(--brand-accent);
  width: 48px; height: 48px; border-radius: var(--nx-radius-sm);
  box-shadow: none;
}
.home-page .site-inverse .site-icon { background: #214b35; color: #86efac; }
.home-page .site-benefit { background: #183c29; border-color: #3c6b4b; }
.home-page .site-benefit:hover { background: #214b35; }
.home-page .site-benefit p { color: #dcfce7; }
.home-page .site-about-copy { font-size: 1rem; line-height: 1.75; }
.home-page .site-about-image { height: auto; aspect-ratio: 4 / 3; }
.home-page .site-about-grid { gap: var(--space-12); }
.home-page .home-hero-inner { padding-inline: 0; }
.home-page .home-hero-inner > div:first-child {
  max-width: var(--site-width); padding-inline: var(--site-gutter);
}
.home-page .hero-dock { margin-inline: var(--site-gutter); }
.home-page .hero-proof { min-width: 0; flex-wrap: wrap; gap: .35rem .65rem; }
.home-page .hero-proof > span:last-child { font-size: .625rem; line-height: 1.4; }
.home-page .hero-panel > div:last-child { flex-wrap: wrap; }
.home-page .site-team-grid { gap: 2.5rem 1.25rem; }
.home-page .site-team-grid img { aspect-ratio: 1; }
.home-page #blog-slider article { height: auto !important; min-height: 480px; }
.home-page #blog-slider article > div:first-child { height: auto; aspect-ratio: 16 / 9; }
.home-page #contact .site-contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-8); }
.home-page #contact .site-contact-grid > * { width: auto; min-width: 0; }
.home-page #contact .site-contact-socials { grid-template-columns: 1fr; }
.home-page #contact .site-contact-socials a { padding: .75rem; }
.home-page #contact :is(input, textarea) {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--nx-radius-sm); font-size: 1rem;
}
.home-page #contact label { display: block; color: var(--text-2) !important; }
.public-site .site-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.25rem; min-height: 46px; border-radius: var(--nx-radius-sm);
  font-size: .875rem; font-weight: 700; line-height: 1.4; text-transform: none;
  letter-spacing: normal; text-align: center; box-shadow: none;
  transition: background .18s, border-color .18s, transform .18s;
}
.public-site .site-action-primary { background: var(--brand-accent) !important; color: #fff !important; border: 1px solid transparent; }
.public-site .site-action-primary:hover { background: var(--brand-accent-hover) !important; }
.public-site .site-action-secondary { background: var(--surface) !important; color: var(--text-1) !important; border: 1px solid var(--border); }
.public-site .site-action-secondary:hover { border-color: var(--brand-accent); }
.public-site .site-inverse .site-action-secondary { background: #214b35 !important; border-color: #3c6b4b; }
.public-site .site-catalog-card {
  min-width: 0; border-radius: var(--nx-radius); box-shadow: var(--nx-shadow);
}
.public-site .site-catalog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.public-site .site-catalog-media { height: auto; aspect-ratio: 16 / 10; }
.public-site .site-catalog-card:focus-within .site-catalog-overlay { opacity: 1; transform: none; }
.public-site .site-catalog-card .site-featured { background: #f3e9cb; color: #674e1d; }
@media (max-width: 1023px) {
  .home-page #contact .site-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .home-page #contact .site-contact-socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .public-site .site-section-head { margin-bottom: var(--space-8); }
  .public-site .auth-card > form { padding: var(--space-6); }
  .home-page .site-about-grid { gap: var(--space-8); }
  .home-page .site-about-stat { padding: .75rem; border-radius: var(--nx-radius-sm); animation: none; }
  .home-page .site-about-stat:first-of-type { right: 0; }
  .home-page .site-team-grid > div > a > div { width: 112px; height: 112px; }
  .home-page .site-team-grid h3 { font-size: 1rem; }
  .home-page #contact .site-card { padding: var(--space-6); }
  .home-page .site-resource-grid { gap: .75rem; }
  .home-page .site-resource-grid .site-card { padding: 1rem; }
  .home-page .hero-panel .hero-orbit { width: 112px; height: 112px; }
  .home-page #testimonial-dots { max-width: 50%; flex-wrap: wrap; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .team-card-reveal { opacity: 1; }
  .public-site *, .public-site *::before, .public-site *::after {
    scroll-behavior: auto !important; animation: none !important; transition: none !important;
  }
}
