/* ============================================================
   Erupt DM — Ad Landing Page (eruptdm.com/lp/)
   Apple-style, light-blue brand system. Colors ONLY via variables.
   ============================================================ */

:root {
  /* Brand (from official logo gradient #068DF2 -> #0990CC) */
  --brand: #068df2;
  --brand-deep: #0a66d8;
  --brand-glow: rgba(6, 141, 242, 0.35);
  --brand-tint: #eaf4ff;
  --brand-tint-2: #dcecff;
  --accent-cyan: #38bdf8;

  /* Surfaces */
  --bg: #f6faff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --ink: #0b1b2b;
  --ink-2: #44566c;
  --ink-3: #7b8ca1;
  --hairline: rgba(10, 60, 120, 0.1);
  --hairline-strong: rgba(10, 60, 120, 0.16);

  /* Dark immersive section (sync) */
  --night-bg: #071a30;
  --night-2: #0a2547;
  --night-ink: #eaf4ff;
  --night-ink-2: #9db9d8;
  --night-line: rgba(120, 190, 255, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 980px;
  --shadow-card: 0 20px 50px -24px rgba(7, 60, 130, 0.25);
  --shadow-btn: 0 10px 26px -8px var(--brand-glow);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }

/* Normalize <button> (cookie banner) — iOS applies its own chrome otherwise */
button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
a, button { -webkit-tap-highlight-color: transparent; }

/* focus ring only for keyboard nav — touch taps get no dark outline */
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

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

/* Language blocks (legal pages): EN default, zh toggled by html[data-lang] */
[data-lang-block] { display: none; }
html[data-lang="en"] [data-lang-block="en"],
html[data-lang="zh"] [data-lang-block="zh"] { display: block; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand small {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 12px;
  border-left: 1px solid var(--hairline-strong);
  padding-left: 10px;
  margin-left: 2px;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  /* solid brand base + soft top sheen: even edge, no dark corner bleed */
  background:
    radial-gradient(120% 170% at 50% -30%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 58%),
    var(--brand);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--brand-glow); }

.btn-ghost {
  background: var(--surface);
  color: var(--brand-deep);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--brand); transform: translateY(-2px); }

.btn-lg { font-size: 17px; padding: 15px 32px; }
.btn-sm { font-size: 13.5px; padding: 9px 20px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.12;
  font-weight: 700;
  margin: 18px 0 14px;
}
.section-head p { color: var(--ink-2); font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 40px;
  overflow: clip;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.orb-a { width: 560px; height: 560px; background: #a8d8ff; top: -220px; left: -140px; }
.orb-b { width: 460px; height: 460px; background: #cfe7ff; top: -80px; right: -160px; animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; background: #8fc9ff; bottom: -240px; left: 34%; opacity: 0.4; animation-delay: -11s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 34px, 0) scale(1.08); }
}

.hero-inner { position: relative; text-align: center; }
.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 22px 0 6px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-cyan), var(--brand) 60%, var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--ink-2);
  font-size: clamp(14px, 2.2vw, 18px); /* reduced 2px per design review */
}
.hero-sub + .hero-sub { margin-top: 8px; }

