:root {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0a1628;
  background-color: #ffffff;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Navbar
========================= */

.navbar {
  position: sticky;
  z-index: 100;
  top: 0;

  display: flex;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 16px 48px;

  border-bottom: 2px solid #e4cd1d;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}

.brand {
  display: flex;
  flex-shrink: 0;
  min-width: 0;
  align-items: center;
  gap: 10px;

  color: #0a1628;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
}

.brand img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
}

.brand strong {
  font-weight: 600;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;

  margin: 0;
  padding: 0;

  list-style: none;
  color: #1a2340;
  font-size: 17px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  display: block;
  padding-bottom: 5px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links .active {
  color: #2251d4;
}

.nav-links .active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 2px;
  border-radius: 999px;
  background-color: #f59e0b;

  content: "";
}

.menu-toggle,
.mobile-menu-backdrop,
.mobile-menu-close,
.mobile-contact {
  display: none;
}

/* =========================
   Buttons
========================= */

.contact-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.contact-button {
  flex-shrink: 0;
  padding: 12px 24px;
  color: #ffffff;
  background-color: #0a1628;
}

.contact-button:hover,
.contact-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
  background-color: #2251d4;
}

.contact-button:active,
.primary-button:active,
.secondary-button:active {
  transform: scale(0.98);
}

/* =========================
   Hero layout
========================= */

.hero {
  display: flex;
  height: calc(100vh - 82px);
  height: calc(100svh - 82px);
  height: calc(100svh - 61px);
  min-height: 560px;
  background-color: #ffffff;
}

.hero-content {
  display: flex;
  width: 58%;
  align-items: center;

  padding: clamp(40px, 5vw, 88px);

  background-color: #ffffff;
}

.hero-copy {
  width: 100%;
  max-width: 672px;
}

.eyebrow {
  margin: 0 0 20px;

  color: #2251d4;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================
   Rotating content
========================= */

.slide {
  min-height: 250px;
}

.slide h1 {
  margin: 0 0 20px;

  color: #0a1628;

  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 800;
  line-height: 1.2;
}

/* The third message is longer, so it uses a smaller size. */
.slide.third h1 {
  font-size: clamp(28px, 3.2vw, 44px);
}

.slide h1 span {
  color: #f59e0b;
}

.slide p {
  max-width: 680px;
  margin: 0 0 32px;

  color: #64748b;

  font-size: 16px;
  line-height: 1.7;
}

.slide p span {
  color: #f59e0b;
  font-weight: 600;
}

.slide p:empty {
  display: none;
}

.slide.animate h1,
.slide.animate p {
  animation: slide-enter 650ms ease-out both;
}

/* =========================
   Hero actions
========================= */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-button {
  gap: 8px;
  padding: 12px 24px;
  color: #ffffff;
  background-color: #0a1628;
}

.primary-button span {
  font-size: 18px;
  line-height: 1;
}

.secondary-button {
  padding: 11px 24px;

  border: 1px solid rgb(10 22 40 / 30%);

  color: #0a1628;
  background-color: #ffffff;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background-color: #f8fafc;
}

/* =========================
   Right-side logo
========================= */

.hero-logo {
  display: flex;
  width: 42%;
  min-height: 288px;
  align-items: center;
  justify-content: center;

  padding: 48px 32px;

  background-color: #ffffff;
}

.hero-logo img {
  display: block;
  width: min(460px, 90%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* =========================
   Animation
========================= */

@keyframes slide-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Tablet
========================= */

@media (max-width: 900px) {
  .navbar {
    gap: 16px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .nav-links {
    gap: 18px;
    font-size: 13px;
  }

  .hero-content {
    padding: 48px 36px;
  }

  .hero-logo {
    padding: 48px 24px;
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 767px) {
  .navbar {
    min-height: 61px;
    padding: 12px 20px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .brand img {
    flex-shrink: 0;
  }

  .brand-name {
    display: block;
    flex: 1 1 auto;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: none;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: #0a1628;
    background: transparent;
    cursor: pointer;
  }

  .menu-icon {
    display: flex;
    width: 24px;
    flex-direction: column;
    gap: 5px;
  }

  .menu-icon span {
    display: block;
    width: 100%;
    flex: 0 0 2px;
    height: 2px;
    border-radius: 2px;
    background-color: #0a1628;
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: block;
    visibility: hidden;
    border: 0;
    opacity: 0;
    background: rgb(0 8 16 / 68%);
    cursor: default;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .nav-links {
    position: fixed;
    z-index: 120;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: 82vw;
    max-width: 600px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    overflow-y: auto;
    visibility: hidden;
    color: #f5f7fa;
    background: #001625;
    box-shadow: -12px 0 36px rgb(0 0 0 / 18%);
    transform: translateX(100%);
    transition:
      transform 260ms ease,
      visibility 260ms ease;
  }

  .nav-links>li:not(.mobile-menu-close)>a {
    display: flex;
    min-height: 98px;
    align-items: center;
    padding: 24px 36px;
    border-bottom: 1px solid rgb(255 255 255 / 5%);
    color: #f5f7fa;
    font-size: 24px;
    font-weight: 400;
  }

  .nav-links>li:not(.mobile-menu-close)>a:hover,
  .nav-links>li:not(.mobile-menu-close)>a:focus-visible,
  .nav-links .active {
    color: #ffffff;
  }

  .nav-links .active::after {
    display: none;
  }

  .mobile-menu-close {
    display: flex;
    height: 112px;
    flex: 0 0 112px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 28px;
    border-bottom: 1px solid rgb(255 255 255 / 5%);
  }

  .mobile-menu-close button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #ffffff;
    background: transparent;
    font: inherit;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-contact {
    display: block;
  }

  .contact-button {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .mobile-menu-backdrop {
    visibility: visible;
    opacity: 1;
  }

  body.menu-open .nav-links {
    visibility: visible;
    transform: translateX(0);
  }

  .hero {
    height: auto;
    min-height: calc(100vh - 61px);
    flex-direction: column;
  }

  .hero-content,
  .hero-logo {
    width: 100%;
  }

  .hero-content {
    padding: 56px 32px 32px;
  }

  .hero-copy {
    max-width: none;
  }

  .slide {
    min-height: 300px;
  }

  .slide h1 {
    font-size: 36px;
  }

  .slide.third h1 {
    font-size: 24px;
  }

  .hero-logo {
    min-height: auto;
    padding: 24px 32px 56px;
  }

  .hero-logo img {
    width: min(256px, 80%);
  }
}

/* =========================
   Small mobile
========================= */

@media (max-width: 420px) {
  .navbar {
    padding: 12px 16px;
  }

  .brand-name {
    font-size: 13px;
  }

  .contact-button {
    padding: 10px 16px;
    font-size: 12px;
  }

  .nav-links>li:not(.mobile-menu-close)>a {
    font-size: 21px;
  }

  .hero-content {
    padding: 44px 24px 24px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .slide {
    min-height: 290px;
  }

  .slide h1 {
    font-size: 30px;
  }

  .slide.third h1 {
    font-size: 21px;
  }

  .slide p {
    font-size: 13px;
  }

  .actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-logo {
    padding: 20px 24px 44px;
  }

  .hero-logo img {
    width: min(224px, 80%);
  }
}

/* =========================
   Reduced motion
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slide.animate h1,
  .slide.animate p {
    animation: none;
  }

  .contact-button,
  .primary-button,
  .secondary-button {
    transition: none;
  }
}