/* ==========================================================================
   Zajel (زاجِل) — Canonical Stylesheet (DESIGN.md + Dark Default + RTL/LTR)
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  /* Core 6 Foundation */
  --primary: #25D366;
  --primary-hover: #1EB856;
  --mint: #8CF580;
  --feather: #DCF8C6;
  --cream: #FAF9F5;
  --night: #062B14;
  --pine: #0D4221;
  --cta-ink: #062B14;
  --cta-ink-solid: #FFFFFF;

  /* Dark Mode Surfaces (Default) */
  --bg: #062B14;
  --bg-deep: #041E0E;
  --bg-alt: #09361A;
  --surface: #0D4221;
  --surface-2: #104F27;
  --surface-glass: rgba(13, 66, 33, 0.72);
  --line: #1B5E34;
  --line-strong: #2A854C;
  --header-bg: rgba(6, 43, 20, 0.80);

  /* Dark Typography Ink */
  --ink: #FAF9F5;
  --text: #FAF9F5;
  --muted: #A9E6C0;
  --accent: #25D366;
  --accent-text: #8CF580;

  /* Semantic Status Tokens (Dark) */
  --success-bg: rgba(37, 211, 102, 0.16);
  --success-border: rgba(37, 211, 102, 0.36);
  --success-ink: #DCF8C6;
  --info: #38BDF8;
  --info-bg: rgba(56, 189, 248, 0.14);
  --info-border: rgba(56, 189, 248, 0.35);
  --info-ink: #BAE6FD;
  --warning: #FBBF24;
  --warning-bg: rgba(245, 158, 11, 0.14);
  --warning-border: rgba(251, 191, 36, 0.35);
  --warning-ink: #FDE68A;
  --danger: #F87171;
  --danger-bg: rgba(239, 68, 68, 0.14);
  --danger-border: rgba(248, 113, 113, 0.35);
  --danger-ink: #FECACA;
  --gray-bg: rgba(229, 231, 235, 0.12);
  --gray-border: rgba(229, 231, 235, 0.22);
  --gray-ink: #D1D5DB;

  /* Atmosphere & Shadows */
  --lane: rgba(140, 245, 128, 0.12);
  --pulse: rgba(140, 245, 128, 0.72);
  --chat-paper: #073318;
  --wa-pattern: url("/assets/images/wa-pattern-dark.svg");
  --wa-in: #104F27;
  --wa-out: #176A36;
  --shadow: 0 26px 64px -26px rgba(0, 0, 0, 0.55), 0 8px 22px -12px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 12px 30px -16px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(140, 245, 128, 0.24), 0 18px 46px -18px rgba(37, 211, 102, 0.32);

  /* Typography & Layout Scale */
  --font-display: "Baloo Bhaijaan 2", "Vazirmatn", system-ui, -apple-system, sans-serif;
  --font-body: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --wrap: 1220px;
  --gutter: clamp(16px, 3.6vw, 32px);
  --section-py: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 70px;
}

:root[data-theme="light"] {
  --bg: #FAF9F5;
  --bg-deep: #EDF7E8;
  --bg-alt: #EDF7E8;
  --surface: #FFFFFF;
  --surface-2: #F1FAEE;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --line: #D3EBD9;
  --line-strong: #B9DEC3;
  --header-bg: rgba(250, 249, 245, 0.86);

  --ink: #0B4A23;
  --text: #0B4A23;
  --muted: #3F7C56;
  --accent: #25D366;
  --accent-text: #147D3B;

  --success-bg: #DCF8C6;
  --success-border: rgba(37, 211, 102, 0.35);
  --success-ink: #062B14;
  --info: #0284C7;
  --info-bg: #F0F9FF;
  --info-border: #BAE6FD;
  --info-ink: #075985;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --warning-ink: #92400E;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;
  --danger-ink: #991B1B;
  --gray-bg: #F3F4F6;
  --gray-border: #E5E7EB;
  --gray-ink: #4B5563;

  --lane: rgba(20, 125, 59, 0.11);
  --pulse: rgba(37, 211, 102, 0.72);
  --chat-paper: #EFEAE2;
  --wa-pattern: url("/assets/images/wa-pattern-light.svg");
  --wa-in: #FFFFFF;
  --wa-out: #DCF8C6;
  --shadow: 0 22px 54px -26px rgba(6, 43, 20, 0.18), 0 8px 20px -14px rgba(6, 43, 20, 0.12);
  --shadow-sm: 0 10px 26px -16px rgba(6, 43, 20, 0.14);
  --glow: 0 0 0 1px rgba(37, 211, 102, 0.32), 0 18px 42px -18px rgba(37, 211, 102, 0.24);
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.22s ease, color 0.22s ease;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 600;
  line-height: 1.28;
}

h3, .h3 {
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
  font-weight: 600;
  line-height: 1.35;
}

h4, .h4 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

strong, b {
  font-weight: 500;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  direction: ltr;
  unicode-bidi: isolate;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.icon--star {
  width: 15px;
  height: 15px;
  color: #FBBF24;
}

html[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  top: -80px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 16px;
}

.inline-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--accent-text) 45%, transparent);
}

.inline-link:hover {
  text-decoration-color: var(--accent-text);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-text);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--mint));
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .kicker {
  justify-content: center;
}

.lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ==========================================================================
   Buttons & Badges (DESIGN.md Soft Restraint)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

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

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

.btn--sm {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.83rem;
}

.btn--lg {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, #25D366 0%, #1EB856 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, 0.55);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #2BE06E 0%, #1EB856 100%);
  box-shadow: 0 14px 32px -10px rgba(37, 211, 102, 0.65);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--primary);
}

.btn--outline {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  background: var(--success-bg);
  border-color: var(--primary);
}

.btn--subtle {
  background: var(--success-bg);
  color: var(--accent-text);
  border-color: var(--success-border);
}

.btn--subtle:hover {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--accent-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid var(--success-border);
  background: var(--success-bg);
  color: var(--success-ink);
}

.badge--info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-ink); }
.badge--warn { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-ink); }
.badge--danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-ink); }
.badge--gray { background: var(--gray-bg); border-color: var(--gray-border); color: var(--gray-ink); }

