/* ==========================================================================
   Draco Staff Development — v8 Landing / public pages
   Header, hero, feature grid, section bands, corporate footer.
   ========================================================================== */

/* ============================== SITE HEADER ============================== */
.site-header {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-900) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), var(--shadow-md);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
}
.site-nav { display: flex; align-items: center; gap: var(--space-2); }
.site-nav__link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.site-nav-toggle { display: none; }

/* Sign In / Dashboard action that lives INSIDE the mobile dropdown (hidden on desktop) */
.site-nav__actions { display: none; }

/* Header collapse for tablet + mobile */
@media (max-width: 900px) {
  .site-header__inner { position: relative; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--brand-navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height var(--transition-slow), opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .site-header.nav-open .site-nav {
    max-height: 520px; opacity: 1; visibility: visible; transform: translateY(0);
  }
  .site-nav__link { padding: 0.8rem 1rem; font-size: var(--fs-base); }
  .site-nav-toggle { display: inline-flex; }
  /* Sign In / Dashboard moves into the dropdown; drop it from the bar */
  .site-nav__actions {
    display: flex; flex-direction: column; gap: var(--space-2);
    margin-top: var(--space-2); padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-header__signin { display: none; }
}

/* =================================== HERO =============================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 480px at 82% -8%, rgba(91, 155, 213, 0.16), transparent 60%),
    radial-gradient(900px 420px at 6% 4%, rgba(30, 58, 95, 0.10), transparent 55%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 6rem);
}
.hero__content { max-width: 40rem; }
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  margin-top: var(--space-4);
}
:root[data-theme="dark"] .hero h1 { color: #eaf1fa; }
.hero__lead {
  font-size: var(--fs-xl);
  color: var(--text-2);
  margin-top: var(--space-5);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  color: var(--text-3); font-size: var(--fs-sm);
}
.hero__trust .trust-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__trust .icon { width: 18px; height: 18px; color: var(--success); }

/* Hero product preview panel */
.hero__visual { position: relative; }
.preview {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-5);
  transform: perspective(1600px) rotateY(-8deg) rotateX(3deg);
  transition: transform var(--transition-slow);
}
.hero__visual:hover .preview { transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg); }
.preview::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(91,155,213,0.35), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; pointer-events: none;
}
.preview__bar { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-4); }
.preview__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
/* #228 EXEMPT — these three dots are the macOS window traffic lights in a decorative browser
   mockup on the marketing page. The amber is not a status fill and carries no meaning about
   anything in the product; it is a picture of a window. Recolouring it would make the illustration
   wrong rather than compliant, in the same way task #73's search highlight is a sanctioned yellow.
   Any future banned-hue sweep must skip this block. */
.preview__bar span:nth-child(1) { background: #ff5c5c; }
.preview__bar span:nth-child(2) { background: #fbbf24; }
.preview__bar span:nth-child(3) { background: #34d399; }
.preview__bar .preview__url {
  margin-left: auto; font-size: 11px; color: var(--text-3);
  background: var(--surface-3); padding: 3px 10px; border-radius: var(--radius-full);
}
.preview__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
.preview__stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); }
.preview__stat .n { font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--brand-navy); line-height: 1; }
:root[data-theme="dark"] .preview__stat .n { color: var(--brand-sky-bright); }
.preview__stat .l { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.preview__rows { display: flex; flex-direction: column; gap: 8px; }
.preview__row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.preview__row .pill { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy)); flex: none; }
.preview__row .bar { height: 8px; border-radius: var(--radius-full); background: var(--border-strong); }
.preview__row .bar.w1 { width: 45%; } .preview__row .bar.w2 { width: 70%; }
.preview__row .tag { margin-left: auto; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-full); }
.preview__row .tag.ok { background: var(--success-bg); color: var(--success); }
.preview__row .tag.due { background: var(--warning-bg); color: var(--warning); }

/* =============================== SECTIONS =============================== */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.feature {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.section--alt .feature { background: var(--surface-2); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(91,155,213,0.18), rgba(30,58,95,0.12));
  color: var(--brand-navy); margin-bottom: var(--space-4);
}
:root[data-theme="dark"] .feature__icon { color: var(--brand-sky-bright); }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.feature p { color: var(--text-2); font-size: var(--fs-base); }

/* Split band (For Facilities / Security) */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.band__media {
  background: linear-gradient(150deg, var(--brand-navy), var(--brand-navy-950));
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.band__media h3 { color: #fff; font-size: var(--fs-2xl); }
.band__media .band__stat { font-size: var(--fs-5xl); font-weight: var(--fw-extra); color: var(--brand-sky-bright); line-height: 1; }
.checklist { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--text-2); }
.checklist .icon { width: 22px; height: 22px; color: var(--success); flex: none; margin-top: 1px; }
.band--reverse .band__media { order: -1; }

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-900));
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: var(--fs-lg); max-width: 40rem; margin: var(--space-3) auto 0; }
.cta-band .hero__actions { justify-content: center; }

/* ============================ CORPORATE FOOTER ========================== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: var(--space-16); margin-top: var(--space-20); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}
.site-footer__blurb { color: var(--footer-text); opacity: 0.82; font-size: var(--fs-sm); margin-top: var(--space-4); max-width: 26rem; }
.site-footer__col h3 { color: #fff; font-size: var(--fs-sm); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-bottom: var(--space-4); }
/* Footer nav links — scoped so it never bleeds into a .btn (which caused the
   icon/text of the "Contact Us" button to collapse and overlap). */
.site-footer__col a:not(.btn) { display: block; color: var(--footer-text); opacity: 0.82; font-size: var(--fs-sm); padding: 0.3rem 0; transition: opacity var(--transition), color var(--transition); }
.site-footer__col a:not(.btn):hover { opacity: 1; color: var(--brand-sky-bright); }
.site-footer__cta p { font-size: var(--fs-sm); opacity: 0.82; margin-bottom: var(--space-4); }
.site-footer__bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs); color: var(--footer-text); opacity: 0.75;
}
.site-footer__ver {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.06);
  padding: 3px 10px; border-radius: var(--radius-full);
}

/* ============================ RESPONSIVE ============================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero__visual { max-width: 520px; }
  .band { grid-template-columns: 1fr; gap: var(--space-8); }
  .band--reverse .band__media { order: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 767px) {
  .hero__inner { padding-block: var(--space-12); text-align: center; }
  .hero__content { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { display: none; }         /* preview panel is desktop/tablet flourish */
  .features { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .site-footer__bar { justify-content: center; text-align: center; }
}
