*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: #fff;
  color: var(--color-ink);
}

body.modal-open {
  overflow: hidden;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--section-pad-x);
  background: var(--color-surface-mint);
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--color-ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--color-coral);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--color-coral-hover);
}

/* Hero — desktop split */
.hero {
  display: flex;
  min-height: 580px;
  position: relative;
  overflow: hidden;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  z-index: 0;
}

.hero-bg-photo--mobile {
  display: none;
}

.hero-left {
  width: 44%;
  padding: 72px var(--section-pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  position: relative;
  z-index: 2;
}

.hero-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: -260px;
  width: 340px;
  height: 100%;
  background: linear-gradient(
    to right,
    #fff 0%,
    #fff 22%,
    rgba(255, 255, 255, 0.92) 42%,
    rgba(255, 255, 255, 0.55) 62%,
    rgba(255, 255, 255, 0.12) 88%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-right {
  width: 56%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  background: var(--color-surface-mint);
  color: var(--color-ink-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 22px;
  width: fit-content;
}

.hero-h1 {
  font-size: 52px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-h1 span {
  color: var(--color-coral);
}

.hero-sub {
  font-size: 16px;
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 400px;
}

.store-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
}

.phone-wrap {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 58%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* Sections */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-coral);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 16px;
  color: var(--color-gray);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

/* Features */
.features {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: #fff;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

/* Screenshots */
.screens {
  background: var(--color-surface-mint);
  padding: var(--section-pad-y) var(--section-pad-x);
}

.screens .section-sub {
  color: var(--color-ink-soft);
}

.screens-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  width: 100%;
  padding: 28px 0 4px;
}


/* CTA */
.cta {
  background: var(--color-ink);
  padding: var(--section-pad-y) var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-left {
  max-width: 480px;
}

.cta-h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-teal-pale);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.cta-sub {
  font-size: 16px;
  color: var(--color-teal-light);
  line-height: 1.7;
}

.cta-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Footer */
.footer {
  background: var(--color-ink);
  border-top: 1px solid var(--color-ink-soft);
  padding: 24px var(--section-pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-teal-light);
}

.footer-copy {
  font-size: 12px;
  color: var(--color-ink-soft);
}

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

.footer-links a {
  font-size: 12px;
  color: var(--color-teal-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-teal-pale);
}

/* Mobile-only hero overlay (hidden on desktop) */
.hero-mobile-only {
  display: none;
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --section-pad-x: 24px;
    --section-pad-y: 48px;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: block;
  }

  .nav-cta--desktop {
    display: none;
  }

  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-bg-photo--desktop {
    display: none;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-left {
    display: none;
  }

  .hero-left::after {
    display: none;
  }

  .hero-right {
    display: none;
  }

  .hero-mobile-only {
    display: block;
    position: relative;
    min-height: 520px;
    overflow: hidden;
  }

  .hero-bg-photo--mobile {
    display: block;
    object-position: top center;
    opacity: 1;
  }

  .hero-mobile-only::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.52);
    z-index: 1;
    pointer-events: none;
  }

  .hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(
      to top,
      #fff 0%,
      #fff 35%,
      rgba(255, 255, 255, 0.95) 55%,
      rgba(255, 255, 255, 0.75) 75%,
      rgba(255, 255, 255, 0.2) 100%
    );
    z-index: 2;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    padding: 180px var(--section-pad-x) 32px;
  }

  .hero-h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .hero-sub {
    font-size: 14px;
    max-width: none;
    margin-bottom: 24px;
  }

  .store-btns {
    width: 100%;
    align-items: center;
  }

  .store-btn {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }

  .store-btns .store-soon {
    width: 135px;
    max-width: 100%;
  }

  .section-h2 {
    font-size: 26px;
  }

  .section-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feat-card {
    padding: 22px 18px;
  }

  .feat-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .feat-title {
    font-size: 15px;
  }

  .feat-desc {
    font-size: 13px;
  }

  .screens-row {
    overflow-x: auto;
    padding-bottom: 8px;
    align-items: flex-end;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .screens-row::-webkit-scrollbar {
    display: none;
  }

  .screen-card {
    flex: 0 0 150px;
    min-width: 150px;
    scroll-snap-align: start;
  }

  .screen-phone {
    margin-bottom: 10px;
    height: auto;
  }

  .screen-caption {
    min-height: 50px;
  }

  .screen-lbl {
    font-size: 12px;
    min-height: calc(12px * 1.35 * 2);
  }

  .screen-sub {
    font-size: 10px;
  }

  /* Optional 5th card on mobile */
  .screen-card--friends {
    display: flex;
  }

  .screen-card {
    transform: none;
  }

  .cta {
    flex-direction: column;
    text-align: center;
  }

  .cta-h2 {
    font-size: 28px;
  }

  .cta-sub {
    font-size: 14px;
  }

  .cta-right {
    width: 100%;
    align-items: center;
  }

  .cta-btn-badge {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }

  .cta-right .store-soon {
    width: 135px;
    max-width: 100%;
  }

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

@media (min-width: 901px) {
  .screen-card--friends {
    display: none;
  }

  .nav-drawer,
  .nav-drawer.is-open {
    display: none !important;
  }

  /* 截圖卡片高低交錯：偶數張略往上、奇數張略往下 */
  .screen-card:nth-child(odd) {
    transform: translateY(12px);
  }

  .screen-card:nth-child(even) {
    transform: translateY(-20px);
  }
}