/* ==========================================================================
   Header (Zajel website/ style + Single-Icon Sun/Moon Theme Toggle)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--primary));
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

html[dir="rtl"] .site-header::after {
  transform-origin: right center;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list > li > a,
.nav__group-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.22s var(--ease), opacity 0.24s var(--ease), transform 0.24s var(--ease), text-shadow 0.24s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .nav__list:has(> li > a:hover) > li > a:not(:hover) {
    opacity: 0.45;
  }
}

.nav__list > li > a:hover,
.nav__list > li > a:focus-visible {
  color: var(--mint);
  background: transparent;
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(140, 245, 128, 0.42);
}

:root[data-theme="light"] .nav__list > li > a:hover,
:root[data-theme="light"] .nav__list > li > a:focus-visible {
  color: var(--accent-text);
  text-shadow: none;
}

.nav__group-btn:hover,
.nav__group-btn[aria-expanded="true"] {
  color: var(--ink);
}

.nav__group {
  position: relative;
}

.nav__group-btn .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.nav__group-btn[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 196px;
  padding: 6px;
  margin: 0;
  list-style: none;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s var(--ease), visibility 0.18s;
}

.nav__group-btn[aria-expanded="true"] + .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.nav__sub a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Sliding Language Switch Pill (from website/) */
.switch {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
}

.switch__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 64px;
  height: 34px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  direction: ltr;
}

.switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1EB856);
  box-shadow: 0 4px 12px -4px rgba(37, 211, 102, 0.7);
  transition: transform 0.26s var(--ease);
}

html[lang="ar"] .switch--lang .switch__knob { transform: translateX(30px); }
html[lang="ar"] .switch--lang.is-switching .switch__knob { transform: translateX(0); }
html[lang="en"] .switch--lang .switch__knob { transform: translateX(0); }
html[lang="en"] .switch--lang.is-switching .switch__knob { transform: translateX(30px); }

.switch__opt {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}

html[lang="ar"] .switch__opt--ar,
html[lang="en"] .switch__opt--en {
  color: #FFFFFF;
}

/* Single-Icon Theme Toggle Button (Sun in Dark Mode, Moon in Light Mode) */
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--accent-text);
  display: inline-grid;
  place-items: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.2s var(--ease), color 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  transform: rotate(12deg);
}

:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon--moon { display: block; }

.nav-toggle {
  display: none;
}

.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ==========================================================================
   Flight Rail (Desktop Side Scroll Pigeon — from website/)
   ========================================================================== */
.flight-rail {
  position: fixed;
  top: 108px;
  bottom: 88px;
  inset-inline-end: 18px;
  width: 28px;
  z-index: 40;
  pointer-events: none;
  opacity: 0.78;
}

.flight-rail__track {
  position: absolute;
  inset-inline-start: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 10px);
}

.flight-rail__trail {
  position: absolute;
  inset-inline-start: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
  background: linear-gradient(to bottom, transparent, var(--mint) 35%, var(--primary));
}

.flight-rail__bird {
  position: absolute;
  inset-inline-start: 50%;
  top: -13px;
  width: 26px;
  height: 26px;
  margin-inline-start: -13px;
  display: grid;
  place-items: center;
  color: var(--primary);
  transform: translateY(var(--bird-y, 0px));
  filter: drop-shadow(0 4px 10px rgba(37, 211, 102, 0.55));
}

.flight-rail__bird .icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 1279px) {
  .flight-rail { display: none; }
}

/* ==========================================================================
   Floating Scroll-to-Top Button (Right side beside scrollbar, glass + neon glow)
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 55;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(140, 245, 128, 0.72);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--mint);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 16px -2px rgba(37, 211, 102, 0.42), inset 0 0 12px rgba(140, 245, 128, 0.14);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s var(--ease), border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.scroll-top .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
  filter: drop-shadow(0 0 6px rgba(140, 245, 128, 0.55));
}

:root[data-theme="light"] .scroll-top {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--primary);
  color: #147D3B;
  box-shadow: 0 8px 22px -6px rgba(37, 211, 102, 0.32), 0 0 0 1px rgba(37, 211, 102, 0.16);
}

:root[data-theme="light"] .scroll-top .icon {
  filter: none;
}

.scroll-top[hidden] { display: none; }

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

.scroll-top:hover {
  border-color: var(--mint);
  background: rgba(37, 211, 102, 0.22);
  color: var(--feather);
  box-shadow: 0 0 24px 0 rgba(37, 211, 102, 0.58), inset 0 0 14px rgba(140, 245, 128, 0.24);
  transform: translateY(-2px);
}

:root[data-theme="light"] .scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   Diagonal Lanes (Reversed -39° Ascent for Subpage Hero + Quiet for Pricing)
   ========================================================================== */
.lanes {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220vmax;
  height: 460px;
  transform: translate(-50%, -50%) rotate(-39deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.lanes--quiet {
  height: 560px;
  opacity: 0.72;
}

.lanes--ascent {
  left: 50%;
  top: 50%;
  width: 180vmax;
  height: clamp(200px, 23vw, 300px);
  transform: translate(-50%, -50%) rotate(-41deg);
  z-index: 0;
}

.lane {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent 0%, var(--lane) 28%, var(--lane) 72%, transparent 100%);
}

.lane::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pulse));
  transform: translateX(-120%);
  animation: lane-ascent var(--d, 6s) linear var(--delay, 0s) infinite;
}

@keyframes lane-ascent {
  from { transform: translateX(-120%); }
  to { transform: translateX(1200%); }
}

.is-paused .lane::after {
  animation-play-state: paused;
}

/* ==========================================================================
   Shared Fixed Three.js + HDR Bloom Stage (Hero #top + GSAP-Pinned #how)
   ========================================================================== */
.orb-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.25s ease;
}

.orb-stage.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.orb-stage__canvas {
  width: 100%;
  height: 100%;
}

/* 3D-Projected Circular Workflow Node Badges (exact WhatsLay style, Zajel tokens) */
.node-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.node-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--muted);
  opacity: 0;
  will-change: transform, opacity;
  transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.node-badge .icon {
  width: 22px;
  height: 22px;
}

.node-badge--core {
  width: 58px;
  height: 58px;
}

.node-badge[data-on="1"] {
  border-color: var(--mint);
  color: #FFFFFF;
  background: rgba(13, 66, 33, 0.92);
  box-shadow: 0 0 28px -2px rgba(140, 245, 128, 0.72), inset 0 0 18px -6px var(--primary);
}

:root[data-theme="light"] .node-badge[data-on="1"] {
  border-color: var(--primary);
  color: #FFFFFF;
  background: var(--primary);
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, 0.55);
}

