/* =====================================================================
   HawkZero interface system
   ---------------------------------------------------------------------
   1. .hz-banner  — the 15 supplied banner PNGs used as section buttons.
                     The artwork is the brand: image rendering, masks and
                     label placement are unchanged. Only typography and
                     interaction states were modernised.
   2. .hz-btn     — modern solid buttons (flat surfaces, 1px borders,
                     restrained accent, no chamfers, no neon, no glow).
   Themes: gold | violet | cyan   (the three banner colourways)
   ===================================================================== */

:root {
  --hz-font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
                     Roboto, "Helvetica Neue", Arial, sans-serif;
  --hz-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
                Roboto, "Helvetica Neue", Arial, sans-serif;

  --hz-steel-1: #141922;
  --hz-steel-2: #10151d;
  --hz-steel-3: #0b0f15;
  --hz-text: #e7ecf4;

  /* default theme = cyan */
  --hz-c:  #4cc2f7;
  --hz-c2: #9ad8f7;
  --hz-glow: 76, 194, 247;
}
.hz-gold,   [data-theme="gold"]   { --hz-c: #e6b45a; --hz-c2: #f0d296; --hz-glow: 230, 180, 90; }
.hz-violet, [data-theme="violet"] { --hz-c: #a78bfa; --hz-c2: #c4b5fd; --hz-glow: 167, 139, 250; }
.hz-cyan,   [data-theme="cyan"]   { --hz-c: #4cc2f7; --hz-c2: #9ad8f7; --hz-glow: 76, 194, 247; }

/* ---------------------------------------------------------------------
   1. BANNER IMAGE BUTTONS  (brand artwork preserved verbatim)
   <a class="hz-banner hz-gold" style="--hz-img:url('/img/buttons/recon.png')">
   All banners are 960x240 (4:1); label panel starts ~36% from the left.
   --------------------------------------------------------------------- */
.hz-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  container-type: inline-size;
  background: var(--hz-img) center / 100% 100% no-repeat;
  text-decoration: none;
  color: var(--hz-text);
  border: 0;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%),
                      linear-gradient(0deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%),
              linear-gradient(0deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
  opacity: .88;
  transition: opacity .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.hz-banner__label {
  position: absolute;
  inset: 0;
  padding-left: 36%;
  padding-right: 7%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--hz-font-ui);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;   /* matches the artwork's own lettering */
  font-size: clamp(10px, 4.9cqw, 28px);
  line-height: 1.15;
  color: #f4f8ff;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}
.hz-banner__label > span:first-child,
.hz-banner__label { max-width: 100%; }
.hz-banner__text { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hz-banner__sub {
  display: block;
  margin-top: .3em;
  font-family: var(--hz-font-ui);
  font-weight: 500;
  font-size: .5em;
  letter-spacing: .12em;
  color: var(--hz-c2);
}
.hz-banner:hover,
.hz-banner:focus-visible { opacity: 1; filter: brightness(1.07); }
.hz-banner:active { filter: brightness(1.12); }
.hz-banner.is-active { opacity: 1; }
.hz-banner.is-active .hz-banner__text { color: var(--hz-c2); }
.hz-banner--compact .hz-banner__label { letter-spacing: .06em; }

/* ---------------------------------------------------------------------
   2. BUTTONS  (.hz-btn) — flat surfaces, 1px borders, accent used with
   restraint. No clip-path, no glow, no gradient, no text-shadow.
   Modifiers: --sm --lg --block --ghost --danger | [disabled] | is-loading
   --------------------------------------------------------------------- */
.hz-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 34px;
  padding: .6em 1.05em;
  margin: 0;
  border: 1px solid rgba(var(--hz-glow), .35);
  border-radius: 6px;
  background: rgba(var(--hz-glow), .10);
  color: #e7ecf4;
  font-family: var(--hz-font-ui);
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.hz-btn:hover,
.hz-btn:focus-visible {
  background: rgba(var(--hz-glow), .16);
  border-color: rgba(var(--hz-glow), .55);
}
.hz-btn:focus-visible { outline: 2px solid var(--hz-c); outline-offset: 2px; }
.hz-btn:active { background: rgba(var(--hz-glow), .22); }

/* icon slot */
.hz-btn__icon { font-size: 1.1em; line-height: 0; color: var(--hz-c2); }

/* ghost / outline */
.hz-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.10);
  color: var(--hz-c2);
}
.hz-btn--ghost:hover,
.hz-btn--ghost:focus-visible {
  background: rgba(255,255,255,.05);
  border-color: rgba(var(--hz-glow), .40);
}

/* danger: red accent, same geometry */
.hz-btn--danger { --hz-c: #f16a76; --hz-c2: #f5a3ab; --hz-glow: 241, 106, 118; }

/* sizes */
.hz-btn--sm { font-size: 11.5px; min-height: 29px; padding: .45em .8em; }
.hz-btn--lg { font-size: 14px; min-height: 42px; padding: .75em 1.4em; }
.hz-btn--block { display: flex; width: 100%; }

/* disabled */
.hz-btn[disabled],
.hz-btn.is-disabled {
  pointer-events: none;
  opacity: .45;
}

/* loading */
.hz-btn.is-loading { color: transparent; }
.hz-btn.is-loading > .hz-btn__spin {
  position: absolute; inset: 0; margin: auto;
  width: 1.05em; height: 1.05em;
  border: 2px solid rgba(var(--hz-glow), .25);
  border-top-color: var(--hz-c2);
  border-radius: 50%;
  animation: hz-spin .8s linear infinite;
}
@keyframes hz-spin { to { transform: rotate(360deg); } }

/* button group */
.hz-btn-group { display: inline-flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------------
   3. INPUTS + LABELS — clean inset fields, no chamfers
   --------------------------------------------------------------------- */
.hz-field { position: relative; isolation: isolate; display: block; }
.hz-input {
  width: 100%;
  background: #0c1016;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  color: var(--hz-text);
  font-family: var(--hz-font-ui);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
  padding: .65em .85em;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hz-field:focus-within .hz-input,
.hz-input:focus-visible {
  border-color: rgba(var(--hz-glow), .6);
  box-shadow: 0 0 0 3px rgba(var(--hz-glow), .14);
}
.hz-input::placeholder { color: rgba(184,194,209,.42); }
.hz-input:-webkit-autofill { -webkit-text-fill-color: var(--hz-text); box-shadow: 0 0 0 100px #0c1016 inset; }

.hz-label {
  display: block;
  margin: 0 0 .35rem .1rem;
  font-family: var(--hz-font-ui);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--hz-c2);
}

@media (prefers-reduced-motion: reduce) {
  .hz-banner, .hz-btn { transition: none; }
  .hz-btn.is-loading > .hz-btn__spin { animation: none; }
}
