/* Klik Studio — Brand Design System (#0B0F1A + #C6FF3D + Montserrat) */
:root {
  --bg: #0B0F1A;
  --bg-elev: #0F1524;
  --bg2: #0E1321;
  --card: rgba(18, 24, 40, 0.72);
  --card-solid: #121828;
  --card-hover: rgba(24, 32, 52, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --line-accent: rgba(198, 255, 61, 0.36);
  --text: #F4F6FA;
  --text-soft: #CFD6E6;
  --muted: #8C96AD;
  --muted-2: #626C84;
  --accent: #C6FF3D;
  --accent-ink: #0B0F1A;
  --accent-soft: rgba(198, 255, 61, 0.1);
  --amber: #fbbf24;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1140px;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, .page-main { flex: 1; }

::selection {
  background: rgba(198, 255, 61, 0.25);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Language switching: every translated element carries data-l */
[data-l] { display: none !important; }
html[data-lang="en"] [data-l="en"],
html[data-lang="ru"] [data-l="ru"],
html[data-lang="az"] [data-l="az"] { display: revert !important; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 26, 0.72);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav.scrolled {
  background: rgba(11, 15, 26, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.025em;
  color: var(--text);
  transition: opacity 0.2s var(--ease);
}
.logo:hover { opacity: 0.92; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(198, 255, 61, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.logo:hover .logo-mark {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(198, 255, 61, 0.26);
}

.logo-mark svg {
  width: 21px;
  height: 21px;
  transform: translate(0.5px, 0.5px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.langs {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.langs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.langs button:hover:not(.on) {
  color: var(--text);
}

.langs button.on {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* Mobile Menu Button & Drawer */
.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(11, 15, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-nav.open { display: block; }
.mobile-nav .wrap {
  display: flex;
  flex-direction: column;
  height: auto;
  padding-top: 10px;
  padding-bottom: 16px;
  gap: 4px;
  align-items: stretch;
}
.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .langs button { padding: 7px 9px; font-size: 11px; }
}

/* ==========================================================================
   TYPOGRAPHY & SHARED ELEMENTS
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 15%, #cfd6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

h3 {
  font-size: 17.5px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  color: var(--text);
}

.lead {
  font-size: clamp(16px, 1.9vw, 18.5px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
}

.muted { color: var(--muted); }

.grad {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--accent);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s var(--ease);
}

.btn:hover svg.arr { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 24px -8px rgba(198, 255, 61, 0.35);
}

.btn-primary:hover {
  background: #d2ff63;
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 12px 30px -6px rgba(198, 255, 61, 0.42);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1.5px);
}

/* Sections */
section {
  position: relative;
  padding: 104px 0;
}

.section-band {
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.6) 0%, rgba(13, 18, 30, 0.72) 50%, rgba(11, 15, 26, 0) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 48px;
}

.section-head .lead {
  margin-top: 4px;
}

/* Hairline subtle divider */
.beam-line {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 78%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), rgba(198, 255, 61, 0.42), rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}

/* ==========================================================================
   HERO (HOMEPAGE)
   ========================================================================== */
.hero {
  position: relative;
  padding: 100px 0 96px;
  overflow: hidden;
}

/* Architectural dot-grid with radial mask */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 22%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 68% at 50% 22%, #000 18%, transparent 78%);
  pointer-events: none;
  opacity: 0.48;
}

/* Restrained overhead ambient light */
.hero-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 920px;
  height: 480px;
  background:
    radial-gradient(ellipse 46% 52% at 50% 48%, rgba(198, 255, 61, 0.1), transparent 72%),
    radial-gradient(ellipse 64% 58% at 50% 52%, rgba(255, 255, 255, 0.035), transparent 74%);
  filter: blur(28px);
  pointer-events: none;
  animation: auraBreath 12s ease-in-out infinite alternate;
}

@keyframes auraBreath {
  0% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-49%) scale(1.04); }
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-top {
  max-width: 820px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(18, 24, 40, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(198, 255, 61, 0.65);
  flex-shrink: 0;
}

.pill-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(198, 255, 61, 0.5);
  animation: pulseRing 2.6s var(--ease) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.75); opacity: 0.85; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 {
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ==========================================================================
   HERO ARCHITECTURE VISUAL (Pure CSS + SVG, zero fake metrics)
   ========================================================================== */
.arch-stage {
  margin-top: 64px;
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 24, 40, 0.8) 0%, rgba(12, 16, 28, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 30px 72px -24px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.arch-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), rgba(198, 255, 61, 0.5), rgba(255, 255, 255, 0.16), transparent);
}

.arch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.arch-dots {
  display: flex;
  gap: 7px;
}

.arch-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.arch-bar-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.arch-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(198, 255, 61, 0.08);
  border: 1px solid rgba(198, 255, 61, 0.24);
}

.arch-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.arch-body {
  position: relative;
  padding: 36px 28px;
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  gap: 56px;
}

.arch-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.arch-node {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.arch-node:hover {
  border-color: rgba(198, 255, 61, 0.34);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.arch-node-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(198, 255, 61, 0.08);
  border: 1px solid rgba(198, 255, 61, 0.22);
  color: var(--accent);
}

.arch-node-ic.cyan {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
}

.arch-node-ic svg { width: 18px; height: 18px; }

.arch-node strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.arch-node span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.arch-hub {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(198, 255, 61, 0.08), rgba(16, 22, 36, 0.94) 72%);
  border: 1px solid rgba(198, 255, 61, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 36px -12px rgba(0, 0, 0, 0.65);
}

.arch-hub-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 22px -6px rgba(198, 255, 61, 0.3);
}
.arch-hub-mark svg {
  width: 31px;
  height: 31px;
  transform: translate(0.5px, 1px);
}

.arch-hub-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
}

.arch-hub-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* SVG Animated Signal Wires behind arch-body */
.arch-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wire-base {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  fill: none;
}

.wire-flow {
  stroke: url(#wireGrad);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 56 260;
  animation: wirePulse 3.6s linear infinite;
}

.wire-flow.d2 { animation-delay: -1.2s; }
.wire-flow.d3 { animation-delay: -2.4s; }

@keyframes wirePulse {
  from { stroke-dashoffset: 316; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 860px) {
  .arch-body {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 16px;
  }
  .arch-wires { display: none; }
  .arch-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
  }
  .arch-hub {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    padding: 16px 18px;
  }
  .arch-hub-mark { margin-bottom: 0; width: 44px; height: 44px; }
  .arch-hub-mark svg { width: 26px; height: 26px; }
}

/* ==========================================================================
   CARDS & SPOTLIGHT HOVER
   ========================================================================== */
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s var(--ease), transform 0.28s var(--ease), background 0.25s var(--ease), box-shadow 0.28s var(--ease);
  overflow: hidden;
}

.card > * { position: relative; z-index: 2; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* Cursor-tracked subtle spotlight card */
.spotlight {
  --mx: 50%;
  --my: 0%;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(198, 255, 61, 0.06), rgba(255, 255, 255, 0.025) 42%, transparent 72%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(198, 255, 61, 0.44), rgba(255, 255, 255, 0.18) 48%, transparent 74%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 3;
}

.spotlight:hover::before,
.spotlight:hover::after {
  opacity: 1;
}

.spotlight:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 20px 44px -22px rgba(0, 0, 0, 0.7);
}

/* Service Icon Well */
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(198, 255, 61, 0.08);
  border: 1px solid rgba(198, 255, 61, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.icon svg { width: 20px; height: 20px; }

.icon.cyan {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--text-soft);
}

.card:hover .icon {
  transform: scale(1.05);
  border-color: rgba(198, 255, 61, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 18px -6px rgba(198, 255, 61, 0.32);
}

.card:hover .icon.cyan {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.card-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
}
.card:hover .card-num { color: var(--muted); }

/* ==========================================================================
   APPS SHOWCASE (HOMEPAGE)
   ========================================================================== */
.apps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .apps { grid-template-columns: 1fr; } }

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px -8px var(--icon-shadow, rgba(0, 0, 0, 0.45));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.app-card:hover .app-icon {
  transform: scale(1.04) translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 36px -6px var(--icon-shadow, rgba(0, 0, 0, 0.55));
}

.app-icon svg { width: 34px; height: 34px; }

/* App icons preserve their own product colors */
.app-icon.tf {
  background: linear-gradient(145deg, #064e3b 0%, #0d9488 58%, #14b8a6 100%);
  --icon-shadow: rgba(13, 148, 136, 0.42);
}

.app-icon.acca {
  background: linear-gradient(145deg, #1e1b4b 0%, #3730a3 52%, #4f46e5 100%);
  --icon-shadow: rgba(79, 70, 229, 0.44);
}

.app-icon.ru {
  background: linear-gradient(145deg, #7f1d1d 0%, #be123c 52%, #f97316 100%);
  --icon-shadow: rgba(249, 115, 22, 0.42);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-soft);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge.dev {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.24);
  color: var(--amber);
}

.badge.live {
  background: rgba(198, 255, 61, 0.09);
  border-color: rgba(198, 255, 61, 0.28);
  color: var(--accent);
}

.app-card h3 { margin: 0; font-size: 19px; }

.app-card .more {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.app-card .more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.22s var(--ease);
}

a.app-card:hover .more svg { transform: translateX(4px); }

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.steps-wrap {
  position: relative;
}

.steps-rail {
  display: none;
}

@media (min-width: 961px) {
  .steps-rail {
    display: block;
    position: absolute;
    top: 44px;
    left: 44px;
    right: 44px;
    height: 1px;
    background: linear-gradient(90deg, rgba(198, 255, 61, 0.38), rgba(255, 255, 255, 0.14), rgba(198, 255, 61, 0.28));
    z-index: 0;
    pointer-events: none;
  }
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(198, 255, 61, 0.08);
  border: 1px solid rgba(198, 255, 61, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.step-card:hover .step-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.06);
}

/* ==========================================================================
   CONTACT CTA SECTION
   ========================================================================== */
.contact-panel {
  position: relative;
  border-radius: 26px;
  padding: 54px 44px;
  background:
    radial-gradient(ellipse 60% 48% at 50% 0%, rgba(198, 255, 61, 0.07), transparent 68%),
    linear-gradient(180deg, rgba(18, 24, 40, 0.84) 0%, rgba(12, 16, 28, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 32px 80px -28px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), rgba(198, 255, 61, 0.55), rgba(255, 255, 255, 0.16), transparent);
}

@media (max-width: 640px) {
  .contact-panel { padding: 34px 22px; border-radius: 22px; }
}

.contact-grid {
  margin-top: 34px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.doc .contact-card-link { text-decoration: none; }

.contact-card .icon {
  margin-bottom: 0;
  width: 44px;
  height: 44px;
}

.contact-card-info {
  min-width: 0;
  flex: 1;
}

.contact-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.contact-card .muted {
  display: block;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  flex-shrink: 0;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.copy-pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.copy-pill .copy-done { display: none; }
.copy-pill.copied {
  color: var(--accent);
  border-color: rgba(198, 255, 61, 0.4);
  background: rgba(198, 255, 61, 0.1);
}
.copy-pill.copied .copy-idle { display: none; }
.copy-pill.copied .copy-done { display: inline; }

/* ==========================================================================
   APP DETAIL PAGES (Trade Finance Academy, Meridian & ACCA Trainer)
   ========================================================================== */
.app-hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 54px 0 64px;
  border-bottom: 1px solid var(--line);
}

.app-hero-glow {
  position: absolute;
  top: -190px;
  left: 50%;
  transform: translateX(-50%);
  width: 860px;
  height: 440px;
  pointer-events: none;
  filter: blur(28px);
  background:
    radial-gradient(ellipse 48% 55% at 48% 50%, rgba(198, 255, 61, 0.07), transparent 72%),
    radial-gradient(ellipse 62% 54% at 52% 52%, rgba(255, 255, 255, 0.03), transparent 74%);
}

.app-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 26px;
}

.app-icon-lg {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 24px 56px -12px var(--icon-shadow, rgba(0, 0, 0, 0.5));
}

.app-icon-lg svg { width: 64px; height: 64px; }

.app-icon-lg.tf {
  background: linear-gradient(145deg, #064e3b 0%, #0d9488 55%, #14b8a6 100%);
  --icon-shadow: rgba(13, 148, 136, 0.42);
}

.app-icon-lg.acca {
  background: linear-gradient(145deg, #1e1b4b 0%, #3730a3 52%, #4f46e5 100%);
  --icon-shadow: rgba(79, 70, 229, 0.44);
}

.app-icon-lg.ru {
  background: linear-gradient(145deg, #7f1d1d 0%, #be123c 52%, #f97316 100%);
  --icon-shadow: rgba(249, 115, 22, 0.42);
}

.app-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.app-hero h1 {
  font-size: clamp(32px, 4.8vw, 50px);
  margin: 12px 0 14px;
}

.app-cta-strip {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(18, 24, 40, 0.86), rgba(12, 16, 28, 0.94));
}

.app-cta-strip p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15.5px;
  font-weight: 500;
}

.app-disclaimer {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 640px) {
  .app-hero { grid-template-columns: 1fr; gap: 22px; }
  .app-icon-lg { width: 96px; height: 96px; border-radius: 22px; }
  .app-icon-lg svg { width: 50px; height: 50px; }
}

/* ==========================================================================
   LONG-FORM DOC PAGES (PRIVACY & SUPPORT — CALM, NO DISTRACTING ANIMATIONS)
   ========================================================================== */
body.page-doc {
  background:
    radial-gradient(ellipse 70% 220px at 50% 0%, rgba(198, 255, 61, 0.045), transparent 72%),
    var(--bg);
}

.crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--muted);
  transition: color 0.15s;
}
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--muted-2); }

.doc {
  max-width: 760px;
  padding: 56px 0 96px;
}

.doc h1 {
  font-size: clamp(30px, 4.8vw, 44px);
  line-height: 1.1;
  margin-bottom: 12px;
  background: none;
  color: var(--text);
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.doc-notice {
  background: rgba(198, 255, 61, 0.06);
  border: 1px solid rgba(198, 255, 61, 0.22);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.doc h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.doc p, .doc li {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.72;
  margin-bottom: 12px;
}

.doc strong { color: var(--text); font-weight: 600; }

.doc ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.doc li::marker { color: var(--accent); }

.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(198, 255, 61, 0.35);
  text-underline-offset: 3px;
}

.doc a:hover {
  text-decoration-color: var(--accent);
}

.doc .crumbs a,
.doc a.support-email {
  text-decoration: none;
}

.support-email {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin: 0 0 40px;
  border-radius: 16px;
  background: var(--card-solid);
  border: 1px solid var(--line-strong);
  transition: border-color 0.18s;
}

.support-email:hover {
  border-color: rgba(198, 255, 61, 0.42);
}

.support-email .icon { margin-bottom: 0; }
.support-email strong { display: block; color: var(--text); font-size: 15px; }
.support-email .muted { color: var(--accent); font-size: 14px; }

/* Clean FAQ Accordions */
.doc details {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.doc details[open] {
  border-color: rgba(198, 255, 61, 0.3);
}

.doc summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc summary::-webkit-details-marker { display: none; }

.doc summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
}

.doc details[open] summary::after {
  content: "−";
  color: var(--accent);
}

.doc details p {
  padding: 0 22px 18px;
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 13.5px;
  background: rgba(11, 15, 26, 0.75);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer a { transition: color 0.18s; }
.footer a:hover { color: var(--text); }

/* ==========================================================================
   SCROLL REVEAL (Progressive Enhancement — only when html.js-fx is set)
   ========================================================================== */
html.js-fx body:not(.page-doc) .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--d, 0ms);
}

html.js-fx body:not(.page-doc) .reveal.in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   MOBILE & REDUCED MOTION
   ========================================================================== */
@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding: 68px 0 72px; }
  .section-head { margin-bottom: 32px; }
  .card { padding: 22px; }
  .doc { padding: 40px 0 72px; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .wire-flow { stroke-dasharray: none; }
  .pill-dot::after { display: none; }
  html.js-fx body .reveal { opacity: 1 !important; transform: none !important; }
}