.node-badge__lbl {
  position: absolute;
  top: calc(100% + 8px);
  white-space: nowrap;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   SECTION 1: Hero (#top) — Full-Bleed Three.js Bloom Visual + Zajel Copy
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-block: 16px 72px;
  background: transparent;
}

.hero__grid {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero__copy {
  position: relative;
  z-index: 4;
}

.hero__title {
  font-size: clamp(2.15rem, 4.4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 18px;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line > span {
  display: inline-block;
  animation: rise-in 0.72s var(--ease) both;
}

.hero__title .line:nth-child(2) > span {
  animation-delay: 0.1s;
  color: var(--accent-text);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.85;
  margin-bottom: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__facts .icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

/* Visual stage anchor + floating WhatsApp message bubbles around orb */
.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero__bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.float-msg {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--surface-glass);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  color: var(--ink);
  white-space: nowrap;
  animation: bob 5.5s ease-in-out infinite;
}

.float-msg__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.float-msg--1 { top: 8%; inset-inline-end: 4%; animation-delay: 0s; }
.float-msg--2 { top: 28%; inset-inline-start: 0; animation-delay: -1.6s; }
.float-msg--3 { bottom: 24%; inset-inline-end: 0; animation-delay: -3.1s; }
.float-msg--4 { bottom: 6%; inset-inline-start: 8%; animation-delay: -4.2s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero__scroll {
  position: absolute;
  inset-inline: 0;
  bottom: 22px;
  z-index: 4;
  display: flex;
  justify-content: center;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.18s ease;
}

.scroll-cue:hover {
  color: var(--accent-text);
}

.scroll-cue__mouse {
  width: 22px;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-cue__wheel {
  width: 3px;
  height: 7px;
  border-radius: 99px;
  background: var(--primary);
  animation: wheel-drop 1.8s ease-in-out infinite;
}

@keyframes wheel-drop {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   SECTION 2: How It Works (#how) — GSAP ScrollTrigger Pinned Full Viewport
   ========================================================================== */
.how {
  position: relative;
  z-index: 2;
  height: 100svh;
  min-height: 620px;
}

.how__sticky {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: clamp(18px, 2.5vw, 30px);
}

.how__head {
  text-align: center;
  position: relative;
  z-index: 4;
}

.how__head .kicker {
  justify-content: center;
}

.how__spacer {
  flex: 1;
  min-height: 170px;
}

.how__bottom {
  position: relative;
  z-index: 4;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.how__step {
  position: relative;
  padding: 18px;
  border-radius: 15px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0.58;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.how__step.is-done {
  opacity: 0.84;
  border-color: var(--line-strong);
}

.how__step.is-active {
  opacity: 1;
  transform: translateY(-4px);
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--glow);
}

.how__step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.how__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent-text);
  display: grid;
  place-items: center;
}

.how__step.is-active .how__icon {
  background: linear-gradient(135deg, #25D366, #1EB856);
  border-color: transparent;
  color: #FFFFFF;
}

.how__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  direction: ltr;
}

.how__step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.how__step p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.how__foot {
  display: flex;
  align-items: center;
  gap: 16px;
}

.how__dots {
  display: flex;
  gap: 6px;
}

.how__dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--line-strong);
  transition: width 0.24s var(--ease), background-color 0.24s ease;
}

.how__dot.is-done {
  background: var(--accent-text);
}

.how__dot.is-on {
  width: 24px;
  background: var(--primary);
}

.how__progress {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.how__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--mint));
  transform-origin: left center;
  transform: scaleX(0.08);
}

html[dir="rtl"] .how__bar {
  transform-origin: right center;
}

/* ==========================================================================
   Content Sections Wrapper (Solid background sitting cleanly above fixed stage)
   ========================================================================== */
.section {
  position: relative;
  z-index: 3;
  padding-block: var(--section-py);
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   SECTION 3: Features (#features) — Zajel Signature Bento + Live Mini-UIs
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento__card {
  grid-column: span 6;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.22s ease, transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.bento__card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.bento__card--wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 28px;
  padding: 28px;
}

.bento__card--quarter {
  grid-column: span 3;
}

.bento__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--accent-text);
  display: grid;
  place-items: center;
}

.bento__card p {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.75;
}

.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* COD Live Preview inside Hero Feature Card */
.cod-preview {
  padding: 18px;
  border-radius: 14px;
  background-color: var(--chat-paper);
  background-image: var(--wa-pattern);
  background-size: 220px 220px;
  background-repeat: repeat;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cod-preview__bubble {
  max-width: 92%;
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 0.84rem;
  line-height: 1.65;
}

.cod-preview__bubble--out {
  align-self: flex-start;
  background: var(--wa-out);
  color: var(--ink);
  border: 1px solid var(--line);
}

.cod-preview__bubble--in {
  align-self: flex-end;
  background: var(--wa-in);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
}

.cod-preview__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--success-border);
  font-size: 0.8rem;
}

/* Interactive Mini RTL/LTR Demo (inspired by website/) */
.mini-ui {
  padding: 16px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  margin-top: auto;
}

.mini-ui__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-ui__nav li {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.mini-ui__nav li.is-on {
  background: var(--success-bg);
  color: var(--ink);
  font-weight: 500;
}

.mini-ui__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}

.mini-ui__kpi {
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mini-ui__kpi small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.mini-ui__kpi strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

/* Split Dark / Light Preview Pair */
.theme-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.theme-chip {
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-chip--dark {
  background: #062B14;
  border-color: #1B5E34;
  color: #FAF9F5;
}

.theme-chip--light {
  background: #FAF9F5;
  border-color: #D3EBD9;
  color: #0B4A23;
}

.theme-chip__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
}

.theme-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25D366;
}

.theme-chip__line {
  height: 7px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.14;
}

.theme-chip__line--short {
  width: 65%;
  background: #25D366;
  opacity: 0.65;
}

/* ==========================================================================
   SECTION 4: Integrations (#integrations) — Hub-and-Spoke Energy Diagram
   ========================================================================== */
.integ-card {
  position: relative;
  padding: clamp(28px, 4.5vw, 52px) clamp(18px, 3.5vw, 40px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.integ-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(220px, 1fr) minmax(0, 290px);
  align-items: center;
  gap: 24px;
  min-height: 430px;
  margin-top: 28px;
}

.integ-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.integ-cable {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.35;
  opacity: 0.55;
}

.integ-pulse {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 56 680;
  filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.55));
  animation: integ-outward var(--dur, 5.8s) cubic-bezier(0.25, 0.1, 0.25, 1) var(--delay, 0s) infinite;
}

.integ-pulse--mint {
  stroke: var(--mint);
  filter: drop-shadow(0 0 5px rgba(140, 245, 128, 0.55));
}

.integ-dot {
  fill: var(--primary);
  opacity: 0.85;
}

@keyframes integ-outward {
  0% {
    stroke-dashoffset: 62;
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  84% {
    opacity: 0.9;
  }
  100% {
    stroke-dashoffset: var(--end, -440);
    opacity: 0;
  }
}

.integ-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.integ-col__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}

.integ-col--end,
.integ-col--start {
  align-items: stretch;
}

.integ-node {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 68px;
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s var(--ease);
}

.integ-node:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.integ-node__ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--success-bg);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.integ-node__ico .brand-logo {
  display: block;
  width: 19px;
  height: 19px;
  color: currentColor;
  fill: currentColor;
  stroke: none;
}

