/* ============================================================
   TAP Platform — Design System v2
   "Precision instrument": deep navy surfaces, hairline grids,
   spectral blue accent, monospace technical labels.
   ============================================================ */

/* ---------------- 1. Tokens ---------------- */

:root {
  /* Ink & paper */
  --ink: #070a14;
  --ink-2: #0b1020;
  --ink-3: #141b30;
  --paper: #ffffff;
  --paper-2: #fafbff;
  --surface: #f3f6fd;

  /* Lines & text */
  --line: #e4e9f4;
  --line-2: #d3dbec;
  --muted: #5b657b;
  --muted-2: #8a93a8;

  /* Brand (matches the logo pyramid) */
  --brand: #2f5bff;
  --brand-2: #1e44d8;
  --brand-soft: #e9efff;
  --brand-ring: rgba(47, 91, 255, 0.16);

  /* Support */
  --jade: #0bbf9f;
  --jade-soft: #e4faf5;
  --amber: #e08a1e;
  --amber-soft: #fff4e2;
  --danger: #e5484d;
  --danger-soft: #ffeded;
  --violet: #7c5cff;
  --violet-soft: #f0ebff;
  --sky: #0d92d8;
  --sky-soft: #e6f5fe;

  /* Geometry */
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 22px;
  --radius-xl: 30px;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 4.5rem;

  /* Type */
  --font: "Inter", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-rtl: "Vazirmatn", "Inter", system-ui, Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Elevation */
  --shadow-s: 0 1px 2px rgba(7, 10, 20, 0.05);
  --shadow-m: 0 24px 48px -32px rgba(7, 10, 20, 0.4);
  --shadow-l: 0 48px 96px -48px rgba(7, 10, 20, 0.5);
}

/* ---------------- 2. Reset & base ---------------- */

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  counter-reset: tap-section;
}

[dir="rtl"] body {
  font-family: var(--font-rtl);
  letter-spacing: 0;
}

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

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

@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;
  }
}

/* ---------------- 3. Shared layout ---------------- */

.section-inner,
.hero-inner,
.nav-inner,
.footer-inner,
.footer-bottom-inner,
.page-hero-inner,
.trust-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  counter-increment: tap-section;
}

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

.section-dark {
  background: var(--ink);
  color: #fff;
  border-block: 0;
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 58% at 50% -8%, rgba(47, 91, 255, 0.16), transparent 70%),
    radial-gradient(46% 42% at 92% 108%, rgba(11, 191, 159, 0.08), transparent 72%);
  pointer-events: none;
}

.section-dark > * {
  position: relative;
}

/* Section headers */

.section-header {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-tag,
.cat-badge {
  display: inline-flex;
  align-items: center;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.section-header .section-tag::before,
.section-header .cat-badge::before {
  content: counter(tap-section, decimal-leading-zero);
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding-inline-end: 0.6rem;
  margin-inline-end: 0.6rem;
  border-inline-end: 1px solid currentColor;
  opacity: 0.5;
}

.section-title {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}

[dir="rtl"] .section-title {
  letter-spacing: 0;
  line-height: 1.3;
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 58ch;
}

.section-dark .section-title {
  color: #fff;
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.58);
}

.section-dark .section-tag {
  color: #8fadff;
}

/* Category badges */

.cat-badge {
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid transparent;
  margin-bottom: 1.1rem;
}

[dir="rtl"] .cat-badge,
[dir="rtl"] .section-tag {
  letter-spacing: 0;
}

.cat-badge-ai,
.cat-badge-analytics {
  color: var(--violet);
  background: var(--violet-soft);
}

.cat-badge-risk {
  color: var(--danger);
  background: var(--danger-soft);
}

.cat-badge-xbrl {
  color: var(--brand);
  background: var(--brand-soft);
}

.cat-badge-devops {
  color: #059a80;
  background: var(--jade-soft);
}

.cat-badge-enterprise {
  color: var(--amber);
  background: var(--amber-soft);
}

.cat-badge-dev {
  color: var(--sky);
  background: var(--sky-soft);
}

.section-dark .cat-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #8fadff;
}

/* ---------------- 4. Buttons ---------------- */

.btn-premium,
.btn-secondary-premium,
.btn-white,
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.55rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-premium {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #edf2ff);
  color: var(--ink);
  box-shadow:
    0 22px 44px -24px rgba(47, 91, 255, 0.95),
    inset 0 1px 0 #ffffff;
}

/* A single pass of light on hover — the only motion the primary CTA needs. */
.btn-premium::after {
  content: "";
  position: absolute;
  inset: -60% -80%;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, 0.65) 50%, transparent 56%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease-out);
  pointer-events: none;
}

.btn-premium:hover::after {
  transform: translateX(120%);
}

