/* LuckyMeo — iOS-like promo (white, compact, SF typography) */
:root {
  --navy: #0a1628;
  --gold: #b8860b;
  --gold-soft: rgba(184, 134, 11, 0.12);
  --accent: #007aff;
  --red: #ff3b30;
  --bg: #ffffff;
  --bg-grouped: #f2f2f7;
  --bg-elevated: #ffffff;
  --text: #000000;
  --text-secondary: #1a1a1a;
  --text-muted: #424242;
  --separator: rgba(60, 60, 67, 0.12);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', system-ui,
    sans-serif;
  --font-vi: var(--font);
  --max: 980px;
  --nav-h: 48px;
  --content-pad: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47;
  letter-spacing: -0.022em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Nav (iOS bar) —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--content-pad);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator);
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

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

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 980px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.85;
  text-decoration: none;
}

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

/* —— Hero (compact, white) —— */
.hero {
  padding: 28px var(--content-pad) 36px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--separator);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 28px;
}

.hero-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.hero-charm {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

.hero-copy {
  flex: 1;
  min-width: min(100%, 280px);
}

.hero-copy .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 6px;
}

.hero-copy .hero-subtitle-vi {
  margin: 0 0 12px;
  font-family: var(--font-vi);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--text);
  max-width: 38em;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

.hero-copy .hero-phrase-vi {
  margin: 0 0 12px;
  padding: 12px 14px;
  font-family: var(--font-vi);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #1a1200;
  background: linear-gradient(160deg, #fff8e6 0%, #ffe9a0 55%, #f5c842 100%);
  border: 1px solid rgba(184, 134, 11, 0.32);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.15);
  max-width: 38em;
}

.hero-copy .hero-realtime-vi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  font-family: var(--font-vi);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 122, 255, 0.92);
  border-radius: 999px;
  max-width: 100%;
}

.hero-realtime-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffb3;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hero — promo split (lucky-intro + header-cat-bg) */
.hero--promo {
  padding: 32px var(--content-pad) 40px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-grouped) 100%);
}

.hero-inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 28px 36px;
}

.hero-inner--split .hero-mark {
  margin-bottom: 4px;
}

.hero-visual {
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 0.5px solid var(--separator);
  box-shadow: var(--shadow-card);
  background: var(--bg-grouped);
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 520px);
}

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

.hero-visual-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 12px 8px 0;
}

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

  .hero-visual {
    justify-self: center;
    max-width: 340px;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg-grouped);
  color: var(--text);
  border: 0.5px solid var(--separator);
}

.btn-secondary:hover {
  background: #e8e8ed;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 11px 4px;
}

.btn-ghost:hover {
  text-decoration: underline;
}

/* legacy alias */
.btn-ghost.share-btn-secondary,
.share-btn-secondary {
  background: var(--bg-grouped) !important;
  color: var(--text) !important;
  border: 0.5px solid var(--separator) !important;
  padding: 11px 20px !important;
  border-radius: 980px !important;
  text-decoration: none !important;
}

/* —— Sections —— */
.section {
  padding: 48px var(--content-pad);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 32px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.features {
  background: var(--bg-grouped);
}

/* —— Cards (iOS grouped) —— */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.bento-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--separator);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.bento-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

.bento-visual {
  margin-top: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-grouped);
  border: 0.5px solid var(--separator);
}

.bento-visual img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  object-position: top center;
}

.bento-visual--contain img {
  max-height: 200px;
  object-fit: contain;
  object-position: center;
  background: var(--bg-grouped);
}

.bento-visual--portrait img {
  max-height: 180px;
}

.bento-visual--scene img {
  max-height: 120px;
  object-fit: cover;
  object-position: center;
}

.bento-visual--wide img {
  max-height: 140px;
  object-fit: cover;
  object-position: center;
}

.bento-icon--round {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.bento-wide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: center;
}

.bento-wide-copy h3 {
  margin-top: 0;
}

.bento-wide-copy .bento-visual,
.bento-wide-row .bento-visual {
  margin-top: 0;
}

@media (max-width: 720px) {
  .bento-wide-row {
    grid-template-columns: 1fr;
  }

  .bento-wide-row .bento-visual {
    margin-top: 14px;
  }
}

.bento-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bento-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: var(--gold);
}

@media (max-width: 900px) {
  .bento-span-7,
  .bento-span-5,
  .bento-span-4,
  .bento-span-8,
  .bento-span-12 {
    grid-column: span 12;
  }
}

/* —— Showcase —— */
.showcase {
  background: var(--bg);
  border-top: 0.5px solid var(--separator);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.showcase-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.showcase-copy > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.showcase-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  background: var(--bg-grouped);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--separator);
}

.showcase-list li {
  position: relative;
  padding: 14px 16px 14px 36px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 0.5px solid var(--separator);
}

.showcase-list li:last-child {
  border-bottom: none;
}

.showcase-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.phone-frame {
  max-width: 260px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 8px;
  background: #1d1d1f;
  box-shadow: var(--shadow-card);
}

.phone-frame img {
  border-radius: 22px;
  width: 100%;
}

.showcase-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.phone-frame--primary {
  max-width: 260px;
  z-index: 2;
}

.phone-frame--secondary {
  max-width: 220px;
  opacity: 0.96;
  transform: translateY(12px);
}

.phone-frame--secondary img {
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 390 / 844;
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-phones {
    margin-top: 8px;
  }

  .phone-frame--primary,
  .phone-frame--secondary {
    max-width: 220px;
    transform: none;
  }
}

/* —— Download —— */
.download {
  background: var(--bg-grouped);
  border-top: 0.5px solid var(--separator);
}

.download-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 0.5px solid var(--separator);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.download-icon {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.download-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.download-mascot {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.92;
}

.download-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download-card p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.store-btn {
  min-width: 140px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.store-btn span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 2px;
}

.store-btn.outline {
  background: var(--bg);
  color: var(--text);
  border: 0.5px solid var(--separator);
}

.store-btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* —— Footer (white) —— */
.footer {
  padding: 32px var(--content-pad);
  background: var(--bg);
  border-top: 0.5px solid var(--separator);
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.footer p {
  margin: 4px 0;
}

.footer strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Page header (share) —— */
.page-header {
  padding: 20px var(--content-pad) 16px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--separator);
}

.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-header .eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-header .subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