.integ-node__ico .brand-logo--wide {
  width: 24px;
  height: 14px;
}

.integ-node__ico--dual {
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.integ-node__ico--dual .brand-logo {
  width: 15px;
  height: 15px;
}

.integ-node small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

.integ-hub {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.mini-orb {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mini-orb canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mini-orb__logo {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #DCF8C6 100%);
  box-shadow: 0 0 0 5px rgba(140, 245, 128, 0.22), 0 0 28px rgba(37, 211, 102, 0.48);
  display: grid;
  place-items: center;
  color: #25D366;
}

.mini-orb__logo svg {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   SECTION 5: Try It Yourself (#try) — WhatsApp Phone + Behind-the-Scenes
   ========================================================================== */
.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px minmax(0, 0.86fr);
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.try-scenarios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.try-btn {
  width: 100%;
  text-align: start;
  padding: 13px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.try-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.try-btn.is-active {
  border-color: var(--primary);
  background: var(--success-bg);
  box-shadow: 0 0 0 1px var(--primary);
}

.try-btn__sub {
  display: block;
  font-size: 0.77rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.try-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Realistic Smartphone Frame */
.phone {
  width: 100%;
  max-width: 310px;
  margin-inline: auto;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, var(--line-strong), var(--surface));
  box-shadow: var(--shadow);
}

.phone__screen {
  border-radius: 25px;
  overflow: hidden;
  background: var(--chat-paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 455px;
}

.phone__notch {
  width: 96px;
  height: 18px;
  margin: 0 auto;
  border-radius: 0 0 12px 12px;
  background: #04180B;
}

.phone__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.phone__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #147D3B);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.phone__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.phone__status {
  font-size: 0.73rem;
  color: var(--accent-text);
}

.phone__chat {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--chat-paper);
  background-image: var(--wa-pattern);
  background-size: 200px 200px;
  background-repeat: repeat;
}

.wa-msg {
  max-width: 88%;
  padding: 9px 12px 6px;
  border-radius: 13px;
  font-size: 0.81rem;
  line-height: 1.62;
  animation: msg-pop 0.28s var(--ease) both;
}

@keyframes msg-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.wa-msg--store {
  align-self: flex-start;
  background: var(--wa-out);
  color: var(--ink);
  border: 1px solid var(--line);
  border-start-start-radius: 4px;
}

.wa-msg--customer {
  align-self: flex-end;
  background: var(--wa-in);
  color: var(--ink);
  border: 1px solid var(--line);
  border-start-end-radius: 4px;
}

.wa-msg__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
}

.wa-ticks {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.wa-code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.wa-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.wa-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: typing-dot 1s infinite ease-in-out;
}

.wa-typing span:nth-child(2) { animation-delay: 0.16s; }
.wa-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes typing-dot {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.45; }
  40% { transform: scale(1); opacity: 1; }
}

/* Behind-the-Scenes Telemetry Card */
.trace-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.trace-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.trace-card__title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
}

.trace-card__replay {
  border: none;
  background: transparent;
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 7px;
}

.trace-card__replay:hover {
  background: var(--surface-2);
}

.trace-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trace__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--muted);
  opacity: 0.42;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.trace__item.is-done {
  opacity: 1;
  color: var(--ink);
}

.trace__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.trace__dot .icon { width: 13px; height: 13px; }

.trace__item.is-done .trace__dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   SECTION 6: Use Cases / 6 Sectors (#use-cases) — Pill Tabs + 3D WebP Dioramas
   ========================================================================== */
.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pill-tab:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.pill-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #25D366, #1EB856);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 8px 20px -8px rgba(37, 211, 102, 0.65);
}

.sector-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(22px, 3.5vw, 44px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: fade-panel 0.32s var(--ease);
}

.sector-card[hidden] { display: none; }

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

.sector-card__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sector-card__desc {
  color: var(--muted);
  line-height: 1.8;
}

.sector-card__list {
  list-style: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sector-card__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
}

.sector-card__list .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.sector-card__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.sector-card__count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  direction: ltr;
}

.sector-card__art {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #062B14;
  aspect-ratio: 16 / 10;
}

.sector-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SECTION 7: Pricing (#pricing) — Zajel Quiet Lanes + WhatsLay Toggle + 3 Tiers
   ========================================================================== */
.pricing {
  position: relative;
  overflow: hidden;
}

.pricing__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

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

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  margin-top: 20px;
}

.billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.billing-toggle__btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

.billing-toggle__save {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
}

.plans-frame {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.plan-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.plan-card--featured {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.plan-card__badge {
  position: absolute;
  top: -13px;
  inset-inline-end: 20px;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366, #1EB856);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
}

.plan-card__name {
  font-size: 1.35rem;
  font-weight: 600;
}

.plan-card__label {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 3px;
}

.plan-card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.plan-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan-card__currency {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-card__amount {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

.plan-card__period {
  font-size: 0.84rem;
  color: var(--muted);
}

.plan-card__billing {
  font-size: 0.78rem;
  color: var(--accent-text);
  min-height: 1.4em;
}

.plan-card__list {
  list-style: none;
  margin: 6px 0 12px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--ink);
}

.plan-card__list .icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--primary);
}

.plan-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.plan-card__email {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.plan-card__email:hover {
  color: var(--accent-text);
}

/* Shared Included Features Strip below Plans (from website/ unified panel) */
.plans-included {
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
}

.plans-included__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 12px;
  text-align: center;
}

.plans-included__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plans-included__grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted);
}

.plans-included__grid .icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

/* ==========================================================================
   SECTION 8: FAQ (#faq) — Balanced Zajel + WhatsLay 2-Column Accordion
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.faq-sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.faq-sticky .btn {
  margin-top: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

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

.faq-item summary .icon {
  color: var(--muted);
  transition: transform 0.22s var(--ease), color 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item__body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.8;
}

/* ==========================================================================
   SECTION 9: Inside the Plugin (#screens) — 6 Live Interactive WP Admin Views
   ========================================================================== */
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
}