/* WhatsApp: contact card icon + dark branded floating button (index.html) */
.contact-card .icon.wa {
  color: var(--accent);
  background: rgba(198, 255, 61, 0.08);
  border-color: rgba(198, 255, 61, 0.24);
}

.card:hover .icon.wa {
  border-color: rgba(198, 255, 61, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 18px -6px rgba(198, 255, 61, 0.34);
}

.wa-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--card-solid);
  border: 1px solid rgba(198, 255, 61, 0.32);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-fab svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.wa-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 255, 61, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.58),
    0 0 20px -8px rgba(198, 255, 61, 0.28);
}
.wa-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 640px) {
  .wa-fab { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-fab-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-fab:hover { transition: none; transform: none; }
}

/* ==========================================================================
   DEMO CHAT SECTION (#demo — Task 003, rebranded Task 005)
   ========================================================================== */
#demo {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 56% 48% at 74% 48%, rgba(198, 255, 61, 0.045), transparent 70%),
    linear-gradient(180deg, rgba(11, 15, 26, 0) 0%, rgba(15, 21, 36, 0.55) 100%);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 396px);
  gap: 56px;
  align-items: center;
}

.demo-copy .lead {
  margin-top: 6px;
  margin-bottom: 34px;
}

.demo-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.demo-point:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--card-hover);
}

