:root {
  color-scheme: light;
  --ink: #101f3e;
  --muted: #526078;
  --blue: #075af5;
  --blue-bright: #2165f5;
  --navy: #0b1836;
  --navy-card: #112344;
  --line: #dce3ef;
  --pale: #f3f6fc;
  --wrap: 1200px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

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

a {
  color: var(--blue);
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 3px solid #ffbd48;
  outline-offset: 6px;
}

button:focus-visible {
  outline: 3px solid #ffbd48;
  outline-offset: 6px;
}

[hidden] {
  display: none !important;
}

p {
  margin: 0 0 1rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: #edf2fb;
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -.035em;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.1rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.95rem, 3.4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.wrap {
  width: min(var(--wrap), calc(100% - 80px));
  margin-inline: auto;
}

.section {
  padding-block: 92px;
}

.eyebrow {
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.eyebrow.light {
  color: #96bdff;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 10px 20px;
  background: #fff;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-size: .78rem;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

/* One shared theme control on the landing page and privacy policy. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: transparent;
  font: 600 .78rem/1.2 Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--blue);
}

.theme-light {
  color: var(--ink);
}

.theme-track {
  width: 32px;
  height: 18px;
  padding: 2px;
  background: #dce3ef;
  border-radius: 12px;
}

.theme-track > span {
  display: block;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .15s;
}

nav a {
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

.nav-cta {
  padding: 9px 17px;
  background: var(--blue-bright);
  color: #fff;
  border-radius: 5px;
  transition: background .15s;
}

.nav-cta:hover {
  background: #3879ff;
  text-decoration: none;
}

/* Supplied FM Shield branding. Keep the logo readable in either theme. */
.brand .brand-logo,
.footer-brand .brand-logo {
  width: 190px;
  height: auto;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
}

/* The existing theme attribute chooses the header logo, including before JS is ready. */
.brand .brand-logo-dark {
  display: none;
}

/* Hero */
.hero-artwork {
  display: block;
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  background: #001020;
}

.hero-artwork img {
  width: 100%;
  height: auto;
}

.hero {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding-block: 76px 64px;
  align-items: center;
}

.hero h1 span {
  color: #7db1ff;
}

.hero-lead {
  font-size: clamp(1.15rem, 1.5vw, 1.38rem);
  line-height: 1.45;
  margin-top: 24px;
  color: #eef4ff;
  font-weight: 500;
}

.hero-description {
  color: #c2d1e8;
  max-width: 560px;
  font-size: 1.03rem;
  margin-top: 16px;
}

.hero-description strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 5px;
  transition: background .15s, transform .15s;
}

.button-blue {
  background: var(--blue-bright);
  color: #fff;
}

.button-blue:hover {
  background: #3879ff;
}

.text-link {
  font-weight: 600;
}

.light-link {
  color: #dce9ff;
}

.light-link:hover {
  color: #fff;
}

.status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #b7c7e1;
  font-size: .875rem;
  margin-top: 28px;
  margin-bottom: 0;
  line-height: 1.6;
}

.status-strip strong {
  color: #e6f0ff;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4da3ff;
  box-shadow: 0 0 0 4px rgba(77, 163, 255, .22);
  flex-shrink: 0;
}

.hero-bottom {
  padding: 22px 0;
  border-top: 1px solid #2a3855;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: #c3d1e8;
  font-size: .88rem;
  font-weight: 500;
}

/* Architecture diagram */
.architecture {
  border: 1px solid #3a4b6a;
  border-radius: 12px;
  background: var(--navy-card);
  padding: 26px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .24);
}

.diagram-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: #d6e3f7;
  font-weight: 600;
  margin-bottom: 22px;
}

.diagram-tag {
  font-size: .75rem;
  border: 1px solid #496694;
  background: rgba(77, 163, 255, .12);
  color: #b7d4ff;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
}

.diagram-layer {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #3d567b;
  border-radius: 7px;
  padding: 18px 20px;
  background: #172e51;
}

.diagram-layer > svg {
  width: 32px;
  min-width: 32px;
  stroke: #8ab8ff;
  stroke-width: 1.5;
  fill: none;
}