.screen-tab {
  padding: 8px 15px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.screen-tab:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.screen-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #25D366, #1EB856);
  color: #FFFFFF;
}

.screen-panel {
  animation: fade-panel 0.3s var(--ease);
}

.screen-panel[hidden] { display: none; }

.browser-window {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.browser-window--shot {
  max-width: 1120px;
  margin-inline: auto;
}

.screen-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
}

.screen-shot__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screen-shot__img--light {
  display: none;
}

:root[data-theme="light"] .screen-shot__img--dark {
  display: none;
}

:root[data-theme="light"] .screen-shot__img--light {
  display: block;
}

.browser-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.browser-window__dots {
  display: flex;
  gap: 6px;
}

.browser-window__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-window__url {
  margin-inline: auto;
  padding: 3px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  direction: ltr;
}

.wp-app {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: 410px;
}

.wp-app__side {
  padding: 16px 12px;
  background: var(--surface-2);
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wp-app__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
}

.wp-app__brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.wp-app__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wp-app__menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.81rem;
  color: var(--muted);
}

.wp-app__menu li.is-on {
  background: var(--success-bg);
  color: var(--ink);
  font-weight: 500;
}

.wp-app__pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  direction: ltr;
}

.wp-app__main {
  padding: 20px 22px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wp-app__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wp-app__head h4 {
  font-size: 1.08rem;
}

.wp-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wp-kpi {
  padding: 14px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.wp-kpi small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.wp-kpi strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.wp-kpi span {
  font-size: 0.73rem;
  color: var(--accent-text);
}

.wp-panel {
  padding: 15px 16px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.wp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.81rem;
}

.wp-table th,
.wp-table td {
  padding: 9px 10px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

.wp-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.wp-table tr:last-child td { border-bottom: none; }

.wp-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 6px;
}

.wp-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--mint));
  border-radius: 99px;
}

.wp-bar--w82 > i { width: 82%; }
.wp-bar--w64 > i { width: 64%; }
.wp-bar--w100 > i { width: 100%; }

.wp-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.wp-token {
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-text);
  direction: ltr;
}

.wp-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
}

.wp-switch-row:last-child { border-bottom: none; }

.wp-pill-on {
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: var(--primary);
  position: relative;
  flex-shrink: 0;
}

.wp-pill-on::after {
  content: "";
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #FFFFFF;
}

.wp-steps-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wp-step-box {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.wp-step-box.is-done {
  border-color: var(--primary);
  background: var(--success-bg);
}

.screen-caption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   SECTION 10: Reviews & Compatible Ecosystem (#proof) — Seamless 3-Copy Marquee
   ========================================================================== */
.marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  flex-shrink: 0;
}

.marquee--reviews {
  animation: marquee-forward 46s linear infinite;
}

.marquee--logos {
  animation: marquee-reverse 36s linear infinite;
}

.marquee-wrap:hover .marquee {
  animation-play-state: paused;
}

@keyframes marquee-forward {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.333333%, 0, 0); }
}

@keyframes marquee-reverse {
  0% { transform: translate3d(-33.333333%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.review-card {
  width: 315px;
  flex-shrink: 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  direction: rtl;
}

html[dir="ltr"] .review-card {
  direction: ltr;
}

.review-card__stars {
  display: flex;
  gap: 3px;
}

.review-card__quote {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.72;
  flex: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.review-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #147D3B);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-card__name {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.review-card__role {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.proof-subhead {
  text-align: center;
  margin: 34px 0 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.compat-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.compat-pill:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(37, 211, 102, 0.35);
}

.compat-pill .brand-logo {
  display: block;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  color: var(--primary);
  fill: currentColor;
  stroke: none;
  transition: color 0.2s ease;
}

.compat-pill .brand-logo--wide {
  width: 34px;
  height: 20px;
}

.compat-pill:hover .brand-logo {
  color: var(--mint);
}

:root[data-theme="light"] .compat-pill:hover .brand-logo {
  color: #147D3B;
}

/* ==========================================================================
   SECTION 11: Final CTA (#start) — Glowing Split Card with Mini-Orb
   ========================================================================== */
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--glow);
  overflow: hidden;
}

.cta-card__copy {
  padding: clamp(30px, 4.5vw, 54px);
  border-inline-end: 1px solid var(--line);
}

.cta-card__copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.cta-card__copy p {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 24px;
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.cta-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.cta-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-card__facts .icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.cta-card__visual {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(75% 75% at 50% 45%, rgba(37, 211, 102, 0.14), transparent 72%);
}

.cta-card__orb {
  width: 240px;
  height: 240px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 0.8rem;
  color: var(--ink);
}

.cta-pill__icons {
  display: inline-flex;
  gap: 5px;
  color: var(--primary);
}

/* ==========================================================================
   UNIFIED SUBPAGE HERO (Zajel Ascending Bird + Reversed -39° Lanes)
   ========================================================================== */
.subhero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.subhero__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background:
    radial-gradient(58% 72% at 18% 50%, rgba(37, 211, 102, 0.16), transparent 68%),
    radial-gradient(45% 55% at 88% 10%, rgba(140, 245, 128, 0.1), transparent 65%);
}

[dir="ltr"] .subhero__sky {
  background:
    radial-gradient(58% 72% at 82% 50%, rgba(37, 211, 102, 0.16), transparent 68%),
    radial-gradient(45% 55% at 12% 10%, rgba(140, 245, 128, 0.1), transparent 65%);
}

:root[data-theme="light"] .subhero__sky {
  background:
    radial-gradient(58% 72% at 18% 50%, rgba(37, 211, 102, 0.14), transparent 68%),
    radial-gradient(50% 60% at 88% 10%, rgba(220, 248, 198, 0.72), transparent 65%);
}

:root[data-theme="light"][dir="ltr"] .subhero__sky {
  background:
    radial-gradient(58% 72% at 82% 50%, rgba(37, 211, 102, 0.14), transparent 68%),
    radial-gradient(50% 60% at 12% 10%, rgba(220, 248, 198, 0.72), transparent 65%);
}

.subhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.subhero__copy {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.subhero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.subhero__kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
}

.subhero__title {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: 12px;
}

.subhero__lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.subhero__meta {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 500;
}

.subhero__emblem {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.emblem {
  position: relative;
  width: clamp(160px, 20vw, 228px);
  height: clamp(160px, 20vw, 228px);
  display: grid;
  place-items: center;
}

.emblem__halo {
  position: absolute;
  inset: -16%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 245, 128, 0.28) 0%, rgba(37, 211, 102, 0.12) 45%, transparent 72%);
  filter: blur(8px);
}

