@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  --bg: #FFFFFF;
  --surface: #ffffff;
  --brand-blue: #1557D6;
  --brand-navy: #0B234A;
  --brand-white: #FFFFFF;
  --brand-red: #F53B33;
  --brand-light: #EEF2F6;
  --brand-text: #4B5563;
  --brand-border: rgba(11, 35, 74, 0.14);
  --brand-shadow: 0 18px 45px rgba(11, 35, 74, 0.12);
  --ink: #0B234A;
  --graphite: #4B5563;
  --muted: #4B5563;
  --line: #EEF2F6;
  --accent: #F53B33;
  --accent-dark: #D92D2D;
  --accent-blue: #1557D6;
  --accent-soft: #DBEAFE;
  --shadow: var(--brand-shadow);
  --radius: 8px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(238, 242, 246, .92);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.topbar-inner,
.container,
.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(11, 35, 74, .14);
}

.brand span span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.btn {
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #F53B33);
  font-weight: 900;
  line-height: 1.1;
  box-shadow: 0 12px 28px rgba(245, 59, 51, .22);
}

.btn.secondary {
  color: var(--accent-dark);
  background: #EFF6FF;
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 80% 30%, rgba(21, 87, 214, .32), transparent 30%), linear-gradient(135deg, #0B234A 0%, #4B5563 62%, #0B234A 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 78px;
  padding-bottom: 72px;
}

.hero.video-looped,
.cta.video-looped {
  position: relative;
  overflow: hidden;
  background: #0B234A;
}

.hero.video-looped::after,
.cta.video-looped::after,
.hero.video-looped::before,
.cta.video-looped::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero.video-looped::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 35, 74, .14) 0%, rgba(11, 35, 74, .36) 48%, rgba(11, 35, 74, .88) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 35, 74, .76) 0%, rgba(11, 35, 74, .28) 52%, rgba(11, 35, 74, .54) 100%),
    linear-gradient(180deg, rgba(245, 59, 51, .16) 0%, rgba(245, 59, 51, .06) 42%, rgba(21, 87, 214, .14) 100%);
}

.hero.video-looped::before {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg) 82%);
}

.cta.video-looped::after {
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(255, 255, 255, .74) 5%, rgba(11, 35, 74, .99) 18%, rgba(11, 35, 74, .78) 34%, rgba(11, 35, 74, 0) 56%),
    linear-gradient(90deg, rgba(11, 35, 74, .82) 0%, rgba(11, 35, 74, .42) 50%, rgba(11, 35, 74, .62) 100%),
    linear-gradient(180deg, rgba(11, 35, 74, .24) 0%, rgba(11, 35, 74, .78) 100%),
    linear-gradient(180deg, rgba(245, 59, 51, .14) 0%, rgba(245, 59, 51, .05) 44%, rgba(21, 87, 214, .14) 100%);
}

.cta.video-looped::before {
  left: 0;
  right: 0;
  top: -1px;
  height: 180px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 255, 255, 0) 82%);
}

.loop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .68;
  filter: saturate(1.08) contrast(1.05) brightness(.82) sepia(.08) hue-rotate(8deg);
  background: #0B234A;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

h1,
h2,
h3,
p { margin: 0; }

h1 {
  max-width: none;
  width: 100%;
  font-size: clamp(2.3rem, 6vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-family: var(--font-head);
  font-weight: 700;
}

h2 {
  max-width: none;
  width: 100%;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4.3vw, 2.5rem);
  line-height: 1.08;
  font-family: var(--font-head);
  font-weight: 700;
}

h3 {
  max-width: none;
  width: 100%;
  font-size: 1rem;
  line-height: 1.22;
  font-family: var(--font-head);
  font-weight: 700;
}

.hero p:not(.eyebrow),
.section-head p {
  max-width: none;
  width: 100%;
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.section-head p {
  color: var(--muted);
}

.section-head {
  max-width: none;
  width: 100%;
  display: grid;
  gap: 10px;
}

.container {
  padding-top: 50px;
  padding-bottom: 50px;
}

.grid {
  display: grid;
  gap: 14px;
}

.card,
.note,
.faq details,
.toc,
.btn,
.brand img,
.links a,
.toc a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero,
.cta {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.card,
.note,
.faq details,
.toc {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card,
.note,
.toc {
  padding: 18px;
}

.hero,
.cta {
  border-color: transparent;
}

.card p,
.note p,
.faq p,
li {
  color: var(--muted);
  font-weight: 750;
}

.card p,
.note p {
  margin-top: 8px;
}

.toc {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  background: #f8fbfa;
}

.toc a {
  color: var(--accent-dark);
  font-weight: 900;
}

.content {
  display: grid;
  gap: 22px;
}

.content p {
  color: var(--muted);
  font-weight: 750;
}

.content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.strong {
  border-left: 4px solid var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.faq details + details {
  margin-top: 8px;
}

.faq summary {
  padding: 15px;
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  padding: 0 15px 15px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 900;
}

.cta {
  position: relative;
  color: #fff;
  background: #0B234A;
}

.container.cta {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}

.cta .container {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.audio-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 59, 51, .25);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(11, 35, 74, .14);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.audio-toggle.is-playing {
  color: #fff;
  background: rgba(245, 59, 51, .96);
  box-shadow: 0 16px 34px rgba(245, 59, 51, .24);
}

.cta p {
  max-width: 760px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
}

.cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.footer {
  font-size: .92rem;
  padding: 30px 18px;
  color: #dfe8e5;
  background: #0B234A;
}

.footer-inner {
  display: grid;
  gap: 14px;
  align-items: start;
}

.footer strong {
  display: block;
  font-size: .94rem;
  line-height: 1.2;
}

.footer p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
  line-height: 1.35;
  font-weight: 750;
}

.footer a {
  color: #b6f0dd;
  font-size: .84rem;
  line-height: 1.32;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-call {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(182, 240, 221, .26);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #DBEAFE;
  background: rgba(245, 59, 51, .16);
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.footer-call:hover {
  background: rgba(245, 59, 51, .26);
}

.footer-note {
  width: min(1120px, 100%);
  margin: 12px auto 0;
  padding: 10px 18px 0;
  border-top: 1px solid rgba(182, 240, 221, .18);
  color: rgba(223, 232, 229, .74);
  font-size: .82rem;
  line-height: 1.4;
}

.footer-compact-list {
  display: grid;
  gap: 2px;
}

.footer-compact-list p {
  margin-top: 0;
}

.footer-compact-list strong {
  grid-column: 1 / -1;
}

@media (min-width: 760px) {
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; }
}