.btn-premium:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 26px 50px -20px rgba(47, 91, 255, 0.85);
}

.btn-premium i,
.btn-secondary-premium i {
  font-size: 0.8em;
}

.btn-secondary-premium {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

.btn-secondary-premium:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost-white {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

/* ---------------- 5. Skip link ---------------- */

.skip-link {
  position: fixed;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 10000;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------------- 6. Navigation ---------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -28px rgba(7, 10, 20, 0.6);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 1.65rem;
  width: auto;
}

.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Language switcher */

.lang-dropdown-wrapper {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.35rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-toggle:hover {
  border-color: var(--line-2);
  background: var(--surface);
}

.lang-toggle i:first-child {
  font-size: 0.72rem;
  color: var(--muted);
}

.lang-toggle i:last-child {
  font-size: 0.55rem;
  color: var(--muted-2);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 10rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-l);
  z-index: 60;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  font-size: 0.86rem;
  color: var(--ink);
  text-align: start;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.lang-dropdown-item .lang-name {
  font-family: var(--font);
  font-size: 0.86rem;
  letter-spacing: 0;
  color: inherit;
}

.lang-dropdown-item .lang-code {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.lang-dropdown-item:hover {
  background: var(--surface);
}

.lang-dropdown-item.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.lang-dropdown-item.active .lang-code {
  color: var(--brand);
}

/* Nav CTA */

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.35rem;
  padding-inline: 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.nav-cta i {
  font-size: 0.7em;
  transition: transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(47, 91, 255, 0.9);
}

.nav-cta:hover i {
  transform: translateX(2px);
}

[dir="rtl"] .nav-cta:hover i {
  transform: translateX(-2px);
}

/* Hamburger */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -5px;
}

.nav-toggle-bar::after {
  top: 5px;
}

/* ---------------- 7. Mobile drawer ---------------- */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(7, 10, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  z-index: 1200;
  width: min(26rem, 90vw);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--ink);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  overscroll-behavior: contain;
}

[dir="rtl"] .nav-drawer {
  transform: translateX(-100%);
}

.nav-drawer.open,
[dir="rtl"] .nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer-header img {
  height: 1.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav-drawer-close {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-drawer-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: 1.25rem;
  overflow-y: auto;
  counter-reset: drawer-link;
}

.nav-drawer-link {
  counter-increment: drawer-link;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s var(--ease);
}

.nav-drawer-link::before {
  content: counter(drawer-link, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.32);
  order: -1;
}

[dir="rtl"] .nav-drawer-link::before {
  order: -1;
}

.nav-drawer-link:hover,
.nav-drawer-link.active {
  color: #fff;
}

.nav-drawer-link i {
  margin-inline-start: auto;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-drawer-link:hover i {
  color: #8fadff;
  transform: translateX(3px);
}

[dir="rtl"] .nav-drawer-link:hover i {
  transform: translateX(-3px);
}

.nav-drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s var(--ease);
}

.nav-drawer-cta:hover {
  background: var(--brand-2);
}

/* ---------------- 8. Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-top: calc(var(--nav-h) + clamp(3.25rem, 6.5vw, 5.5rem));
  padding-bottom: clamp(4.5rem, 7.5vw, 6.5rem);
  isolation: isolate;
  background:
    radial-gradient(120% 92% at 50% -34%, #111d40 0%, transparent 58%),
    linear-gradient(180deg, #05070f 0%, #070a14 52%, #060a16 100%);
}

/* A slow field of light behind the copy. No pattern, so nothing competes with the headline. */
.hero::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  z-index: -2;
  background:
    radial-gradient(38% 44% at 74% 18%, rgba(47, 91, 255, 0.34), transparent 64%),
    radial-gradient(32% 38% at 92% 64%, rgba(124, 92, 255, 0.17), transparent 68%),
    radial-gradient(36% 40% at 12% 84%, rgba(11, 191, 159, 0.12), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* The hero dissolves into the page instead of ending on a hard seam. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 17, 0.92));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(3rem, 5.5vw, 5rem);
}

.hero-content {
  max-width: 40rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.35rem, 2.6vw, 1.9rem);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.trust-badge i {
  font-size: 0.72rem;
  color: #8fadff;
}

.trust-badge-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(11, 191, 159, 0.16);
}

