/* ---------------------------------------------------------------- Khmer web fonts
   Self-hosted (woff2) and scoped to the Khmer Unicode range, so they only
   download when Khmer text is on the page. Latin text keeps Google/Jakarta Sans.
   Primary: MiSans Khmer (variable 150–700). Fallback: Kantumruy Pro (400/500/600).
*/
@font-face {
  font-family: "MiSans Khmer";
  src: url("assets/fonts/misans-khmer.woff2") format("woff2");
  font-weight: 150 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kantumruy Pro";
  src: url("assets/fonts/kantumruy-pro-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kantumruy Pro";
  src: url("assets/fonts/kantumruy-pro-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kantumruy Pro";
  src: url("assets/fonts/kantumruy-pro-600.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}

/* ---------------------------------------------------------------- Latin web fonts
   Self-hosted (woff2), identical files to the VS frontend (@fontsource-variable).
   No Google Fonts request — served from this site for stability/offline.
   Inter = body, Grandstander = display headings. Both variable (weights 100–900).
*/
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Grandstander";
  src: url("assets/fonts/grandstander-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Grandstander";
  src: url("assets/fonts/grandstander-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Body: Inter (matches VS frontend). Headings: Grandstander. Khmer glyphs
     fall to the self-hosted Khmer fonts via their unicode-range. */
  --font-primary: "Inter", "MiSans Khmer", "Kantumruy Pro", "Noto Sans Khmer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Grandstander", "Inter", "MiSans Khmer", "Kantumruy Pro", "Noto Sans Khmer", ui-sans-serif, system-ui, sans-serif;
  --nav-scale: 1.05;
  --bg: #0b1110;
  --surface: #111a18;
  --surface-2: #152220;
  --ink: #e8f2ee;
  --ink-soft: #b8cbc2;
  --line: #223430;
  --accent: #1fbe77;
  --accent-2: #e6b24d;
  --accent-3: #70e4b0;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

/* Display headings use Grandstander (VS frontend style) on public pages.
   Dashboards stay on the body font (Inter) for a clean, neutral work UI. */
h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
}
.dash h1,
.dash h2,
.dash h3 {
  font-family: var(--font-primary);
}

.dot-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(circle at 10% -10%, rgba(230, 178, 77, 0.12), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(31, 190, 119, 0.13), transparent 35%),
    linear-gradient(180deg, #121b19 0%, #0d1513 58%, #0a100f 100%);
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(10, 17, 15, 0.82);
  border-bottom: 1px solid rgba(38, 56, 51, 0.74);
  padding: calc(0.85rem * var(--nav-scale)) 0;
  z-index: 20;
}

.site-header-inner {
  width: min(1040px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(0.9rem * var(--nav-scale));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: calc(0.55rem * var(--nav-scale));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-logo {
  width: clamp(6.2rem, 12.6vw, 8.8rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.main-nav {
  display: none;
  align-items: center;
  gap: calc(1rem * var(--nav-scale));
}

.mobile-menu-toggle {
  width: calc(2.35rem * var(--nav-scale));
  height: calc(2.35rem * var(--nav-scale));
  border-radius: 0.66rem;
  border: 1px solid var(--line);
  background: #111d1a;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: calc(1rem * var(--nav-scale));
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

/* Drops OVER the page (fixed), not squeezed into the flow.
   It used to be position:sticky with a hard `max-height:260px` — so once the
   menu grew past ~5 items (Store took it to 6 + the language toggle) the rest
   was silently clipped by overflow:hidden, and being in-flow it shoved the page
   down instead of popping out. Now it overlays, sits under the header
   (header z-index 20), and scrolls if it ever outgrows the viewport. */
.mobile-nav {
  position: fixed;
  top: calc(65px * var(--nav-scale));
  left: 0;
  right: 0;
  z-index: 19;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
  border-bottom: 1px solid rgba(38, 56, 51, 0.72);
  background: rgba(10, 17, 15, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav.is-open {
  /* room for every item; scrolls rather than clipping if the menu grows again */
  max-height: calc(100dvh - (65px * var(--nav-scale)));
  overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-inner {
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: 0.42rem 0 0.62rem;
}

.mobile-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: calc(1rem * var(--nav-scale));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(34, 52, 48, 0.7);
  padding: calc(0.72rem * var(--nav-scale)) 0.2rem;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: calc(1.08rem * var(--nav-scale));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.32rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--accent-3);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* Language switcher — a subtle globe pill, visually distinct from the login button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: rgba(17, 29, 26, 0.6);
  color: var(--ink-soft);
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: calc(0.8rem * var(--nav-scale));
  font-weight: 600;
  padding: calc(0.38rem * var(--nav-scale)) calc(0.72rem * var(--nav-scale));
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-toggle svg {
  opacity: 0.85;
}

.lang-toggle:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(31, 190, 119, 0.08);
}

.lang-toggle:hover svg {
  opacity: 1;
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* In-nav language pill: sits after the last menu item, smaller than menu text */
.nav-lang {
  font-size: calc(0.72rem * var(--nav-scale));
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: calc(0.28rem * var(--nav-scale)) calc(0.6rem * var(--nav-scale));
  margin-left: calc(0.35rem * var(--nav-scale));
}

/* Inside the mobile menu, keep it left-aligned and content-width */
.mobile-nav .nav-lang {
  align-self: flex-start;
  margin: 0.35rem 0 0;
}

/* Compact nav buttons + login CTA with icon and hover glow */
/* Compact button — header nav only */
.btn-sm {
  min-height: 38px;
  padding: 0 1rem;
  font-size: calc(0.86rem * var(--nav-scale));
}

.nav-login {
  gap: 0.5rem;
}

.nav-login svg {
  flex: 0 0 auto;
}

.section {
  width: min(1040px, 92vw);
  margin: 0 auto;
  padding: 1.6rem 0;
}

.hero {
  position: relative;
  padding-top: 2.2rem;
  padding-bottom: 0.55rem;
  display: grid;
  gap: 1.3rem;
  align-items: start;
}

.hero .hero-main,
.hero .hero-panel,
.hero .logo-slider {
  position: relative;
  z-index: 1;
}

#capabilities.section {
  padding-top: 0.6rem;
}

.hero-main {
  max-width: 62ch;
  animation: rise 0.8s ease both;
}

.hero-kicker,
.section-head p,
.about-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.9rem, 7vw, 3.5rem);
  line-height: 1.08;
  max-width: 18ch;
  animation: headlineIn 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.hero-sub {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--ink-soft);
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.logo-slider {
  margin-top: 1.55rem;
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  overflow: hidden;
  min-height: 14.5rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 1rem 0;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(90deg, rgba(13, 22, 19, 0.95), rgba(13, 22, 19, 0));
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(270deg, rgba(13, 22, 19, 0.95), rgba(13, 22, 19, 0));
}

.logo-track {
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.45rem 1rem 1rem;
  animation: logoMarquee 40s linear infinite;
}

.logo-slider:hover .logo-track {
  animation-play-state: paused;
}

.logo-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 9.6rem;
  min-height: 8.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(43, 67, 61, 0.92);
  background: rgba(16, 26, 23, 0.82);
  color: var(--ink);
  padding: 0.8rem 0.55rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 0.78rem;
  background: #f4f7f6;
  border: 1px solid rgba(198, 214, 209, 0.78);
  padding: 0.35rem;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo-slider-head {
  padding: 0 1rem 0.55rem;
}

.logo-slider-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ec7b9;
  font-size: 0.7rem;
  font-weight: 700;
}

.logo-slider-title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
}

.hero-panel {
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(150deg, #152320, #111b19);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.65rem;
  animation: softFloat 4.2s ease-in-out infinite;
  width: 100%;
}

.hero-side-stack {
  position: relative;
  display: grid;
  gap: 0.9rem;
  align-items: start;
  overflow: visible;
}

.social-popout {
  position: absolute;
  right: 1rem;
  bottom: 0.4rem;
  width: 8rem;
  height: 6rem;
  z-index: 3;
  pointer-events: none;
}

.social-popout::before {
  content: none;
  position: absolute;
  right: -14px;
  top: 66px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 158, 255, 0.28), rgba(67, 158, 255, 0));
  filter: blur(2px);
}

.social-popout::after {
  content: none;
  position: absolute;
  right: -20px;
  top: 62px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(106, 181, 255, 0.22);
  animation: orbitSpin 18s linear infinite;
}

.social-popout-box {
  display: none;
}

.box-body {
  position: absolute;
  inset: auto 0 0;
  height: 58px;
  border-radius: 0.95rem 0.95rem 0.65rem 0.65rem;
  background: linear-gradient(160deg, #1d7ecc 0%, #3c4fd8 50%, #4f3eb6 100%);
  border: 1px solid rgba(130, 181, 255, 0.55);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.42);
}

.box-lid {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 96px;
  height: 32px;
  border-radius: 0.8rem;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotateX(54deg) rotate(-6deg);
  background: linear-gradient(140deg, #57b6ff, #6584ff 60%, #8a74ff);
  border: 1px solid rgba(181, 215, 255, 0.66);
  box-shadow: 0 8px 20px rgba(37, 90, 202, 0.36);
}

.box-glow {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 105px;
  height: 34px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(115, 215, 255, 0.48), rgba(115, 215, 255, 0));
  filter: blur(1px);
}

.live-reactions {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 1px;
  height: 1px;
  z-index: 2;
}

.reaction {
  --rx: 0px;
  --dur: 4.6s;
  --delay: 0s;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.075rem;
  height: 1.075rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #2f8fff, #1769f3);
  opacity: 0;
  box-shadow: 0 10px 20px rgba(6, 13, 28, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translate(0, 0) scale(0.3);
  animation: reactionRise var(--dur) ease-in infinite;
  animation-delay: var(--delay);
}

.reaction img {
  width: 0.5rem;
  height: 0.5rem;
  object-fit: contain;
}

.rc-facebook {
  background: linear-gradient(135deg, #2f8fff, #1769f3);
}

.rc-tiktok {
  background: linear-gradient(135deg, #0f0f0f, #2d2d2d);
}

.rc-instagram {
  background: linear-gradient(135deg, #ffd15f, #e55096 55%, #845bff);
}

.rc-telegram {
  background: linear-gradient(135deg, #47c6ff, #1989cc);
}

.rc-meta {
  background: linear-gradient(135deg, #3f8efc, #4f56d9);
}

.rc-google {
  background: linear-gradient(135deg, #49a5ff, #48cb73 45%, #f7b04d);
}

.r1 {
  --rx: -36px;
  --dur: 4.4s;
  --delay: 0.1s;
}

.r2 {
  --rx: 28px;
  --dur: 4.9s;
  --delay: 0.8s;
}

.r3 {
  --rx: -58px;
  --dur: 5.2s;
  --delay: 1.2s;
}

.r4 {
  --rx: 52px;
  --dur: 4.7s;
  --delay: 1.7s;
}

.r5 {
  --rx: -14px;
  --dur: 4.3s;
  --delay: 2.1s;
}

.r6 {
  --rx: 68px;
  --dur: 5.1s;
  --delay: 2.7s;
}

.r7 {
  --rx: -74px;
  --dur: 5.4s;
  --delay: 3.1s;
}

.r8 {
  --rx: 18px;
  --dur: 4.5s;
  --delay: 3.4s;
}

.r9 {
  --rx: -44px;
  --dur: 5s;
  --delay: 3.9s;
}

.hero-panel article {
  border-radius: 0.8rem;
  background: rgba(18, 29, 26, 0.92);
  border: 1px solid #2a403a;
  padding: 0.75rem 0.85rem;
}

.hero-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.hero-panel p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn:hover {
  transform: translateY(-2px);
}

/* Shared hover glow — same feel as the Login button */
.btn-primary:hover {
  box-shadow: 0 8px 22px rgba(31, 190, 119, 0.3);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: #16241f;
  box-shadow: 0 8px 22px rgba(31, 190, 119, 0.22);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #0b7f4f);
  color: #f3fff9;
  border: 1px solid rgba(10, 96, 61, 0.45);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #12201d;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.4rem, 5vw, 2.25rem);
}

.capability-grid,
.studio-grid {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.capability-card,
.studio-card {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(17, 28, 25, 0.94);
  box-shadow: var(--shadow);
}

.capability-card {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Accent edge revealed on hover */
.capability-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 190, 119, 0.45);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(31, 190, 119, 0.1);
}
.capability-card:hover::before { opacity: 0.85; }

.capability-art {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid #2a403a;
  display: block;
  transition: transform 0.25s ease;
}
.capability-card:hover .capability-art { transform: scale(1.02); }

.capability-card h3 {
  margin: 0.9rem 0 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.capability-card p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .capability-card,
  .capability-card:hover,
  .capability-art,
  .capability-card:hover .capability-art {
    transform: none;
    transition: none;
  }
}

.studio-section {
  padding-top: 1.2rem;
}

.studio-card {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.studio-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.studio-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.studio-card p {
  margin: 0.62rem 0 0;
  color: var(--ink-soft);
}

.card-grid,
.project-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.card,
.project,
.about,
.contact {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(17, 28, 25, 0.94);
  box-shadow: var(--shadow);
}

.card,
.project {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  animation: rise 0.85s ease both;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card::before,
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(112, 228, 176, 0.08), rgba(230, 178, 77, 0.04) 40%, transparent 75%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover,
.project:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 208, 160, 0.55);
  box-shadow: 0 18px 40px rgba(5, 12, 10, 0.52), 0 0 0 1px rgba(95, 208, 160, 0.2);
}

.card:hover::before,
.project:hover::before {
  opacity: 1;
}

.card h3,
.project h3 {
  margin-top: 0.9rem;
}

.card p,
.project p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.feature-badge {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 18px rgba(6, 14, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.feature-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.feature-badge-group .feature-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
}

.feature-badge img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

.badge-facebook {
  background: linear-gradient(135deg, #2f8fff, #1769f3);
}

.badge-tiktok {
  background: linear-gradient(135deg, #121212, #333333);
}

.badge-instagram {
  background: linear-gradient(135deg, #ffd15f, #e55096 55%, #845bff);
}

.badge-meta {
  background: linear-gradient(135deg, #3f8efc, #4f56d9);
}

.badge-adsmanager {
  background: linear-gradient(135deg, #4aa2ff, #2457d8);
}

.badge-adsmanager img {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: cover;
  object-position: center;
  transform: scale(1.15);
  border-radius: 0.42rem;
}

.badge-google {
  background: linear-gradient(135deg, #49a5ff, #48cb73 45%, #f7b04d);
}

.badge-telegram {
  background: linear-gradient(135deg, #47c6ff, #1989cc);
}

.badge-system {
  background: linear-gradient(135deg, #2ccf8b, #14774f);
}

.badge-web {
  background: linear-gradient(135deg, #4aa2ff, #2457d8);
}

.badge-ai {
  background: linear-gradient(135deg, #b471ff, #6f39d1);
}

.feature-badge-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.chip {
  display: inline-block;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: rgba(31, 190, 119, 0.18);
  color: #8af0c2;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
}

.campaign-card {
  padding: 1.2rem;
}

.campaign-head {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.campaign-card h3 {
  margin-top: 0.55rem;
}

.campaign-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(31, 190, 119, 0.18);
  color: #8af0c2;
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.24rem 0.56rem;
}

.campaign-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(6, 14, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.campaign-plan {
  background: linear-gradient(135deg, #47c6ff, #1989cc);
}

.campaign-exec {
  background: linear-gradient(135deg, #49a5ff, #2457d8);
}

.campaign-opt {
  background: linear-gradient(135deg, #3f8efc, #4f56d9);
}

.about,
.contact {
  padding: 1.2rem;
}

.about {
  display: grid;
  gap: 0.5rem;
}

.about h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.3rem, 5vw, 2rem);
}

.about p {
  margin: 0;
  color: #b8cbc2;
}

.contact {
  text-align: center;
}

.contact h2 {
  margin: 0;
  font-size: clamp(1.3rem, 5vw, 2rem);
}

.contact p {
  margin: 0.8rem auto 1.2rem;
  max-width: 50ch;
  color: var(--ink-soft);
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-footer {
  border-top: 1px solid rgba(38, 56, 51, 0.72);
  margin-top: 1.25rem;
  padding: 1rem 0 1.8rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer-inner {
  width: min(1040px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.about + .contact {
  margin-top: 0.95rem;
}

.site-footer p {
  margin: 0.55rem 0 0;
}

.chat-float {
  position: fixed;
  right: calc(1.15rem + 50px);
  bottom: 1.15rem;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 35;
}

.chat-float-ring {
  position: absolute;
  inset: -0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 120, 255, 0.45);
  background: radial-gradient(circle, rgba(140, 110, 255, 0.22), rgba(140, 110, 255, 0));
  animation: chatPulse 2.2s ease-out infinite;
}

.chat-float-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid rgba(210, 200, 255, 0.66);
  background: linear-gradient(150deg, #39bfff, #1f86cf);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(2, 11, 19, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.chat-float:hover .chat-float-inner {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(2, 11, 19, 0.52), 0 0 0 3px rgba(140, 110, 255, 0.16);
}

.chat-float-inner img {
  width: 1.28rem;
  height: 1.28rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Messenger brand gradient (blue → purple → pink) */
.chat-float--messenger .chat-float-inner {
  background: linear-gradient(150deg, #00b2ff 0%, #006aff 32%, #a033ff 66%, #ff5280 100%);
}

/* Telegram brand gradient (light → deep sky blue) */
.chat-float--telegram .chat-float-inner {
  background: linear-gradient(150deg, #37bbfe 0%, #2aabee 45%, #229ed9 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-lang="km"] {
  line-height: 1.72;
}

body[data-lang="km"] .main-nav a,
body[data-lang="km"] .lang-toggle {
  font-size: calc(1.02rem * var(--nav-scale));
}

/* EN top menu: smaller (-23%) and lighter (-20%) than the default. */
body[data-lang="en"] .main-nav a {
  font-size: calc(1.08rem * var(--nav-scale) * 0.77);
  font-weight: 560;
}

body[data-lang="km"] .btn {
  font-size: 1.02rem;
}

body[data-lang="km"] .hero h1 {
  font-size: clamp(2.05rem, 7.8vw, 3.7rem);
  line-height: 1.18;
}

body[data-lang="km"] .hero-sub,
body[data-lang="km"] .card p,
body[data-lang="km"] .project p,
body[data-lang="km"] .capability-card p,
body[data-lang="km"] .studio-card p,
body[data-lang="km"] .about p,
body[data-lang="km"] .contact p {
  font-size: 1.03rem;
  line-height: 1.85;
}

body[data-lang="km"] .section-head h2,
body[data-lang="km"] .about h2,
body[data-lang="km"] .contact h2 {
  line-height: 1.34;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.02em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0;
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes chatPulse {
  0% {
    transform: scale(0.86);
    opacity: 0.7;
  }

  75% {
    transform: scale(1.18);
    opacity: 0;
  }

  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@keyframes boxBob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes logoMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes reactionRise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }

  10% {
    opacity: 1;
    transform: translate(calc(var(--rx) * 0.18), -18px) scale(1.08);
  }

  52% {
    opacity: 1;
    transform: translate(calc(var(--rx) * 0.72), -96px) scale(0.96);
  }

  100% {
    opacity: 0;
    transform: translate(var(--rx), -178px) scale(0.66);
  }
}

@media (min-width: 760px) {
  .main-nav {
    display: flex;
  }

  .mobile-menu-toggle,
  .mobile-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
    align-items: center;
    column-gap: 1.7rem;
    row-gap: 1rem;
  }

  .hero-side-stack {
    justify-self: end;
    max-width: 400px;
  }

  .logo-slider {
    margin-top: 0.35rem;
  }

  .card-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .hero-side-stack {
    gap: 0.7rem;
  }

  .social-popout {
    display: none;
  }

  .social-popout::before,
  .social-popout::after {
    display: none;
  }

  .chat-float {
    right: calc(0.88rem + 50px);
    bottom: 0.9rem;
    width: 2.8rem;
    height: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .logo-track {
    animation: none;
  }

  .social-popout,
  .social-popout-box,
  .social-popout::after,
  .reaction {
    animation: none;
  }

  .live-reactions {
    display: none;
  }
}

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ============================== Showcase carousel ============================== */
.showcase {
  position: relative;
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
}

.showcase-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  border-radius: 1.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.showcase-track::-webkit-scrollbar { display: none; }

.showcase-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: center;
  margin: 0;
  padding: 0 0.15rem;
}

.showcase-frame {
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(14, 23, 21, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-frame img,
.showcase-frame a {
  display: block;
  width: 100%;
  height: 100%;
}
.showcase-frame img {
  object-fit: cover;
  object-position: top center;
}

.showcase-caption {
  text-align: center;
  margin-top: 0.85rem;
}
.showcase-caption h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}
.showcase-caption p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  color: var(--accent-3);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.showcase-link:hover { color: var(--accent); }

/* Prev / next arrows */
.showcase-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(17, 28, 25, 0.94);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.showcase-nav:hover {
  border-color: rgba(31, 190, 119, 0.5);
  background: rgba(31, 190, 119, 0.12);
  transform: translateY(-2px);
}
.showcase-nav:disabled { opacity: 0.35; cursor: default; transform: none; }

/* Dots */
.showcase-dots {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}
.showcase-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #33524a;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.showcase-dot.is-active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transform: scale(1.25);
}

@media (max-width: 720px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-nav { display: none; }
  .showcase-slide { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-track { scroll-behavior: auto; }
  .showcase-nav:hover { transform: none; }
}

/* ============================== Store / Shop ============================== */
.price-badge.price-license { background: rgba(31,190,119,0.14); color: var(--accent-3); border: 1px solid rgba(31,190,119,0.3); }
.price-badge.price-subscription { background: rgba(96,165,250,0.14); color: #7fb3ff; border: 1px solid rgba(96,165,250,0.3); }
.price-badge.price-service { background: rgba(230,178,77,0.14); color: var(--accent-2); border: 1px solid rgba(230,178,77,0.3); }

.shop-card .shop-card-img {
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
  aspect-ratio: 16 / 10;
}
.shop-card .shop-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.2rem;
  align-items: start;
}
.product-detail-media {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(14, 23, 21, 0.9);
  aspect-ratio: 16 / 11;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-media-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-3);
}
.product-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 0.6rem; }
.product-detail-info h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 0.6rem; }
.product-detail-desc { color: var(--ink-soft); line-height: 1.6; margin: 0 0 1.2rem; }
.product-detail-price { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 0 0 0.9rem; }
.product-features { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: 8px; }
.product-features li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.4; }
.product-features li svg { color: var(--accent-3); flex: 0 0 auto; margin-top: 2px; }
.product-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 1rem 0 0; padding: 11px 13px;
  font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.02);
}
.product-note svg { color: var(--accent-2); flex: 0 0 auto; margin-top: 2px; }

/* Term selector */
.term-select { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.3rem; }
.term-pill {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 120px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.term-pill:hover { border-color: rgba(31,190,119,0.4); transform: translateY(-2px); }
.term-pill.is-active {
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(31,190,119,0.16), rgba(230,178,77,0.08));
  color: var(--ink);
}
.term-pill-label { font-size: 0.82rem; font-weight: 600; }
.term-pill-price { font-size: 1rem; font-weight: 800; color: var(--ink); }
.product-buy { min-width: 200px; }

/* Checkout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.checkout-card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.4rem;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
}
.checkout-card h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.checkout-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checkout-line.muted span { color: var(--ink-soft); font-size: 0.9rem; }
.checkout-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 6px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.checkout-qr {
  background: #fff; border-radius: 14px; padding: 12px; line-height: 0;
  width: fit-content; margin: 0 auto 14px;
}
.checkout-qr img { display: block; width: 200px; height: 200px; object-fit: contain; }
.checkout-payinfo { list-style: none; margin: 0 0 14px; padding: 0; }
.checkout-payinfo li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.checkout-payinfo span { color: var(--ink-soft); font-size: 0.88rem; }
.checkout-payinfo b { color: var(--ink); font-size: 0.9rem; word-break: break-all; text-align: right; }

/* Payment page status + delivered key */
.pay-status {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-soft); font-size: 0.9rem;
}
.pay-spinner {
  width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--accent);
  animation: paySpin 0.8s linear infinite;
}
@keyframes paySpin { to { transform: rotate(360deg); } }
.pay-ok {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #0b1110; font-weight: 800; font-size: 0.7rem;
}
.pay-deliver { display: none; }
.pay-deliver.is-open { display: block; }
.pay-key {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95rem; letter-spacing: 0.03em; word-break: break-all; user-select: all;
  background: rgba(31,190,119,0.1); border: 1px solid rgba(31,190,119,0.3);
  color: var(--accent-3); border-radius: 10px; padding: 12px 14px;
}

@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.2rem; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pay-spinner { animation: none; } }

/* Checkout — signed-in account block (replaces the old name/email inputs) */
.checkout-account {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.checkout-avatar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; color: #0b1110;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}
.checkout-account-meta { display: flex; flex-direction: column; min-width: 0; }
.checkout-account-meta b { color: var(--ink); font-size: 0.98rem; line-height: 1.25; }
.checkout-account-meta span { color: var(--ink-soft); font-size: 0.85rem; word-break: break-all; }

/* Tabular figures so prices/totals don't jitter */
.checkout-line span, .checkout-total span, .checkout-payinfo b { font-variant-numeric: tabular-nums; }

/* Pay page — no-QR-yet empty state */
.pay-empty {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px; margin-bottom: 14px;
  border: 1px solid rgba(230, 178, 77, 0.35); border-radius: 12px;
  background: rgba(230, 178, 77, 0.08);
}
.pay-empty strong { color: var(--accent-2); font-size: 0.95rem; }
.pay-empty span { color: var(--ink-soft); font-size: 0.86rem; }

/* ============================== Footer (standard) ============================== */
.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-legal a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--accent-3); }
.footer-dot { color: var(--line); }
.footer-copy { margin: 0.15rem 0 0; color: var(--ink); font-weight: 500; }
.footer-credit { margin: 0; font-size: 0.84rem; color: var(--ink-soft); }
.footer-credit a { color: var(--accent-3); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ============================== Legal / policy pages ============================== */
.legal-page { max-width: min(820px, 92vw); }
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.legal-back:hover { color: var(--ink); }
.legal-back:hover svg { transform: translateX(-3px); }
.legal-back svg { transition: transform 0.2s ease; }
.legal-updated { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

.legal-prose { color: var(--ink-soft); line-height: 1.7; font-size: 0.98rem; }
.legal-prose h1 {
  color: var(--ink);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin: 0 0 0.6rem;
}
.legal-prose h2 {
  color: var(--ink);
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(38, 56, 51, 0.5);
}
.legal-prose h3 { color: var(--ink); font-size: 1.02rem; margin: 1.3rem 0 0.4rem; }
.legal-prose p { margin: 0 0 0.9rem; }
.legal-prose a { color: var(--accent-3); text-decoration: underline; }
.legal-prose ul, .legal-prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal-prose li { margin: 0.3rem 0; }
.legal-prose strong { color: var(--ink); }
.legal-prose hr { border: none; border-top: 1px solid rgba(38, 56, 51, 0.6); margin: 1.6rem 0; }
.legal-prose blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(230, 178, 77, 0.08);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}
.legal-prose blockquote p { margin: 0; }
.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}
.legal-prose th, .legal-prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  text-align: left;
}
.legal-prose th { color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.legal-prose code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-size: 0.88em;
}

/* Clickable client logo pills (when a URL is set in admin) */
a.logo-pill { text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
a.logo-pill:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ============================================================================
   Multi-page: page hero, active nav, cards, quote form, contact tiles
   ============================================================================ */

/* Active nav state */
.main-nav a.is-active { color: var(--accent-3); }
.main-nav a.is-active::after { transform: scaleX(1); }
.mobile-nav a.is-active { color: var(--accent-3); }

/* Page hero */
.page-hero { text-align: center; padding-top: 2.4rem; padding-bottom: 0.4rem; }
.page-hero-title {
  margin: 0.55rem auto 0;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.1;
  max-width: 18ch;
}
.page-hero-sub {
  margin: 1rem auto 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.page-hero-cta { margin-top: 1.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; }

/* Accent icon chip on cards */
.feature-badge-accent {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; border-radius: 0.85rem;
  background: linear-gradient(150deg, rgba(31,190,119,0.18), rgba(230,178,77,0.12));
  border: 1px solid rgba(31,190,119,0.32);
  color: var(--accent-3);
  margin-bottom: 0.9rem;
}
.vs-icon { display: block; }

/* Product (software) cards */
.product-card { display: flex; flex-direction: column; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; }
.price-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.25rem 0.7rem; border-radius: 999px; text-transform: uppercase;
  border: 1px solid transparent; height: fit-content;
}
.price-free { color: var(--accent-3); background: rgba(31,190,119,0.14); border-color: rgba(31,190,119,0.32); }
.price-lifetime { color: var(--accent-2); background: rgba(230,178,77,0.14); border-color: rgba(230,178,77,0.34); }
.price-subscription { color: #7db6ff; background: rgba(90,150,255,0.14); border-color: rgba(90,150,255,0.34); }
.product-card-foot {
  margin-top: auto; padding-top: 1rem; display: flex; align-items: center;
  justify-content: space-between; gap: 0.6rem;
}
.product-price { font-weight: 800; color: var(--ink); font-size: 0.98rem; }

/* Service cards + link */
.service-card { display: flex; flex-direction: column; }
.service-link {
  margin-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent-3); text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: gap 0.2s ease;
}
.service-link:hover { gap: 0.65rem; }

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  flex-wrap: wrap;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.6rem 1.8rem;
}
.cta-band h2 { margin: 0; font-size: clamp(1.25rem, 4vw, 1.7rem); }
.cta-band p { margin: 0.4rem 0 0; color: var(--ink-soft); max-width: 52ch; }
.cta-band-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Digital ads stats */
.ads-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
}
.ads-stat {
  text-align: center; padding: 1.4rem 1rem; border-radius: 1rem;
  background: rgba(16,26,23,0.7); border: 1px solid var(--line);
}
.ads-stat-n { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent-3); }
.ads-stat-l { display: block; margin-top: 0.25rem; color: var(--ink-soft); font-size: 0.88rem; }

/* Quote form */
.quote-wrap { max-width: 760px; margin: 0 auto; }
.quote-form {
  background: linear-gradient(158deg, #16211e, #111b18);
  border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.8rem;
}
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-form .field { margin-bottom: 1rem; }
.quote-form label { display: block; font-size: 0.84rem; color: var(--ink); font-weight: 600; margin-bottom: 0.4rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; background: #0c1311; border: 1px solid #2c3f3a; border-radius: 0.7rem;
  padding: 0.75rem 0.85rem; color: var(--ink); font-family: var(--font-primary); font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #6f857d; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,190,119,0.2);
}
.quote-form textarea { resize: vertical; }
.quote-form .btn { width: 100%; justify-content: center; gap: 0.5rem; margin-top: 0.4rem; }
.form-error {
  background: rgba(224,78,78,0.12); border: 1px solid rgba(224,78,78,0.4);
  color: #ffb4b4; border-radius: 0.6rem; padding: 0.7rem 0.9rem; font-size: 0.88rem; margin-bottom: 1rem;
}
.quote-success {
  text-align: center; padding: 2.4rem 1.5rem; max-width: 560px; margin: 0 auto;
  background: linear-gradient(158deg, #16211e, #111b18);
  border: 1px solid rgba(31,190,119,0.3); border-radius: 1.2rem;
}
.quote-success svg { color: var(--accent); }
.quote-success h2 { margin: 0.6rem 0 0.4rem; }
.quote-success p { color: var(--ink-soft); margin: 0 0 1.2rem; }

/* Contact tiles */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.contact-tile {
  display: flex; flex-direction: column; text-decoration: none;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.5rem;
  color: var(--ink); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.contact-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.contact-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.85rem; margin-bottom: 0.9rem;
  background: rgba(31,190,119,0.14); border: 1px solid rgba(31,190,119,0.3); color: var(--accent-3);
}
.contact-tile h3 { margin: 0 0 0.4rem; }
.contact-tile p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }
.contact-link { margin-top: auto; padding-top: 0.9rem; color: var(--accent-3); font-weight: 700; font-size: 0.9rem; }
.contact-link.muted { color: var(--ink-soft); font-weight: 500; }
.contact-tile-static { cursor: default; }

@media (max-width: 640px) {
  .quote-grid { grid-template-columns: 1fr; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band-actions { justify-content: center; }
}

/* Center the quote section heading above the centered form */
#quote .section-head { text-align: center; }

/* ============================ AJAX toasts / spinner / inline errors ========= */
.vs-toasts {
  position: fixed; top: 18px; right: 18px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.vs-toast {
  min-width: 200px; max-width: 340px; padding: 12px 16px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  background: rgba(12, 19, 17, 0.98); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateX(20px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.vs-toast.show { opacity: 1; transform: translateX(0); }
.vs-toast.is-ok { border-color: rgba(31, 190, 119, 0.5); }
.vs-toast.is-ok::before { content: "✓ "; color: var(--accent-3); }
.vs-toast.is-err { border-color: rgba(224, 78, 78, 0.5); color: #ffd9d9; }
.vs-toast.is-err::before { content: "⚠ "; }
.btn-spin {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: vsspin 0.6s linear infinite; vertical-align: -2px;
}
@keyframes vsspin { to { transform: rotate(360deg); } }
.field-error { color: #ff9c9c; font-size: 0.78rem; margin-top: 6px; }
.has-error {
  border-color: #e04e4e !important;
  box-shadow: 0 0 0 3px rgba(224, 78, 78, 0.18) !important;
}
@media (prefers-reduced-motion: reduce) { .btn-spin { animation: none; } }