.diagram-kicker {
  display: block;
  color: #9fc4ff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: 3px;
}

.diagram-layer strong {
  display: block;
  font-size: .98rem;
  line-height: 1.35;
}

.diagram-layer p {
  margin: 5px 0 0;
  font-size: .8rem;
  color: #bbcae2;
}

.connector {
  width: 1px;
  height: 20px;
  margin: auto;
  background: #5f83b6;
}

.diagram-server {
  text-align: center;
  background: #0b1934;
  padding: 18px;
  border: 1px solid #3d567b;
  border-radius: 7px;
}

.diagram-server svg {
  width: 48px;
  height: 52px;
  margin: 0 auto 10px;
  stroke: #8ab8ff;
  fill: #19386a;
  stroke-width: 2;
}

.diagram-server span {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
}

.diagram-server p {
  font-size: .8rem;
  color: #b7c7e1;
  margin: 4px 0 0;
}

.diagram-result {
  border-top: 1px solid #3a4b6a;
  margin-top: 22px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-icon {
  font-size: 1.9rem;
  line-height: 1;
  color: #8ab8ff;
}

.diagram-result strong {
  font-size: .95rem;
}

.diagram-result p {
  font-size: .8rem;
  color: #b7c7e1;
  margin: 3px 0 0;
}

/* Section Headings */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 56px;
  margin-bottom: 42px;
}

.section-aside {
  max-width: 410px;
  color: var(--muted);
  margin: 0;
  font-size: 1.025rem;
}

.section-aside p:last-child {
  margin: 0;
}

/* Why Now — Threat Cards */
.threat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.threat-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: 30px;
  background: #fff;
}

.threat-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: #edf3ff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.threat-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.threat-card p {
  color: var(--muted);
  font-size: .96rem;
  margin: 0;
}

/* Approach */
.approach {
  background: var(--pale);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.approach-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 8px;
}

.panel-label {
  display: inline-block;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-size: .875rem;
  font-weight: 700;
  padding-bottom: 6px;
  margin-bottom: 22px;
}

.approach-panel h3 {
  margin-bottom: 18px;
}

.approach-panel p,
.approach-panel li {
  color: var(--muted);
}

.approach-panel strong {
  color: var(--ink);
}

.approach-panel ul {
  padding-left: 19px;
  margin: 22px 0 0;
}

.approach-panel li {
  padding-left: 5px;
  margin: 10px 0;
}

.approach-panel li::marker {
  color: var(--blue);
}

.principles {
  margin-top: 30px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.principles h3 {
  font-size: 1.45rem;
}

.principles p {
  color: var(--muted);
  margin: 0;
}

.principles strong {
  color: var(--ink);
}

/* Lab Proof */
.lab-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--pale);
  box-shadow: 0 12px 40px rgba(16, 31, 62, .06);
}

.lab-figure img {
  width: 100%;
  height: auto;
}

.lab-figure a {
  display: block;
}

.lab-figure figcaption {
  padding: 18px 25px;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
}

.lab-figure figcaption strong {
  color: var(--ink);
}

.evidence-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-top: 35px;
}

.evidence-note h3 {
  font-size: 1.45rem;
  max-width: 440px;
}

.evidence-note p {
  margin: 0;
  color: var(--muted);
}

/* Free Resources */
.resources {
  background: var(--pale);
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.resources-grid > div > p:last-child {
  max-width: 460px;
  color: var(--muted);
  margin-top: 22px;
  font-size: 1.06rem;
}

.resource-links {
  display: grid;
  gap: 18px;
}

.resource-link {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 28px;
  background: #fff;
  text-decoration: none;
  color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}

.resource-link:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(7, 90, 245, .08);
}

.resource-type {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue);
}

.resource-link strong {
  font-size: 1.45rem;
  color: var(--ink);
  margin: 6px 0;
}

.resource-link > span:not(.resource-type):not(.resource-domain) {
  font-size: .95rem;
}

.resource-domain {
  font-size: .9rem;
  font-weight: 650;
  color: var(--blue);
  margin-top: 14px;
}