.emblem__mark {
  position: relative;
  z-index: 2;
  width: 82%;
  height: 82%;
  color: var(--primary);
  filter: drop-shadow(0 18px 34px rgba(37, 211, 102, 0.34));
  animation: ascent-float 5.2s ease-in-out infinite;
}

@keyframes ascent-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

/* ==========================================================================
   Subpage Body Layouts (Docs, Changelog, FAQ, Contact, Legal, 404)
   ========================================================================== */
.sub-content {
  padding-block: clamp(44px, 6vw, 76px);
}

.prose {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.prose-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.prose-card h2 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}

.prose-card h3 {
  font-size: 1.04rem;
  margin: 16px 0 8px;
}

.prose-card p,
.prose-card li {
  color: var(--muted);
  line-height: 1.85;
}

.prose-card p + p {
  margin-top: 10px;
}

.prose-card ul,
.prose-card ol {
  margin: 10px 0 0;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   Docs Quick Start — Sticky Guide Rail + Scroll-Lit Vertical Timeline
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

/* Sticky Progress & Requirements Rail */
.docs-rail {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(13, 66, 33, 0.42);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="light"] .docs-rail {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px -18px rgba(6, 43, 20, 0.14);
}

.docs-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.docs-rail__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.docs-rail__counter {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-text);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}

.docs-rail__bar {
  height: 3px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 16px;
}

.docs-rail__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--mint));
  transform-origin: right center;
  transform: scaleX(var(--tl-progress, 0.2));
  transition: transform 0.22s ease-out;
}

[dir="ltr"] .docs-rail__bar-fill {
  transform-origin: left center;
}

.docs-rail__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-rail__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.docs-rail__link:hover {
  color: var(--ink);
  background: rgba(37, 211, 102, 0.08);
}

.docs-rail__link.is-active {
  color: var(--ink);
  background: rgba(37, 211, 102, 0.14);
}

:root[data-theme="light"] .docs-rail__link.is-active {
  background: rgba(37, 211, 102, 0.12);
  color: #062B14;
}

.docs-rail__dot {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-deep);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: all 0.24s var(--ease);
}

.docs-rail__check {
  display: none;
  width: 13px;
  height: 13px;
}

.docs-rail__link.is-active .docs-rail__dot {
  background: var(--primary);
  border-color: var(--mint);
  color: #062B14;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.55);
}

.docs-rail__link.is-done:not(.is-active) .docs-rail__dot {
  background: var(--success-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.docs-rail__link.is-done:not(.is-active) .docs-rail__num {
  display: none;
}

.docs-rail__link.is-done:not(.is-active) .docs-rail__check {
  display: block;
}

/* Compact Requirements Matrix inside Rail */
.docs-specs {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.docs-specs__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.docs-specs__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.docs-specs__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.docs-specs__row dt {
  color: var(--muted);
}

.docs-specs__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-text);
}

/* Main Vertical Scroll-Lit Timeline */
.docs-main {
  min-width: 0;
}

.docs-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-timeline__spine {
  position: absolute;
  inset-inline-start: 23px;
  top: var(--spine-top, 24px);
  height: var(--spine-height, calc(100% - 160px));
  width: 2px;
  border-radius: 99px;
  background: var(--line-strong);
  pointer-events: none;
  z-index: 0;
}

.docs-timeline__beam {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  transform-origin: top center;
  transform: scaleY(var(--tl-progress, 0.08));
  background: linear-gradient(180deg, #8CF580 0%, #25D366 70%, #32E675 100%);
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.72);
  transition: transform 0.14s linear;
}

.docs-timeline__tip {
  position: absolute;
  left: 50%;
  top: calc(var(--tl-progress, 0.08) * 100%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #EBFCE0;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.28), 0 0 18px 3px #8CF580;
  transition: top 0.14s linear;
}

:root[data-theme="light"] .docs-timeline__tip {
  background: #25D366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.24), 0 0 12px rgba(20, 125, 59, 0.45);
}

.docs-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding-bottom: clamp(36px, 4.5vw, 52px);
  scroll-margin-top: 104px;
}

.docs-step:last-child {
  padding-bottom: 12px;
}

.docs-step__marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.docs-step__node {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1.5px solid var(--line-strong);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.docs-step__node > .icon {
  width: 21px;
  height: 21px;
}

.docs-step__node::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(140, 245, 128, 0.65);
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
}

.docs-step.is-active .docs-step__node {
  background: linear-gradient(135deg, #32E675, #25D366);
  border-color: #EBFCE0;
  color: #062B14;
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.16), 0 10px 26px -4px rgba(37, 211, 102, 0.56);
}

.docs-step.is-active .docs-step__node::before {
  animation: docs-node-pulse 2.6s ease-out infinite;
}

@keyframes docs-node-pulse {
  0% { opacity: 0.72; transform: scale(0.95); }
  75% { opacity: 0; transform: scale(1.42); }
  100% { opacity: 0; transform: scale(1.42); }
}

.docs-step.is-done:not(.is-active) .docs-step__node {
  background: rgba(37, 211, 102, 0.16);
  border-color: var(--primary);
  color: var(--mint);
  box-shadow: 0 0 18px -4px rgba(37, 211, 102, 0.36);
}

:root[data-theme="light"] .docs-step.is-done:not(.is-active) .docs-step__node {
  background: #E9FBE4;
  color: #0D6E33;
}

.docs-step__done-badge {
  position: absolute;
  bottom: -3px;
  inset-inline-end: -3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--primary);
  color: #062B14;
  border: 2px solid var(--bg);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}