.hero-headline {
  font-size: clamp(2.75rem, 5.1vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 30px 70px rgba(3, 6, 14, 0.5);
}

[dir="rtl"] .hero-headline {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  letter-spacing: 0;
  line-height: 1.26;
}

.hero-headline em {
  font-style: normal;
  background-image: linear-gradient(96deg, #a8beff 0%, #5b82ff 42%, #37e0c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[dir="rtl"] .hero-headline em {
  background-image: linear-gradient(264deg, #a8beff 0%, #5b82ff 42%, #37e0c2 100%);
}

.hero-headline-sub {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1.02rem, 1.55vw, 1.3rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.48);
}

[dir="rtl"] .hero-headline-sub {
  letter-spacing: 0;
}

.hero-description {
  margin-top: 1.2rem;
  max-width: 33rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

/* Metrics and the compliance line sit in one glass plate: proof, not four floating numbers. */
.hero-proof {
  margin-top: clamp(2rem, 3.2vw, 2.6rem);
  padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-l);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 36px 70px -46px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
}

.hero-metric {
  flex: 1 1 0;
  min-width: 6rem;
  padding-inline-end: 1.25rem;
  margin-inline-end: 1.25rem;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-metric:last-child {
  border-inline-end: 0;
  margin-inline-end: 0;
  padding-inline-end: 0;
}

.hero-metric-value {
  font-family: var(--mono);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1.15;
}

[dir="rtl"] .hero-metric-value {
  font-family: var(--font-rtl);
  letter-spacing: 0;
}

.metric-accent {
  background-image: linear-gradient(100deg, #7fa3ff, #37e0c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-metric-label {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.compliance-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.52);
}

.compliance-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #8fadff;
  font-size: 0.72rem;
}

.compliance-text strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* Hero visual — product console */

.hero-visual {
  position: relative;
  min-width: 0;
}

/* Pool of light under the product panel, so it reads as lifted off the page. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -16% -12% -20%;
  z-index: 0;
  background: radial-gradient(46% 48% at 56% 44%, rgba(47, 91, 255, 0.34), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
}

.console {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 33rem;
  margin-inline: auto;
  border-radius: var(--radius-l);
  background: linear-gradient(158deg, rgba(24, 32, 58, 0.94), rgba(9, 13, 26, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 60px 120px -50px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

/* Hairline gradient rim: the luxury cue is the edge, not a shadow. */
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(168, 190, 255, 0.5), rgba(255, 255, 255, 0.07) 40%, rgba(55, 224, 194, 0.26) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

@media (hover: hover) {
  .console:hover {
    transform: translateY(-4px);
    box-shadow:
      0 70px 130px -50px rgba(0, 0, 0, 0.95),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

.console::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(47, 91, 255, 0.22), transparent 58%);
  pointer-events: none;
}

.console-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 2.7rem;
  padding-inline: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.console-dots {
  display: flex;
  gap: 0.32rem;
}

.console-dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.console-dots i:first-child {
  background: rgba(255, 255, 255, 0.3);
}

.console-path {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.34);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.console-live .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(11, 191, 159, 0.16);
  animation: tap-pulse 2.4s ease-in-out infinite;
}

@keyframes tap-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.console-body {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.35rem 1.25rem;
}

.console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.console-eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  margin-bottom: 0.3rem;
}

.console-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.console-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(11, 191, 159, 0.12);
  border: 1px solid rgba(11, 191, 159, 0.28);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4fe3c6;
  white-space: nowrap;
}

.console-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.console-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cr-icon {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  font-size: 0.56rem;
}

.cr-icon.ok {
  background: rgba(11, 191, 159, 0.14);
  color: #4fe3c6;
}

.cr-icon.pending {
  background: rgba(224, 138, 30, 0.14);
  color: #f0b25f;
}

