/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { text-decoration: none; }
img { border: none; display: block; }

.container {
  margin: 0 auto;
  max-width: 980px;
  padding: 0 40px;
}

/* ── Phone component ───────────────────────────────────────────── */
.phone {
  background: #1e293b;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 38px;
  overflow: hidden;
  padding: 10px 10px 0;
  position: relative;
  width: 220px;
}
.phone__notch {
  background: #1e293b;
  border-radius: 0 0 14px 14px;
  height: 22px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 72px;
  z-index: 2;
}
.phone__img {
  border-radius: 28px 28px 0 0;
  display: block;
  transition: opacity 0.18s ease;
  width: 100%;
}
.phone__img--fade { opacity: 0; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background-color: #fff;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ4MCIgaGVpZ2h0PSI2NTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTczMS4yMDcgNjQ5LjgwMkM5MzUuNDg0IDY0Mi4xNCAxNDgwIDMzNy4zMjUgMTQ4MCAxODAuODg4YzAtMTU2LjQzOC0zMDkuNzQ0LTM2LjA1NS03MjAtMzYuMDU1UzAtMTc0LjQ4MyAwIDEzNS4xNDRjMCAzMDkuNjI3IDUyNi45MyA1MjIuMzIgNzMxLjIwNyA1MTQuNjU4eiIgZmlsbD0iI0Y2RjhGQSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+);
  background-position: 20vw -10vh;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  padding: 80px 0 0;
  position: relative;
}

.hero__inner {
  align-items: flex-end;
  display: flex;
  gap: 48px;
  justify-content: space-between;
}

/* Left col */
.hero__text {
  flex: 1;
  padding-bottom: 80px;
}
.hero__brand {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}
.hero__logo {
  border-radius: 18%;
  box-shadow: 0 0 0 0px rgba(0,0,0,0.08);
  height: 80px;
  width: 80px;
}
.hero__app-name {
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__headline {
  color: #0f172a;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 20px;
}
.hero__tagline {
  color: #475569;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 40px;
  max-width: 380px;
}
.hero__buttons {
  align-items: center;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.store-btn img { display: block; }
.store-btn--play img { width: 212px; }
.store-btn--ios  img { width: 168px; }

/* Right col — phone with bottom fade */
.hero__phone-wrap {
  flex: 0 0 auto;
  position: relative;
}
.hero__phone-wrap .phone {
  border-color: rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}
.hero__fade {
  background: linear-gradient(to bottom, transparent 30%, #f6f8fa 90%);
  bottom: 0;
  height: 55%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 2;
}

/* ── Interactive features ──────────────────────────────────────── */
.feats {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0;
}
.feats__inner {
  align-items: center;
  display: flex;
  gap: 56px;
}

.feats__phone-wrap .phone {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(0,0,0,0.5);
}
.feats__phone-wrap .phone__img {
  border-radius: 28px 28px 28px 28px;
}

.feats__cards {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.feat-card {
  align-items: flex-start;
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  padding: 24px 20px;
  text-align: left;
  transition: background 0.15s ease;
  width: 100%;
}
.feat-card:hover {
  background: rgba(255,255,255,0.05);
}
.feat-card--active {
  background: rgba(255,255,255,0.08);
}

.feat-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feat-card__title {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.feat-card--active .feat-card__title { color: #f1f5f9; }
.feat-card__desc {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}
.feat-card--active .feat-card__desc { color: #94a3b8; }

/* ── Details section ───────────────────────────────────────────── */
.details {
  background: #fff;
  padding: 72px 0;
}
.details__text {
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 620px;
}
.details__text a     { color: #0284c7; }
.details__text a:hover { color: #0ea5e9; }
.details__text ul    { padding-left: 1.4em; margin: 8px 0; }
.details__text li    { margin-bottom: 4px; }
.details__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  background: #0ea5e9;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: #0284c7; color: #fff; }
.btn--ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
}
.btn--ghost:hover { background: #f1f5f9; color: #0f172a; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: #0a1120;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #475569;
  font-size: 13px;
  padding: 18px 0;
}
.footer a { color: #475569; }
.footer a:hover { color: #94a3b8; }
.footer__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .store-btn--play img { width: 154px; }
  .store-btn--ios  img { width: 120px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .hero { padding: 56px 0 0; }
  .hero__inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero__text { padding-bottom: 0; }
  .hero__headline { font-size: 34px; }
  .hero__tagline { font-size: 16px; }
  .hero__phone-wrap { align-self: center; }
  .hero__fade { height: 40%; }

  .feats__inner { flex-direction: column; }
  .feats__phone-wrap .phone { width: 180px; }

  .footer__inner { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .footer__links { gap: 16px; }
}
