:root {
  --ink: #253142;
  --muted: #6d7888;
  --line: #e0e6ee;
  --paper: #f4f5f7;
  --white: #ffffff;
  --navy: #315984;
  --navy-dark: #1f426d;
  --green: #33b87a;
  --amber: #ff9f05;
  --red: #df4848;
  --shadow: 0 18px 44px rgba(28, 48, 72, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, var(--paper) 46rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-dark);
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 9px 22px rgba(49, 89, 132, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #556477;
  font-size: 0.94rem;
  font-weight: 750;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

.nav-cta {
  padding: 0 1rem;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.hero {
  width: min(1120px, calc(100% - 2rem));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.4rem);
}

.hero-copy {
  max-width: 640px;
}

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

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

h1 {
  margin-bottom: 1rem;
  color: var(--navy-dark);
  font-size: clamp(4.25rem, 12vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  color: #455365;
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  color: #fff;
  background: var(--navy-dark);
  box-shadow: 0 14px 30px rgba(31, 66, 109, 0.25);
}

.button-primary:hover {
  background: #17355b;
}

.button-secondary {
  color: var(--navy-dark);
  background: #fff;
  border: 2px solid var(--navy-dark);
}

.hero-media {
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-stack {
  position: relative;
  width: min(100%, 390px);
  min-height: 580px;
}

.screen {
  display: block;
  width: 245px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.screen-main {
  width: 272px;
  margin-left: auto;
}

.screen-overlap {
  position: absolute;
  left: 0;
  bottom: 0;
  border: 8px solid #fff;
}

.feature-band,
.rhythm,
.cta-section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.feature-band {
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.rhythm h2,
.cta-section h2 {
  margin-bottom: 0.8rem;
  color: var(--navy-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  min-height: 252px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(28, 48, 72, 0.07);
}

.feature h3 {
  margin: 1.1rem 0 0.55rem;
  color: var(--navy-dark);
  font-size: 1.16rem;
}

.feature p,
.rhythm p {
  color: var(--muted);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  border-radius: 8px;
  background: #eef2f6;
  position: relative;
}

.goal-icon::before,
.progress-icon::before,
.research-icon::before {
  content: "";
  position: absolute;
}

.goal-icon::before {
  inset: 10px;
  border: 4px solid var(--green);
  border-top-color: #dfe6ee;
  border-radius: 999px;
}

.progress-icon::before {
  left: 10px;
  right: 10px;
  bottom: 13px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber) 64%, #dfe6ee 64%);
}

.research-icon::before {
  inset: 12px;
  border: 4px solid var(--red);
  border-radius: 999px;
}

.research-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 4px;
  right: 8px;
  bottom: 9px;
  border-radius: 999px;
  background: var(--red);
  transform: rotate(45deg);
}

.rhythm {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rhythm-copy {
  max-width: 640px;
}

.app-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.app-screens img {
  display: block;
  width: 100%;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.app-screens img:nth-child(2) {
  margin-top: 3rem;
}

.cta-section {
  padding: 4.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-section h2 {
  max-width: 720px;
  margin: 0;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.site-footer a {
  color: var(--navy-dark);
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(100vh - 68px);
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    overflow: hidden;
  }

  .hero-media {
    min-height: 0;
    height: 168px;
    justify-content: flex-start;
  }

  .screen-stack {
    width: 100%;
    min-height: 0;
    height: 168px;
  }

  .screen-main {
    position: absolute;
    left: 0;
    top: 0;
    width: 118px;
    margin-left: 0;
  }

  .screen-overlap {
    left: 108px;
    bottom: auto;
    top: 26px;
    width: 108px;
    border-width: 5px;
  }

  .feature-grid,
  .rhythm {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.8rem);
  }

  .hero-media {
    height: 112px;
  }

  .screen-stack {
    height: 112px;
  }

  .screen-main {
    width: 78px;
  }

  .screen-overlap {
    left: 70px;
    top: 16px;
    width: 72px;
  }

  .app-screens {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .app-screens img:nth-child(2) {
    margin-top: 0;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .feature-band,
  .rhythm,
  .cta-section,
  .site-footer {
    width: min(100% - 1.25rem, 1120px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-media {
    height: 136px;
  }

  .screen-stack {
    width: 100%;
    height: 136px;
  }

  .screen-main {
    width: 94px;
  }

  .screen-overlap {
    left: 86px;
    top: 20px;
    width: 88px;
    border-width: 6px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.1rem 0;
  }
}
