:root {
  color-scheme: light;
  --bg: #f5faf8;
  --ink: #102821;
  --muted: #60736d;
  --line: #d9e8e3;
  --card: #ffffff;
  --green: #16a06d;
  --green-dark: #0d3329;
  --blue: #1463ff;
  --gold: #d8b35f;
  --shadow: 0 28px 90px rgba(16, 40, 33, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5faf8;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 40, 33, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 40, 33, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

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

.hero-top {
  position: absolute;
  top: clamp(22px, 3vw, 42px);
  left: max(clamp(24px, 7vw, 110px), calc((100vw - 1180px) / 2));
  right: max(clamp(24px, 7vw, 110px), calc((100vw - 1180px) / 2));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  display: block;
  width: 74px;
  max-width: 34vw;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(3, 13, 11, 0.48);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
}

.nav-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
}

.nav-button,
.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.top-nav .nav-button {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.primary-button {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(16, 40, 33, 0.2);
}

.hero-background .primary-button {
  background: var(--green);
  box-shadow: 0 18px 46px rgba(22, 160, 109, 0.24);
}

.hero-background .secondary-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

.hero,
.section,
footer {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.hero-background {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 760px;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(3, 13, 11, 0.98) 0%, rgba(3, 13, 11, 0.92) 36%, rgba(5, 17, 14, 0.54) 62%, rgba(5, 17, 14, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 17, 14, 0.18), rgba(5, 17, 14, 0.48)),
    url("assets/upfit-hero-gym.png?v=20260601-hero-bg2") 72% center / cover no-repeat;
  box-shadow: none;
}

.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 30%, rgba(20, 99, 255, 0.18), transparent 28%),
    radial-gradient(circle at 62% 72%, rgba(22, 160, 109, 0.18), transparent 34%);
  pointer-events: none;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: clamp(16px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 48px));
  margin-left: max(clamp(24px, 7vw, 110px), calc((100vw - 1180px) / 2));
  padding: clamp(140px, 15vh, 180px) 0 clamp(52px, 7vw, 82px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-background .eyebrow {
  color: #77e6bd;
}

.hero-background h1,
.hero-background .lead {
  color: #fff;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.48;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin-top: 22px;
}

.hero-metrics div {
  min-height: 80px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 850;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 640px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-grid article,
.steps div,
.trial,
.contact,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.feature-grid article {
  padding: 20px;
}

.feature-grid article:nth-child(1),
.feature-grid article:nth-child(4) {
  background: #fff;
  box-shadow: 0 12px 36px rgba(16, 40, 33, 0.06);
}

.feature-grid p,
.section-text,
.trial p,
.contact p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.product-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

.product-copy {
  padding-right: 24px;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-dashboard div {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-dashboard div:first-child {
  background: var(--green-dark);
  color: #fff;
}

.mini-dashboard span {
  display: block;
  margin-bottom: 18px;
  color: inherit;
  opacity: 0.68;
  font-weight: 850;
}

.mini-dashboard strong {
  display: block;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.08;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pricing-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
  align-items: end;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.price-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.price-card.featured {
  background: var(--green-dark);
  color: #fff;
}

.price-card span {
  display: block;
  margin-bottom: 14px;
  color: inherit;
  opacity: 0.72;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(25px, 2.5vw, 32px);
  line-height: 1.08;
}

.price-card p {
  margin: 0;
  color: inherit;
  opacity: 0.76;
  font-size: 15px;
  font-weight: 850;
}

.steps div {
  padding: 22px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e5f6ef;
  color: var(--green);
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.trial,
.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px;
  background: #fff;
}

.contact-card {
  display: grid;
  gap: 12px;
  min-width: 300px;
  padding: 22px;
  font-size: 19px;
  font-weight: 850;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 48px;
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 920px) {
  .hero-top,
  .top-nav,
  .hero-actions,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    gap: 12px;
  }

  .hero,
  .split,
  .product-section,
  .pricing-section,
  .trial,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-metrics {
    max-width: none;
  }

  .hero-background {
    min-height: 680px;
  }

  .hero-copy {
    margin: 24px;
    width: calc(100% - 48px);
    padding-top: 170px;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .top-nav a:not(.nav-button) {
    display: none;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-top {
    top: 18px;
    left: 14px;
    right: 14px;
    flex-direction: row;
    align-items: center;
  }

  .brand img {
    width: 62px;
  }

  .top-nav {
    width: auto;
  }

  .top-nav .nav-button {
    white-space: nowrap;
  }

  .trial,
  .contact {
    padding: 22px;
  }

  .mini-dashboard {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-background {
    min-height: 720px;
    margin-top: 0;
    border-radius: 0;
    background:
      linear-gradient(180deg, rgba(5, 17, 14, 0.84) 0%, rgba(5, 17, 14, 0.72) 52%, rgba(5, 17, 14, 0.9) 100%),
      url("assets/upfit-hero-gym.png?v=20260601-hero-bg2") 68% center / cover no-repeat;
  }

  .hero-background::after {
    inset: 10px;
  }

  .hero-copy {
    margin: 14px;
    width: calc(100% - 28px);
    padding: 112px 22px 22px;
  }
}
