:root {
  --ink: #162027;
  --muted: #53646f;
  --paper: #f6f8f4;
  --panel: #ffffff;
  --teal: #0d6f68;
  --teal-dark: #07433f;
  --coral: #cf5d44;
  --sun: #f4b84f;
  --youtube: #ff0000;
  --youtube-dark: #c40000;
  --sky: #e5f1f5;
  --line: rgba(22, 32, 39, 0.14);
  --shadow: 0 22px 50px rgba(22, 32, 39, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.top-youtube-link {
  display: block;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  padding: 0.9rem 1rem;
  text-align: center;
  text-decoration: none;
}

.top-youtube-link:hover,
.top-youtube-link:focus-visible {
  background: var(--coral);
}

.site-header {
  align-items: center;
  background: rgba(246, 248, 244, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  min-width: 0;
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 48px;
  width: 48px;
}

.brand-text {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  line-height: 1;
}

.brand-text span:last-child,
.hero-copy h1 span {
  color: var(--sun);
}

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

.site-nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  color: var(--teal-dark);
}

.site-nav a.youtube-nav-cta {
  background: var(--youtube);
  border-color: var(--youtube);
  box-shadow: 0 10px 24px rgba(255, 0, 0, 0.24);
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav a.youtube-nav-cta:hover,
.site-nav a.youtube-nav-cta:focus-visible {
  background: var(--youtube-dark);
  border-color: var(--youtube-dark);
  color: #ffffff;
}

.youtube-section {
  background: var(--panel);
}

.hero {
  background-image: url("/index/assets/images/ready-retire-fire-hero.jpg");
  background-position: center;
  background-size: cover;
  min-height: clamp(440px, 70vh, 720px);
  overflow: hidden;
  position: relative;
}

.hero::after {
  background:
    radial-gradient(
      ellipse 32% 46% at 64% 45%,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.12) 34%,
      rgba(255, 255, 255, 0) 72%
    ),
    linear-gradient(
      90deg,
      rgba(9, 20, 25, 0.82) 0%,
      rgba(9, 20, 25, 0.66) 36%,
      rgba(9, 20, 25, 0.28) 58%,
      rgba(9, 20, 25, 0.08) 100%
    );
  content: "";
  inset: 0;
  position: absolute;
}

.hero-photo {
  color: transparent;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.hero-copy {
  color: #ffffff;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem);
  position: relative;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
  width: 100%;
  z-index: 1;
}

.hero-copy > * {
  min-width: 0;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--sun);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

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

h1 {
  font-size: 6.4rem;
  line-height: 0.95;
  max-width: 11ch;
}

h2 {
  font-size: 3.35rem;
  line-height: 1;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy p:last-child {
  font-size: 1.32rem;
  max-width: 42rem;
  overflow-wrap: break-word;
}

.video-band,
.software-section,
.site-footer {
  margin-inline: auto;
  max-width: 1160px;
  width: min(calc(100% - 2rem), 1160px);
}

.video-band {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1.28fr);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.video-copy {
  display: grid;
  gap: 0.85rem;
}

.video-carousel {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.carousel-controls {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.carousel-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 42px;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--coral);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.video-scroller {
  display: flex;
  gap: 1rem;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.2rem 0.1rem 1.1rem;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.1rem;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.video-scroller::-webkit-scrollbar {
  display: none;
}

.video-card {
  flex: 0 0 min(84%, 650px);
  min-width: 0;
  scroll-snap-align: start;
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.video-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-thumb::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.2));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.video-play {
  align-items: center;
  background: #ff0000;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.35rem;
  height: 62px;
  justify-content: center;
  left: 50%;
  line-height: 1;
  padding-left: 0.12rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  z-index: 1;
}

.video-thumb:hover .video-play,
.video-thumb:focus-visible .video-play {
  background: var(--coral);
}

.video-copy p:last-child,
.section-heading p,
.software-card p,
.suite-plan,
.site-footer {
  color: var(--muted);
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.software-section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
  min-width: 0;
  overflow-wrap: break-word;
}

.software-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-block: 2rem;
}

.software-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(22, 32, 39, 0.08);
  display: grid;
  gap: 0.75rem;
  min-height: 245px;
  min-width: 0;
  overflow-wrap: break-word;
  padding: 1.25rem;
  text-decoration: none;
}

.software-card:hover,
.software-card:focus-visible {
  border-color: rgba(13, 111, 104, 0.5);
  box-shadow: 0 18px 38px rgba(22, 32, 39, 0.14);
  transform: translateY(-2px);
}

.card-label {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-action {
  align-self: end;
  color: var(--teal-dark);
  font-weight: 900;
}

.card-action::after {
  content: " >";
}

.coming-soon {
  background: var(--sky);
}

.coming-soon .card-label {
  color: var(--coral);
}

.coming-soon .muted {
  color: var(--muted);
}

.coming-soon .muted::after {
  content: "";
}

.suite-plan {
  border-left: 5px solid var(--sun);
  font-size: 1.2rem;
  max-width: 820px;
  min-width: 0;
  overflow-wrap: break-word;
  padding-left: 1rem;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--coral);
}

@media (max-width: 1120px) {
  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.85rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 560px;
  }

  .hero::after {
    background:
      radial-gradient(
        ellipse 54% 40% at 61% 55%,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.11) 36%,
        rgba(255, 255, 255, 0) 74%
      ),
      linear-gradient(
        180deg,
        rgba(9, 20, 25, 0.66) 0%,
        rgba(9, 20, 25, 0.48) 34%,
        rgba(9, 20, 25, 0.22) 66%,
        rgba(9, 20, 25, 0.08) 100%
      );
  }

  .hero {
    background-position: 62% center;
  }

  .hero-photo {
    object-position: 62% center;
  }

  h1 {
    font-size: 3.75rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .hero-copy p:last-child {
    font-size: 1.16rem;
  }

  .video-band,
  .software-grid {
    grid-template-columns: 1fr;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

  .video-card {
    flex-basis: min(88%, 440px);
  }

  .video-frame {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .top-youtube-link {
    padding-inline: 0.75rem;
  }

  .site-header {
    padding: 0.9rem 1rem;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-logo {
    height: 42px;
    width: 42px;
  }

  .brand-text {
    max-width: 14rem;
  }

  .site-nav a {
    font-size: 0.9rem;
    padding-inline: 0.55rem;
  }

  .site-nav a.youtube-nav-cta {
    padding-inline: 0.75rem;
  }

  .hero-copy {
    padding-inline: 1rem;
    padding-top: 4rem;
  }

  h1 {
    font-size: 2.42rem;
    line-height: 1;
    max-width: none;
  }

  h2 {
    font-size: 1.72rem;
    line-height: 1.08;
  }

  .hero-copy p:last-child,
  .suite-plan {
    font-size: 1.03rem;
  }

  .section-heading,
  .software-card p,
  .suite-plan {
    max-width: 21rem;
  }

  .video-scroller {
    margin-inline: -0.1rem;
  }

  .video-card {
    flex-basis: 92%;
  }

  .hero-copy p:last-child {
    max-width: 20rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
