/* ============================================================
   SIMKAS — Landing Page (namespaced .px-*)
   Style ref: alpha.motokoui.com — floating pill nav, grainy
   silver→electric-blue gradient, heavy grotesque hero, dark
   product/admin dashboard mockup bleeding off the bottom.
   Light (default) + Dark theme toggle. Self-contained.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
ul { list-style: none; }

.px-body {
  /* --- Light theme (default, matches reference) --- */
  --grad-1: #c6c9d2;
  --grad-2: #adb2c6;
  --grad-3: #5b69c2;
  --grad-4: #1f37e6;
  --grad-5: #142ad0;

  --ink: #0b0c11;
  --ink-dim: rgba(18,20,30,.60);
  --ink-faint: rgba(18,20,30,.40);

  --pill-bg: rgba(255,255,255,.72);
  --pill-border: rgba(255,255,255,.7);
  --pill-shadow: 0 10px 34px -12px rgba(20,30,90,.35);
  --link: rgba(18,20,30,.72);
  --link-hover: #0b0c11;
  --div: rgba(12,14,24,.14);

  --btn-light-bg: #ececee;
  --btn-light-ink: #0b0c11;
  --btn-dark-bg: #0b0c11;
  --btn-dark-ink: #ffffff;

  --foot-bg: #08090f;
  --grain-opacity: .13;

  min-height: 100vh; overflow-x: hidden;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--grad-4);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

/* --- Dark theme --- */
.px-body.px-dark {
  --grad-1: #06070e;
  --grad-2: #0b0f28;
  --grad-3: #17257e;
  --grad-4: #2138e6;
  --grad-5: #16299f;

  --ink: #f5f6fb;
  --ink-dim: rgba(232,236,250,.62);
  --ink-faint: rgba(232,236,250,.4);

  --pill-bg: rgba(20,22,34,.6);
  --pill-border: rgba(255,255,255,.1);
  --pill-shadow: 0 12px 40px -14px rgba(0,0,0,.7);
  --link: rgba(232,236,250,.72);
  --link-hover: #ffffff;
  --div: rgba(255,255,255,.14);

  --btn-light-bg: #f2f3f7;
  --btn-light-ink: #0b0c11;
  --btn-dark-bg: #ffffff;
  --btn-dark-ink: #0b0c11;

  --foot-bg: #05060b;
}

/* ---------- Background: grainy gradient ---------- */
.px-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(70% 46% at 50% 0%, rgba(255,255,255,.45), transparent 62%),
    linear-gradient(180deg, var(--grad-1) 0%, var(--grad-2) 26%, var(--grad-3) 58%, var(--grad-4) 84%, var(--grad-5) 100%);
  transition: background .6s ease; }
.px-body.px-dark .px-bg { background:
    radial-gradient(70% 40% at 50% -4%, rgba(90,110,255,.28), transparent 60%),
    linear-gradient(180deg, var(--grad-1) 0%, var(--grad-2) 30%, var(--grad-3) 66%, var(--grad-4) 88%, var(--grad-5) 100%); }
.px-bg .grain { position: absolute; inset: -50%; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: pxGrain 7s steps(5) infinite; }

/* ---------- Floating pill nav ---------- */
.px-nav { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1120px, calc(100% - 28px)); display: flex; align-items: center; gap: 12px;
  animation: pxFade .7s var(--ease,cubic-bezier(.22,.61,.36,1)) both; }
.px-nav .logo { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: #ffffff; border: 1px solid var(--pill-border); box-shadow: var(--pill-shadow); overflow: hidden; padding: 5px; }
.px-nav .logo img { width: 100%; height: 100%; object-fit: contain; }
.px-body.px-dark .px-nav .logo { background: #ffffff; border-color: rgba(255,255,255,.14); }
.px-pill { flex: 1; display: flex; align-items: center; gap: 4px; padding: 7px 7px 7px 10px;
  border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--pill-border);
  box-shadow: var(--pill-shadow); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.px-pill .sp { flex: 1; }
.px-pill a.lnk, .px-pill button.lnk { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px;
  border: 0; background: transparent; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--link); white-space: nowrap;
  transition: color .25s, background .25s; }
.px-pill a.lnk:hover, .px-pill button.lnk:hover { color: var(--link-hover); background: rgba(120,130,170,.14); }
.px-pill .div { width: 1px; height: 22px; background: var(--div); margin: 0 4px; }
.px-pill .theme svg { width: 17px; height: 17px; }
.px-pill .cta { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px;
  background: var(--btn-dark-bg); color: var(--btn-dark-ink); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease,ease), box-shadow .25s; }
.px-pill .cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.px-nav .menu-btn { display: none; }