/* Hero download card */
.dl-card {
  margin: 38px auto 0;
  max-width: 640px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
.dl-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.dl-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13.5px;
}
.dl-meta b { color: var(--ink-2); font-weight: 600; }
.dl-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); opacity: 0.6; }
.dl-alt { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.dl-alt a { font-weight: 600; }

.hero-proof {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
}
.stars { color: #f7b500; letter-spacing: 2px; font-size: 15px; }

/* App window mockup */
.mockup-wrap { position: relative; max-width: 920px; margin: 64px auto 0; }
.mockup {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 40px 90px -30px rgba(7, 60, 130, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transform: perspective(1600px) rotateX(4deg);
  transform-origin: 50% 0;
}
.mbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: linear-gradient(#fbfdff, #f1f7ff);
  border-bottom: 1px solid var(--hairline);
}
.mdot { width: 11px; height: 11px; border-radius: 50%; }
.mdot.r { background: #ff5f57; } .mdot.y { background: #febc2e; } .mdot.g { background: #28c840; }
.mtitle { margin-left: 10px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.mbody { display: grid; grid-template-columns: 170px 1fr; min-height: 300px; }
.mside { border-right: 1px solid var(--hairline); padding: 14px 10px; display: grid; gap: 4px; align-content: start; }
.mside .mi {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.mside .mi svg { width: 14px; height: 14px; flex: none; }
.mside .mi.active { background: var(--brand-tint); color: var(--brand-deep); }
.mside .mi .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #28c840;
  margin-left: auto;
  animation: pulse 2s infinite;
}
.mlist { padding: 16px 18px; display: grid; gap: 12px; align-content: start; }
.mrow {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 14px;
}
.micon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--brand));
  opacity: 0.9;
  display: grid;
  place-items: center;
}
.micon svg { width: 17px; height: 17px; color: #fff; }
.mname { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.mtrack { margin-top: 6px; height: 6px; border-radius: 3px; background: var(--brand-tint-2); overflow: hidden; }
.mfill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-cyan), var(--brand)); animation: load 3.4s var(--ease-out) infinite; }
.mrow:nth-child(2) .mfill { animation-duration: 4.6s; animation-delay: -1.2s; }
.mrow:nth-child(3) .mfill { animation-duration: 5.4s; animation-delay: -2.4s; }
.mrow:nth-child(4) .mfill { animation-duration: 4s; animation-delay: -0.6s; }
@keyframes load { from { width: 4%; } to { width: 96%; } }
.mspeed { text-align: right; }
.mspeed b { font-size: 12.5px; color: var(--brand); font-weight: 700; }
.mspeed span { display: block; font-size: 10.5px; color: var(--ink-3); }
.mspeed .ok {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #1f9d44;
}
.mspeed .ok svg { width: 13px; height: 13px; flex: none; }
.mspeed .syncing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand);
}
.mspeed .syncing svg { width: 11px; height: 11px; flex: none; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* floating sync chip on mockup */
.sync-chip {
  position: absolute;
  right: -14px;
  top: 38px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  animation: floaty 5s ease-in-out infinite alternate;
}
.sync-chip .pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  to { box-shadow: 0 0 0 10px rgba(40, 200, 64, 0); }
}
@keyframes floaty { from { transform: translateY(-5px); } to { transform: translateY(7px); } }

/* ---------- Stats band ---------- */
.stats { padding: 34px 0 8px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--surface-glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px 28px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent-cyan), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.stat > span { color: var(--ink-3); font-size: 13.5px; font-weight: 500; }

/* ---------- Features grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 6px 24px -18px rgba(7, 60, 130, 0.25);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card .ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-tint-2));
  color: var(--brand);
  margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- Sync (immersive dark) ---------- */
.sync {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(800px 420px at 85% 100%, rgba(6, 141, 242, 0.2), transparent 60%),
    linear-gradient(180deg, var(--night-bg), var(--night-2));
  color: var(--night-ink);
  border-radius: 40px;
  margin: 30px auto;
  max-width: calc(var(--maxw) + 48px);
}
.sync .section-head h2 { color: #fff; }
.sync .section-head p { color: var(--night-ink-2); }
.sync .eyebrow { background: rgba(56, 189, 248, 0.12); border-color: var(--night-line); color: var(--accent-cyan); }

.sync-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.sync-copy h3 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
}
.sync-copy > p { color: var(--night-ink-2); font-size: 16.5px; margin-bottom: 26px; }
.sync-points { display: grid; gap: 14px; }
.sync-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--night-line);
  border-radius: 16px;
  padding: 14px 16px;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.sync-point:hover { background: rgba(255, 255, 255, 0.09); transform: translateX(4px); }
.sync-point .ic {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(6, 141, 242, 0.35));
  color: var(--accent-cyan);
}
.sync-point .ic svg { width: 20px; height: 20px; }
.sync-point b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.sync-point span { color: var(--night-ink-2); font-size: 13.5px; }

.sync-visual { position: relative; }
.sync-visual svg { width: 100%; height: auto; }
.sync-cta { text-align: center; margin-top: 56px; }
.sync-cta p { color: var(--night-ink-2); margin-bottom: 20px; font-size: 15px; }