.cr-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-meta {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.cr-state {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.cr-state.ok {
  color: #4fe3c6;
}

.cr-state.pending {
  color: #f0b25f;
}

.console-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.console-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

.console-chip i {
  font-size: 0.62rem;
  color: #8fadff;
}

.hero-note {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 20, 40, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 40px -24px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
  animation: tap-float 7s ease-in-out infinite;
}

.hero-note i {
  font-size: 0.72rem;
  color: #4fe3c6;
}

.hero-note-a {
  top: -2.2rem;
  inset-inline-start: -1.5rem;
}

/* Hangs off the panel's bottom edge so it never covers the console's own chips. */
.hero-note-b {
  bottom: -1.3rem;
  inset-inline-end: 0.75rem;
  animation-delay: -3.5s;
}

@keyframes tap-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------------- 9. Trust stats strip ---------------- */

.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: clamp(-4.5rem, -6vw, -3.25rem);
}

.trust-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  padding: 1.6rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

.trust-stat {
  text-align: center;
  padding: 0.35rem 1rem;
}

.trust-stat + .trust-stat {
  border-inline-start: 1px solid var(--line);
}

.trust-stat-value {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}

[dir="rtl"] .trust-stat-value {
  font-family: var(--font-rtl);
  letter-spacing: 0;
}

.trust-stat-label {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------- 10. Solutions ---------------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  counter-reset: sol;
}

.solution-card {
  position: relative;
  counter-increment: sol;
  padding: 2.4rem 2rem 2rem;
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.solution-card:nth-child(3n) {
  border-inline-end: 0;
}

.solution-card::before {
  content: counter(sol, decimal-leading-zero);
  position: absolute;
  top: 2.55rem;
  inset-inline-end: 2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  transition: color 0.35s var(--ease);
}

.solution-card::after {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: inset-inline-start;
  transition: transform 0.45s var(--ease);
}

.solution-card:hover {
  background: var(--paper-2);
}

.solution-card:hover::after {
  transform: scaleX(1);
}

.solution-card:hover::before {
  color: var(--brand);
}

.solution-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.solution-card:hover .solution-icon {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.solution-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

[dir="rtl"] .solution-card h3 {
  letter-spacing: 0;
}

.solution-card p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}

.solution-link i {
  font-size: 0.72em;
  transition: transform 0.25s var(--ease);
}

.solution-card:hover .solution-link {
  color: var(--brand);
  gap: 0.65rem;
}

.solution-card:hover .solution-link i {
  transform: translateX(3px);
}

[dir="rtl"] .solution-card:hover .solution-link i {
  transform: translateX(-3px);
}

/* ---------------- 11. Features (spec list) ---------------- */

.features-section {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.features-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  margin-bottom: 0;
}

.feature-list {
  border-top: 1px solid var(--line);
  counter-reset: feat;
}

.feature-card {
  display: grid;
  grid-template-columns: 2.1rem 2.55rem minmax(0, 1fr);
  align-items: start;
  gap: 1.1rem;
  padding: 1.45rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}

.feature-index {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  padding-top: 0.85rem;
}

.feature-index::before {
  counter-increment: feat;
  content: counter(feat, decimal-leading-zero);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 0.92rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature-content h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 0.55rem;
  margin-bottom: 0.3rem;
}

[dir="rtl"] .feature-content h4 {
  letter-spacing: 0;
}

.feature-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.feature-card:hover .feature-icon {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------------- 12. Capability sections ---------------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cap-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.55rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.cap-card::after {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-ring), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-m);
}

.cap-card:hover::after {
  opacity: 1;
}

.cap-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 11px;
  font-size: 0.95rem;
  background: var(--brand-soft);
  color: var(--brand);
}

.cap-icon-ai,
.cap-icon-analytics {
  background: var(--violet-soft);
  color: var(--violet);
}

.cap-icon-risk {
  background: var(--danger-soft);
  color: var(--danger);
}

.cap-icon-xbrl {
  background: var(--brand-soft);
  color: var(--brand);
}

.cap-icon-devops {
  background: var(--jade-soft);
  color: #059a80;
}

.cap-icon-ent {
  background: var(--amber-soft);
  color: var(--amber);
}

.cap-icon-dev {
  background: var(--sky-soft);
  color: var(--sky);
}

.cap-content h4 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.3rem;
  margin-top: 0.2rem;
}

[dir="rtl"] .cap-content h4 {
  letter-spacing: 0;
}

.cap-content p {
  font-size: 0.87rem;
  line-height: 1.68;
  color: var(--muted);
}

/* Dark variant */

.section-dark .cap-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}

.section-dark .cap-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.section-dark .cap-content h4 {
  color: #fff;
}

.section-dark .cap-content p {
  color: rgba(255, 255, 255, 0.55);
}

.section-dark .cap-icon {
  background: rgba(255, 255, 255, 0.07);
  color: #9db6ff;
}

/* Stats row */

.section-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.section-dark .section-stats {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.section-stat {
  padding-inline-end: 1rem;
}

.section-stat-value {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
}

[dir="rtl"] .section-stat-value {
  font-family: var(--font-rtl);
  letter-spacing: 0;
}

.section-dark .section-stat-value {
  color: #fff;
}

.section-stat-label {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.section-dark .section-stat-label {
  color: rgba(255, 255, 255, 0.42);
}

/* ---------------- 13. Tools ---------------- */

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 56rem;
  margin-inline: auto;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.tool-pill i {
  font-size: 0.82rem;
  color: var(--muted-2);
  transition: color 0.25s var(--ease);
}

.tool-pill:hover {
  color: var(--brand);
  border-color: rgba(47, 91, 255, 0.35);
  background: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -20px rgba(47, 91, 255, 0.8);
}

.tool-pill:hover i {
  color: var(--brand);
}

/* ---------------- 14. CTA band ---------------- */

.cta-section {
  padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem);
}

.cta-inner {
  position: relative;
  overflow: hidden;
  max-width: calc(var(--container) - var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 91, 255, 0.4), transparent 46%),
    radial-gradient(circle at 88% 100%, rgba(11, 191, 159, 0.22), transparent 46%),
    linear-gradient(140deg, #0a0f20, #0d1530 60%, #081a2c);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  text-align: center;
  box-shadow: 0 34px 70px -50px rgba(7, 10, 20, 0.55);
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 96% at 50% -6%, rgba(47, 91, 255, 0.3), transparent 68%),
    radial-gradient(48% 64% at 102% 104%, rgba(124, 92, 255, 0.16), transparent 72%);
  pointer-events: none;
}