.docs-step__done-badge .icon {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.docs-step.is-done:not(.is-active) .docs-step__done-badge {
  opacity: 1;
  transform: scale(1);
}

/* Open Editorial Step Content (No Heavy Outer Boxes) */
.docs-step__body {
  padding: 4px 0 clamp(26px, 3.2vw, 38px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.docs-step:last-child .docs-step__body {
  border-bottom: none;
  padding-bottom: 8px;
}

.js .docs-step:not(.is-revealed) .docs-step__body {
  opacity: 0;
  transform: translateY(20px);
}

.docs-step__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.docs-step__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.docs-step.is-active .docs-step__tag {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(140, 245, 128, 0.55);
  color: var(--mint);
}

:root[data-theme="light"] .docs-step.is-active .docs-step__tag {
  background: rgba(37, 211, 102, 0.14);
  border-color: var(--primary);
  color: #0D6E33;
}

.docs-step__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted);
}

.docs-step__time .icon {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.docs-step__title {
  font-size: clamp(1.24rem, 2.2vw, 1.52rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.docs-step__desc {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.85;
  max-width: 66ch;
}

/* Step 01: Interactive WP-Admin Breadcrumb Path */
.docs-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(13, 66, 33, 0.36);
  border: 1px solid var(--line);
}

:root[data-theme="light"] .docs-path {
  background: #F4F9F2;
}

.docs-path__item {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

:root[data-theme="light"] .docs-path__item {
  background: #FFFFFF;
}

.docs-path__item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.docs-path__item--accent {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(140, 245, 128, 0.5);
  color: var(--mint);
  font-weight: 600;
}

:root[data-theme="light"] .docs-path__item--accent {
  background: #DCF8C6;
  border-color: var(--primary);
  color: #062B14;
}

.docs-path__sep {
  color: var(--primary);
  font-weight: 600;
  opacity: 0.78;
}

.docs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}

.docs-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--muted);
}

.docs-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex: none;
}

/* Step 02: Secure Handshake Flow + Editorial Callout */
.docs-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.docs-flow__node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(13, 66, 33, 0.42);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink);
}

:root[data-theme="light"] .docs-flow__node {
  background: #FFFFFF;
}

.docs-flow__node .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.docs-flow__node--done {
  border-color: rgba(140, 245, 128, 0.48);
  background: rgba(37, 211, 102, 0.12);
}

.docs-flow__arrow {
  color: var(--primary);
  font-weight: 600;
  opacity: 0.75;
}

.docs-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border-inline-start: 3px solid var(--primary);
  background: rgba(37, 211, 102, 0.08);
}

.docs-callout .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: none;
  margin-top: 3px;
}

.docs-callout p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--muted);
}

/* Step 03: Dual Highlight Strip */
.docs-split-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.docs-pill-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(13, 66, 33, 0.34);
  border: 1px solid var(--line);
  transition: border-color 0.22s ease;
}

:root[data-theme="light"] .docs-pill-item {
  background: #FFFFFF;
}

.docs-pill-item:hover {
  border-color: var(--line-strong);
}

.docs-pill-item__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.docs-pill-item__icon .icon {
  width: 18px;
  height: 18px;
}

.docs-pill-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.docs-pill-item > div > span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Step 04: Clean Hairline Triggers Checklist */
.docs-checklist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.docs-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 4px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.docs-checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.docs-checklist li .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: none;
  margin-top: 4px;
}

.docs-checklist strong {
  color: var(--ink);
}

/* Step 05: Copyable Terminal Snippets */
.docs-snippet {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-deep);
}

.docs-snippet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: rgba(13, 66, 33, 0.45);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

:root[data-theme="light"] .docs-snippet {
  background: #F4F9F2;
}

:root[data-theme="light"] .docs-snippet__head {
  background: #EAF4E7;
  color: #1A3A24;
}

.docs-snippet__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.docs-snippet__copy .icon {
  width: 13px;
  height: 13px;
}

.docs-snippet__copy:hover,
.docs-snippet__copy.is-copied {
  border-color: var(--primary);
  background: rgba(37, 211, 102, 0.16);
  color: var(--accent-text);
}

.docs-snippet__code {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--accent-text);
  line-height: 1.65;
}

.docs-snippet__code code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
  font-size: inherit;
}

/* Bottom Concise Onboarding Support Strip */
.docs-support {
  margin-top: clamp(32px, 4.5vw, 48px);
  padding: clamp(22px, 3.2vw, 32px);
  border-radius: 22px;
  border: 1px solid rgba(140, 245, 128, 0.28);
  background:
    radial-gradient(60% 100% at 90% 50%, rgba(37, 211, 102, 0.16), transparent 72%),
    rgba(13, 66, 33, 0.48);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

:root[data-theme="light"] .docs-support {
  background:
    radial-gradient(60% 100% at 90% 50%, rgba(37, 211, 102, 0.16), transparent 72%),
    #FFFFFF;
  border-color: rgba(37, 211, 102, 0.4);
}

.docs-support__copy {
  max-width: 52ch;
}

.docs-support__badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 6px;
}

.docs-support__copy h2 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.docs-support__copy p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.docs-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-block {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-text);
  overflow-x: auto;
  direction: ltr;
}

/* ==========================================================================
   Changelog — 2-Container Hybrid + Version-to-Version Connected Timeline
   ========================================================================== */
.cl-rail-nav .docs-rail__link {
  padding: 9px 11px;
}

.cl-rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  flex: none;
}

.cl-rail-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  margin-inline-end: auto;
}

.cl-rail-info strong {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.2;
}

.cl-rail-info small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Version-to-Version Timeline Linking Each Release Container */
.cl-vtimeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.cl-vitem {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
  padding-bottom: 26px;
  scroll-margin-top: 104px;
}

.cl-vitem:last-child {
  padding-bottom: 0;
}

.cl-vitem__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cl-vitem__node {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin-top: 22px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1.5px solid var(--primary);
  color: var(--mint);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.12), 0 8px 20px -4px rgba(37, 211, 102, 0.42);
  flex: none;
}

.cl-vitem.is-latest .cl-vitem__node {
  background: linear-gradient(135deg, #32E675, #25D366);
  border-color: #EBFCE0;
  color: #062B14;
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.16), 0 10px 24px -4px rgba(37, 211, 102, 0.56);
}

.cl-vitem__node .icon {
  width: 17px;
  height: 17px;
}

/* Horizontal stem linking the timeline node directly to its release container */
.cl-vitem__node::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 100%;
  width: clamp(14px, 2vw, 22px);
  height: 1.5px;
  background: linear-gradient(90deg, rgba(140, 245, 128, 0.55), var(--line-strong));
  transform: translateY(-50%);
  pointer-events: none;
}

.cl-vitem__spine {
  width: 2px;
  flex: 1;
  margin-top: 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--line-strong) 55%, transparent 100%);
}

.cl-vitem:not(:last-child) .cl-vitem__spine {
  margin-bottom: -26px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--line-strong) 100%);
}

/* Release Card Container (Matches .docs-rail radius, glass surface, and border) */
.cl-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  background: rgba(13, 66, 33, 0.42);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.cl-vitem.is-latest .cl-card {
  border-color: rgba(140, 245, 128, 0.26);
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(37, 211, 102, 0.08);
}