/* ---------- Extension steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 6px 24px -18px rgba(7, 60, 130, 0.25);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 14.5px; }
.ext-browsers {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
  flex-wrap: wrap;
}
.ext-browsers .b { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Platforms ---------- */
.plat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 0 6px 24px -18px rgba(7, 60, 130, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.plat:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.plat .p-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.plat .p-head .ic {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-tint-2));
  color: var(--brand-deep);
}
.plat .p-head .ic svg { width: 26px; height: 26px; }
.plat h3 { font-size: 21px; letter-spacing: -0.015em; }
.plat .p-sub { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.plat > p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 8px; }
.plat .p-meta { color: var(--ink-3); font-size: 13px; display: flex; gap: 8px 16px; flex-wrap: wrap; margin: 2px 0 14px; }
.plat .p-meta b { color: var(--ink-2); font-weight: 600; }
.plat .btn { margin-top: auto; align-self: flex-start; }
.p-badge {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.p-badge[hidden] { display: none; }

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(135deg, var(--accent-cyan) 0%, var(--brand) 55%, var(--brand-deep) 100%);
  border-radius: 40px;
  color: #fff;
  padding: 84px 32px;
  box-shadow: 0 30px 70px -30px var(--brand-glow);
}
.cta-final h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.025em; margin-bottom: 12px; }
.cta-final p { opacity: 0.92; font-size: 18px; margin-bottom: 30px; }
.cta-final .btn { background: #fff; color: var(--brand-deep); box-shadow: 0 14px 30px -10px rgba(3, 40, 90, 0.45); }
.cta-final .btn:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 34px;
  background: var(--surface);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.foot-brand p { color: var(--ink-3); font-size: 13.5px; margin-top: 12px; max-width: 300px; }
.foot-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--brand); }
.foot-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13px;
}
.foot-legal a { color: var(--ink-3); }
.foot-legal a:hover { color: var(--brand); }

/* ---------- Cookie consent ---------- */
.cookie {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  width: min(680px, calc(100vw - 32px));
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(7, 40, 90, 0.4);
  padding: 20px 22px;
  transition: transform 0.6s var(--ease-out);
}
.cookie.show { transform: translate(-50%, 0); }
.cookie h3 { font-size: 15.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.cookie h3 svg { width: 18px; height: 18px; color: var(--brand); }
.cookie p { font-size: 13px; color: var(--ink-2); }
.cookie p a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; } .d5 { transition-delay: 0.4s; } .d6 { transition-delay: 0.48s; }
.d7 { transition-delay: 0.56s; } .d8 { transition-delay: 0.64s; }

/* ---------- Legal docs ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 72px 24px 90px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 16px 0 8px; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 34px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 5px 0; }
.doc .contact-strip {
  margin-top: 44px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 14.5px;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.contact-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 6px 24px -18px rgba(7, 60, 130, 0.25);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  color: var(--ink);
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow-card); }
.contact-card .ic {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-tint-2));
  color: var(--brand);
  margin-bottom: 18px;
}
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card p { color: var(--ink-2); font-size: 14.5px; }
.contact-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .brand small { display: none; } /* narrow screens: tagline wraps, hide it */
}
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sync-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .hero { padding: 64px 0 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; padding: 26px 18px; }
  .mbody { grid-template-columns: 1fr; }
  .mside { display: none; }
  .mockup { transform: none; }
  .sync-chip { right: 6px; top: -18px; }
  .steps { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  #btn-nav { margin-left: auto; } /* links hidden: pin the CTA to the right */
  .sync { border-radius: 28px; margin: 20px 12px; }
  .cta-final { border-radius: 28px; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .dl-card { padding: 22px 18px; }
}

/* ---------- Touch devices: no sticky hover, no tap flash ---------- */
@media (hover: none) {
  .btn:hover, .btn-ghost:hover { transform: none; }
  .btn-primary:hover { box-shadow: var(--shadow-btn); }
  .btn-ghost:hover { border-color: var(--hairline-strong); }
  .cta-final .btn:hover { transform: none; box-shadow: 0 14px 30px -10px rgba(3, 40, 90, 0.45); }
  .card:hover, .plat:hover, .contact-card:hover, .sync-point:hover {
    transform: none;
    box-shadow: 0 6px 24px -18px rgba(7, 60, 130, 0.25);
  }
  .contact-card:hover { border-color: var(--hairline); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
