:root {
  color-scheme: light;
  --bg: #f2f0e7;
  --ink: #10110f;
  --muted: #5d5d55;
  --line: #c8c2b2;
  --panel: #fbfaf3;
  --accent: #d94b2b;
  --acid: #c7ff4f;
  --accent-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(rgba(16, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 17, 15, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 38px 38px;
  color: var(--ink);
}

body {
  margin: 0;
}

a {
  color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(242, 240, 231, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 820;
  letter-spacing: 0;
}

.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(16, 17, 15, 0.18);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-app-store {
  border: 2px solid var(--ink);
  background: var(--acid);
  padding: 7px 12px;
}

.page {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 44px 24px 76px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.72fr);
  gap: clamp(40px, 6.5vw, 88px);
  align-items: center;
  min-height: calc(100svh - 132px);
  padding: 20px 0 64px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  line-height: 0.82;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-transform: uppercase;
}

.subtitle {
  margin: 28px 0 0;
  max-width: 700px;
  color: #41473f;
  font-size: clamp(1.28rem, 3vw, 2rem);
  line-height: 1.12;
}

.app-store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 560px);
  min-height: 78px;
  margin-top: 30px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--accent-ink);
  padding: 18px 28px;
  text-align: center;
  text-decoration: none;
  font-size: clamp(1.28rem, 4vw, 2rem);
  font-weight: 820;
  line-height: 1.1;
  box-shadow: 10px 10px 0 var(--acid);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.app-store-cta:focus-visible,
.app-store-cta:hover {
  background: var(--accent);
  transform: translate(-3px, -3px);
  box-shadow: 13px 13px 0 var(--acid);
}

.hero-device {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
  min-height: 560px;
}

.hero-app-icon {
  position: absolute;
  z-index: 2;
  top: -2%;
  left: -9%;
  width: clamp(88px, 13vw, 138px);
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 24%;
  box-shadow: 10px 10px 0 var(--accent);
  transform: rotate(-7deg);
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 64px;
  border: 3px solid var(--ink);
  border-radius: 38px;
  box-shadow: 18px 18px 0 rgba(16, 17, 15, 0.95);
  transform: rotate(2deg);
}

h2 {
  margin: 42px 0 12px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-block: 2px solid var(--ink);
  margin-top: 8px;
}

.signal-strip article {
  min-height: 210px;
  border-right: 1px solid var(--ink);
  background: rgba(251, 250, 243, 0.62);
  padding: 22px;
}

.signal-strip article:last-child {
  border-right: 0;
}

.signal-strip h2 {
  margin-top: 0;
  font-size: clamp(1.28rem, 2.2vw, 1.85rem);
  line-height: 1;
  text-transform: uppercase;
}

.signal-strip p {
  color: #383a34;
}

.app-preview {
  margin-top: 78px;
  padding-top: 0;
}

.app-preview-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.62fr);
  gap: 28px;
  align-items: end;
}

.app-preview-copy h2 {
  max-width: 760px;
  margin-top: 0;
  font-size: clamp(2.2rem, 5.4vw, 5.8rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.app-preview-copy p:last-child {
  margin: 0 0 16px;
  color: #41473f;
  font-size: 1.08rem;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  margin-top: 34px;
}

.screenshot-strip img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: #f2f4f1;
  box-shadow: 9px 9px 0 rgba(16, 17, 15, 0.9);
}

.screenshot-strip img:nth-child(2) {
  margin-top: 28px;
}

.screenshot-strip img:nth-child(3) {
  margin-top: 56px;
}

.lineage-section {
  border-top: 2px solid var(--ink);
  margin-top: 82px;
  padding-top: 48px;
}

.lineage-section h2 {
  max-width: 920px;
  margin-top: 0;
  font-size: clamp(2.2rem, 5.8vw, 6.2rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.lineage-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.lineage-copy p {
  margin: 0;
  border-top: 1px solid var(--ink);
  color: #383a34;
  padding-top: 18px;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--ink);
}

.footer-inner {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #e8e3d5;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #e8e3d5;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 14px;
  }

  .nav-links {
    justify-content: flex-start;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 12px;
  }

  h1 {
    font-size: clamp(3.8rem, 22vw, 6rem);
  }

  .hero-device {
    justify-self: start;
    width: min(82vw, 340px);
    min-height: auto;
    margin-left: 6px;
  }

  .hero-app-icon {
    left: auto;
    right: -12%;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip article,
  .signal-strip article:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .signal-strip article:last-child {
    border-bottom: 0;
  }

  .app-preview-copy {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app-preview-copy p:last-child {
    margin-bottom: 0;
  }

  .screenshot-strip {
    display: flex;
    gap: 14px;
    margin-right: -24px;
    overflow-x: auto;
    padding: 4px 24px 20px 0;
    scroll-snap-type: x mandatory;
  }

  .screenshot-strip img {
    flex: 0 0 min(78vw, 330px);
    border-radius: 24px;
    scroll-snap-align: start;
  }

  .screenshot-strip img:nth-child(n) {
    margin-top: 0;
  }

  .lineage-copy {
    grid-template-columns: 1fr;
  }

  .page {
    padding-top: 24px;
  }
}
