/* =============================================================
   KP Xero — fully custom stylesheet
   No frameworks. Tokens → reset → primitives → components → responsive
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --bg: #07070c;
  --bg-2: #0b0b14;
  --surface: #10101c;
  --surface-2: #151525;
  --surface-3: #1b1b2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f4fa;
  --text-dim: #b0b0c4;
  --text-mute: #767689;

  --brand-1: #5b8cff;
  --brand-2: #b87dff;
  --brand-3: #4ff0d0;
  --brand-glow: rgba(91, 140, 255, 0.35);

  --grad-brand: linear-gradient(135deg, #5b8cff 0%, #8871ff 45%, #b87dff 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 140, 255, 0.14), rgba(184, 125, 255, 0.14));
  --grad-line: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

  /* Typography */
  --font-display: "Noto Serif Display", "IBM Plex Sans Thai", "Inter", Georgia, serif;
  --font-sans: "Inter", "IBM Plex Sans Thai", "Noto Sans SC", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Scales */
  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.75rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-base: 1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;
  --space-12: 6rem;
  --space-16: 9rem;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 20px 80px -20px var(--brand-glow);

  --container: 1200px;
  --container-narrow: 820px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Language-specific font overrides */
html[lang="th"] {
  --font-sans: "IBM Plex Sans Thai", "Inter", system-ui, sans-serif;
  --font-display: "Prompt", "IBM Plex Sans Thai", "Inter", sans-serif;
}
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4,
html[lang="th"] .section__title, html[lang="th"] .hero__title,
html[lang="th"] .plan__amount, html[lang="th"] .stat strong, html[lang="th"] .hero__trust-item strong {
  letter-spacing: -0.005em;
}
html[lang="th"] .hero__title-gradient { font-style: normal; font-weight: 600; }
html[lang="zh"] { --font-sans: "Noto Sans SC", "Inter", system-ui, sans-serif; --font-display: "Noto Sans SC", "Noto Serif Display", serif; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3,
html[lang="zh"] .section__title, html[lang="zh"] .hero__title { letter-spacing: 0; }
html[lang="zh"] .hero__title-gradient { font-style: normal; font-weight: 600; }
html[lang="en"] { --font-sans: "Inter", system-ui, sans-serif; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease-out); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-1); color: #fff; }

/* ---------- Background decor ---------- */
.bg-aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at top, #0f0f1c 0%, #05050a 55%, #000 100%);
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5;
  animation: aurora-float 18s var(--ease-in-out) infinite;
}
.aurora-1 { width: 45vw; height: 45vw; left: -10vw; top: -10vw; background: radial-gradient(circle, rgba(91,140,255,.55), transparent 70%); }
.aurora-2 { width: 40vw; height: 40vw; right: -8vw; top: 20vh; background: radial-gradient(circle, rgba(184,125,255,.4), transparent 70%); animation-delay: -6s; }
.aurora-3 { width: 38vw; height: 38vw; left: 25vw; top: 60vh; background: radial-gradient(circle, rgba(79,240,208,.25), transparent 70%); animation-delay: -12s; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/></svg>");
}
@keyframes aurora-float {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(4vw, 3vh, 0) scale(1.1); }
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; pointer-events: none; z-index: 9999; top: 0; left: 0;
  mix-blend-mode: difference; transition: opacity .2s;
}
.cursor {
  width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform .18s var(--ease-out), width .25s, height .25s, border-color .2s;
  backdrop-filter: invert(1);
}
.cursor-dot {
  width: 5px; height: 5px; background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.is-hover { width: 68px; height: 68px; border-color: rgba(184,125,255,.8); }
@media (max-width: 900px), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Container ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: backdrop-filter .3s, background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 10px 0;
  background: rgba(7,7,12,.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em;
  color: var(--text);
}
.logo__mark { filter: drop-shadow(0 0 14px rgba(91,140,255,.35)); }
.logo__dot { color: var(--brand-2); margin: 0 2px; }
.nav__links {
  display: flex; align-items: center; gap: 2rem;
  font-size: var(--fs-sm); color: var(--text-dim);
}
.nav__links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--grad-brand);
  transition: width .3s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Lang switcher */
.lang { position: relative; }
.lang__current {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; font-size: var(--fs-sm); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  transition: all .2s var(--ease-out);
}
.lang__current:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,.03); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 6px; min-width: 160px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: all .2s var(--ease-out);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  z-index: 110;
}
.lang.is-open .lang__menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang__menu li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px; font-size: var(--fs-sm);
  cursor: pointer; transition: background .15s;
}
.lang__menu li:hover { background: rgba(255,255,255,.05); }
.lang__menu li.is-active { background: rgba(91,140,255,.12); color: var(--brand-1); }
.lang__code { font-family: var(--font-mono); font-size: .72rem; color: var(--text-mute); letter-spacing: .08em; }

/* Burger */
.nav__burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; position: relative;
}
.nav__burger span {
  display: block; width: 18px; height: 1.6px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.nav__mobile {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(7,7,12,.96); backdrop-filter: blur(24px);
  padding: 92px 24px 40px;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: all .4s var(--ease-out);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
}
.nav__mobile a { font-size: 1.4rem; font-weight: 500; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--border); }
.nav__mobile a.btn { border-bottom: 0; margin-top: 12px; }
.nav__mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.01em;
  border-radius: var(--radius-full); border: 1px solid transparent;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn svg { transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 9px 18px; font-size: 0.82rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 30px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--grad-brand); filter: blur(18px); opacity: .55; transition: opacity .3s;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px var(--brand-glow); }
