/* MemoExpo website — tokens mirror mobile/src/constants/theme.ts */
:root {
  --text: #0b0b12;
  --text-2: #5f6370;
  --text-3: #9a9dab;
  --bg: #f6f6f9;
  --surface: #ffffff;
  --muted: #eeeff3;
  --border: #e4e5ea;
  --tint: #5b5bf6;
  --tint-soft: #ececfe;
  --accent: #ff4d67;
  --success: #1fb866;
  --warning: #f59e0b;
  --brand: linear-gradient(135deg, #6d5bff 0%, #3e8bff 55%, #22c3ee 100%);
  --shadow: 0 10px 30px rgba(11, 11, 18, 0.07);
  --shadow-lg: 0 30px 80px rgba(37, 30, 120, 0.25);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'PingFang SC', 'Hiragino Sans',
    'Apple SD Gothic Neo', 'Noto Sans CJK SC', 'Noto Sans', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --text-2: #a3a6b1;
    --text-3: #6c6f7a;
    --bg: #0a0a0f;
    --surface: #16171d;
    --muted: #1f2028;
    --border: #262731;
    --tint: #8b8bff;
    --tint-soft: #23234a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.lang {
  appearance: none; border: 1px solid var(--border); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a9dab' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text); font: inherit; font-size: 14px; padding: 7px 30px 7px 12px; border-radius: 999px; cursor: pointer;
}
@media (max-width: 760px) { .nav-links { display: none; } .lang { margin-left: auto; } }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(91, 91, 246, 0.35); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; min-width: 200px;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.2; }
.store strong { display: block; font-size: 18px; line-height: 1.2; letter-spacing: -0.2px; }
.store.soon { cursor: default; }
@media (prefers-color-scheme: dark) { .store { background: #fff; color: #000; } }

/* ───────── hero ───────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: 0.55;
}
.hero::before { width: 520px; height: 520px; background: #8f7bff; top: -160px; right: -120px; }
.hero::after { width: 420px; height: 420px; background: #4fd1f5; bottom: -140px; left: -160px; opacity: 0.35; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--tint-soft); color: var(--tint); font-weight: 600; font-size: 13px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(31, 184, 102, 0.18); }
h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 18px; font-weight: 800;
}
h1 .grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { margin-top: 14px; font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
}

/* phone mockup */
.stage { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone {
  position: relative; width: min(300px, 72vw); aspect-ratio: 1206 / 2622; border-radius: 52px; padding: 11px;
  background: #0b0b12; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2a33;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.96); color: #0b0b12; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(27, 20, 100, 0.18); animation: float 4.4s ease-in-out infinite;
}
.chip i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 12px; }
.chip.c1 { top: 12%; left: -6%; }
.chip.c2 { top: 40%; right: -10%; animation-delay: 0.8s; }
.chip.c3 { bottom: 14%; left: -10%; animation-delay: 1.6s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .chip.c1 { left: 0; } .chip.c2 { right: 0; } .chip.c3 { left: 0; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } html { scroll-behavior: auto; } }

/* ───────── sections ───────── */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker { color: var(--tint); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; margin: 10px 0 14px; }
.section-head p { color: var(--text-2); font-size: 18px; margin: 0; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.025em; margin: 12px 0 14px; }
.feature p { color: var(--text-2); font-size: 17px; margin: 0 0 18px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.feature li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--tint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='%235b5bf6' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--tint);
  background: var(--tint-soft); padding: 5px 12px; border-radius: 999px;
}
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(280px, 70vw); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature ul { justify-items: center; }
}

/* safety */
.safety { background: var(--surface); border-block: 1px solid var(--border); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg); border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); }
.card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-soft); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; stroke: var(--tint); }
.card h4 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* languages */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.langs span { padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }

/* final CTA */
.final { padding: 0 0 96px; }
.final .box {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px 32px; text-align: center; color: #fff;
  background: var(--brand);
}
.final .box::after {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
  top: -140px; right: -80px;
}
.final h2 { color: #fff; margin-top: 0; }
.final p { color: rgba(255, 255, 255, 0.88); font-size: 18px; margin: 0 auto 28px; max-width: 32em; }
.final .store { background: #fff; color: #000; position: relative; z-index: 1; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ───────── document pages (privacy / terms / support) ───────── */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); margin-top: 0; }
.doc .updated { color: var(--text-3); font-size: 14px; margin: -6px 0 36px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc a { color: var(--tint); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; }
.callout { background: var(--tint-soft); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.callout p { margin: 0; color: var(--text); }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 16px; }