.cta-inner > * {
  position: relative;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 20ch;
  margin-inline: auto;
}

[dir="rtl"] .cta-inner h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

.cta-inner p {
  margin: 1rem auto 0;
  max-width: 48ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

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

/* ---------------- 15. Footer ---------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding-top: clamp(3.5rem, 7vw, 5.25rem);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -24rem;
  inset-inline-end: -12rem;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-inner > div:first-child {
  flex: 1 1 17rem;
  max-width: 24rem;
}

.footer-inner > div:not(:first-child) {
  flex: 1 1 9rem;
}

.footer-inner > div:last-child {
  flex: 1.35 1 15rem;
  max-width: 22rem;
}

.footer-logo img {
  height: 1.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-about-text {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.15rem;
}

[dir="rtl"] .footer-col-title {
  letter-spacing: 0;
  font-family: var(--font-rtl);
  font-size: 0.76rem;
}

.footer-links-list li a {
  display: inline-block;
  padding-block: 0.28rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links-list li a:hover,
.footer-links-list li a.active {
  color: #fff;
  transform: translateX(3px);
}

[dir="rtl"] .footer-links-list li a:hover,
[dir="rtl"] .footer-links-list li a.active {
  transform: translateX(-3px);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding-block: 0.3rem;
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-contact-list li i {
  color: #8fadff;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

.footer-contact-list li a,
.footer-contact-list li span {
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s var(--ease);
  word-break: break-word;
}

.footer-contact-list li a:hover {
  color: #fff;
}

.footer-subscribe-desc {
  margin-top: 1.35rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.42);
}

.footer-subscribe-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.28rem 0.28rem 0.28rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

[dir="rtl"] .footer-subscribe-form {
  padding: 0.28rem 1rem 0.28rem 0.28rem;
}

.footer-subscribe-form:focus-within {
  border-color: rgba(143, 173, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.footer-subscribe-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  outline: none;
}

.footer-subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.footer-subscribe-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-subscribe-btn:hover {
  background: var(--brand-2);
  transform: scale(1.05);
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s var(--ease);
}

.footer-bottom-links a:hover,
.footer-bottom-links a.active {
  color: #fff;
}

/* ---------------- 16. Inner page hero ---------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(64% 78% at 12% -6%, rgba(47, 91, 255, 0.24), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 52%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -22rem;
  inset-inline-end: -16rem;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.28), transparent 64%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
}

.page-hero-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  row-gap: 0.35rem;
  margin-bottom: 1.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s var(--ease);
}

.page-hero-breadcrumb a:hover {
  color: #fff;
}

.page-hero-breadcrumb i {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.22);
}

.page-hero-breadcrumb span {
  color: rgba(255, 255, 255, 0.85);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
  font-size: 0.8rem;
}

[dir="rtl"] .page-hero-breadcrumb,
[dir="rtl"] .page-hero-breadcrumb span {
  letter-spacing: 0;
}

.page-hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #fff;
  max-width: 24ch;
}

[dir="rtl"] .page-hero-title {
  letter-spacing: 0;
  line-height: 1.3;
}

.page-hero-title em,
.page-hero-highlight {
  font-style: normal;
  background-image: linear-gradient(96deg, #a8beff 0%, #5b82ff 45%, #37e0c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-hero-desc {
  margin-top: 1.1rem;
  max-width: 46rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.page-hero .cat-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #8fadff;
  margin-bottom: 1.1rem;
}

.page-hero-compact {
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
}

/* Page CTA (section pages) */

.page-cta {
  padding: 0 var(--gutter) clamp(4rem, 8vw, 6rem);
}

.page-cta-inner {
  position: relative;
  overflow: hidden;
  max-width: calc(var(--container) - var(--gutter) * 2);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem clamp(2rem, 5vw, 4rem);
  padding: clamp(2.25rem, 4.5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 91, 255, 0.38), transparent 48%),
    linear-gradient(140deg, #0a0f20, #0d1530 65%, #081a2c);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
}

.page-cta-inner::after {
  content: "";
  position: absolute;
  inset-inline-end: -7rem;
  top: 50%;
  width: 26rem;
  height: 26rem;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle, rgba(47, 91, 255, 0.16), transparent 64%);
  pointer-events: none;
}

.page-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.page-cta-inner h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 22ch;
}

[dir="rtl"] .page-cta-inner h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

