:root {
  color-scheme: light;
  --bg: #fbfdfb;
  --surface: #ffffff;
  --surface-soft: #f3faf7;
  --ink: #071723;
  --muted: #52646b;
  --line: #dfe8e5;
  --teal: #08977d;
  --teal-dark: #06705f;
  --teal-soft: #dff4ed;
  --warm: #f6eee4;
  --shadow: 0 24px 64px rgba(7, 23, 35, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 72px;
  padding: 11px clamp(24px, 4.5vw, 66px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 232, 229, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(8, 112, 96, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: #172932;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.screenshots-heading a:hover {
  color: var(--teal-dark);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.top-store-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #10a489, #07866f);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 13px 26px rgba(8, 112, 96, 0.22);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.top-store-button:hover {
  background: linear-gradient(135deg, #0f987f, #06705f);
}

.language-control {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 10px;
  color: #193139;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(190, 211, 205, 0.9);
  border-radius: 999px;
}

.language-control select {
  min-width: 104px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 614px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.96) 36%, rgba(255, 255, 255, 0.62) 64%, rgba(255, 255, 255, 0.22) 100%),
    linear-gradient(0deg, rgba(251, 253, 251, 0.08) 0%, rgba(251, 253, 251, 0) 34%),
    url("../assets/backgrounds/hero-mountain.jpg") right bottom / 72% auto no-repeat,
    #ffffff;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(430px, 1.14fr);
  gap: clamp(26px, 3.6vw, 42px);
  align-items: start;
  max-width: var(--max);
  min-height: 614px;
  margin: 0 auto;
  padding: 22px clamp(30px, 4vw, 36px) 0;
}

.hero-copy {
  max-width: 510px;
  padding-top: 88px;
  padding-bottom: 20px;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: 5rem;
  line-height: 0.96;
  font-weight: 840;
}

.hero-tagline {
  margin: 0 0 24px;
  color: var(--teal-dark);
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 780;
}

.hero-lede {
  max-width: 470px;
  margin: 0 0 34px;
  color: #263b44;
  font-size: 1.16rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 46px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 23px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 18px 38px rgba(8, 112, 96, 0.27);
}

.button.secondary {
  color: var(--teal-dark);
  background: transparent;
}

.button.secondary svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.play-dot {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: #ffffff;
  border-radius: 50%;
}

.play-dot::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  content: "";
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--teal);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 50px;
  padding: 7px 13px;
  color: #ffffff;
  background: #030506;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 1.2rem;
  font-weight: 760;
  line-height: 1.02;
}

.apple-mark {
  display: grid;
  width: 26px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  font-size: 1.52rem;
  line-height: 1;
}

.app-store-badge small {
  display: block;
  margin-bottom: 2px;
  font-size: 0.62rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 592px;
}

.phone-frame {
  position: absolute;
  overflow: visible;
  padding: 7px;
  background:
    linear-gradient(90deg, #010304 0%, #252928 9%, #070a0b 18%, #101414 70%, #343837 88%, #050607 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 47px;
  box-shadow:
    0 30px 62px rgba(7, 23, 35, 0.33),
    0 8px 20px rgba(7, 23, 35, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset -6px 0 9px rgba(255, 255, 255, 0.07),
    inset 7px 0 12px rgba(0, 0, 0, 0.7);
  isolation: isolate;
  transform-style: preserve-3d;
}

.phone-frame::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 10%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 14%, transparent 88%, rgba(255, 255, 255, 0.08));
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.82),
    inset 0 0 0 3px rgba(255, 255, 255, 0.1),
    inset 6px 0 10px rgba(255, 255, 255, 0.08),
    inset -9px 0 12px rgba(0, 0, 0, 0.42);
}

.phone-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 37px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-frame-main {
  left: 0;
  top: 0;
  z-index: 2;
  width: clamp(302px, 24vw, 320px);
  max-width: 58%;
  aspect-ratio: 506 / 1100;
  transform: perspective(1250px) rotateY(-4deg) rotateX(0.35deg) rotateZ(-0.8deg);
}

