:root {
  --bg: #070b14;
  --bg-2: #0b101d;
  --surface: #151622;
  --surface-2: #1d2030;
  --surface-3: #10131f;
  --text: #f7f7fb;
  --muted: #9aa0b5;
  --muted-2: #73798d;
  --line: rgba(154, 160, 181, 0.22);
  --purple: #7c5cff;
  --purple-2: #4f3a93;
  --orange: #ff7a2f;
  --green: #39d39f;
  --pink: #ec4899;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 32px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(124, 92, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 100% 10%, rgba(255, 122, 47, 0.08), transparent 28rem),
    linear-gradient(180deg, #11111c 0%, var(--bg) 44%, #060912 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #8b5cf6, #5b3fd6);
  box-shadow: 0 18px 42px rgba(124, 92, 255, 0.32);
}

.z-peak {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 950;
  letter-spacing: -0.08em;
  transform: skew(-8deg);
}

.brand-text {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 750;
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.9fr);
  gap: 58px;
  align-items: center;
  min-height: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions.centered {
  justify-content: center;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6242d9);
  box-shadow: 0 18px 44px rgba(124, 92, 255, 0.3);
}

.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.045);
  border-color: var(--line);
}

.trust-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 10px 14px;
  border-radius: 999px;
  color: #8f96ad;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: default;
  pointer-events: none;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.18);
  filter: blur(70px);
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  border-radius: 34px;
  filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.42));
}

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

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p,
.app-store-card p,
.page-header p,
.apple-showcase-header p,
.showcase-copy p,
.feature-copy p {
  color: var(--muted);
  font-size: 1.12rem;
}

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

.feature-card {
  min-height: 270px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(29,32,48,0.74);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(0,0,0,0.18);
}

.feature-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
}

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

.purple-card .feature-icon {
  background: rgba(124,92,255,0.16);
  color: var(--purple);
}

.orange-card .feature-icon {
  background: rgba(255,122,47,0.16);
  color: var(--orange);
}

.green-card .feature-icon {
  background: rgba(57,211,159,0.14);
  color: var(--green);
}

.violet-card .feature-icon {
  background: rgba(236,72,153,0.14);
  color: var(--pink);
}

/* Apple-level app presentation */

.apple-showcase {
  padding-top: 80px;
}

.apple-showcase-header {
  max-width: 920px;
  margin: 0 auto 42px;
  text-align: center;
}

.apple-showcase-header h2 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.showcase-hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  border-radius: 46px;
  padding: clamp(28px, 6vw, 70px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(circle at 70% 45%, rgba(124, 92, 255, 0.35), transparent 30rem),
    radial-gradient(circle at 20% 0%, rgba(255, 122, 47, 0.12), transparent 28rem),
    rgba(18, 20, 32, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.showcase-hero.reverse {
  margin-top: 28px;
  grid-template-columns: 1.05fr 0.95fr;
  background:
    radial-gradient(circle at 75% 52%, rgba(57, 211, 159, 0.18), transparent 30rem),
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.2), transparent 28rem),
    rgba(18, 20, 32, 0.9);
}

.showcase-copy {
  max-width: 520px;
}

.showcase-copy h3 {
  margin: 18px 0 16px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.showcase-device {
  display: flex;
  justify-content: center;
}

.showcase-device img {
  width: min(430px, 100%);
  border-radius: 46px;
  border: 1px solid rgba(154, 160, 181, 0.28);
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(124, 92, 255, 0.16);
}

.apple-feature-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.apple-feature {
  min-height: 820px;
  overflow: hidden;
  border-radius: 46px;
  padding: 38px 38px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(18, 20, 32, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.nutrition-feature {
  background:
    radial-gradient(circle at 50% 65%, rgba(255, 122, 47, 0.22), transparent 26rem),
    rgba(18, 20, 32, 0.92);
}

.workout-feature {
  background:
    radial-gradient(circle at 50% 65%, rgba(124, 92, 255, 0.24), transparent 26rem),
    rgba(18, 20, 32, 0.92);
}

.feature-copy h3 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.apple-feature img {
  width: min(400px, 100%);
  align-self: center;
  border-radius: 42px 42px 0 0;
  border: 1px solid rgba(154, 160, 181, 0.24);
  border-bottom: 0;
  box-shadow: 0 34px 90px rgba(0,0,0,0.45);
}

.premium-card-gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.premium-card {
  overflow: hidden;
  border-radius: 42px;
  border: 1px solid var(--line);
  background: rgba(18, 20, 32, 0.9);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.52);
}

.pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purple-pill {
  color: var(--purple);
  background: rgba(124,92,255,0.15);
  border: 1px solid rgba(124,92,255,0.28);
}

.orange-pill {
  color: var(--orange);
  background: rgba(255,122,47,0.13);
  border: 1px solid rgba(255,122,47,0.28);
}

.green-pill {
  color: var(--green);
  background: rgba(57,211,159,0.13);
  border: 1px solid rgba(57,211,159,0.28);
}

.app-store-section {
  padding-top: 42px;
}

.app-store-card {
  padding: clamp(32px, 7vw, 72px);
  border-radius: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(124,92,255,0.28), transparent 28rem),
    rgba(29,32,48,0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-weight: 750;
}

.page {
  padding: 72px 0 96px;
}

.page-header {
  max-width: 820px;
  margin-bottom: 34px;
}

.page-header h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

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

.support-card,
.legal-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(29,32,48,0.76);
  border: 1px solid var(--line);
}

.support-card p,
.support-card li,
.legal-card p {
  color: var(--muted);
}

.support-card ul {
  margin: 0;
  padding-left: 20px;
}

.faq-section {
  width: 100%;
  padding-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(29,32,48,0.7);
  border: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-card {
  max-width: 920px;
}

.legal-card h2 {
  margin-top: 32px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .hero,
  .showcase-hero,
  .showcase-hero.reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    margin-top: 30px;
  }

  .hero-visual {
    max-width: 850px;
    margin: 0 auto;
  }

  .feature-grid,
  .apple-feature-row,
  .premium-card-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .showcase-copy {
    max-width: 760px;
  }
}

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

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .brand-text {
    font-size: 1.7rem;
  }

  .hero {
    gap: 36px;
  }

  .lead {
    font-size: 1.08rem;
  }

  .feature-grid,
  .apple-feature-row,
  .premium-card-gallery {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .showcase-hero,
  .showcase-hero.reverse,
  .apple-feature {
    border-radius: 32px;
    padding: 28px;
  }

  .apple-feature {
    min-height: auto;
    padding-bottom: 0;
  }

  .showcase-device img,
  .apple-feature img {
    width: min(360px, 100%);
  }

  .site-footer a {
    margin-left: 0;
    margin-right: 14px;
  }
}