/* ---------- Hero ---------- */
.px-hero { position: relative; z-index: 2; max-width: 980px; margin: 0 auto;
  padding: clamp(120px,17vw,190px) clamp(20px,5vw,32px) 0; text-align: center; }
.px-hero h1 { font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(30px,5vw,58px); line-height: 1.03; color: var(--ink);
  animation: pxRise .9s var(--ease,cubic-bezier(.22,.61,.36,1)) .05s both; }
.px-hero h1 .em { font-weight: 800; }
.px-hero .sub { max-width: 52ch; margin: clamp(18px,2.6vw,26px) auto 0;
  font-size: clamp(15px,1.4vw,18px); line-height: 1.6; font-weight: 450; color: var(--ink-dim);
  text-wrap: pretty;
  animation: pxRise .9s var(--ease,cubic-bezier(.22,.61,.36,1)) .14s both; }
.px-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  margin-top: clamp(26px,4vw,38px); animation: pxRise .9s var(--ease,cubic-bezier(.22,.61,.36,1)) .22s both; }
.px-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease,ease), box-shadow .25s, background .25s; }
.px-btn.primary { background: var(--btn-light-bg); color: var(--btn-light-ink);
  box-shadow: 0 12px 30px -14px rgba(10,15,40,.6), inset 0 1px 0 rgba(255,255,255,.7); }
.px-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(10,15,40,.7), inset 0 1px 0 rgba(255,255,255,.8); }
.px-btn.primary svg { width: 16px; height: 16px; transition: transform .3s var(--ease,ease); }
.px-btn.primary:hover svg { transform: translateX(4px); }
.px-btn.ghost { background: transparent; color: var(--ink); border-color: transparent; }
.px-btn.ghost:hover { background: rgba(120,130,170,.16); }
.px-body.px-dark .px-btn.ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Admin dashboard mockup (bleeds off bottom) ---------- */
.px-stage { position: relative; z-index: 2; max-width: 1200px; margin: clamp(48px,7vw,88px) auto -2px;
  padding: 0 clamp(14px,4vw,28px); }
.px-shot { position: relative; border-radius: 16px 16px 0 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); border-bottom: 0;
  background: #0a0b12; box-shadow: 0 -10px 80px -20px rgba(10,20,90,.6), 0 40px 100px -40px rgba(0,0,0,.7);
  animation: pxRise 1s var(--ease,cubic-bezier(.22,.61,.36,1)) .3s both; }
.px-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10,11,18,.65)); }

