:root {
  --blue: #0066cc;
  --blue-deep: #004a99;
  --blue-navy: #0f2f5b;
  --blue-mist: #e8f1fb;
  --blue-soft: #d6e8f8;
  --ink: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --white: #ffffff;
  --font-display: "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-deep);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue-navy);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  text-transform: lowercase;
}

.brand-mark span {
  font-size: 2.25rem; /* 36px — matches logo */
  line-height: 36px;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 0.55rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.site-nav a:hover {
  color: var(--blue-navy);
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--blue);
  padding: 0.45rem 0.9rem;
  border-radius: 0.45rem;
}

.site-nav .nav-cta:hover {
  background: var(--blue-deep);
  color: var(--white);
}

/* Hero — one composition, brand first, full-bleed */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 6rem 1.25rem 4rem;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 85%, rgba(15, 47, 91, 0.55), transparent 50%),
    linear-gradient(155deg, #0052a3 0%, var(--blue) 42%, #0f2f5b 100%);
  animation: atmosphere-shift 18s ease-in-out infinite alternate;
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M30 8v44M8 30h44'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
}

.hero__plane {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
  animation: hero-enter 1s var(--ease) both;
}

.hero__mark {
  width: clamp(5.5rem, 14vw, 8.5rem);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 1.35rem;
  box-shadow: 0 24px 60px rgba(15, 47, 91, 0.35);
  animation: mark-float 6s ease-in-out infinite;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(5.5rem, 14vw, 8.5rem); /* matches .hero__mark */
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
  font-synthesis: none;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.96);
}

.hero__lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(232, 241, 251, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--white);
  color: var(--blue-navy);
}

.btn--primary:hover {
  background: var(--blue-mist);
  color: var(--blue-navy);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--ghost-dark {
  border-color: rgba(15, 47, 91, 0.25);
  color: var(--blue-navy);
}

.btn--ghost-dark:hover {
  background: rgba(15, 47, 91, 0.06);
  color: var(--blue-navy);
}

/* Sections */
.band {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.band--intro {
  background: linear-gradient(180deg, var(--blue-mist) 0%, var(--white) 100%);
}

.band--toc {
  padding-block: 2.5rem 1rem;
}

.band--shots {
  padding-block: 1rem 3rem;
  background: linear-gradient(180deg, var(--white) 0%, #f8fbff 100%);
}

.band--tint {
  background: #f8fbff;
}

.band--accent {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(0, 102, 204, 0.12), transparent 50%),
    linear-gradient(180deg, #f8fbff 0%, var(--blue-mist) 100%);
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.toc-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-navy);
  border-bottom: 1px solid rgba(0, 102, 204, 0.35);
}

.toc-list a:hover {
  color: var(--blue);
}

.catalog-block {
  max-width: 52rem;
}

.catalog-block--split {
  max-width: var(--max);
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .catalog-block--split {
    grid-template-columns: 1.35fr 0.65fr;
  }
}

.catalog__head {
  margin-bottom: 1.5rem;
}

.catalog__head p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.catalog__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.catalog__list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.35rem;
  border-top: 1px solid rgba(15, 47, 91, 0.08);
  color: var(--ink);
  font-size: 1.05rem;
}

.catalog__list li:last-child {
  border-bottom: 1px solid rgba(15, 47, 91, 0.08);
}

.catalog__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--blue);
}

.catalog__list--on-accent li {
  border-top-color: rgba(0, 102, 204, 0.14);
}

.catalog__list--on-accent li:last-child {
  border-bottom-color: rgba(0, 102, 204, 0.14);
}

/* UI screenshots */
.shot-rail {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .shot-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.shot-pair {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 800px) {
  .shot-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.shot {
  margin: 0 0 1.25rem;
}

.shot--wide {
  max-width: 100%;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(15, 47, 91, 0.12);
  box-shadow: 0 18px 40px rgba(15, 47, 91, 0.12);
  background: var(--white);
}

.shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.shot-pair--phones {
  justify-items: center;
  max-width: 44rem;
  margin-inline: auto;
}

.shot--phone {
  max-width: 18rem;
  width: 100%;
}

.shot--phone img {
  box-shadow: 0 24px 48px rgba(15, 47, 91, 0.2);
  border: none;
  background: transparent;
}

.band--cta {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-navy) 100%);
  color: var(--white);
  text-align: center;
}

.band--cta .lede {
  color: rgba(232, 241, 251, 0.92);
  margin-inline: auto;
}

.band--cta h2 {
  color: var(--white);
}

.section-head {
  margin-bottom: 3rem;
  max-width: 36rem;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--blue-navy);
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--blue-navy);
}

.lede {
  margin: 1rem 0 0;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.muted {
  color: var(--muted);
  font-size: 1rem;
}

.plain-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 32rem;
}

.plain-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-top: 1px solid rgba(0, 102, 204, 0.15);
  color: var(--ink);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
}

/* Feature rows — not card grids */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.feature:last-child {
  margin-bottom: 0;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .feature--flip .feature__copy {
    order: 2;
  }

  .feature--flip .feature__visual {
    order: 1;
  }
}

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

.feature__visual {
  min-height: 14rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background: var(--blue-mist);
}

.feature__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 102, 204, 0.08), transparent 55%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 14px,
      rgba(0, 102, 204, 0.06) 14px,
      rgba(0, 102, 204, 0.06) 15px
    );
}

.feature__visual--calendar {
  background: linear-gradient(160deg, #dbeafe 0%, #93c5fd 45%, var(--blue) 100%);
}

.feature__visual--protocol {
  background: linear-gradient(200deg, #e8f1fb 0%, #bfdbfe 50%, #1d4ed8 100%);
}

.feature__visual--map {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.5), transparent 35%),
    linear-gradient(145deg, #0ea5e9 0%, var(--blue) 55%, var(--blue-navy) 100%);
}

.feature__visual--ledger {
  background: linear-gradient(180deg, #f1f5f9 0%, #93c5fd 40%, #0052a3 100%);
}

.feature__visual--comms {
  background: linear-gradient(120deg, #bfdbfe 0%, var(--blue) 60%, #0f2f5b 100%);
}

/* Field */
.field-block {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .field-block {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.phone {
  width: min(100%, 16rem);
  margin-inline: auto;
  border-radius: 1.75rem;
  padding: 0.7rem;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  box-shadow: 0 30px 60px rgba(15, 47, 91, 0.25);
}

.phone__notch {
  width: 35%;
  height: 0.55rem;
  margin: 0.35rem auto 0.85rem;
  border-radius: 999px;
  background: #334155;
}

.phone__screen {
  aspect-ratio: 9 / 16;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(165deg, var(--blue) 0%, var(--blue-navy) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white);
  text-align: center;
  padding: 1rem;
}

.phone__app {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.phone__hint {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer__inner {
  display: grid;
  gap: 0.75rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-navy);
}

.site-footer__brand img {
  border-radius: 0.4rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

/* Motion */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes atmosphere-shift {
  from {
    filter: saturate(1);
  }
  to {
    filter: saturate(1.08) brightness(1.03);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__plane,
  .hero__mark,
  .hero__atmosphere,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .feature__visual {
    min-height: 10rem;
  }
}
