:root {
  --brand: #1e6bf1;
  --brand-2: #5b8cff;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --card: #ffffff;
  --shopify: #5e8e3e;
  --shopify-soft: #eef6e7;
  --woo: #7f54b3;
  --woo-soft: #f3edfa;
  --magento: #e2582b;
  --magento-soft: #fdeee8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 20px 48px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 640px; }
.lead.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: .875rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 8px 20px rgba(11, 18, 32, .25); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { box-shadow: 0 8px 20px rgba(30, 107, 241, .35); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light { background: #fff; color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand__tag {
  font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: #eaf1ff; padding: 4px 8px; border-radius: 6px;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; text-align: center; }
.hero__glow {
  position: absolute; inset: -40% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 40%, rgba(94, 142, 62, .16), transparent 70%),
    radial-gradient(40% 50% at 50% 25%, rgba(30, 107, 241, .20), transparent 70%),
    radial-gradient(40% 50% at 75% 40%, rgba(127, 84, 179, .16), transparent 70%),
    radial-gradient(30% 40% at 88% 60%, rgba(226, 88, 43, .12), transparent 70%);
  filter: blur(10px);
}
.hero__glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 65%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(30, 107, 241, .18); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; max-width: 900px; }
.grad {
  background: linear-gradient(90deg, var(--brand) 0%, var(--woo) 55%, var(--magento) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin: 20px auto 32px; }

.search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 620px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 8px 6px 20px; box-shadow: var(--shadow-lg); transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(30, 107, 241, .14), var(--shadow-lg); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 10px 0; background: transparent; color: var(--ink); }
.search kbd {
  font: 600 .75rem/1 inherit; color: var(--muted); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 9px; margin-right: 6px; background: var(--bg-soft);
}

.hero__platforms { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.pchip:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.pchip b { font-weight: 700; color: var(--muted); font-size: .8rem; }
.pchip__icon, .pcard__icon, .acard__icon {
  display: grid; place-items: center; color: #fff; font-weight: 800; border-radius: 50%;
}
.pchip__icon { width: 26px; height: 26px; font-size: .8rem; }
.pchip--shopify .pchip__icon { background: var(--shopify); }
.pchip--woocommerce .pchip__icon { background: var(--woo); }
.pchip--magento .pchip__icon { background: var(--magento); }

/* Apps */
.apps { padding: 56px 0 96px; }
.apps__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.apps__head p { margin: 6px 0 0; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2);
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pdot--shopify { background: var(--shopify); }
.pdot--woocommerce { background: var(--woo); }
.pdot--magento { background: var(--magento); }
.select {
  appearance: none; -webkit-appearance: none; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink-2);
  padding: 10px 40px 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  cursor: pointer;
}
.select:focus-visible, .tab:focus-visible, .btn:focus-visible, .pchip:focus-visible, .acard:focus-visible {
  outline: 3px solid rgba(30, 107, 241, .45); outline-offset: 2px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.acard {
  position: relative; display: flex; flex-direction: column; gap: 14px; text-align: left;
  padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s; color: inherit; width: 100%;
  animation: rise .4s both;
}
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.acard::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--accent); opacity: 0; transition: opacity .2s;
}
.acard:hover::before { opacity: 1; }
.acard--shopify { --accent: var(--shopify); --soft: var(--shopify-soft); }
.acard--woocommerce { --accent: var(--woo); --soft: var(--woo-soft); }
.acard--magento { --accent: var(--magento); --soft: var(--magento-soft); }
.acard__top { display: flex; align-items: center; gap: 14px; }
.acard__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--accent); font-size: 1.2rem; flex: none; }
.acard__name { font-size: 1.1rem; font-weight: 700; }
.acard__meta { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.acard__tagline { margin: 0; color: var(--ink-2); font-size: .95rem; flex: 1; }
.acard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .85rem; }
.acard__price { font-weight: 600; color: var(--ink-2); }
.acard__more { font-weight: 700; color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge--platform { background: var(--soft); color: var(--accent); }
.badge--live { background: #e7f8ee; color: #15803d; }
.badge--beta { background: #fff6e0; color: #b45309; }
.badge--soon { background: #eef2f7; color: #475569; }
.badge--featured { position: absolute; top: 20px; right: 20px; background: #eaf1ff; color: var(--brand); }

.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 4px 0; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Platforms */
.platforms { padding: 96px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platforms .lead { margin-top: 12px; margin-bottom: 48px; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.pcard__icon { width: 52px; height: 52px; border-radius: 14px; font-size: 1.3rem; }
.pcard--shopify .pcard__icon { background: var(--shopify); }
.pcard--woocommerce .pcard__icon { background: var(--woo); }
.pcard--magento .pcard__icon { background: var(--magento); }
.pcard h3 { font-size: 1.3rem; }
.pcard p { margin: 0; color: var(--ink-2); }
.pcard ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; flex: 1; }
.pcard li { display: flex; gap: 10px; align-items: center; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.pcard li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .7rem; background: var(--bg-soft); color: var(--brand); }
.pcard .link { align-self: flex-start; }

/* CTA */
.custom { padding: 96px 0; }
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(60% 120% at 100% 0%, rgba(127, 84, 179, .55), transparent 60%),
              radial-gradient(60% 120% at 0% 100%, rgba(94, 142, 62, .35), transparent 60%),
              linear-gradient(135deg, #0b1220, #12306b 60%, var(--brand));
}
.cta h2 { color: #fff; }
.cta p { margin: 10px 0 0; color: rgba(255, 255, 255, .8); max-width: 560px; font-size: 1.05rem; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .875rem; }
.footer__inner p { margin: 0; }
.footer img { height: 26px; width: auto; }

/* Modal */
.modal {
  width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 64px); padding: 0;
  border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); color: var(--ink);
}
.modal::backdrop { background: rgba(11, 18, 32, .45); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .25s both; }
.modal__body { padding: 32px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.2rem; line-height: 1; color: var(--ink-2);
}
.modal__close:hover { background: var(--bg-soft); }
.modal__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-right: 40px; }
.modal__head .acard__icon { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 16px; }
.modal h3 { font-size: 1.5rem; }
.modal__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.modal p { color: var(--ink-2); }
.modal__features { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal__features li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.modal__features li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.modal__price { font-weight: 700; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal .btn--primary { background: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .pcards { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__inner > .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  .search kbd { display: none; }
  .grid { grid-template-columns: 1fr; }
  .filters, .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 8px 10px; }
  .select { width: 100%; }
  .cta { padding: 32px 24px; }
  .modal__body { padding: 24px; }
  .modal__features { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
