/* Apex Dynamics public site — Story 1.7b-pages. Self-contained, same-origin only (no CDN/external).
   Navy console theme (matches the app's --ad-* palette). Desktop-primary, responsive.
   Font: system-ui stack (Inter woff2 not vendored in this build — follow-up to self-host Inter to
   match the console pixel-for-pixel; never load it from the Google Fonts CDN). */
:root {
  --bg: #0a0f1f;
  --surface: #0f1629;
  --raised: #161f38;
  --border: #1f2a44;
  --text: #e6ecf5;
  --muted: #97a3b8;
  --accent: #7fb3ff;
  --accent-hover: #a9ccff;
  --accent-fg: #0a0f1f;
  --radius: 0.5rem;
  --container: 1120px;
  --measure: 68ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 17px;
}
a {
  color: var(--accent);
  text-decoration: underline;
}
a:hover {
  color: #fff;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}
.brand b {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand .tag {
  color: var(--muted);
  font-size: 0.8rem;
}
.header-cta {
  margin-left: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent);
  color: #fff;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-fg);
}

/* Hero (full-bleed) */
.hero img {
  width: 100%;
  height: clamp(220px, 36vw, 440px);
  object-fit: cover;
}
.title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.title img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}
h1 .sid {
  color: var(--accent);
}
.lede {
  color: var(--muted);
  font-size: 1rem;
  margin: 0.25rem 0 0;
}
.intro {
  max-width: var(--measure);
  margin: 1.25rem 0;
}

/* Home hero intro — centered title/tagline/intro/CTA (Home only) */
.hero-intro {
  text-align: center;
}
.hero-intro .title {
  justify-content: center;
}
.hero-intro .intro {
  margin-left: auto;
  margin-right: auto;
}

/* Callout */
.callout {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--muted);
  margin: 2rem auto;
  max-width: var(--measure);
}

/* Sections */
section {
  margin: 3rem 0;
}
.section-center {
  text-align: center;
}
.section-center .body,
.charter {
  text-align: left;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}
.section-center .body {
  margin-top: 1rem;
}
.section-center .body p {
  max-width: var(--measure);
}
h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: #fff;
  margin: 0 0 0.75rem;
}
.section-center h2 {
  margin-bottom: 0.25rem;
}
.sub {
  color: var(--muted);
  margin: 0.25rem 0 1.5rem;
}

/* Manifesto 2x2 */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 64rem;
  margin: 1.5rem auto 0;
  text-align: left;
}
.card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.1rem;
}
.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}
.card li {
  margin: 0.35rem 0;
}

/* Charter */
.charter {
  margin-top: 1rem;
}
.charter li {
  margin: 0 0 1.1rem;
}
.charter b {
  color: #fff;
}

/* Join band + contact */
.band {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.band h2 {
  margin-bottom: 0.25rem;
}
.band .sub {
  margin-bottom: 1.25rem;
}
.contact {
  color: var(--muted);
  text-align: center;
  margin: 2rem 0;
}

/* Legal pages (left-aligned single column) */
.legal {
  max-width: var(--measure);
}
.legal h1 {
  margin-bottom: 0.5rem;
}
.legal .lede {
  margin-bottom: 1rem;
}
.legal h2 {
  margin-top: 2.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.site-footer .container {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.site-footer nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.site-footer .fine {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0;
}

@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .header-cta {
    margin-left: 0;
    width: 100%;
  }
}