:root[data-theme="light"] .cl-card {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px -18px rgba(6, 43, 20, 0.14);
}

:root[data-theme="light"] .cl-vitem.is-latest .cl-card {
  border-color: rgba(37, 211, 102, 0.42);
}

.cl-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cl-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cl-version {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.cl-version__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.cl-latest-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

.cl-kind {
  font-size: 0.78rem;
  color: var(--muted);
  padding-inline-start: 10px;
  border-inline-start: 1px solid var(--line-strong);
}

.cl-release__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.cl-release__head h2 {
  font-size: clamp(1.26rem, 2.1vw, 1.56rem);
  font-weight: 600;
  line-height: 1.32;
  margin-bottom: 8px;
}

.cl-release__head p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.78;
  max-width: 64ch;
}

.cl-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.cl-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(6, 43, 20, 0.45);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  direction: ltr;
  white-space: nowrap;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

:root[data-theme="light"] .cl-logo-chip {
  background: #F4F9F2;
}

.cl-logo-chip:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.cl-logo-chip .brand-logo {
  display: block;
  width: 15px;
  height: 15px;
  color: var(--primary);
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}

.cl-logo-chip .brand-logo--wide {
  width: 23px;
  height: 13px;
}

.cl-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.cl-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--muted);
  transition: opacity 0.2s ease;
}

.cl-list li[hidden] {
  display: none;
}

.cl-list li:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.cl-list strong {
  color: var(--ink);
  font-weight: 600;
}

.cl-pill {
  flex: none;
  min-width: 68px;
  text-align: center;
  margin-top: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 600;
}

.cl-pill--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-ink);
}

.cl-pill--sec {
  background: rgba(140, 245, 128, 0.14);
  border-color: rgba(140, 245, 128, 0.42);
  color: var(--mint);
}

:root[data-theme="light"] .cl-pill--sec {
  background: #E8F8E5;
  border-color: #86EFAC;
  color: #147D3B;
}

.cl-pill--neutral {
  background: var(--gray-bg);
  border-color: var(--gray-border);
  color: var(--gray-ink);
}

/* FAQ Search & Categories */
.faq-toolbar {
  max-width: 860px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-box {
  position: relative;
}

.search-box .icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  padding-inline-start: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

.faq-groups {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-group__title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--accent-text);
}

.faq-empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: span 2;
}

.field label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}

.field select {
  text-overflow: ellipsis;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

.form-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--success-border);
}

.form-result__summary {
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.84rem;
  white-space: pre-wrap;
  color: var(--ink);
}

.form-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

/* ==========================================================================
   Footer (Balanced: Brand + 3 Clean Columns)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 3;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 72px);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px;
}

.site-footer__about {
  margin-top: 14px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.site-footer__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.footer-chip:hover {
  border-color: var(--primary);
  color: var(--ink);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.site-footer__heading {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__col a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-footer__col a:hover {
  color: var(--accent-text);
}

.site-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

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

.version-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-text);
}

.footer-lang {
  font-weight: 500;
  color: var(--accent-text);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .bento__card--quarter { grid-column: span 6; }
  .plans-included__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__list > li > a,
  .nav__group-btn { width: 100%; justify-content: space-between; padding: 10px 12px; }
  .nav__list:has(> li > a:hover) > li > a:not(:hover) { opacity: 1; }
  .nav__list > li > a:hover,
  .nav__list > li > a:focus-visible {
    color: var(--accent-text);
    background: rgba(37, 211, 102, 0.08);
    transform: none;
    text-shadow: none;
  }
  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--surface-2);
    margin: 4px 0;
    display: none;
  }
  .nav__group-btn[aria-expanded="true"] + .nav__sub { display: block; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-grid; }

  .hero { height: auto; min-height: calc(100svh - var(--header-h)); padding-block: 16px 56px; }
  .hero__grid { height: auto; grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__actions, .hero__facts { justify-content: center; }
  .hero__visual { order: -1; align-self: auto; height: 34svh; min-height: 230px; }

  .how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--wide { grid-template-columns: 1fr; }
  .bento__card { grid-column: span 12; }
  .integ-diagram { grid-template-columns: 1fr; gap: 24px; }
  .integ-svg { display: none; }
  .integ-col--end, .integ-col--start { align-items: stretch; }
  .try-grid { grid-template-columns: 1fr; }
  .sector-card { grid-template-columns: 1fr; }
  .plans-frame { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-sticky { position: static; }
  .wp-app { grid-template-columns: 1fr; }
  .wp-app__side { border-inline-end: none; border-bottom: 1px solid var(--line); }
  .wp-app__menu { flex-direction: row; flex-wrap: wrap; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card__copy { border-inline-end: none; border-bottom: 1px solid var(--line); }
  .subhero__grid { grid-template-columns: 1fr; }
  .subhero__emblem { order: -1; justify-items: start; }
  .emblem { width: 132px; height: 132px; }
  .contact-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-rail { position: static; }
  .docs-rail__nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .docs-rail__link { padding: 6px 10px; font-size: 0.82rem; }
  .docs-specs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  .cl-vitem { grid-template-columns: 1fr; }
  .cl-vitem__rail { display: none; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero__scroll { display: none; }
  .how { height: 100svh; min-height: 540px; }
  .how__steps { display: block; }
  .how__step { display: none; }
  .how__step.is-active { display: block; opacity: 1; transform: none; }
  .node-badge { width: 40px; height: 40px; }
  .node-badge .icon { width: 17px; height: 17px; }
  .node-badge__lbl { display: none; }
  .mini-ui { grid-template-columns: 1fr; }
  .docs-step { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .docs-step__node { width: 38px; height: 38px; }
  .docs-step__node > .icon { width: 17px; height: 17px; }
  .docs-timeline__spine { inset-inline-start: 18px; }
  .docs-split-pills, .docs-specs__list, .wp-grid-2, .wp-steps-3, .form-grid { grid-template-columns: 1fr; }
  .cl-list li { flex-direction: column; gap: 6px; }
  .cl-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: span 1; }
  .plans-included__grid { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .how { min-height: auto; }
  .how__sticky { position: static; height: auto; }
  .how__spacer { min-height: 80px; }
  .how__step { opacity: 1; transform: none; }
  .js .docs-step:not(.is-revealed) .docs-step__body { opacity: 1; transform: none; }
  .marquee { width: auto; justify-content: center; flex-wrap: wrap; }
  .marquee__group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .marquee__group[aria-hidden="true"] { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
