/* Shared by every public page: fonts, colours, header, footer, buttons and focus.
   Page stylesheets add their own layout on top. Keep a copy in
   server/admin/public/assets/frontier.css (the portal pages load it locally). */
@import url(/assets/fonts/fonts.css);

:root {
  --bg: #07090f;
  --panel: #0d1220;
  --panel-2: #111a2c;
  --line: #22304a;
  --text: #e6edf6;
  --muted: #9aabc2;
  --crystal: #4fc3ff;
  --crystal-deep: #1b6fd1;
  --gold: #e0b35a;
  --ember: #ff6a2b;
  --ok: #7be0b0;
  --warn: #f1c25a;
  --bad: #ff8b73;
  --title: #f4ead6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; }
a { color: var(--crystal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--crystal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--panel); color: var(--text); border: 1px solid var(--crystal); border-radius: 8px; }
.skip-link:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 15, .86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-header .brand img { height: 48px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px var(--gold); padding-bottom: 2px; }
.nav-cta {
  color: #051320 !important; font-weight: 600; padding: 8px 16px; border-radius: 8px;
  background: linear-gradient(180deg, #8fe0ff 0%, var(--crystal) 45%, var(--crystal-deep) 100%);
  box-shadow: 0 4px 16px rgba(40, 150, 255, .35);
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }
.site-menu { display: none; position: relative; }
.site-menu summary {
  list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid #3a4d6d;
  border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14px;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: grid;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.site-menu nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); }
.site-menu nav a:hover { background: var(--panel-2); text-decoration: none; }
.site-menu nav .nav-cta { margin-top: 6px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: 17px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #051320;
  background: linear-gradient(180deg, #8fe0ff 0%, var(--crystal) 45%, var(--crystal-deep) 100%);
  box-shadow: 0 8px 30px rgba(40, 150, 255, .45), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-ghost { color: var(--text); background: rgba(13,18,32,.7); border-color: #3a4d6d; }
.btn-ghost:hover { border-color: var(--gold); }
.btn svg { width: 20px; height: 20px; }

/* Shared title elements */
.rule { width: 72px; height: 3px; margin: 0 0 32px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--ember)); }
.eyebrow { margin: 0 0 6px; color: var(--crystal); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-menu { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