.phone-frame-side {
  right: 0;
  top: 42px;
  z-index: 1;
  width: clamp(250px, 25vw, 270px);
  max-width: 50%;
  aspect-ratio: 506 / 1100;
  transform: perspective(1250px) rotateY(-4.5deg) rotateX(0.3deg) rotateZ(1.1deg) scaleY(1.08);
  transform-origin: center top;
}

@media (min-width: 1000px) {
  .hero-copy h1 {
    white-space: nowrap;
  }

  .phone-frame-main {
    width: 270px;
  }

  .phone-frame-side {
    right: 52px;
    top: 32px;
    width: 260px;
    transform: perspective(1250px) rotateY(-4.5deg) rotateX(0.3deg) rotateZ(1.1deg);
  }
}

@media (min-width: 841px) and (max-width: 999px) {
  .phone-frame-main {
    left: -18px;
    transform: perspective(1250px) rotateY(-4deg) rotateX(0.35deg) rotateZ(-0.8deg) scaleX(0.86);
  }
}

.demo-intro-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 62px 22px 54px;
  background: var(--bg);
}

.demo-copy h2,
.screenshots-heading h2,
.final-cta h2 {
  margin: 0 0 16px;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 820;
}

.demo-copy p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.demo-card {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(246, 238, 228, 0.9), rgba(222, 242, 235, 0.72)),
    var(--warm);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(13, 28, 34, 0.14);
}

.demo-video-phone {
  width: min(43%, 250px);
  overflow: hidden;
  background: #111;
  border: 7px solid #111618;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.demo-video-phone video {
  width: 100%;
  aspect-ratio: 886 / 1920;
  object-fit: cover;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: var(--max);
  margin: 54px auto 34px;
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 232, 229, 0.72);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(7, 23, 35, 0.07);
}

.feature-strip article {
  min-height: 160px;
  padding: 0 25px;
  text-align: center;
}

.feature-strip article + article {
  border-left: 1px solid var(--line);
}

.feature-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  color: var(--teal);
  stroke-width: 2;
}

.infinity-feature-icon svg {
  width: 54px;
  height: 54px;
  stroke-width: 2.6;
}

.feature-strip h3 {
  margin: 0 0 9px;
  color: #0e1d24;
  font-size: 0.98rem;
  font-weight: 800;
}

.feature-strip p {
  margin: 0 auto;
  max-width: 150px;
  color: #293e47;
  font-size: 0.88rem;
  line-height: 1.55;
}

.screenshots-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 22px 66px;
}

.screenshots-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.screenshots-heading a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 780;
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(136px, 1fr));
  gap: 18px;
}

.screenshot-rail figure {
  margin: 0;
}

.screenshot-rail img {
  width: 100%;
  aspect-ratio: 660 / 1434;
  object-fit: cover;
  border: 1px solid rgba(13, 28, 34, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(13, 28, 34, 0.14);
}

.screenshot-rail figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 780;
  text-align: center;
}

.final-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  padding: 82px 22px 64px;
  text-align: center;
  background: linear-gradient(180deg, #eaf8f4 0%, #f9fcfb 100%);
}

.cta-icon {
  width: 86px;
  height: 86px;
  margin-bottom: 20px;
  border-radius: 19px;
  box-shadow: 0 18px 36px rgba(7, 23, 35, 0.16);
}

.final-cta p {
  margin-bottom: 24px;
}

.site-footer {
  padding: 30px clamp(22px, 4vw, 54px);
  background: #ffffff;
  border-top: 1px solid rgba(223, 232, 229, 0.88);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 820;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #33484f;
  font-size: 0.94rem;
  font-weight: 760;
}

.footer-links a:hover,
.footer-email:hover,
.legal-email:hover {
  color: var(--teal-dark);
}

.footer-email {
  color: #33484f;
  font-size: 0.94rem;
  font-weight: 700;
}

.legal-main {
  min-height: 66vh;
  background:
    linear-gradient(180deg, rgba(234, 248, 244, 0.72), rgba(251, 253, 251, 1) 340px),
    #fbfdfb;
}

