:root {
  --mk-bg: #070b16;
  --mk-bg-2: #111827;
  --mk-card: rgba(13, 24, 43, .82);
  --mk-card-strong: rgba(20, 31, 55, .96);
  --mk-text: #f8fbff;
  --mk-muted: #a9b7cf;
  --mk-cyan: #13e2c2;
  --mk-blue: #38bdf8;
  --mk-pink: #ff5c8a;
  --mk-yellow: #ffcf4a;
  --mk-violet: #8b5cf6;
  --mk-line: rgba(255, 255, 255, .14);
  --mk-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mk-page,
body.demo-page {
  margin: 0;
  color: var(--mk-text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 92, 138, .34), transparent 26rem),
    radial-gradient(circle at 82% 5%, rgba(19, 226, 194, .28), transparent 24rem),
    radial-gradient(circle at 52% 42%, rgba(139, 92, 246, .2), transparent 28rem),
    linear-gradient(135deg, #050713 0%, #0b1428 48%, #140b24 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mk-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.mk-topbar,
.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(5, 9, 20, .78);
  border-bottom: 1px solid var(--mk-line);
  backdrop-filter: blur(18px);
}
.mk-brand,
.demo-topbar > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.mk-brand img,
.demo-topbar img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(19, 226, 194, .35)); }
.mk-nav,
.demo-topbar nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-nav a,
.demo-topbar nav a {
  color: #d9e7ff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.mk-nav .mk-nav-cta {
  color: #06121f;
  background: linear-gradient(135deg, var(--mk-cyan), var(--mk-yellow));
  box-shadow: 0 12px 34px rgba(19, 226, 194, .25);
}

.mk-hero { position: relative; overflow: hidden; padding: 76px 0 42px; }
.mk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
}
.mk-hero-shell { position: relative; text-align: center; }
.mk-logo-stage {
  position: relative;
  width: 210px;
  min-height: 148px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}
.mk-logo-stage img {
  width: 172px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .5)) drop-shadow(0 0 28px rgba(19, 226, 194, .26));
}
.mk-kicker,
.mk-section-label {
  color: var(--mk-yellow);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.mk-hero h1,
.mk-pricing-hero h1 {
  max-width: 920px;
  margin: 12px auto;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .92;
  letter-spacing: 0;
}
.mk-hero-lead,
.mk-pricing-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #d7e2f5;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}
.mk-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.mk-btn,
.mk-plan-cta,
.demo-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
}
.mk-btn-primary,
.mk-plan-cta,
.demo-actions a:first-child {
  color: #05111e;
  background: linear-gradient(135deg, var(--mk-cyan), var(--mk-yellow));
  box-shadow: 0 18px 45px rgba(19, 226, 194, .25);
}
.mk-btn-ghost,
.demo-actions a:last-child {
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
}

.mk-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: end;
  margin-top: 48px;
}
.mk-browser,
.mk-panel-preview,
.mk-feature-card,
.mk-demo-card,
.mk-plan-card,
.mk-final-cta,
.demo-screen,
.demo-content article {
  border: 1px solid var(--mk-line);
  background: var(--mk-card);
  box-shadow: var(--mk-shadow);
  backdrop-filter: blur(18px);
}
.mk-browser { border-radius: 28px; overflow: hidden; }
.mk-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border-bottom: 1px solid var(--mk-line);
}
.mk-browser-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--mk-pink); }
.mk-browser-bar span:nth-child(2) { background: var(--mk-yellow); }
.mk-browser-bar span:nth-child(3) { background: var(--mk-cyan); }
.mk-browser-bar b { margin-left: auto; color: var(--mk-muted); font-size: 13px; }
.mk-front-preview {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(19,226,194,.2), rgba(255,92,138,.13));
}
.mk-front-copy h2 { font-size: clamp(30px, 4vw, 56px); line-height: .98; margin: 8px 0; }
.mk-front-copy p,
.mk-band p,
.mk-section-head p,
.mk-feature-card p,
.mk-demo-card p,
.mk-plan-card p,
.mk-final-cta p,
.demo-copy p,
.demo-content p { color: var(--mk-muted); line-height: 1.55; }
.mk-front-copy small,
.mk-demo-card span,
.demo-copy span {
  color: #06121f;
  background: var(--mk-yellow);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 900;
}
.mk-front-copy a {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--mk-pink);
  font-weight: 900;
}
.mk-product-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-self: center;
}
.mk-product-stack img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
}
.mk-product-stack img:first-child { grid-row: span 2; aspect-ratio: 1 / 2.08; }
.mk-panel-preview {
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.mk-panel-preview div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}
.mk-panel-preview strong { display: block; font-size: 26px; }
.mk-panel-preview span { color: var(--mk-muted); }