.page-cta-inner p {
  margin-top: 0.85rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.page-cta-inner a {
  position: relative;
  z-index: 1;
  flex: none;
}

/* ---------------- 17. Contact ---------------- */

.contact-section {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.86fr);
  gap: 1.25rem;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-form-card {
  box-shadow: var(--shadow-m);
}

.contact-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

[dir="rtl"] .contact-card-title {
  letter-spacing: 0;
}

.contact-card-title-sm {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-side {
  display: grid;
  gap: 1.25rem;
}

.contact-side .contact-card:first-child {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-side .contact-card:first-child::before {
  content: "";
  position: absolute;
  top: -10rem;
  inset-inline-end: -8rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.32), transparent 65%);
  pointer-events: none;
}

.contact-side .contact-card:first-child .contact-card-title {
  color: #fff;
  position: relative;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-radius: 12px;
  transition: background 0.2s var(--ease);
}

a.contact-detail:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-detail-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #8fadff;
  font-size: 0.85rem;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

[dir="rtl"] .contact-detail-label {
  letter-spacing: 0;
  text-transform: none;
}

.contact-detail-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
  direction: ltr;
  text-align: start;
}

[dir="rtl"] .contact-detail-value {
  text-align: right;
}

.office-hours {
  display: flex;
  flex-direction: column;
}

.office-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.office-hours-row:last-child {
  border-bottom: 0;
}

.office-hours-row span:last-child {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
}

[dir="rtl"] .office-hours-row span:last-child {
  font-family: var(--font-rtl);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.quick-action:hover {
  border-color: rgba(47, 91, 255, 0.35);
  background: var(--brand-soft);
  transform: translateX(2px);
}

[dir="rtl"] .quick-action:hover {
  transform: translateX(-2px);
}

.quick-action i {
  width: 1.1rem;
  text-align: center;
  color: var(--brand);
  font-size: 0.92rem;
}

.quick-action .quick-action-whatsapp {
  color: #1aa86a;
}

/* Forms */

.form-alert {
  margin-bottom: 1.25rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

.form-alert.success {
  background: var(--jade-soft);
  border-color: rgba(11, 191, 159, 0.3);
  color: #077a67;
}

.form-alert.error {
  background: var(--danger-soft);
  border-color: rgba(229, 72, 77, 0.3);
  color: #b32427;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 0.93rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.form-input::placeholder {
  color: var(--muted-2);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-ring);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b657b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-inline-end: 2.4rem;
}

[dir="rtl"] .form-select {
  background-position: left 0.95rem center;
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.65;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 3.1rem;
  margin-top: 0.35rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.contact-submit:hover:not(:disabled) {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -22px rgba(47, 91, 255, 0.9);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------------- 18. Demo page ---------------- */

.demo-page {
  background: var(--paper-2);
  padding-top: var(--nav-h);
}

.demo-main {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: calc(100vh - var(--nav-h));
}

.demo-info-side {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  align-items: center;
}

.demo-info-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 82% at 14% 6%, rgba(47, 91, 255, 0.24), transparent 70%);
  pointer-events: none;
}

.demo-info-side::after {
  content: "";
  position: absolute;
  bottom: -22rem;
  inset-inline-start: -14rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(47, 91, 255, 0.3), transparent 64%);
  pointer-events: none;
}

.demo-info-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

.demo-info-content > .page-hero-breadcrumb {
  margin-bottom: 0.9rem;
}

.demo-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.demo-info-badge i {
  color: #8fadff;
  font-size: 0.72rem;
}

.demo-info-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

[dir="rtl"] .demo-info-title {
  letter-spacing: 0;
  line-height: 1.3;
}

.demo-info-title em {
  font-style: normal;
  background-image: linear-gradient(96deg, #a8beff, #5b82ff 45%, #37e0c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.demo-info-desc {
  margin-top: 1.1rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.58);
}

.demo-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 2.25rem;
}

.demo-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.demo-benefit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #8fadff;
  font-size: 0.8rem;
}

.demo-benefit-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
}

.demo-benefit-text p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
}

.demo-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-trust-value {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}

[dir="rtl"] .demo-trust-value {
  font-family: var(--font-rtl);
  letter-spacing: 0;
}

.demo-trust-label {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
}

.demo-form-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.demo-form-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(64% 70% at 62% 42%, rgba(47, 91, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.demo-form-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 33rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 70px -40px rgba(10, 16, 35, 0.45), var(--shadow-s);
}

.demo-form-header {
  margin-bottom: 1.25rem;
}

.demo-form-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

[dir="rtl"] .demo-form-title {
  letter-spacing: 0;
}

.demo-form-subtitle {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.demo-form-steps {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}

.demo-step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.3s var(--ease);
}

.demo-step.done {
  background: var(--brand);
}

.demo-step.active {
  background: var(--ink);
}

.demo-form-step {
  display: none;
}

.demo-form-step.active {
  display: block;
  animation: tap-step-in 0.4s var(--ease-out);
}

@keyframes tap-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.demo-form-group {
  margin-bottom: 1.05rem;
}

.demo-form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.demo-form-input {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.demo-form-input::placeholder {
  color: var(--muted-2);
}

.demo-form-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-ring);
}

