:root {
  --ink: #123f37;
  --ink-2: #253934;
  --jade: #0e6658;
  --jade-2: #1f8a75;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --line: rgba(35, 62, 53, .16);
  --gold: #c19348;
  --red: #b24834;
  --mist: #eef5f1;
  --shadow: 0 24px 70px rgba(22, 45, 38, .15);
  --display: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-2);
  font-family: var(--body);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, .95), rgba(241, 247, 243, .82) 44%, rgba(254, 241, 228, .92)),
    #fbf6ec;
}

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

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

.page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(14, 102, 88, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 102, 88, .028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: #63746f;
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: #31443e;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  padding: 9px 0;
}

.nav .store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf0;
  box-shadow: 0 12px 28px rgba(18, 63, 55, .18);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: min(760px, calc(100vh - 76px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0 clamp(30px, 5vw, 56px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(193, 147, 72, .34);
  border-radius: 999px;
  background: rgba(255, 253, 248, .72);
  color: #8d6330;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-title {
  margin: 18px 0 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 104px);
  line-height: .9;
  letter-spacing: 0;
}

.subtitle {
  margin: 0;
  color: #2d4840;
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1.25;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: #4f625b;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.78;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.button--primary {
  background: var(--jade);
  color: #fffaf0;
  box-shadow: 0 16px 34px rgba(14, 102, 88, .2);
}

.button--ghost {
  border: 1px solid rgba(18, 63, 55, .2);
  background: rgba(255, 253, 248, .72);
  color: var(--ink);
}

.store-badge {
  height: 52px;
}

.store-badge img {
  height: 52px;
  width: auto;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(18, 63, 55, .12);
  border-radius: 999px;
  background: rgba(255, 253, 248, .58);
  color: #49615a;
  font-size: 13px;
  font-weight: 800;
}

.media-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  min-height: 520px;
}

.media-panel {
  width: min(100%, 560px);
  border: 1px solid rgba(18, 63, 55, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 253, 248, .86), rgba(239, 246, 241, .72));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-stack {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(16px, 2.5vw, 26px);
}

.phone-shot {
  width: min(47%, 250px);
  max-height: 620px;
  object-fit: cover;
  border: 10px solid #182620;
  border-radius: 32px;
  box-shadow: 0 24px 44px rgba(16, 36, 29, .24);
}

.phone-shot--single {
  width: min(78%, 330px);
}

.phone-shot--offset {
  transform: translateY(28px);
}

.wide-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.app-icon-float {
  position: absolute;
  top: 12px;
  right: 8px;
  width: 102px;
  height: 102px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(18, 63, 55, .22);
}

.section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: 0;
}

.section-head p {
  margin: 14px 0 0;
  color: #5c6f68;
  font-size: 18px;
  line-height: 1.68;
}

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

.feature-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .72);
  padding: 22px;
  box-shadow: 0 14px 36px rgba(18, 63, 55, .08);
}

.feature-card strong,
.faq-card h3 {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.24;
}

.feature-card p,
.faq-card p {
  margin: 10px 0 0;
  color: #566b64;
  font-size: 16px;
  line-height: 1.68;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, 1.08fr);
  gap: 28px;
  align-items: center;
}

.summary-box {
  border-left: 4px solid var(--gold);
  padding: 18px 0 18px 22px;
  color: #40564f;
  font-size: 18px;
  line-height: 1.76;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.screenshot-row img,
.screenshot-row video {
  width: 100%;
  max-height: 580px;
  border: 1px solid rgba(18, 63, 55, .14);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(18, 63, 55, .12);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cta-band {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 6vw, 72px);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(18, 63, 55, .14);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(18, 63, 55, .94), rgba(14, 102, 88, .88)),
    var(--ink);
  color: #fffaf0;
}

.cta-band h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.cta-band p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 250, 240, .78);
  font-size: 18px;
  line-height: 1.7;
}

.cta-band .button--primary {
  background: #fffaf0;
  color: var(--ink);
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: #63746f;
  font-size: 14px;
}

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

.nearfect-page {
  --ink: #f9fbff;
  --ink-2: #e7ecff;
  --jade: #7c5cff;
  --jade-2: #00d9ff;
  --cream: #070915;
  --paper: #10152a;
  --line: rgba(255, 255, 255, .16);
  --gold: #ffe16a;
  color: #e7ecff;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, .38), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 217, 255, .28), transparent 34%),
    linear-gradient(145deg, #070915, #111b36 52%, #220f34);
}

.nearfect-page .topbar {
  background: rgba(7, 9, 21, .76);
  border-bottom-color: rgba(255, 255, 255, .12);
}

.nearfect-page .brand strong,
.nearfect-page .app-title,
.nearfect-page .section-head h2,
.nearfect-page .feature-card strong,
.nearfect-page .faq-card h3 {
  color: #f9fbff;
}

.nearfect-page .brand span,
.nearfect-page .lede,
.nearfect-page .section-head p,
.nearfect-page .feature-card p,
.nearfect-page .faq-card p,
.nearfect-page .footer,
.nearfect-page .summary-box {
  color: rgba(231, 236, 255, .76);
}

.nearfect-page .kicker,
.nearfect-page .facts li,
.nearfect-page .feature-card,
.nearfect-page .faq-card,
.nearfect-page .media-panel {
  background: rgba(16, 21, 42, .72);
  border-color: rgba(255, 255, 255, .14);
}

.nearfect-page .button--primary,
.nearfect-page .nav .store-link {
  background: linear-gradient(135deg, #ffe16a, #ff8bd1);
  color: #100b22;
}

.nearfect-page .button--ghost {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #f9fbff;
}

.nearfect-page .cta-band {
  background: linear-gradient(135deg, rgba(124, 92, 255, .96), rgba(0, 217, 255, .62));
}

@media (max-width: 920px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .media-stage {
    min-height: 0;
  }

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

  .nav a:not(.store-link) {
    display: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
  }

  .brand span {
    display: none;
  }

  .actions,
  .actions .button,
  .actions .store-badge {
    width: 100%;
  }

  .button {
    white-space: normal;
    text-align: center;
  }

  .store-badge {
    justify-content: center;
  }

  .phone-stack,
  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    flex-direction: column;
    align-items: center;
  }

  .phone-shot,
  .phone-shot--single {
    width: min(88%, 320px);
  }

  .phone-shot--offset {
    transform: none;
  }

  .app-icon-float {
    width: 76px;
    height: 76px;
  }

  .footer {
    flex-direction: column;
  }
}
