/* Emix landing page. No JavaScript (the CSP allows none); motion is CSS
   transform/opacity only and stops under prefers-reduced-motion. */
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0912; --bg-2: #110f1c; --card: #181526; --line: rgba(255,255,255,.08);
  --fg: #f4f1fb; --muted: #a8a2c2; --dim: #736d8f;
  --pink: #ff3ea5; --purple: #9333ea; --violet: #a855f7; --blue: #22a0ff; --cyan: #38c8ff;
  --grad: linear-gradient(100deg, var(--pink) 0%, var(--violet) 48%, var(--cyan) 100%);
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "DM Sans", "Inter", system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(10,9,18,.72); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 700 20px "DM Sans", sans-serif; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 16px; color: var(--fg); border: 1px solid transparent; transition: transform .15s ease, background-position .4s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: linear-gradient(100deg, #e0369a 0%, #9333ea 50%, #2f7fff 100%); background-size: 160% 100%; box-shadow: 0 10px 34px -10px rgba(168,85,247,.7); }
.btn-primary:hover { background-position: 100% 0; }
.btn-secondary { background: rgba(255,255,255,.06); border-color: var(--line); }
.btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg span { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(110px); opacity: .32; will-change: transform; }
.hero-bg span:nth-child(1) { background: var(--pink); top: -260px; left: -200px; animation: drift1 24s ease-in-out infinite alternate; }
.hero-bg span:nth-child(2) { background: var(--purple); top: 120px; left: 38%; opacity: .26; animation: drift2 30s ease-in-out infinite alternate; }
.hero-bg span:nth-child(3) { background: var(--blue); top: -160px; right: -240px; opacity: .26; animation: drift3 27s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(120px, 80px, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-100px, -60px, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(-110px, 110px, 0) scale(1.05); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 24px 0 32px; font-size: 19px; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 18px 0 0; color: var(--dim); font-size: 14px; }
.hero-visual { position: relative; }
.window { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: var(--bg-2); box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(168,85,247,.12), 0 30px 90px -40px rgba(168,85,247,.55); transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #0d0b16; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b2740; }
.window-bar span { margin-left: 10px; color: var(--dim); font-size: 12px; font-weight: 600; }
.hero-icon { position: absolute; left: -34px; bottom: -34px; width: 96px; height: 96px; border-radius: 22px; filter: drop-shadow(0 18px 40px rgba(147,51,234,.55)); animation: float 7s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-12px); } }

/* Pillars */
.pillars-section { position: relative; padding: 0 0 24px; margin-top: -40px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar { padding: 20px 22px; border-radius: 16px; background: rgba(24,21,38,.72); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pillar-k { font: 800 18px "DM Sans", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(147,51,234,.06) 30%, rgba(34,160,255,.04) 70%, transparent); border-block: 1px solid var(--line); }
.section-title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.12; text-align: center; }
.section-lead { margin: 16px auto 0; max-width: 620px; color: var(--muted); text-align: center; }
.features { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: rgba(168,85,247,.35); transform: translateY(-2px); }
.feature h3 { margin: 16px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ficon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, rgba(255,62,165,.22), rgba(147,51,234,.22), rgba(34,160,255,.22)); }
.ficon svg { width: 24px; height: 24px; fill: none; stroke: #e9d5ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-accent { background: linear-gradient(135deg, rgba(255,62,165,.10), rgba(147,51,234,.10) 50%, rgba(34,160,255,.10)); }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.split .section-title, .split .section-lead { text-align: left; margin-left: 0; }
.showcase { grid-template-columns: .9fr 1.1fr; gap: 56px; }
.showcase-reverse { grid-template-columns: 1.1fr .9fr; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: var(--bg-2); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 30px 80px -40px rgba(168,85,247,.5); }
.eyebrow-center { text-align: center; }
.features-3 { grid-template-columns: repeat(3, 1fr); }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li strong { color: var(--fg); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); -webkit-mask: radial-gradient(circle, transparent 0 4px, #000 4.5px); mask: radial-gradient(circle, transparent 0 4px, #000 4.5px); }
.stat-card { padding: 34px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 22px; box-shadow: 0 40px 90px -40px rgba(147,51,234,.5); }
.stat { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.stat-num { font: 800 40px/1 "DM Sans", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 120px; }
.stat-label { color: var(--muted); }
.stat-note { margin: 0; color: var(--dim); font-size: 13.5px; }

.download { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 40px; border-radius: 26px; background: radial-gradient(120% 140% at 0% 0%, rgba(255,62,165,.16), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(34,160,255,.16), transparent 50%), var(--card); border: 1px solid rgba(168,85,247,.25); }
.download img { border-radius: 20px; }
.download h2 { font-size: 32px; font-weight: 800; }
.download p { margin: 8px 0 0; color: var(--muted); }
.download-cta { display: flex; flex-direction: column; gap: 10px; }

.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.brand-footer { font-size: 17px; }
.brand-footer img { border-radius: 7px; }
.footer-inner { align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--fg); }
.legal { margin: 0; max-width: 720px; color: var(--dim); font-size: 14px; }
.legal a { color: var(--muted); text-decoration: underline; }

@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner, .split { grid-template-columns: 1fr; gap: 48px; }
  .window { transform: none; }
  .hero-icon { left: auto; right: 12px; bottom: -28px; width: 72px; height: 72px; }
  .features, .features-3 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars-section { margin-top: -24px; }
  .showcase-reverse .shot { order: 2; }
  .download { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .download-cta { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .features, .features-3, .pillars { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .section { padding: 72px 0; }
  .stat-num { font-size: 32px; min-width: 96px; }
  .download { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg span, .hero-icon { animation: none; }
  .btn, .feature { transition: none; }
}

/* Legal page */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; line-height: 1.08; }
.doc h2 { margin: 44px 0 10px; font-size: 24px; font-weight: 700; }
.doc p { margin: 0 0 14px; color: var(--muted); }
.doc p strong { color: var(--fg); }
.doc a:not(.btn) { color: var(--cyan); }
.doc-lead { margin-top: 18px !important; font-size: 19px; }
.notice { padding: 18px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--fg) !important; font-size: 15px; line-height: 1.7; }

/* ── Changelog (/changelog/) ─────────────────────────────────────────── */
.changelog { max-width: 820px; }
.changelog-status { margin-top: 28px !important; }
.release {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.03);
  border: 1px solid rgb(255 255 255 / 0.07);
}
.release-latest {
  background: linear-gradient(160deg, rgb(255 62 165 / 0.07), rgb(147 51 234 / 0.06) 50%, rgb(34 160 255 / 0.06));
  border-color: rgb(168 85 247 / 0.35);
}
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.doc .release-head h2 { margin: 0; font-size: 26px; }
.release-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; color: #fff;
  background: linear-gradient(100deg, #e0369a, #9333ea 55%, #2f7fff);
}
.release-date { color: var(--muted); font-size: 14px; }
.doc .release-title { margin: 10px 0 2px; color: var(--fg); font-size: 18px; font-weight: 600; }
.doc .release-summary { margin: 0 0 6px; }
.release-section { margin-top: 18px; }
.doc .release-section h3 { margin: 0 0 8px; }
.chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid;
}
.chip-new { color: #ff7cc4; background: rgb(255 62 165 / 0.12); border-color: rgb(255 62 165 / 0.35); }
.chip-improved { color: #7cc6ff; background: rgb(34 160 255 / 0.12); border-color: rgb(34 160 255 / 0.35); }
.chip-fixed { color: #6ee7a8; background: rgb(52 211 153 / 0.12); border-color: rgb(52 211 153 / 0.35); }
.chip-performance { color: #fcd34d; background: rgb(245 158 11 / 0.12); border-color: rgb(245 158 11 / 0.35); }
.chip-security { color: #c79bff; background: rgb(168 85 247 / 0.12); border-color: rgb(168 85 247 / 0.35); }
.release ul { margin: 0; padding-left: 20px; color: var(--muted); }
.release li { margin: 6px 0; line-height: 1.55; }
.release-shot { display: block; width: 100%; margin-top: 10px; border-radius: 12px; border: 1px solid rgb(255 255 255 / 0.08); }
@media (max-width: 640px) {
  .release { padding: 20px 18px; }
  .doc .release-head h2 { font-size: 22px; }
}