.demo-form-input.error {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.demo-form-input.error:focus {
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.16);
}

.demo-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b657b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-inline-end: 2.4rem;
}

[dir="rtl"] .demo-form-select {
  background-position: left 0.95rem center;
}

.demo-form-textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.65;
}

.demo-form-hint {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: var(--muted-2);
}

.demo-form-error {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  color: var(--danger);
}

.demo-form-submit-error {
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid rgba(229, 72, 77, 0.28);
  font-size: 0.82rem;
  color: #b32427;
}

.demo-form-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.35rem;
  border-radius: 12px;
  font-size: 0.89rem;
  font-weight: 600;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.demo-btn i {
  font-size: 0.72em;
}

.demo-btn-primary {
  flex: 1;
  background: var(--ink);
  color: #fff;
}

.demo-btn-primary:hover:not(:disabled) {
  background: var(--brand);
  transform: translateY(-1px);
}

.demo-btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

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

.demo-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.demo-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.demo-form-checkbox input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.demo-form-checkbox label {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}

.demo-form-checkbox a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Demo success */

.demo-success {
  text-align: center;
  padding-block: 1.5rem;
}

.demo-success-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--jade-soft);
  color: #059a80;
  font-size: 1.25rem;
}

.demo-success-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.demo-success-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.demo-success-details {
  display: grid;
  gap: 0.5rem;
  margin: 1.6rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  text-align: start;
}

.demo-success-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.83rem;
}

.demo-success-label {
  color: var(--muted);
}

.demo-success-value {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
}

.demo-success-home {
  width: 100%;
}

/* ---------------- 19. Legal ---------------- */

.legal-section {
  --legal-lift: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: var(--legal-lift);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--paper-2);
}

.legal-section .section-inner {
  max-width: 58rem;
}

.legal-doc {
  margin-top: calc(var(--legal-lift) * -2);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-m);
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.legal-meta i {
  font-size: 0.68rem;
  color: #8fadff;
}

.legal-content {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--muted);
}

.legal-content > p:first-child {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.legal-content > * + * {
  margin-top: 1rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}

.legal-content h3 {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.legal-content ul,
.legal-content ol {
  padding-inline-start: 1.25rem;
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin-top: 0.4rem;
}

.legal-content li::marker {
  color: var(--brand);
}

.legal-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-content th,
.legal-content td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  text-align: start;
}

.legal-content th {
  background: var(--paper-2);
  color: var(--ink);
}

/* ---------------- 20. Consent banner ---------------- */

.consent-banner {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-start: 1.25rem;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: 30rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-l);
}

.consent-text {
  flex: 1 1 16rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.consent-text a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 0.45rem;
}

.consent-btn {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.consent-btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.consent-btn-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
}

/* ---------------- 21. Back to top ---------------- */

.back-to-top {
  position: fixed;
  bottom: 1.35rem;
  inset-inline-end: 1.35rem;
  z-index: 800;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-m);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.back-to-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.back-to-top-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-to-top-track {
  stroke: transparent;
}

.back-to-top-fill {
  stroke: var(--brand);
  transition: stroke 0.25s var(--ease);
}

.back-to-top:hover .back-to-top-fill {
  stroke: #fff;
}

.back-to-top-icon {
  font-size: 0.78rem;
}

/* ---------------- 22. Reveal system ---------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}

.js [data-reveal="fade"] {
  transform: none;
}

.js [data-reveal="scale"] {
  transform: scale(0.965);
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------------- 23. Responsive ---------------- */

@media (max-width: 1140px) {
  .nav-menu-desktop {
    gap: 0;
  }

  .nav-link {
    padding-inline: 0.65rem;
  }

  .hero-note-a {
    inset-inline-start: -2%;
  }

  .hero-note-b {
    inset-inline-end: -0.5rem;
  }
}

