/* WOSP marketing site. Tokens from WOSP-Branding-Marketing (BRAND.md).
   Palette is fixed: charcoal / steel / sky / ghost / coral. Coral is an accent
   only: one per composition, never a large fill.

   Dark theme: BRAND.md's "Inverse" colorway (mark on charcoal is fine, do not
   recolor facets). Charcoal is the page background; ghost is ink; sky is the
   secondary/link color. --wosp-secondary and --wosp-surface below are not new
   brand colors — they're a lightened steel and lightened charcoal already
   present in the shipped mark.svg facets, reused for text contrast and card
   elevation on a dark page. */
:root {
  --wosp-charcoal: #2B2A28;
  --wosp-steel: #577399;
  --wosp-sky: #BDD5EA;
  --wosp-ghost: #F7F7FF;
  --wosp-coral: #FE5F55;

  --wosp-coral-dark: #e14c42;
  --wosp-secondary: #8aa4c0;
  --wosp-surface: #37362f;
  --wosp-border: rgba(189, 213, 234, 0.16);

  --wosp-max: 1080px;
  --wosp-radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--wosp-charcoal);
  color: var(--wosp-ghost);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(var(--wosp-max), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wosp-coral);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(43, 42, 40, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wosp-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--wosp-ghost);
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.brand .name {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a:not(.btn) {
  text-decoration: none;
  color: var(--wosp-ghost);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn):focus-visible {
  color: var(--wosp-sky);
  border-color: var(--wosp-sky);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--wosp-border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--wosp-coral);
  color: #fff;
}
.btn-primary:hover { background: var(--wosp-coral-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--wosp-secondary);
  color: var(--wosp-sky);
}
.btn-outline:hover { background: var(--wosp-sky); color: var(--wosp-charcoal); border-color: var(--wosp-sky); }

/* Badge / pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--wosp-sky);
  color: var(--wosp-charcoal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wosp-coral);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .badge .dot { animation: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
}

.hero-facets {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 620px;
  max-width: 60vw;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.acronym {
  color: var(--wosp-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0.9rem 0 0;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 1rem 0 1.1rem;
  max-width: 34rem;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--wosp-secondary);
  max-width: 36rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.tagline {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
}
.tagline .coral { color: var(--wosp-coral); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Sections */
section { padding: 4rem 0; }

.section-head {
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.section-head .eyebrow {
  color: var(--wosp-coral);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--wosp-secondary);
  line-height: 1.6;
  font-size: 1.05rem;
  margin: 0;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--wosp-surface);
  border: 1px solid var(--wosp-border);
  border-radius: var(--wosp-radius);
  padding: 1.5rem;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(87, 115, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card .icon i {
  font-size: 1.05rem;
  color: var(--wosp-sky);
}
.menu-toggle i {
  font-size: 1.05rem;
  color: var(--wosp-ghost);
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  color: var(--wosp-ghost);
}

.card p {
  margin: 0;
  color: var(--wosp-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Inspired-by-CIPP callout */
.callout {
  background: var(--wosp-surface);
  color: var(--wosp-ghost);
  border: 1px solid var(--wosp-border);
  border-radius: var(--wosp-radius);
  padding: 2.25rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .callout { grid-template-columns: 1fr auto; align-items: center; }
}

.callout p {
  margin: 0;
  color: var(--wosp-sky);
  line-height: 1.65;
  font-size: 1.02rem;
  max-width: 42rem;
}

.callout strong { color: #fff; }

.callout .btn-outline {
  border-color: var(--wosp-sky);
  color: var(--wosp-ghost);
  flex-shrink: 0;
}
.callout .btn-outline:hover { background: var(--wosp-sky); color: var(--wosp-charcoal); }

/* Features teaser link */
.teaser-more {
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  background: var(--wosp-charcoal);
  color: var(--wosp-sky);
  margin-top: auto;
  border-top: 1px solid var(--wosp-border);
}

.site-footer .wrap {
  padding: 2.75rem 0 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand .name {
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  font-size: 0.9rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.footer-nav a {
  text-decoration: none;
  color: var(--wosp-sky);
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--wosp-border);
  padding: 1.1rem 0 1.5rem;
}
.footer-bottom .wrap {
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--wosp-secondary);
}
.footer-bottom a { color: var(--wosp-secondary); text-decoration: underline; }
.footer-bottom a:hover { color: var(--wosp-sky); }

/* Mobile nav */
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    background: var(--wosp-charcoal);
    border-bottom: 1px solid var(--wosp-border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav:not(.open) { display: none; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav ul li a { display: block; padding: 0.85rem 1.25rem; }
  .main-nav .btn { margin: 0.75rem 1.25rem 0; }
  .hero-facets { opacity: 0.45; }
}
