/* Milorium — shared design system for milorium.com (landing, privacy, terms). */
:root {
  --green: #1f9d52;
  --green-bright: #34C759;
  --ink: #14171a;
  --muted: #5b6470;
  --bg: #ffffff;
  --card: #f4f7f5;
  --line: #e7ebe8;
  --radius: 20px;
  --grad: linear-gradient(135deg, #34C759 0%, #28B6C9 42%, #3B82F6 74%, #8B5CF6 100%);
  --hero-bg: linear-gradient(120deg, #fdfaf6 0%, #f4f8fc 58%, #ecf3fb 100%);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef1f3; --muted: #9aa4b0; --bg: #0d0f11; --card: #16191c; --line: #23282d; --hero-bg: #0b0d0f; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 17px;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.brand:hover { text-decoration: none; }

/* Language switcher */
.lang { position: relative; }
.lang button {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
}
.lang button:hover { border-color: var(--green); }
.lang ul {
  position: absolute; right: 0; top: 46px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; min-width: 150px;
  box-shadow: 0 14px 40px rgba(0,0,0,.16); display: none;
}
.lang.open ul { display: block; }
.lang li { padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; font-weight: 600; }
.lang li:hover, .lang li[aria-selected="true"] { background: var(--card); color: var(--green); }

.navright { display: flex; align-items: center; gap: 16px; }
.navlink { font-weight: 700; font-size: 15px; color: var(--ink); }
.navlink:hover { color: var(--green); text-decoration: none; }

/* ---------- Hero (tag + headline + feature cards | floating app) ---------- */
.hero { background: var(--hero-bg); padding: 44px 0 66px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 46px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }
.hero-left h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.03; letter-spacing: -1.8px; font-weight: 900; color: var(--ink); margin: 18px 0; }
.hero-left p { font-size: clamp(16px, 2.1vw, 20px); color: var(--muted); margin: 0; max-width: 42ch; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; background: rgba(52,199,89,.12); border: 1px solid rgba(52,199,89,.3); color: var(--green); padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.herofeats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; max-width: 540px; }
.hf { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; }
.hf .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.hf .ic svg { width: 19px; height: 19px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hf .lbl { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.hf.t1 .ic { background: rgba(52,199,89,.14); } .hf.t1 .ic svg { stroke: #1f9d52; }
.hf.t2 .ic { background: rgba(245,158,11,.16); } .hf.t2 .ic svg { stroke: #d97706; }
.hf.t3 .ic { background: rgba(52,199,89,.14); } .hf.t3 .ic svg { stroke: #1f9d52; }
.hf.t4 .ic { background: rgba(59,130,246,.14); } .hf.t4 .ic svg { stroke: #2563eb; }
.hf.t5 .ic { background: rgba(139,92,246,.16); } .hf.t5 .ic svg { stroke: #7c3aed; }
.hf.t6 .ic { background: rgba(59,130,246,.14); } .hf.t6 .ic svg { stroke: #2563eb; }
.hero-right { display: grid; place-items: center; }
.phone { width: min(360px, 86vw); border-radius: 30px; box-shadow: 0 34px 80px rgba(18,28,40,.20); border: 1px solid var(--line); display: block; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-left { text-align: center; }
  .hero-left p { margin-inline: auto; }
  .hero-tag { margin: 0 auto; }
  .herofeats { margin-inline: auto; }
}

/* ---------- Section ---------- */
section { padding: 74px 0; }
.section-title { text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: -0.9px; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); font-size: 18px; margin: 0 auto 44px; max-width: 46ch; }

/* Screenshots scroller */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 22px 26px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.shots img {
  flex: 0 0 auto; width: 264px; border-radius: 26px; scroll-snap-align: center;
  box-shadow: 0 18px 50px rgba(16,24,32,.18); border: 1px solid var(--line);
}

/* Features grid */
.features { background: var(--card); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.feature .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }
.feature h3 { margin: 0 0 7px; font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; letter-spacing: -1px; margin: 0 0 10px; }
.cta p { color: var(--muted); font-size: 18px; margin: 0; }

/* Dark CTA band — premium, horizontal (mirrors the install card structure) */
.band { padding: 8px 0 84px; }
.band .inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
  background: radial-gradient(120% 170% at 12% -25%, #232b34 0%, #14171a 60%);
  color: #fff; border-radius: 32px; padding: 48px 48px;
  border: 1px solid rgba(255,255,255,.07);
}
.band .inner::before {
  content: ""; position: absolute; top: -55%; left: -8%; width: 440px; max-width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,199,89,.30), transparent 62%); pointer-events: none;
}
.band-text { position: relative; max-width: 56ch; }
.band-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.band-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }
.band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -1px; margin: 14px 0 8px; }
.band p { color: rgba(255,255,255,.78); font-size: 17px; margin: 0; }
.bandcta { position: relative; flex-shrink: 0; display: inline-block; background: var(--grad); color: #fff; font-weight: 800; font-size: 16.5px; padding: 16px 38px; border-radius: 999px; box-shadow: 0 12px 34px rgba(52,199,89,.36); transition: transform .15s, box-shadow .15s; }
.bandcta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 16px 42px rgba(52,199,89,.46); }
@media (max-width: 700px) { .band .inner { flex-direction: column; align-items: flex-start; padding: 40px 30px; } }

/* Install / download card */
.install { padding: 40px 0 64px; }
.install-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: var(--hero-bg); border: 1px solid var(--line); border-radius: 28px; padding: 44px 42px; }
.install-text { max-width: 52ch; }
.install-text h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: -0.8px; margin: 14px 0 8px; color: var(--ink); }
.install-text p { color: var(--muted); font-size: 16.5px; margin: 0; }
.install-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.storebadge { display: inline-flex; align-items: center; gap: 11px; background: #14171a; color: #fff; border-radius: 14px; padding: 11px 22px; }
.storebadge:hover { text-decoration: none; opacity: .92; }
.storebadge .apple { width: 26px; height: 26px; flex-shrink: 0; }
.storebadge .bt { display: flex; flex-direction: column; line-height: 1.12; font-size: 19px; font-weight: 700; }
.storebadge .bt small { font-size: 11px; font-weight: 600; opacity: .85; }
@media (max-width: 700px) { .install-card { flex-direction: column; align-items: flex-start; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); font-weight: 600; }
.footer a:hover { color: var(--green); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 22px 90px; }
.legal h1 { font-size: 34px; letter-spacing: -0.8px; font-weight: 900; margin: 0 0 4px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 34px 0 8px; letter-spacing: -0.3px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }

@media (max-width: 560px) {
  .footer .wrap { flex-direction: column; align-items: flex-start; }
  section { padding: 56px 0; }
}
