:root {
  --ink: #211f2b;
  --muted: #6f687b;
  --paper: #fffaf1;
  --paper-strong: #ffffff;
  --mint: #9be7d4;
  --coral: #ff786b;
  --sun: #ffd05a;
  --violet: #7357d8;
  --blue: #45a8f5;
  --line: rgba(33, 31, 43, 0.12);
  --shadow: 0 24px 70px rgba(50, 41, 77, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 68px);
  background: rgba(255, 250, 241, 0.88);
  border-bottom: 1px solid rgba(33, 31, 43, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(33, 31, 43, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  min-height: calc(82vh - 73px);
  overflow: hidden;
  padding: clamp(42px, 7vw, 92px) clamp(20px, 5vw, 68px) clamp(38px, 6vw, 72px);
  background:
    linear-gradient(120deg, rgba(155, 231, 212, 0.45), transparent 34%),
    linear-gradient(300deg, rgba(255, 208, 90, 0.44), transparent 38%),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% -10%;
  height: 55%;
  background-image: url("assets/img/gem-pattern.png");
  background-size: min(520px, 80vw);
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 10ch;
  color: var(--ink);
  font-size: clamp(4rem, 10vw, 8.6rem);
  line-height: 0.89;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 610px;
  margin: 28px 0 0;
  color: #484253;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 18px;
  color: #fff;
  background: #111119;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(33, 31, 43, 0.2);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.05;
}

.app-store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(33, 31, 43, 0.26);
}

.app-store-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex: 0 0 auto;
}

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

.availability {
  color: var(--muted);
  font-weight: 800;
}

.hero-media {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.72fr 0.58fr;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  min-width: 0;
}

.phone {
  width: 100%;
  max-height: min(620px, 66vh);
  object-fit: contain;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.secondary-phone {
  transform: translateY(8%);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  padding: clamp(22px, 4vw, 34px);
  background: #fffdf8;
  text-align: center;
}

.metric strong {
  display: block;
  color: var(--coral);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
}

.section,
.screens-section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 68px);
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.compact {
  max-width: 760px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5.3vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature {
  min-height: 260px;
  padding: 28px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(33, 31, 43, 0.08);
}

.feature-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--mint);
}

.feature-icon::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 6px;
  background: #fff;
  transform: rotate(45deg);
}

.tray-icon {
  background: var(--sun);
}

.tray-icon::after {
  inset: 17px 10px;
  border-radius: 4px;
  transform: none;
}

.wand-icon {
  background: var(--coral);
}

.wand-icon::after {
  inset: 12px 24px 12px 24px;
  transform: rotate(35deg);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.screens-section {
  background: #f0fbf7;
}

.screen-rail {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 1320px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x mandatory;
}

.screen-rail img {
  flex: 0 0 clamp(240px, 24vw, 340px);
  width: clamp(240px, 24vw, 340px);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(33, 31, 43, 0.16);
  scroll-snap-align: center;
}

.download-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 68px);
  padding: clamp(32px, 6vw, 64px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(69, 168, 245, 0.36), transparent 48%),
    #211f2b;
  border-radius: 8px;
}

.download-band .eyebrow,
.download-band p {
  color: rgba(255, 255, 255, 0.8);
}

.download-band p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.app-store-button.dark {
  background: #fff;
  color: #111119;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 68px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 750;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--ink);
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 20px 86px;
  background: var(--paper);
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.legal-page h2 {
  margin-top: 36px;
  font-size: 1.45rem;
}

.legal-page p,
.legal-page li {
  color: #4c4657;
  font-size: 1.03rem;
}

.legal-page a {
  color: var(--violet);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .hero,
  .download-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.68fr);
    max-width: 560px;
    margin: 0 auto;
  }

  .phone {
    max-height: 500px;
  }

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

}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .brand span {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(3.4rem, 22vw, 5.7rem);
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-lede {
    margin-top: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-media {
    grid-template-columns: minmax(0, 1fr);
    max-width: 230px;
  }

  .secondary-phone {
    display: none;
  }

  .phone {
    max-height: 250px;
    border-radius: 18px;
  }

  .app-store-button {
    width: 100%;
    justify-content: center;
  }

  .screen-rail {
    padding-bottom: 12px;
  }

  .screen-rail img {
    flex-basis: min(78vw, 340px);
    width: min(78vw, 340px);
  }

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