/* mock chrome */
.mk { display: grid; grid-template-columns: 62px 1fr; color: #cdd3e6; font-size: 12.5px; min-height: 420px; }
.mk-rail { border-right: 1px solid rgba(255,255,255,.06); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(255,255,255,.015); }
.mk-rail .mk-logo { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 10px;
  background: linear-gradient(135deg, #2138e6, #4f6bff); }
.mk-rail .mk-logo svg { width: 17px; height: 17px; color: #fff; }
.mk-rail .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: rgba(205,211,230,.55); }
.mk-rail .ic.on { color: #fff; background: rgba(79,107,255,.2); }
.mk-rail .ic svg { width: 18px; height: 18px; }
.mk-main { min-width: 0; }
.mk-top { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mk-top .ttl { font-weight: 700; font-size: 14px; color: #fff; }
.mk-top .yr { padding: 5px 12px; border-radius: 8px; font-size: 11.5px; color: #cdd3e6; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.mk-top .sp { flex: 1; }
.mk-top .btn { padding: 7px 14px; border-radius: 9px; font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #2138e6, #4f6bff); box-shadow: 0 8px 20px -8px rgba(79,107,255,.7); }
.mk-top .gbtn { padding: 7px 12px; border-radius: 9px; font-size: 12px; color: #cdd3e6; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.mk-body { padding: 18px 20px; }
.mk-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.mk-tile { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden; }
.mk-tile .lb { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: rgba(205,211,230,.5); }
.mk-tile .vl { font-weight: 800; font-size: 18px; color: #fff; margin-top: 6px; letter-spacing: -.01em; }
.mk-tile .dt { font-size: 10.5px; margin-top: 4px; }
.mk-tile .dt.up { color: #34d399; } .mk-tile .dt.dn { color: #fb7185; }
.mk-tile .spark { position: absolute; right: 10px; bottom: 10px; width: 54px; height: 24px; opacity: .8; }
.mk-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.mk-card { border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); padding: 14px 16px; }
.mk-card .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mk-card .hd b { font-size: 13px; color: #fff; font-weight: 700; }
.mk-card .hd span { font-size: 11px; color: rgba(205,211,230,.5); }
.mk-chart { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 6px; }
.mk-chart .bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #4f6bff, rgba(33,56,230,.25)); position: relative; }
.mk-chart .bar.hi { background: linear-gradient(180deg, #7c8cff, #2138e6); box-shadow: 0 0 20px -4px rgba(79,107,255,.8); }
.mk-rows { display: flex; flex-direction: column; gap: 10px; }
.mk-row { display: flex; align-items: center; gap: 10px; }
.mk-row .av { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; background: linear-gradient(135deg,#2138e6,#4f6bff); }
.mk-row .nm { flex: 1; min-width: 0; }
.mk-row .nm b { display: block; font-size: 12px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-row .nm span { font-size: 10.5px; color: rgba(205,211,230,.5); }
.mk-row .amt { font-size: 12px; font-weight: 700; color: #fff; }
.mk-pill { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.mk-pill.ok { color: #34d399; background: rgba(16,185,129,.15); }
.mk-pill.no { color: #fbbf24; background: rgba(245,158,11,.15); }

/* ---------- Footer ---------- */
.px-foot { position: relative; z-index: 2; background: var(--foot-bg); color: rgba(232,236,250,.62);
  border-top: 1px solid rgba(255,255,255,.06); }
.px-foot-in { max-width: 1120px; margin: 0 auto; padding: clamp(44px,6vw,68px) clamp(20px,5vw,32px) 0;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: clamp(28px,5vw,64px); }
.px-foot .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.px-foot .brand img { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: #ffffff; padding: 5px; }
.px-foot .brand b { font-family: "Inter"; font-weight: 800; font-size: 16px; color: #fff; }
.px-foot .brand span { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #6f7cffcc; margin-top: 2px; }
.px-foot .desc { color: rgba(232,236,250,.55); font-size: 13.5px; line-height: 1.7; max-width: 42ch; }
.px-foot h4 { font-family: "Inter"; font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(232,236,250,.4); margin: 0 0 16px; }
.px-foot ul { display: flex; flex-direction: column; gap: 11px; }
.px-foot ul a, .px-foot ul li { color: rgba(232,236,250,.6); font-size: 13.5px; line-height: 1.5; transition: color .3s; display: inline-flex; align-items: flex-start; gap: 8px; }
.px-foot ul a:hover { color: #8f9bff; }
.px-foot ul svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: #6f7cff; opacity: .8; }
.px-foot-bar { max-width: 1120px; margin: clamp(34px,5vw,52px) auto 0; padding: 18px clamp(20px,5vw,32px) 30px;
  border-top: 1px solid rgba(255,255,255,.06); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.px-foot-bar .cp { font-size: 12px; color: rgba(232,236,250,.4); }
.px-foot-bar .made { font-size: 11.5px; color: rgba(232,236,250,.4); display: inline-flex; align-items: center; gap: 6px; }
.px-foot-bar .made svg { width: 13px; height: 13px; color: #6f7cff; }

/* ---------- Install guide ---------- */
.px-install-help { max-width: 460px; margin: 16px auto 0; padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(120,130,190,.28); background: rgba(255,255,255,.5); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 10px; text-align: left; animation: pxRise .4s ease both; }
.px-body.px-dark .px-install-help { background: rgba(20,22,34,.6); border-color: rgba(255,255,255,.12); }
.px-install-help .row { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }
.px-install-help .row b { color: var(--ink); font-weight: 600; }
.px-install-help .n { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: #fff; background: linear-gradient(135deg,#2138e6,#4f6bff); }

/* ---------- Keyframes ---------- */
@keyframes pxRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pxFade { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes pxGrain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-2%)} 80%{transform:translate(2%,2%)} 100%{transform:translate(0,0)} }
@keyframes pxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .px-pill .lnk.hide-sm, .px-pill .div, .px-pill .theme span { display: none; }
  .mk-tiles { grid-template-columns: repeat(2,1fr); }
  .mk-grid { grid-template-columns: 1fr; }
  .px-foot-in { grid-template-columns: 1fr 1fr; }
  .px-foot .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .px-nav { top: 12px; }
  .mk-rail { display: none; }
  .mk { grid-template-columns: 1fr; }
  .mk-tiles { grid-template-columns: 1fr 1fr; }
  .px-foot-in { grid-template-columns: 1fr; gap: 28px; }
  .px-foot-bar { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .px-bg .grain { animation: none !important; }
  .px-nav, .px-hero h1, .px-hero .sub, .px-cta-row, .px-shot { animation: none !important; opacity: 1 !important; transform: none !important; }
  .px-nav { transform: translateX(-50%) !important; }
}