.demo-point .icon {
  margin-bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.demo-point h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.demo-point p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.demo-stage {
  position: relative;
  width: 100%;
  max-width: 396px;
  margin: 0 auto;
}

.demo-glow {
  position: absolute;
  inset: 32px -12px -8px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(198, 255, 61, 0.08), transparent 72%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.demo-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(198, 255, 61, 0.09);
  border: 1px solid rgba(198, 255, 61, 0.28);
  color: var(--accent);
}

.demo-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.demo-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.demo-replay svg {
  width: 13px;
  height: 13px;
}

.demo-replay:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.demo-phone {
  position: relative;
  z-index: 2;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(180deg, #171F33 0%, #0E1321 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 32px 72px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.demo-notch {
  width: 82px;
  height: 20px;
  border-radius: 999px;
  background: #070A12;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto 10px;
}

.demo-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 18px 18px 0 0;
}

.demo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.demo-chat-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.demo-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.demo-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.demo-chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  background: rgba(9, 12, 21, 0.88);
}

.demo-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.demo-msg.user {
  align-self: flex-end;
  align-items: flex-end;
}

.demo-msg.bot {
  align-self: flex-start;
  align-items: flex-start;
}

.demo-bubble {
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.44;
  border-radius: 15px;
}

.demo-msg.user .demo-bubble {
  background: #1E2740;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--text);
  border-bottom-right-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demo-msg.bot .demo-bubble {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  border-bottom-left-radius: 5px;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.demo-chip {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--muted);
}

.demo-chip.active {
  background: rgba(198, 255, 61, 0.12);
  border-color: rgba(198, 255, 61, 0.45);
  color: var(--accent);
}

.demo-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  margin-top: 3px;
  padding: 0 3px;
}