.btn--primary:hover::before { opacity: 0.85; }
.btn--ghost {
  background: rgba(255,255,255,.03); color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.24); transform: translateY(-2px); }

/* ---------- Typography primitives ---------- */
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-1);
  padding: 6px 14px;
  background: rgba(91,140,255,.08);
  border: 1px solid rgba(91,140,255,.2);
  border-radius: var(--radius-full);
}
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: var(--fs-sm); color: var(--text-dim);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-3);
  box-shadow: 0 0 0 0 rgba(79,240,208,.5);
  animation: pulse 2s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,240,208,.5); }
  70% { box-shadow: 0 0 0 10px rgba(79,240,208,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,240,208,0); }
}

/* ---------- Section base ---------- */
.section { padding: clamp(4rem, 9vw, 9rem) 0; position: relative; }
.section--dark { background: linear-gradient(180deg, transparent, rgba(0,0,0,.4) 15%, rgba(0,0,0,.4) 85%, transparent); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
.section__head > * + * { margin-top: 1.25rem; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -0.03em;
}
.section__title span { display: block; }
.section__desc {
  font-size: var(--fs-lg); color: var(--text-dim); line-height: 1.65;
  max-width: 620px; margin-inline: auto;
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative; overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__content > * + * { margin-top: 1.5rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  line-height: 1.04; letter-spacing: -0.035em;
}
.hero__title span { display: block; }
.hero__title-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-style: italic; font-family: var(--font-display);
}
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text-dim); max-width: 560px;
  line-height: 1.7;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__trust {
  display: flex; gap: clamp(1.5rem, 4vw, 3rem); padding-top: 2rem; margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero__trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero__trust-item strong {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 500; color: var(--text); line-height: 1;
  letter-spacing: -0.02em;
}
.hero__trust-item strong span { color: var(--brand-1); font-weight: 400; }
.hero__trust-item > span { font-size: var(--fs-sm); color: var(--text-mute); margin-top: 4px; }

/* Hero visual / mockups */
.hero__visual {
  position: relative;
  max-width: 580px;
  margin-left: auto;
  width: 100%;
  min-height: 520px;
  height: 520px;
}
.mockup {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #1e1e30, #101020);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.mockup--browser {
  width: 82%;
  aspect-ratio: 4 / 3;
  left: 0;
  top: 20px;
  z-index: 1;
}
.mockup__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(40,40,60,.6), rgba(15,15,26,.6));
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.mockup__bar span {
  width: 10px; height: 10px; border-radius: 50%; background: #3a3a4a;
}
.mockup__bar span:nth-child(1) { background: #ff5f57; }
.mockup__bar span:nth-child(2) { background: #febc2e; }
.mockup__bar span:nth-child(3) { background: #28c840; }
.mockup__url {
  margin-left: 14px; font-size: 11px; color: var(--text-mute);
  background: rgba(255,255,255,.04); padding: 5px 12px; border-radius: 6px;
  font-family: var(--font-mono); flex: 1; max-width: 280px;
}
.mockup__screen {
  padding: 12px 14px 14px;
  font-family: "Inter", sans-serif;
  color: #e9e9f5;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Hero browser mockup — SaaS landing page */
.mk-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 6px 8px; font-size: 9px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
  flex-shrink: 0;
}
.mk-nav__brand {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 10px; letter-spacing: -.01em;
}
.mk-nav__brand i {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--grad-brand);
}
.mk-nav__links { display: flex; gap: 10px; color: rgba(255,255,255,.55); font-size: 9px; }
.mk-nav__btn {
  padding: 4px 10px; font-size: 9px; font-weight: 500;
  background: var(--grad-brand); color: #fff; border-radius: 999px;
}
.mk-hero { text-align: center; padding: 6px 6px 12px; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.mk-hero__chip {
  display: inline-block; padding: 3px 9px; font-size: 8px;
  color: #a0b0ff; background: rgba(91,140,255,.12);
  border: 1px solid rgba(91,140,255,.25); border-radius: 999px;
  margin: 0 auto 8px;
}
.mk-hero__title {
  font-size: 15px;
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 5px;
  color: #fff;
}
.mk-hero__title em {
  font-style: italic; font-weight: 500;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mk-hero__sub { font-size: 9px; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.mk-hero__actions { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.mk-hero__btn {
  padding: 5px 11px; font-size: 8.5px; font-weight: 500; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.mk-hero__btn--p { background: var(--grad-brand); color: #fff; border-color: transparent; }
.mk-hero__avatars {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 8px; color: rgba(255,255,255,.55);
}
.mk-hero__avatars i {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #b87dff, #5b8cff);
  margin-left: -6px; border: 1.5px solid #0f0f1a;
}
.mk-hero__avatars i:nth-child(1) { margin-left: 0; background: linear-gradient(135deg, #4ff0d0, #5b8cff); }
.mk-hero__avatars i:nth-child(2) { background: linear-gradient(135deg, #ffb480, #b87dff); }
.mk-hero__avatars i:nth-child(4) { background: linear-gradient(135deg, #ff80a5, #b87dff); }
.mk-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.mk-feature {
  padding: 7px 8px; border-radius: 7px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.mk-feature__ico {
  width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #5b8cff;
  background: rgba(91,140,255,.12); border: 1px solid rgba(91,140,255,.25);
  margin-bottom: 5px;
}
.mk-feature__ico--2 { color: #b87dff; background: rgba(184,125,255,.12); border-color: rgba(184,125,255,.25); }
.mk-feature__ico--3 { color: #4ff0d0; background: rgba(79,240,208,.12); border-color: rgba(79,240,208,.25); }
.mk-feature b { display: block; font-size: 10px; font-weight: 600; margin-bottom: 5px; }
.mk-feature i { display: block; height: 4px; width: 75%; background: rgba(255,255,255,.1); border-radius: 2px; }
.mk-feature:nth-child(2) i { width: 60%; }
.mk-feature:nth-child(3) i { width: 80%; }

/* Phone mockup content */
.mk-phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px 8px; font-size: 8px; color: rgba(255,255,255,.5);
  font-weight: 600;
}
.mk-phone-dots { letter-spacing: 1px; }
.mk-phone-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.mk-phone-head__title { font-size: 13px; font-weight: 700; letter-spacing: -0.015em; }
.mk-phone-head__avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #b87dff, #5b8cff);
  border: 1px solid rgba(255,255,255,.15);
}
.mk-phone-card {
  padding: 12px; border-radius: 12px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(91,140,255,.25), rgba(184,125,255,.18));
  border: 1px solid rgba(255,255,255,.1);
  position: relative; color: #a0ffe0;
}
.mk-phone-card__label { font-size: 8px; color: rgba(255,255,255,.65); display: block; }
.mk-phone-card__value {
  display: block; font-family: "Inter", sans-serif;
  font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.02em;
  margin-top: 3px;
}
.mk-phone-card__up {
  display: inline-block; margin-top: 2px; font-size: 8px;
  color: #4ff0d0; font-weight: 600;
}
.mk-phone-card__chart { width: 100%; height: 22px; margin-top: 4px; }
.mk-phone-list { display: flex; flex-direction: column; gap: 6px; }
.mk-phone-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06); border-radius: 9px;
  font-size: 9px;
}
.mk-phone-item i {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, #5b8cff, #8871ff); flex-shrink: 0;
}
.mk-phone-item i.c2 { background: linear-gradient(135deg, #b87dff, #5b8cff); }
.mk-phone-item i.c3 { background: linear-gradient(135deg, #4ff0d0, #5b8cff); }
.mk-phone-item b { flex: 1; font-weight: 500; color: rgba(255,255,255,.85); }
.mk-phone-item span { font-weight: 700; color: #fff; }

.mockup--phone {
  width: 34%;
  aspect-ratio: 9 / 18;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 5px;
  background: linear-gradient(180deg, #2a2a40, #0b0b18);
  border: 1px solid rgba(255,255,255,.14);
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 30px 70px -15px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.04) inset;
  display: flex;
  flex-direction: column;
}
.mockup__notch {
  width: 42%;
  height: 12px;
  background: #000;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.mockup__phone-screen {
  background: linear-gradient(180deg, #15152a, #0a0a15);
  border-radius: 18px;
  padding: 18px 10px 10px;
  margin-top: -12px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.floating-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: var(--fs-sm); font-weight: 500;
  background: rgba(20,20,35,.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  width: max-content;
  z-index: 3;
}
.floating-badge--1 { top: 8%; right: -6%; color: var(--brand-3); animation: float-badge 5s var(--ease-in-out) infinite; }
.floating-badge--2 { bottom: 12%; left: -6%; color: var(--brand-1); animation: float-badge 5s var(--ease-in-out) infinite -2.5s; }
@keyframes float-badge {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-y { animation: float-y 6s var(--ease-in-out) infinite; }
.float-y-delayed { animation: float-y 6s var(--ease-in-out) infinite -3s; }
@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Marquee / Trust bar ---------- */
.marquee-wrap {
  padding: 2.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.01);
  overflow: hidden; position: relative;
}
.marquee-label {
  text-align: center; font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--text-mute); margin-bottom: 1.5rem;
}
.marquee {
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; gap: 2.25rem; white-space: nowrap;
  animation: marquee 45s linear infinite;
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--text-dim);
}
.marquee__track span:nth-child(even) { color: var(--brand-1); opacity: .6; font-style: normal; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.service-card {
  position: relative; padding: 2rem 1.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease-out), border-color .3s, background .3s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(91,140,255,.1), transparent 40%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--brand-1);
  border: 1px solid rgba(91,140,255,.2); border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.service-card h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.02em; margin-bottom: .5rem; }
.service-card p { color: var(--text-dim); margin-bottom: 1.25rem; font-size: var(--fs-sm); }
.service-card ul { display: flex; flex-direction: column; gap: .5rem; font-size: var(--fs-sm); color: var(--text-dim); }
.service-card ul li { position: relative; padding-left: 22px; }
.service-card ul li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 14px; height: 1px; background: var(--brand-1);
}

/* ---------- Work / Portfolio ---------- */
.works {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.work {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.005));
  border: 1px solid var(--border);
  transition: transform .4s var(--ease-out), border-color .3s;
  display: flex; flex-direction: column;
}
.work:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.work__media {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #141422, #0a0a14);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.work__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(91,140,255,.2), transparent 60%);
  pointer-events: none;
}
.work__meta { padding: 1.5rem; }
.work__tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-1);
  padding: 4px 10px; border: 1px solid rgba(91,140,255,.25);
  background: rgba(91,140,255,.08); border-radius: 6px;
  margin-bottom: .75rem;
}
.work__meta h3 { font-size: var(--fs-xl); font-weight: 600; margin-bottom: .5rem; letter-spacing: -0.015em; }
.work__meta p { color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.6; }

.works__foot {
  margin-top: 2.5rem; text-align: center; color: var(--text-mute);
  font-size: var(--fs-sm); max-width: 740px; margin-inline: auto;
}

/* ========== Work mockups — realistic website previews ========== */
.work__media { font-family: "Inter", sans-serif; }
.work__media b, .work__media span, .work__media div { letter-spacing: -0.01em; }

/* ---------- Real estate ---------- */
.work__media--real-estate { background: linear-gradient(135deg, #101c38, #06101f); }
.wm-re {
  width: 86%; aspect-ratio: 4/3; padding: 10px 12px;
  background: linear-gradient(180deg, #ffffff, #f5f7fc);
  color: #0c1226; border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 8.5px;
}
.wm-re__nav { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #e8ecf4; }
.wm-re__logo { font-weight: 800; color: #0c1226; font-size: 10px; letter-spacing: -0.02em; }
.wm-re__menu { display: flex; gap: 10px; color: #6b7590; font-size: 8px; }
.wm-re__btn { padding: 3px 10px; background: #0c1226; color: #fff; border-radius: 999px; font-size: 8px; font-weight: 500; }
.wm-re__filters { display: flex; gap: 4px; }
.wm-re__filters span {
  padding: 3px 9px; font-size: 8px; border-radius: 999px;
  background: #f0f3f9; border: 1px solid #e0e5ef; color: #4b5472;
}
.wm-re__filters span.on { background: #0c1226; color: #fff; border-color: #0c1226; }
.wm-re__hero {
  aspect-ratio: 16/7; border-radius: 8px;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, #4c6fff, #7a4dff);
  position: relative; overflow: hidden;
  padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
}
.wm-re__hero::after {
  content: ""; position: absolute; bottom: -20px; right: -10px;
  width: 70%; height: 80%;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.25) 100%),
    conic-gradient(from 180deg at 50% 100%, rgba(255,255,255,.1), transparent 60%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: skewX(-8deg);
  opacity: .35; pointer-events: none;
}
.wm-re__badge {
  align-self: flex-start; padding: 2px 8px; font-size: 7.5px; font-weight: 700;
  background: rgba(255,255,255,.25); backdrop-filter: blur(8px);
  border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase;
}
.wm-re__info { position: relative; z-index: 2; }
.wm-re__price { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.wm-re__addr { font-size: 8.5px; opacity: .85; margin-top: 1px; }
.wm-re__heart {
  position: absolute; top: 8px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #0c1226;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; z-index: 3;
}
.wm-re__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; flex: 1; }
.wm-re__cell {
  border-radius: 6px; position: relative;
  background: linear-gradient(135deg, #7ea0ff, #4c6fff);
  display: flex; align-items: flex-end; padding: 4px 6px;
  color: #fff; font-size: 8px; font-weight: 600;
  box-shadow: inset 0 -15px 30px rgba(0,0,0,.2);
}
.wm-re__cell.c2 { background: linear-gradient(135deg, #b87dff, #7a4dff); }
.wm-re__cell.c3 { background: linear-gradient(135deg, #4fd0e8, #4c6fff); }
.wm-re__cell::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.35), transparent 55%);
}
.wm-re__cell span { position: relative; z-index: 1; }

/* ---------- Car rental ---------- */
.work__media--car { background: linear-gradient(135deg, #1a0f2a, #0b0618); color: #fff; }
.wm-car {
  width: 82%; aspect-ratio: 4/3; padding: 12px;
  background: linear-gradient(180deg, #1e1430, #0e0820);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); position: relative; z-index: 1;
  color: #e8e3ff; display: flex; flex-direction: column; gap: 8px;
  font-size: 8.5px;
}
.wm-car__nav { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.wm-car__logo { font-weight: 800; font-size: 10px; letter-spacing: -0.02em; color: #fff; }
.wm-car__avatar { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, #b87dff, #5b8cff); }
.wm-car__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wm-car__date {
  padding: 6px 8px; border-radius: 7px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: 2px;
}
.wm-car__date span { font-size: 7.5px; color: rgba(255,255,255,.55); }
.wm-car__date b { font-size: 9px; color: #fff; font-weight: 600; }
.wm-car__hero {
  aspect-ratio: 16/6; border-radius: 7px;
  background: radial-gradient(ellipse at 50% 80%, rgba(184,125,255,.35), transparent 60%);
  display: flex; align-items: center; justify-content: center;
  color: #b87dff; position: relative;
}
.wm-car__svg { width: 88%; filter: drop-shadow(0 4px 8px rgba(184,125,255,.35)); }
.wm-car__info { display: flex; justify-content: space-between; align-items: center; }
.wm-car__info > div:first-child b { display: block; font-size: 10px; font-weight: 600; color: #fff; }
.wm-car__info > div:first-child span { font-size: 7.5px; color: rgba(255,255,255,.6); }
.wm-car__price {
  font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wm-car__price i { font-style: normal; font-size: 8px; color: rgba(255,255,255,.6); -webkit-text-fill-color: rgba(255,255,255,.6); }
.wm-car__cta {
  padding: 8px; text-align: center; font-size: 9px; font-weight: 600;
  background: var(--grad-brand); color: #fff; border-radius: 7px;
  box-shadow: 0 6px 16px -6px rgba(91,140,255,.6);
}

/* ---------- Warehouse / WMS ---------- */
.work__media--wms { background: linear-gradient(135deg, #071a26, #020a10); }
.wm-wms {
  width: 90%; aspect-ratio: 16/10;
  background: #08121d; color: #c8e4ff;
  border-radius: 10px; padding: 9px; display: flex; gap: 8px;
  border: 1px solid rgba(255,255,255,.06); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  position: relative; z-index: 1; font-size: 7.5px;
}
.wm-wms__sidebar {
  width: 66px; flex-shrink: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 5px; background: rgba(255,255,255,.02); border-radius: 6px;
}
.wm-wms__logo {
  width: 22px; height: 22px; border-radius: 6px; margin: 0 auto 6px;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
}
.wm-wms__navitem {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 5px;
  color: rgba(200,228,255,.55); font-size: 7.5px;
}
.wm-wms__navitem i { font-style: normal; font-size: 9px; }
.wm-wms__navitem.active { background: rgba(79,240,208,.12); color: #4ff0d0; border: 1px solid rgba(79,240,208,.2); }
.wm-wms__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wm-wms__topbar { display: flex; justify-content: space-between; align-items: center; }
.wm-wms__topbar b { font-size: 10px; color: #fff; font-weight: 600; }
.wm-wms__topbar span { font-size: 7.5px; color: #4ff0d0; padding: 2px 6px; background: rgba(79,240,208,.1); border-radius: 999px; }
.wm-wms__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.wm-wms__stats div {
  padding: 6px 8px; background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06); border-radius: 5px;
}
.wm-wms__stats span { font-size: 7px; color: rgba(200,228,255,.55); display: block; }
.wm-wms__stats b { font-family: var(--font-mono); font-size: 11px; color: #fff; font-weight: 700; display: block; margin-top: 1px; }
.wm-wms__chart {
  flex: 1; border: 1px solid rgba(255,255,255,.05); border-radius: 5px; padding: 4px;
  color: #4ff0d0; min-height: 28px;
}
.wm-wms__chart svg { width: 100%; height: 100%; display: block; }
.wm-wms__rows { display: flex; flex-direction: column; gap: 2px; }
.wm-wms__rows div {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 6px; align-items: center;
  padding: 3px 6px; background: rgba(255,255,255,.02); border-radius: 4px;
  font-size: 7px;
}
.wm-wms__rows span:first-child { font-family: var(--font-mono); color: rgba(200,228,255,.75); }
.wm-wms__rows span:nth-child(2) { color: #fff; font-weight: 600; text-align: right; }
.wm-wms__rows em { font-style: normal; font-size: 6.5px; padding: 1px 5px; border-radius: 3px; background: rgba(79,240,208,.12); color: #4ff0d0; }
.wm-wms__rows em.low { background: rgba(255,180,80,.15); color: #ffb480; }

/* ---------- Restaurant booking ---------- */
.work__media--resto { background: linear-gradient(135deg, #2a1512, #140707); }
.wm-resto {
  width: 74%; aspect-ratio: 9/11;
  padding: 14px; border-radius: 20px;
  background: #fff9f2; color: #2a1a12;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 8px rgba(0,0,0,.15);
  position: relative; z-index: 1; font-size: 8.5px;
  display: flex; flex-direction: column; gap: 8px;
}
.wm-resto__head { display: flex; justify-content: space-between; align-items: center; }
.wm-resto__title { font-size: 12px; font-weight: 700; color: #2a1a12; letter-spacing: -0.02em; }
.wm-resto__sub { font-size: 8px; color: #8c6e55; margin-top: 1px; }
.wm-resto__avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #d4693a, #a04818);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.wm-resto__label { font-size: 8px; color: #8c6e55; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.wm-resto__calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.wm-resto__day {
  aspect-ratio: 1; border-radius: 6px;
  background: #fcf2e3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.wm-resto__day b { font-size: 6.5px; color: #8c6e55; font-weight: 600; }
.wm-resto__day s { font-size: 9px; color: #2a1a12; text-decoration: none; font-weight: 600; }
.wm-resto__day.active { background: #d4693a; }
.wm-resto__day.active b, .wm-resto__day.active s { color: #fff; }
.wm-resto__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.wm-resto__slots div {
  padding: 6px 0; text-align: center; font-size: 8.5px; font-weight: 600;
  background: #fff; border-radius: 6px; border: 1px solid #eadbc3;
  color: #2a1a12;
}
.wm-resto__slots div.on { background: #d4693a; border-color: #d4693a; color: #fff; }
.wm-resto__slots div.off { background: #f5ece0; color: #c4b3a0; }
.wm-resto__cta {
  padding: 10px; text-align: center; font-weight: 600; font-size: 9px;
  background: #2a1a12; color: #fff; border-radius: 8px;
  margin-top: auto;
}

/* ---------- E-commerce ---------- */
.work__media--ecom { background: linear-gradient(135deg, #14241a, #060e09); }
.wm-ecom {
  width: 88%; aspect-ratio: 16/10;
  background: #fafbf6; border-radius: 10px;
  color: #1e2a18; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); position: relative; z-index: 1;
  font-size: 8px; overflow: hidden;
}
.wm-ecom__nav {
  padding: 6px 10px; display: flex; justify-content: space-between; align-items: center;
  background: #fff; border-bottom: 1px solid #e5e8dd;
}
.wm-ecom__logo { font-size: 10px; font-weight: 800; letter-spacing: -0.02em; color: #1e2a18; }
.wm-ecom__cart-ico {
  padding: 2px 7px; background: #1e2a18; color: #fff;
  border-radius: 999px; font-size: 7.5px; font-weight: 600;
}
.wm-ecom__body { flex: 1; padding: 7px; display: flex; gap: 7px; min-height: 0; }
.wm-ecom__products { flex: 1.2; display: flex; flex-direction: column; gap: 4px; }
.wm-ecom__p {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 7px; background: #fff; border-radius: 6px;
  border: 1px solid #e5e8dd;
}
.wm-ecom__p i {
  width: 26px; height: 26px; border-radius: 5px; flex-shrink: 0;
  background: linear-gradient(135deg, #83c469, #4a7c3a);
  position: relative; overflow: hidden;
}
.wm-ecom__p i::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 55%);
}
.wm-ecom__p i.p2 { background: linear-gradient(135deg, #a6d86b, #5a9b3e); }
.wm-ecom__p i.p3 { background: linear-gradient(135deg, #e8b847, #c18f2f); }
.wm-ecom__p > div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.wm-ecom__p b { font-size: 8.5px; font-weight: 600; color: #1e2a18; }
.wm-ecom__p span { font-size: 8px; font-weight: 700; color: #4a7c3a; }
.wm-ecom__add {
  width: 18px; height: 18px; border-radius: 5px;
  background: #1e2a18; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 400;
}
.wm-ecom__cart {
  flex: 1; background: #fff; border-radius: 6px; border: 1px solid #e5e8dd;
  padding: 7px; display: flex; flex-direction: column; gap: 4px;
}
.wm-ecom__cart-head { font-size: 9px; font-weight: 700; color: #1e2a18; padding-bottom: 4px; border-bottom: 1px solid #e5e8dd; }
.wm-ecom__cart-row { display: flex; justify-content: space-between; font-size: 8px; color: #4a5a3a; }
.wm-ecom__cart-row span:last-child { font-weight: 600; color: #1e2a18; }
.wm-ecom__cart-sum {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 4px; border-top: 1px solid #e5e8dd;
}
.wm-ecom__cart-sum span { font-size: 8px; color: #4a5a3a; }
.wm-ecom__cart-sum b { font-size: 11px; font-weight: 800; color: #1e2a18; letter-spacing: -0.02em; }
.wm-ecom__cart-cta {
  padding: 6px; text-align: center; font-size: 8.5px; font-weight: 600;
  background: #4a7c3a; color: #fff; border-radius: 5px;
}

/* ---------- POS ---------- */
.work__media--pos { background: linear-gradient(135deg, #1a1226, #090510); }
.wm-pos {
  width: 86%; aspect-ratio: 16/10; padding: 10px;
  background: linear-gradient(180deg, #181024, #0a0512);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  display: flex; gap: 8px; font-size: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); position: relative; z-index: 1;
  color: #e4d8ff;
}
.wm-pos__main { flex: 1.3; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wm-pos__tabs { display: flex; gap: 4px; }
.wm-pos__tabs span {
  padding: 3px 8px; font-size: 7.5px; border-radius: 999px;
  background: rgba(255,255,255,.04); color: rgba(228,216,255,.6);
  border: 1px solid rgba(255,255,255,.06);
}
.wm-pos__tabs span.on { background: var(--grad-brand); color: #fff; border-color: transparent; }
.wm-pos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; flex: 1; }
.wm-pos__tile {
  border-radius: 7px; padding: 6px 7px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  min-height: 0;
}
.wm-pos__tile b { font-size: 8.5px; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.wm-pos__tile span { font-family: var(--font-mono); font-size: 8px; color: #b87dff; font-weight: 600; }
.wm-pos__tile.t1 { background: linear-gradient(135deg, rgba(91,140,255,.18), rgba(91,140,255,.04)); border-color: rgba(91,140,255,.22); }
.wm-pos__tile.t2 { background: linear-gradient(135deg, rgba(184,125,255,.18), rgba(184,125,255,.04)); border-color: rgba(184,125,255,.22); }
.wm-pos__tile.t3 { background: linear-gradient(135deg, rgba(79,240,208,.18), rgba(79,240,208,.04)); border-color: rgba(79,240,208,.22); }
.wm-pos__tile.t4 { background: linear-gradient(135deg, rgba(255,180,80,.18), rgba(255,180,80,.04)); border-color: rgba(255,180,80,.22); }
.wm-pos__tile.t5 { background: linear-gradient(135deg, rgba(255,120,150,.18), rgba(255,120,150,.04)); border-color: rgba(255,120,150,.22); }
.wm-pos__tile.t6 { background: linear-gradient(135deg, rgba(140,220,255,.18), rgba(140,220,255,.04)); border-color: rgba(140,220,255,.22); }
.wm-pos__receipt {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 8px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06); border-radius: 7px;
}
.wm-pos__r-head { font-size: 8.5px; font-weight: 700; color: #fff; padding-bottom: 4px; border-bottom: 1px dashed rgba(255,255,255,.1); }
.wm-pos__line { display: flex; justify-content: space-between; font-size: 8px; color: rgba(228,216,255,.75); }
.wm-pos__line span:last-child { font-family: var(--font-mono); color: #fff; font-weight: 600; }
.wm-pos__line--sub { color: rgba(228,216,255,.5); font-size: 7.5px; }
.wm-pos__divider { height: 1px; background: rgba(255,255,255,.08); margin: 2px 0; }
.wm-pos__total {
  margin-top: auto; padding: 8px; text-align: center;
  background: var(--grad-brand); color: #fff;
  font-weight: 700; font-size: 10px; letter-spacing: -0.01em;
  border-radius: 6px; box-shadow: 0 6px 16px -6px rgba(91,140,255,.5);
}

/* ---------- Process ---------- */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  counter-reset: step;
  position: relative;
}
.process::before {
  content: ""; position: absolute; top: 28px; left: 5%; right: 5%; height: 1px;
  background: var(--grad-line);
}
.process__step {
  position: relative; padding: 1.5rem;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform .3s var(--ease-out), border-color .3s;
}
.process__step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.process__num {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--brand-1);
  background: rgba(91,140,255,.1); border: 1px solid rgba(91,140,255,.25);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 1rem;
}
.process__step h3 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: .5rem; }
.process__step p { color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.plan {
  position: relative; padding: 2rem 1.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease-out), border-color .3s;
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan--featured {
  background: linear-gradient(180deg, rgba(91,140,255,.08), rgba(184,125,255,.04));
  border-color: rgba(91,140,255,.3);
  box-shadow: 0 20px 60px -20px rgba(91,140,255,.3);
}
.plan--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: #fff;
  background: var(--grad-brand); border-radius: var(--radius-full);
  box-shadow: 0 10px 20px -5px var(--brand-glow);
}
.plan__head { margin-bottom: 1.5rem; }
.plan__head h3 { font-size: var(--fs-xl); font-weight: 600; margin-bottom: .25rem; }
.plan__head p { color: var(--text-dim); font-size: var(--fs-sm); }
.plan__price {
  display: flex; align-items: baseline; gap: 4px;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.plan__currency { font-size: 1.1rem; color: var(--text-dim); }
.plan__amount {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2.75rem; letter-spacing: -0.04em; color: var(--text);
}
.plan__per { font-size: var(--fs-sm); color: var(--text-mute); margin-left: 4px; }
.plan__features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; flex: 1; }
.plan__features li {
  position: relative; padding-left: 26px; font-size: var(--fs-sm);
  color: var(--text-dim);
}
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(91,140,255,.15); border: 1px solid rgba(91,140,255,.35);
}
.plan__features li::after {
  content: ""; position: absolute; left: 4px; top: 0.75em;
  width: 8px; height: 4px; border-left: 1.5px solid var(--brand-1);
  border-bottom: 1.5px solid var(--brand-1); transform: rotate(-45deg);
}

.addons {
  margin-top: 3rem; padding: 2rem; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
}
.addons h4 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: 1.25rem; text-align: center; }
.addons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.addon {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color .2s, background .2s;
}
.addon:hover { border-color: var(--border-strong); background: rgba(255,255,255,.05); }
.addon strong { font-weight: 500; font-size: var(--fs-sm); }
.addon span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand-1); }

/* ---------- Stats + Quotes ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 2.5rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(91,140,255,.08), rgba(184,125,255,.04));
  border: 1px solid var(--border);
  margin-bottom: 4rem;
}
.stat { text-align: center; }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1; letter-spacing: -0.03em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat strong span { font-size: 1.25rem; opacity: .7; }
.stat > span { font-size: var(--fs-sm); color: var(--text-dim); margin-top: .5rem; display: block; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote {
  padding: 2rem; background: rgba(255,255,255,.02);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: -10px; left: 20px;
  font-family: var(--font-display); font-size: 4rem; color: var(--brand-1); line-height: 1;
}
.quote blockquote { font-size: var(--fs-md); color: var(--text); line-height: 1.65; margin-bottom: 1.25rem; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 1rem; border-top: 1px solid var(--border); }
.quote figcaption strong { font-size: var(--fs-sm); font-weight: 500; }
.quote figcaption span { font-size: 0.82rem; color: var(--text-mute); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: rgba(255,255,255,.02); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .2s, background .2s;
}
.faq__item[open] { border-color: rgba(91,140,255,.3); background: rgba(91,140,255,.03); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 500;
  list-style: none; font-size: var(--fs-md);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { transition: transform .3s var(--ease-out); flex-shrink: 0; color: var(--brand-1); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item p {
  padding: 0 1.5rem 1.5rem; color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta { padding-bottom: clamp(3rem, 8vw, 6rem); }
.cta__card {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(20,20,38,.9), rgba(12,12,24,.9));
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.cta__glow {
  position: absolute; inset: -30%;
  background: radial-gradient(ellipse at 30% 20%, rgba(91,140,255,.4), transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(184,125,255,.35), transparent 50%);
  filter: blur(60px); opacity: .7;
  animation: glow-shift 12s var(--ease-in-out) infinite;
}
@keyframes glow-shift {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(4%, -3%); }
}
.cta__content { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.cta__content > * + * { margin-top: 1.5rem; }
.cta__content h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.03em;
}
.cta__content p { color: var(--text-dim); font-size: var(--fs-lg); }

.cta__links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 2.5rem 0 1.5rem;
}
.cta__link {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); text-align: left;
  transition: transform .25s var(--ease-out), border-color .2s, background .2s;
}
.cta__link:hover { transform: translateY(-3px); border-color: rgba(91,140,255,.4); background: rgba(91,140,255,.06); }
.cta__link-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-soft); color: var(--brand-1);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(91,140,255,.2); flex-shrink: 0;
}
.cta__link--line .cta__link-icon { background: rgba(6,199,85,.15); color: #06c755; border-color: rgba(6,199,85,.3); }
.cta__link-label { display: block; font-size: var(--fs-xs); color: var(--text-mute); text-transform: uppercase; letter-spacing: .1em; }
.cta__link strong { display: block; font-size: var(--fs-md); font-weight: 500; color: var(--text); margin-top: 2px; }

.cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 0 2rem; border-top: 1px solid var(--border);
  background: rgba(0,0,0,.25);
}
.footer__inner {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.footer__brand p { color: var(--text-dim); font-size: var(--fs-sm); margin-top: 1rem; max-width: 360px; line-height: 1.65; }
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__col h4 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: .5rem; color: var(--text); }
.footer__col a { font-size: var(--fs-sm); color: var(--text-dim); transition: color .2s; }
.footer__col a:hover { color: var(--brand-1); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: var(--text-mute);
}
.footer__mini { font-family: var(--font-mono); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Magnetic button placeholder (handled in JS) ---------- */
.magnetic { transition: transform .25s var(--ease-out); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .services, .works, .pricing { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .addons__grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .cta__links { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { margin: 2rem auto 0; max-width: 520px; width: 100%; height: 480px; min-height: 480px; }
  .services, .works, .pricing { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .quote { padding: 1.5rem; }
  .section__head { margin-bottom: 2.5rem; }
}

@media (max-width: 600px) {
  :root { --fs-lg: 1rem; }
  .container { padding: 0 1.25rem; }
  .nav__inner { gap: 1rem; }
  .logo__text { font-size: 1rem; }
  .hero { padding-top: 6rem; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero__cta .btn { flex: 1; min-width: 0; padding: 14px 16px; }
  .hero__visual { max-width: 400px; height: 360px; min-height: 360px; }
  .floating-badge { font-size: 0.72rem; padding: 8px 11px; }
  .floating-badge--1 { right: 0; }
  .floating-badge--2 { left: 0; }
  .section__title { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .cta__content h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .process { grid-template-columns: 1fr; }
  .addons__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; padding: 1.5rem; }
  .plan { padding: 1.75rem 1.5rem; }
  .plan__amount { font-size: 2.25rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .marquee__track { font-size: 1.5rem; gap: 1.5rem; }
  .service-card, .work__meta, .quote, .plan { padding: 1.5rem; }
  .cta__link { padding: 14px 16px; }
  .cta__buttons .btn { flex: 1; }
  .lang__current { padding: 7px 10px; }
}

/* =============================================================
   MOBILE PERFORMANCE — strip ONLY heavy GPU effects on iOS/touch
   Keep lightweight animations alive so the page feels animated
   ============================================================= */
@media (pointer: coarse), (max-width: 900px) {

  /* ---------- KILL: Heavy GPU effects ---------- */

  /* Aurora: hide entirely — without blur(100px) it looks bad,
     the parent .bg-aurora keeps the base gradient background */
  .aurora { display: none; }

  /* Grid mask-image is expensive on iOS WebKit */
  .bg-grid { display: none; }

  /* Noise texture */
  .bg-noise { display: none; }

  /* Nav — solid bg instead of backdrop-filter */
  .nav.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(7, 7, 12, 0.92);
  }

  /* Mobile menu — solid bg */
  .nav__mobile {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(7, 7, 12, 0.98);
  }

  /* Remove ALL backdrop-filter from components */
  .pill,
  .btn--ghost,
  .lang__menu,
  .floating-badge,
  .wm-re__badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Button glow ::before — remove blur */
  .btn--primary::before {
    filter: none;
    opacity: 0.3;
  }

  /* CTA glow — blur(60px) is too heavy */
  .cta__glow {
    filter: none;
    opacity: 0.35;
    animation: none;
  }

  /* Cursor — no mouse on touch */
  .cursor, .cursor-dot {
    display: none !important;
  }

  /* Free GPU memory */
  .mockup { will-change: auto; }
  .reveal { will-change: auto; }

  /* Lighter shadows */
  .mockup { box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
  .mockup--phone { box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
  .plan--featured { box-shadow: 0 8px 24px -12px rgba(91,140,255,.2); }

  /* ---------- KEEP: Lightweight animations ---------- */
  /* ✅ .float-y / .float-y-delayed  — simple translateY, GPU composited, cheap */
  /* ✅ .floating-badge animation    — simple translateY, cheap */
  /* ✅ .marquee__track animation    — translateX, cheap */
  /* ✅ .pill__dot pulse animation   — box-shadow pulse, cheap */

  /* ---------- FIX: Reveal on mobile ---------- */
  /* IntersectionObserver is unreliable on iOS WebKit — elements stay
     at opacity:0 forever, making the page look "frozen/empty".
     Fix: show everything immediately, use CSS-only fade-in animation */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: reveal-up 0.8s ease-out both;
  }

  /* Staggered delays for visual interest */
  .reveal:nth-child(2) { animation-delay: 0.1s; }
  .reveal:nth-child(3) { animation-delay: 0.15s; }
  .reveal:nth-child(4) { animation-delay: 0.2s; }
  .reveal:nth-child(5) { animation-delay: 0.25s; }

  /* iOS compositing fix: position:fixed backgrounds cause jank */
  .bg-aurora {
    position: absolute;
  }
}

/* Mobile reveal animation — pure CSS, no JS dependency */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Motion preference ---------- */
/* Note: We intentionally keep animations running even with reduce-motion.
   Our animations are subtle (translateY, opacity) and not vestibular-triggering.
   Only disable smooth scroll which can cause motion sickness. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