.mk-band { padding: 64px 0 20px; }
.mk-band-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: end;
}
.mk-band h2,
.mk-section-head h2,
.mk-final-cta h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4.5vw, 60px);
  line-height: 1;
}
.mk-section { padding: 64px 0; }
.mk-section-head { max-width: 820px; margin-bottom: 24px; }
.mk-feature-grid,
.mk-demo-grid,
.mk-plans-grid,
.demo-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mk-feature-card,
.mk-plan-card,
.demo-content article {
  border-radius: 24px;
  padding: 24px;
}
.mk-feature-card img { width: 58px; height: 58px; margin-bottom: 18px; }
.mk-feature-card h3,
.mk-demo-card h3,
.mk-plan-card h3 { margin: 0 0 10px; font-size: 24px; }

.mk-demo-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.mk-demo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,9,20,.96), rgba(5,9,20,.16), transparent);
}
.mk-demo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.mk-demo-card > *:not(img) { position: relative; z-index: 1; }
.mk-demo-card b { color: var(--accent); }

.mk-plans-section { background: linear-gradient(180deg, transparent, rgba(255,255,255,.04), transparent); }
.mk-plan-promise {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.mk-plan-promise div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  color: #eef6ff;
  font-weight: 800;
}
.mk-plan-promise i { color: var(--mk-yellow); font-size: 20px; }
.mk-plan-card { position: relative; background: var(--mk-card-strong); }
.mk-plan-card.is-featured {
  border-color: rgba(19,226,194,.65);
  transform: translateY(-10px);
  box-shadow: 0 34px 100px rgba(19,226,194,.18);
}
.mk-plan-card-empty {
  grid-column: 1 / -1;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.mk-plan-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #06121f;
  background: var(--mk-cyan);
  font-weight: 900;
}
.mk-price { margin: 18px 0; }
.mk-price strong { font-size: 42px; }
.mk-price span { color: var(--mk-muted); }
.mk-plan-card ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; color: #dbe7fa; }
.mk-plan-card li { display: flex; gap: 10px; align-items: flex-start; }
.mk-plan-card li i { color: var(--mk-cyan); }
.mk-plans-link { text-align: center; margin-top: 24px; }
.mk-plans-link a { color: var(--mk-cyan); font-weight: 900; }
.mk-final-cta {
  border-radius: 30px;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  background: linear-gradient(135deg, rgba(19,226,194,.18), rgba(255,92,138,.18)), var(--mk-card);
}
.mk-footer { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 34px 18px; color: var(--mk-muted); border-top: 1px solid var(--mk-line); }

.mk-pricing-hero { padding: 96px 0 34px; text-align: center; }
.mk-alert {
  margin: 18px auto 0;
  max-width: 680px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 92, 138, .18);
  border: 1px solid rgba(255, 92, 138, .4);
}

.demo-layout { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 80px; }
.demo-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; }
.demo-copy h1 { font-size: clamp(38px, 6vw, 78px); line-height: .95; margin: 14px 0; }
.demo-screen { border-radius: 28px; overflow: hidden; }
.demo-screen-body {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  padding: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 70%), rgba(255,255,255,.08));
}
.demo-screen-body img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: 22px; }
.demo-screen-body h2 { font-size: 38px; line-height: 1; margin: 8px 0; }
.demo-screen-body button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: #06121f;
  background: var(--mk-yellow);
  font-weight: 900;
}
.demo-content { margin-top: 28px; }
.demo-content i { color: var(--accent); font-size: 30px; }

@media (max-width: 900px) {
  .mk-topbar,
  .demo-topbar { align-items: flex-start; flex-direction: column; }
  .mk-showcase,
  .mk-band-grid,
  .mk-front-preview,
  .demo-hero,
  .demo-screen-body { grid-template-columns: 1fr; }
  .mk-feature-grid,
  .mk-demo-grid,
  .mk-plans-grid,
  .demo-content,
  .mk-plan-promise { grid-template-columns: 1fr; }
  .mk-plan-card.is-featured { transform: none; }
  .mk-panel-preview { display: none; }
  .mk-hero { padding-top: 44px; }
  .mk-hero h1 { font-size: clamp(42px, 13vw, 62px); }
}

@media (max-width: 520px) {
  .mk-nav a { padding: 9px 10px; font-size: 13px; }
  .mk-logo-stage { width: 176px; min-height: 128px; }
  .mk-logo-stage img { width: 142px; height: auto; }
  .mk-front-preview,
  .mk-feature-card,
  .mk-plan-card { padding: 20px; }
}