.demo-chat-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 0 0 22px 22px;
}

.demo-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.demo-send svg {
  width: 14px;
  height: 14px;
}

.demo-homebar {
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 10px auto 2px;
}

/* Progressive sequential message animation */
html.js-fx body:not(.page-doc) .demo-msg {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

html.js-fx body:not(.page-doc) .demo-msg.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 420px) {
  .demo-phone {
    padding: 9px;
    border-radius: 28px;
  }
  .demo-bubble {
    font-size: 12px;
    padding: 7px 11px;
  }
  .demo-point {
    padding: 15px 16px;
    gap: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js-fx body .demo-msg {
    opacity: 1 !important;
    transform: none !important;
  }
  .demo-replay { display: none; }
}

/* Настоящие иконки приложений (assets/apps/*.png) */
.app-icon, .app-icon-lg { overflow: hidden; padding: 0; background: none !important; }
.app-icon img, .app-icon-lg img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* ==========================================================================
   PRICING (#pricing)
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.price-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; overflow: visible; }
.price-card h3 { font-size: 21px; margin: 0; }
.price-card .price-sub { margin-top: 4px; font-size: 14px; }
.price-card.featured {
  border-color: var(--line-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px var(--line-accent), 0 18px 48px -22px rgba(198, 255, 61, 0.35);
}
.price-flag {
  position: absolute; top: -12px; right: 22px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  white-space: nowrap;
}
.price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.price-old { color: var(--muted); font-size: 18px; text-decoration-thickness: 1.5px; }
.price-new { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.price-card.featured .price-new { color: var(--accent); }
.price-card .price-time { margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-soft); }
.price-list { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text-soft); }
.price-list svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.price-card .price-note { margin-top: 16px; font-size: 13px; line-height: 1.5; }
.price-cta { margin-top: auto; padding-top: 24px; }
/* data-l buttons: the language rule reverts display to inline, keep them flex */
html[data-lang="en"] .price-cta .btn[data-l="en"],
html[data-lang="ru"] .price-cta .btn[data-l="ru"],
html[data-lang="az"] .price-cta .btn[data-l="az"] { display: flex !important; width: 100%; }
.price-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.price-extras-label { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-right: 4px; }
.price-chip {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); color: var(--text-soft);
}
.price-terms { margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.price-terms.small { margin-top: 6px; font-size: 12px; }
@media (max-width: 960px) {
  .price-grid.g3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 960px) { .price-sub-spacer { display: none; } }

/* Ссылка на демо-сайт в карточке «Сайт» */
.price-list li.price-demo { padding-left: 0; }
.price-list li.price-demo a { color: var(--accent); font-weight: 600; }
.price-list li.price-demo a:hover { text-decoration: underline; }