@media (max-width: 1080px) {
  .nav-menu-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-inner {
    gap: 1rem;
  }

  .page-hero-inner {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 7rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .console {
    max-width: 30rem;
  }

  .hero-note-a,
  .hero-note-b {
    display: none;
  }

  .features-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .features-aside {
    position: static;
  }

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

  .solution-card:nth-child(3n) {
    border-inline-end: 1px solid var(--line);
  }

  .solution-card:nth-child(2n) {
    border-inline-end: 0;
  }

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

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

  .contact-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-side .contact-card:first-child {
    grid-column: 1 / -1;
  }

  .demo-main {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .demo-info-side {
    padding: clamp(2.5rem, 6vw, 3.5rem) var(--gutter);
  }

  .demo-info-content {
    max-width: 100%;
  }

  .demo-form-side {
    padding: clamp(2rem, 5vw, 3rem) var(--gutter) clamp(3rem, 6vw, 4rem);
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 4rem;
  }

  .nav-cta-text {
    display: none;
  }

  .nav-cta {
    justify-content: center;
    width: 2.35rem;
    padding-inline: 0;
  }

  .nav-cta i {
    font-size: 0.75rem;
  }

  .hero-headline {
    font-size: clamp(2.1rem, 8.5vw, 3rem);
  }

  .hero-description {
    font-size: 0.97rem;
  }

  .hero-proof {
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
  }

  .hero-metrics {
    flex-wrap: nowrap;
  }

  .hero-metric {
    flex: 1 1 0;
    min-width: 0;
    padding-inline-end: 0.65rem;
    margin-inline-end: 0.65rem;
  }

  .hero-metric-value {
    font-size: 1.28rem;
  }

  .hero-metric-label {
    font-size: 0.7rem;
  }

  .console-bar {
    gap: 0.6rem;
  }

  .console-path {
    font-size: 0.6rem;
  }

  .console-body {
    padding: 1.15rem 1.05rem 1rem;
  }

  .cr-meta {
    display: none;
  }

  .console-row {
    grid-template-columns: 1.5rem minmax(0, 1fr) auto;
    gap: 0.6rem;
  }

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

  .solution-card {
    border-inline-end: 0;
    padding: 1.9rem 0.25rem 1.75rem;
  }

  .solution-card::before {
    top: 2.1rem;
    inset-inline-end: 0.25rem;
  }

  .solution-card:nth-child(3n) {
    border-inline-end: 0;
  }

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

  .cap-card {
    padding: 1.35rem 1.25rem;
  }

  .section-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0;
  }

  .trust-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.5rem 0.35rem;
  }

  .trust-stat {
    padding: 1rem 0.4rem;
  }

  .trust-stat + .trust-stat {
    border-inline-start: 1px solid var(--line);
  }

  .trust-stat:nth-child(2n),
  .trust-stat:nth-child(n + 3) {
    border-top: 0;
  }

  .trust-stat-value {
    font-size: 1.25rem;
  }

  .trust-stat-label {
    font-size: 0.7rem;
  }

  .feature-card {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .feature-icon {
    display: none;
  }

  .feature-content h4 {
    margin-top: 0.35rem;
  }

  .contact-side {
    grid-template-columns: 1fr;
  }

  .form-row,
  .demo-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 1.1rem;
  }

  .footer-inner > div:first-child {
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .consent-banner {
    inset-inline: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .back-to-top {
    bottom: 1rem;
    inset-inline-end: 1rem;
  }

  .cta-section,
  .page-cta {
    padding-inline: 0.75rem;
  }

  .cta-inner,
  .page-cta-inner {
    border-radius: var(--radius-l);
  }
}

@media (max-width: 480px) {
  .trust-badge {
    padding: 0.36rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero-cta-group .btn-premium,
  .hero-cta-group .btn-secondary-premium,
  .page-hero-actions .btn-premium,
  .page-hero-actions .btn-secondary-premium {
    width: 100%;
  }

  .demo-form-actions {
    flex-direction: column-reverse;
  }

  .demo-form-actions .demo-btn {
    width: 100%;
  }

  .demo-trust-badges {
    gap: 1rem;
  }
}

/* ---------------- 24. RTL adjustments ---------------- */

[dir="rtl"] .hero-description,
[dir="rtl"] .section-desc,
[dir="rtl"] .solution-card p,
[dir="rtl"] .feature-content p,
[dir="rtl"] .cap-content p,
[dir="rtl"] .footer-about-text,
[dir="rtl"] .footer-subscribe-desc,
[dir="rtl"] .compliance-text,
[dir="rtl"] .cta-inner p,
[dir="rtl"] .page-hero-desc,
[dir="rtl"] .page-cta-inner p {
  text-align: right;
}

[dir="rtl"] .console,
[dir="rtl"] .cr-meta,
[dir="rtl"] .console-path {
  direction: ltr;
}

[dir="rtl"] .console-body {
  text-align: left;
}

[dir="rtl"] .demo-form-checkbox input {
  margin-top: 0.2rem;
}

/* ---------------- 25. FAQ ---------------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 58rem;
  margin-inline: auto;
}

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

.faq-item[open] {
  border-color: var(--brand-ring);
  box-shadow: var(--shadow-s);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.faq-chevron {
  flex: none;
  font-size: 0.8rem;
  color: var(--muted-2);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

[dir="rtl"] .faq-answer {
  text-align: right;
}
