:root {
  --primary: #2d7ff9;
  --primary-dark: #1f6fe0;
  --purple: #7b61ff;
  --green: #34c759;
  --orange: #ff9500;
  --ink: #14171f;
  --muted: #5b6273;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e6e9f0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 23, 31, 0.08);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header / nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 250, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
#langSelect, #langSelectHost select {
  padding: 8px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }

/* Hero */
.hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(45,127,249,.18), transparent 60%),
    radial-gradient(900px 400px at 10% 0%, rgba(123,97,255,.12), transparent 55%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--primary); font-size: 14px;
  background: rgba(45,127,249,.1); padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: 52px; line-height: 1.08; margin: 18px 0; letter-spacing: -1px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.phone {
  width: 280px; aspect-ratio: 9/19.5; border-radius: 42px;
  background: linear-gradient(160deg, var(--primary), var(--purple));
  box-shadow: 0 30px 60px rgba(45,127,249,.35);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.phone img { width: 60%; border-radius: 28px; }
.phone.phone-shot {
  width: min(300px, 42vw); aspect-ratio: 1290/2796; border-radius: 0;
  background: transparent; box-shadow: 0 30px 60px rgba(45,127,249,.25);
}
.phone.phone-shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

/* App Store screenshots gallery */
.screenshots-block { padding-top: 24px; }
.screenshots-scroll {
  display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot-card {
  flex: 0 0 auto; width: 220px; margin: 0; scroll-snap-align: start;
  border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.shot-card img { display: block; width: 100%; aspect-ratio: 1290/2796; object-fit: cover; }
.shot-card figcaption {
  padding: 10px 12px 12px; font-size: 13px; font-weight: 700; color: var(--ink); text-align: center;
}

/* Sections */
section.block { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 14px; font-size: 34px; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 48px; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px; background: rgba(45,127,249,.1);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Premium */
.premium { background: linear-gradient(160deg, #0f1115, #1b2430); color: #fff; border-radius: 28px; padding: 56px 40px; }
.premium .section-title, .premium .section-sub { color: #fff; }
.premium .section-sub { color: #c3c9d6; }
.plist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; max-width: 720px; margin: 0 auto; }
.plist div { display: flex; gap: 10px; align-items: center; color: #e8ebf2; }
.plist .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #061; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }

/* Legal pages */
.legal { padding: 56px 0 90px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 40px; margin-bottom: 6px; letter-spacing: -.5px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #2b303c; }
.legal ul { margin: 8px 0 8px 22px; }
.callout {
  background: #fff6e8; border: 1px solid #ffe1b3; border-radius: 14px;
  padding: 18px 20px; margin: 22px 0; color: #5a4000;
}

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .fbrand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
footer .fbrand img { width: 28px; height: 28px; border-radius: 7px; }
footer a { color: var(--muted); margin-left: 18px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 40px; }
  .hero-cta { justify-content: center; }
  .hero p.lead { margin: 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .plist { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn) { display: none; }
}