.legal-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 22px 32px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0 0 18px;
  padding: 0 16px;
  color: var(--teal-dark);
  background: rgba(223, 244, 237, 0.78);
  border: 1px solid rgba(8, 151, 125, 0.24);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 850;
}

.legal-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto 72px;
  padding: 34px clamp(22px, 4vw, 46px) 42px;
  border-top: 1px solid rgba(223, 232, 229, 0.9);
}

.legal-intro {
  color: #263b44;
  font-size: 1.05rem;
  font-weight: 680;
}

.legal-content h2 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.legal-content h2:first-of-type {
  margin-top: 26px;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-email {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal-dark);
  font-weight: 820;
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }

  .top-store-button {
    display: none;
  }

  .hero-inner,
  .demo-intro-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0.22) 100%),
      url("../assets/backgrounds/hero-mountain.jpg") center bottom / 100% auto no-repeat,
      #ffffff;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: 650px;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-lede {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: 4.25rem;
  }

  .hero-tagline {
    font-size: 2.2rem;
  }

  .demo-copy h2,
  .screenshots-heading h2,
  .final-cta h2 {
    font-size: 2.6rem;
  }

  .legal-hero h1 {
    font-size: 3.6rem;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone-frame-main {
    left: 18%;
    width: min(36vw, 270px);
    max-width: none;
  }

  .phone-frame-side {
    right: 14%;
    width: min(33vw, 244px);
    max-width: none;
    transform: perspective(1250px) rotateY(-4.5deg) rotateX(0.3deg) rotateZ(1.1deg);
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 22px;
    margin-left: 22px;
  }

  .feature-strip article + article {
    border-left: 0;
  }

  .feature-strip article {
    padding: 20px 26px;
    border-top: 1px solid var(--line);
  }

  .feature-strip article:nth-child(-n + 2) {
    border-top: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 11px 18px;
  }

  .brand {
    gap: 8px;
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .nav-links {
    display: none;
  }

  .language-control {
    padding: 4px 7px;
  }

  .language-control select {
    min-width: 108px;
    font-size: 0.84rem;
  }

  .hero-inner {
    padding: 34px 22px 0;
  }

  .hero-copy h1 {
    overflow-wrap: anywhere;
    font-size: 3.15rem;
    line-height: 1;
  }

  .hero-tagline {
    font-size: 2rem;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.62;
  }

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

  .button {
    min-height: 50px;
  }

  .hero-copy > .app-store-badge {
    display: none;
  }

  .hero-visual {
    min-height: 430px;
    margin-top: 10px;
  }

  .phone-frame {
    padding: 4px;
    border-radius: 34px;
  }

  .phone-frame::after {
    inset: 0;
    width: auto;
    height: auto;
  }

  .phone-frame img {
    border-radius: 27px;
  }

  .phone-frame-main {
    left: 14%;
    width: min(39%, 220px);
  }

  .phone-frame-side {
    right: 9%;
    top: 26px;
    width: min(36%, 205px);
  }

  .feature-strip {
    grid-template-columns: 1fr;
    margin-top: 38px;
    margin-bottom: 32px;
    padding: 8px 0;
  }

  .feature-strip article,
  .feature-strip article:nth-child(-n + 2) {
    min-height: auto;
    padding: 24px 28px;
    border-top: 1px solid var(--line);
  }

  .feature-strip article:first-child {
    border-top: 0;
  }

  .feature-strip p {
    max-width: 240px;
  }

  .demo-intro-section {
    padding-top: 52px;
  }

  .demo-card {
    min-height: 420px;
  }

  .demo-video-phone {
    width: min(64%, 230px);
  }

  .screenshots-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .screenshot-rail {
    overflow-x: auto;
    grid-template-columns: repeat(6, 178px);
    padding-bottom: 12px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }

  .legal-hero {
    padding-top: 50px;
  }

  .legal-content {
    margin-right: 18px;
    margin-left: 18px;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 2.85rem;
  }

  .hero-tagline {
    font-size: 1.72rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
  }

  .phone-frame-main {
    left: 8%;
    width: min(47%, 182px);
  }

  .phone-frame-side {
    right: 3%;
    width: min(42%, 164px);
  }
}