/* CTA Panel */
.contact-panel {
  background: var(--navy);
  color: #fff;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 64px;
  border-radius: 10px;
}

.contact-panel h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.contact-panel > div > p:not(.eyebrow):not(.contact-explainer) {
  color: #c3d1e8;
  margin-top: 20px;
  font-size: 1.04rem;
}

.contact-panel strong {
  color: #fff;
}

.button-white {
  background: #fff;
  color: var(--ink);
  margin-top: 14px;
}

.button-white:hover {
  background: #dce8ff;
}

.contact-explainer {
  font-size: .875rem;
  color: #b7c7e1;
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 480px;
}

.contact-explainer a {
  color: #c9ddff;
}

.launch-note {
  border-left: 1px solid #3a4b6a;
  padding-left: 36px;
  align-self: center;
}

.launch-note > span {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #96bdff;
}

.rollout-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 18px;
}

.rollout-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rollout-list strong {
  font-size: .95rem;
  color: #fff;
}

.rollout-list span {
  font-size: .9rem;
  color: #b7c7e1;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 46px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 205px;
}

.footer-brand > span > span {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}

.footer-row > p {
  font-size: .8rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}

.footer-row > a:last-child {
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-links {
  display: grid;
  gap: 8px;
  flex-shrink: 0;
  font-size: .9rem;
  font-weight: 600;
}

/* Privacy policy uses the same typography and theme as the landing page. */
.privacy-content {
  max-width: 900px;
  padding-block: 64px 92px;
  overflow-wrap: anywhere;
}

.privacy-content h1 {
  margin-bottom: 20px;
}

.privacy-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-block: 48px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.privacy-content h3 {
  font-size: 1.15rem;
  letter-spacing: -.01em;
  margin-block: 28px 12px;
}

.privacy-content p,
.privacy-content li {
  color: var(--muted);
}

.privacy-content strong {
  color: var(--ink);
}

.privacy-summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale);
}

.privacy-summary p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (min-width: 1500px) {
  .hero-grid {
    gap: 96px;
  }
  .architecture {
    padding: 32px;
  }
}

@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero-grid {
    gap: 36px;
  }
  .architecture {
    padding: 20px;
  }
  .threat-grid {
    grid-template-columns: 1fr;
  }
  .resources-grid {
    gap: 40px;
  }
  .section-heading {
    gap: 35px;
  }
  .contact-panel {
    padding: 40px;
    gap: 35px;
  }
  .header-row {
    flex-wrap: wrap;
    padding-block: 16px;
    gap: 16px;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
    gap: 18px;
  }
  .theme-toggle {
    margin-left: auto;
  }
}

@media (max-width: 780px) {
  .section {
    padding-block: 64px;
  }
  .header-row {
    min-height: 92px;
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 18px;
    gap: 16px;
  }
  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  nav a {
    font-size: .875rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 52px 40px;
  }
  .hero-copy {
    max-width: 620px;
  }
  h1 {
    font-size: clamp(2.2rem, 6.8vw, 3.6rem);
  }
  .architecture {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-bottom {
    justify-content: center;
    text-align: center;
    font-size: .82rem;
  }
  .approach-grid,
  .resources-grid,
  .contact-panel,
  .principles,
  .evidence-note {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .section-heading {
    display: block;
  }
  .section-aside {
    max-width: 600px;
    margin-top: 20px;
  }
  .approach-panel {
    padding: 28px;
  }
  .launch-note {
    border-left: 0;
    border-top: 1px solid #3a4b6a;
    padding-left: 0;
    padding-top: 26px;
  }
  .footer-row {
    flex-wrap: wrap;
  }
  .footer-row > p {
    order: 3;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1.2rem;
    gap: 8px;
  }
  .brand .brand-logo {
    width: 150px;
    height: auto;
  }
  .brand small {
    font-size: .7rem;
  }
  .theme-toggle {
    padding-inline: 8px;
    gap: 5px;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .hero-grid {
    padding-top: 40px;
  }
  .contact-panel {
    padding: 28px 22px;
  }
  .button-white,
  .button-blue {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
