/* Self-hosted variable fonts (woff2) — no external requests at runtime */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Arabic — displayed for `lang="ar"` only */
@font-face {
  font-family: "Noto Kufi Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-kufi-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ==========================================================================
   EhAgora — design tokens
   Brand: black + signal yellow. Type: Sora (display) / Inter (text).
   ========================================================================== */

:root {
  /* Brand */
  --brand: #ffc300;
  --brand-deep: #e0a900;
  --brand-soft: rgba(255, 195, 0, 0.14);
  --brand-glow: rgba(255, 195, 0, 0.34);

  /* Surfaces (dark) */
  --bg: #08080b;
  --bg-elev: #0d0d12;
  --bg-elev-2: #12121a;
  --paper: #f3f0e8;
  --paper-2: #eae6da;

  /* Ink */
  --ink: #f7f5ef;
  --ink-soft: #cfccc5;
  --muted: #938f99;
  --ink-on-paper: #0b0b0e;
  --muted-on-paper: #5b5852;

  /* Lines */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-paper: rgba(11, 11, 14, 0.12);

  /* Status */
  --ok: #5be49b;
  --warn: #ffb020;
  --info: #7ab8ff;

  /* Type */
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
  --font-arabic: "Noto Kufi Arabic", "Inter", system-ui, sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.18vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.22vw, 1.05rem);
  --step-1: clamp(1.1rem, 1.02rem + 0.36vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.35vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 4rem);
  --step-5: clamp(2.45rem, 1.55rem + 3.5vw, 4.35rem);

  /* Layout */
  --shell: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --section-y: clamp(72px, 9vw, 150px);
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 26px;
  --radius-xl: 34px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.55s;

  /* Elevation */
  --shadow-card: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-pop: 0 34px 70px -22px rgba(0, 0, 0, 0.75);

  /* Header */
  --header-h: 74px;
}

/* Arabic gets its own display face so the headline does not look like Latin type */
:root[lang="ar"] {
  --font-display: var(--font-arabic);
  --font-body: var(--font-arabic);
  --step-5: clamp(2.3rem, 1.6rem + 3.4vw, 4.4rem);
}

/* ==========================================================================
   EhAgora — base: reset, typography, utilities
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  font-feature-settings: "ss01" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); letter-spacing: -0.045em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.02em; }
h4 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.015em; }

p { margin: 0; max-width: 62ch; text-wrap: pretty; }

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

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

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

/* ---------- layout helpers ---------- */

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--paper {
  background: var(--paper);
  color: var(--ink-on-paper);
}

.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }

/* ---------- type helpers ---------- */

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }
.brand-text { color: var(--brand); }
.nowrap { white-space: nowrap; }

/* ---------- section header ---------- */

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 4.6vw, 64px);
}

.sec-head__title { display: grid; gap: 18px; }
.sec-head__title h2 { max-width: 18ch; }
.sec-head__aside { justify-self: end; max-width: 44ch; }

@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-head__aside { justify-self: start; }
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- backdrop decoration ---------- */

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  .noise { display: none; }
}

/* ---------- accessibility ---------- */

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #0b0b0e;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible { transform: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================================
   EhAgora — components: buttons, header, menu, footer, form, accordion
   ========================================================================== */

/* ---------- buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 550;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--brand);
  --btn-fg: #0b0b0e;
  --btn-line: transparent;
  font-weight: 600;
  box-shadow: 0 14px 40px -18px var(--brand-glow);
}

.btn--primary:hover { --btn-bg: #ffd23d; }

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-line: rgba(255, 255, 255, 0.3);
}

.btn--sm { padding: 10px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
  color: var(--brand);
  font-size: 0.95rem;
}

.link-arrow svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

[dir="rtl"] .link-arrow svg,
[dir="rtl"] .btn .icon-arrow { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- header ---------- */

.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.04em;
  margin-inline-end: auto;
}

.brand__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand__name span { color: var(--brand); }

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

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

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

.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

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

/* ---------- language switcher ---------- */

.lang { position: relative; }

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}

.lang__btn:hover { color: var(--ink); border-color: var(--line-strong); }
.lang__btn svg { width: 15px; height: 15px; opacity: 0.8; }
.lang__btn .chev { width: 11px; height: 11px; transition: transform 0.3s var(--ease); }
.lang[data-open="true"] .chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #101016;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

[dir="rtl"] .lang__menu { transform-origin: top left; }
.lang[data-open="true"] .lang__menu { opacity: 1; visibility: visible; transform: none; }

.lang__menu button,
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: start;
  transition: background-color 0.2s, color 0.2s;
}

.lang__menu button:hover,
.lang__menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.lang__menu button[aria-checked="true"],
.lang__menu a[aria-checked="true"] { color: var(--brand); }
.lang__menu small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- burger + drawer ---------- */

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}

.burger span {
  position: relative;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.header[data-menu="true"] .burger span { transform: rotate(45deg); }
.header[data-menu="true"] .burger span::before { transform: translateY(5px) rotate(-90deg); }
.header[data-menu="true"] .burger span::after { opacity: 0; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  background: rgba(8, 8, 11, 0.97);
  backdrop-filter: blur(20px);
  display: grid;
  align-content: start;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.drawer[data-open="true"] { opacity: 1; visibility: visible; }

.drawer a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  letter-spacing: -0.04em;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.drawer .btn { margin-block-start: 22px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__actions .btn--primary { display: none; }
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 76px) 30px;
  background: #060609;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block-end: clamp(36px, 4vw, 56px);
}

.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand .brand { margin: 0; font-size: 1.5rem; }
.footer__brand .brand__mark { width: 40px; height: 40px; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }

.footer__col h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-end: 14px;
}

.footer__col a,
.footer__col span {
  display: block;
  padding-block: 5px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--brand); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block-start: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__bottom .dot { opacity: 0.4; }

.footer__legal { display: inline-flex; align-items: center; gap: 10px; }
.footer__legal a { color: var(--ink-soft); text-decoration: none; }
.footer__legal a:hover { color: var(--brand); }

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- form ---------- */

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

.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  transition: border-color 0.25s, background-color 0.25s;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #6c6a73; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 195, 0, 0.04);
}

.field select {
  appearance: none;
  color-scheme: dark;
  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 d='M1 1l5 5 5-5' fill='none' stroke='%23939099' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-inline-end: 38px;
}

.field select option {
  background-color: #12121a;
  color: #f7f5ef;
}

/* custom select (the native popup ignores dark styling on Windows) */

.select { position: relative; }

.select__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-align: start;
  transition: border-color 0.25s, background-color 0.25s;
}

.select__btn:hover { border-color: rgba(255, 255, 255, 0.28); }

.select[data-open="true"] .select__btn,
.select__btn:focus-visible {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 195, 0, 0.05);
}

.select__chev { width: 12px; height: 8px; flex: none; opacity: 0.7; transition: transform 0.3s var(--ease); }
.select[data-open="true"] .select__chev { transform: rotate(180deg); }

.select__menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline: 0;
  z-index: 20;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #101016;
  box-shadow: var(--shadow-pop);
}

.select__menu[hidden] { display: none; }

.select__menu li {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.select__menu li:hover,
.select__menu li.is-focus { background: rgba(255, 255, 255, 0.07); color: var(--ink); }

.select__menu li[aria-selected="true"] {
  color: var(--brand);
  background: var(--brand-soft);
}

[dir="rtl"] .field select { background-position: left 16px center; }

.form__note { font-size: 0.78rem; color: var(--muted); grid-column: 1 / -1; }
.form__ok {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(91, 228, 155, 0.35);
  background: rgba(91, 228, 155, 0.08);
  color: var(--ok);
  font-size: 0.9rem;
}
.form__ok[hidden] { display: none; }

/* ---------- accordion ---------- */

.acc { border-top: 1px solid var(--line); }

.acc__item { border-bottom: 1px solid var(--line); }

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  text-align: start;
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.acc__sign {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s, background-color 0.3s;
}

.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 9px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item[data-open="true"] .acc__sign { background: var(--brand); color: #0b0b0e; border-color: transparent; }
.acc__item[data-open="true"] .acc__sign::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.acc__item[data-open="true"] .acc__panel { grid-template-rows: 1fr; }

.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-block-end: 26px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- toast / pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--brand-glow); }
  70% { box-shadow: 0 0 0 8px rgba(255, 195, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 195, 0, 0); }
}

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 70;
  height: 2px;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
  transition: width 0.12s linear;
}

/* ==========================================================================
   EhAgora — hero + product console
   ========================================================================== */

.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(40px, 7vw, 96px)) clamp(48px, 7vw, 104px);
  overflow: clip;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__glow {
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  inset-block-start: -22vw;
  inset-inline-end: -12vw;
  background: radial-gradient(circle, rgba(255, 195, 0, 0.26), rgba(255, 195, 0, 0) 68%);
  opacity: 0.85;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 4vw, 64px);
  align-items: center;
}

.hero__copy { display: grid; gap: clamp(18px, 2vw, 26px); justify-items: start; min-width: 0; }
.hero__visual { min-width: 0; }

.hero h1 { max-width: 14ch; }
.hero h1 .accent { position: relative; color: var(--brand); white-space: normal; }

.hero h1 .accent::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0.04em;
  height: 0.09em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.1s 0.7s var(--ease) forwards;
}

@keyframes underline { to { transform: scaleX(1); } }

.hero__lead { max-width: 46ch; color: var(--ink-soft); font-size: var(--step-1); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 4px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-block-start: 14px;
  margin-block-start: 6px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__facts strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ---------- product console ---------- */

.hero__visual { position: relative; perspective: 1600px; padding-block: 22px; }

.console {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, #15151d 0%, #0b0b10 55%, #0a0a0e 100%);
  box-shadow: var(--shadow-pop), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform-style: preserve-3d;
  overflow: hidden;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.console__dots { display: flex; gap: 5px; }
.console__dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.console__dots i:first-child { background: var(--brand); }

.console__url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-inline-start: 6px;
}

.live-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  direction: ltr;
}

.live-clock::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.console__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1px;
  background: var(--line);
}

.map {
  position: relative;
  min-height: 236px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 195, 0, 0.08), transparent 60%),
    #0b0b11;
  overflow: hidden;
}

.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__badge svg { width: 13px; height: 13px; flex: none; }

.map__pin {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 195, 0, 0.16);
}

.map__pin--a { inset-block-start: 34%; inset-inline-start: 22%; }
.map__pin--b { inset-block-start: 62%; inset-inline-start: 66%; background: var(--ok); box-shadow: 0 0 0 4px rgba(91, 228, 155, 0.16); }

.map__badge {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(10, 10, 14, 0.86);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.map__badge b { color: var(--brand); font-weight: 600; }

.queue { display: grid; align-content: start; background: #0a0a0f; padding: 12px; gap: 8px; }

.queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.queue__row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
}

.queue__avatar {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
}

.queue__name { font-size: 0.7rem; color: var(--ink); line-height: 1.3; white-space: nowrap; min-width: 0; }
.queue__name small { display: block; color: var(--muted); font-size: 0.58rem; font-family: var(--font-mono); }

.tag {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid currentColor;
  opacity: 0.95;
  white-space: nowrap;
}

.tag--ok { color: var(--ok); }
.tag--warn { color: var(--warn); }
.tag--info { color: var(--info); }

.console__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.kpi { background: #0a0a0f; padding: 12px 14px; }
.kpi small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-end: 3px;
}
.kpi b { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; }
.kpi b span { color: var(--brand); font-size: 0.72rem; margin-inline-start: 3px; }

/* floating cards */

.float-card {
  position: absolute;
  z-index: 2;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 16, 22, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-pop);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}

.float-card__icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #0b0b0e;
  flex: none;
}
.float-card__icon svg { width: 16px; height: 16px; }

.float-card strong { display: block; font-size: 0.76rem; line-height: 1.2; }
.float-card span { color: var(--muted); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; }

.float-card--toast {
  inset-block-end: -34px;
  inset-inline-start: -30px;
  animation-delay: -2s;
}

.float-card--crm {
  inset-block-start: -26px;
  inset-inline-end: -30px;
  animation-delay: -4s;
}

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

[dir="rtl"] .live-clock,
[dir="rtl"] .console__url { direction: ltr; }

@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .hero h1 { max-width: 18ch; }
  .float-card--crm { display: none; }
}

@media (max-width: 720px) {
  .console__body { grid-template-columns: 1fr; }
  .map { min-height: 190px; }
  .queue { display: none; }
  .float-card--crm { display: none; }
  .float-card--toast { inset-block-end: 82px; inset-inline-start: 12px; }
  .hero__facts { gap: 8px 18px; }
}

/* ==========================================================================
   EhAgora — sections: ticker, services, live demo
   ========================================================================== */

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #06060a;
  padding-block: 15px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__group { display: flex; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-inline: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker__item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.75;
}

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

[dir="rtl"] .ticker__track { animation-direction: reverse; }

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.svc {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 2.2vw, 30px);
  min-height: 252px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 55%),
    var(--bg-elev);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease), background-color 0.35s;
}

.svc::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 195, 0, 0.18), transparent 68%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

.svc:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 195, 0, 0.38);
}

.svc:hover::before { opacity: 1; transform: scale(1); }

.svc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.svc__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--brand);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}

.svc__icon svg { width: 22px; height: 22px; }
.svc:hover .svc__icon { background: var(--brand); color: #0b0b0e; border-color: transparent; }

.svc__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.svc h3 { font-size: 1.28rem; letter-spacing: -0.025em; }
.svc p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: auto; }

.svc__tags span {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.svc--wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 24px;
  min-height: 0;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 195, 0, 0.12), transparent 55%),
    var(--bg-elev);
}

.svc--wide .svc__main { display: grid; gap: 12px; max-width: 46ch; }
.svc--wide .svc__cta { justify-self: end; }

@media (max-width: 960px) {
  .svc { grid-column: span 6; }
  .svc--wide { grid-column: span 12; grid-template-columns: 1fr; }
  .svc--wide .svc__cta { justify-self: start; }
}

@media (max-width: 620px) {
  .svc { grid-column: span 12; min-height: 0; }
}

/* ---------- live demo ---------- */

.demo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-block-end: 28px;
}

.demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.demo__tab {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}

.demo__tab:hover { color: var(--ink); }

.demo__tab[aria-selected="true"] {
  background: var(--brand);
  color: #0b0b0e;
  font-weight: 550;
}

.demo__frame {
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #101018, #0a0a10);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.demo__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.demo__chrome .url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.demo__chrome .pill { border: 0; background: transparent; padding: 0; }

.demo__panel {
  display: none;
  min-height: 400px;
  padding: clamp(14px, 2vw, 22px);
  gap: 16px;
}

.demo__panel[data-active="true"] {
  display: grid;
  animation: panel-in 0.5s var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
}

.demo__panel--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }

@media (max-width: 800px) {
  .demo__panel--split { grid-template-columns: 1fr; }
}

/* mock primitives */

.mock {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0c0c12;
  overflow: hidden;
}

.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.mock__head b { font-weight: 550; color: var(--ink); }

.mock__body { padding: 14px; display: grid; gap: 10px; }

.mock__map {
  position: relative;
  min-height: 230px;
  background:
    radial-gradient(80% 60% at 25% 25%, rgba(255, 195, 0, 0.09), transparent 65%),
    #0a0a10;
}

.mock__map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock__map .map__badge svg { width: 13px; height: 13px; }
.mock__map .map__badge { font-size: 0.68rem; }

.mock-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
}

.mock-row__thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, #2a2a36, #17171f);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--brand);
}

.mock-row__title { font-size: 0.76rem; line-height: 1.3; }
.mock-row__title small { display: block; color: var(--muted); font-size: 0.64rem; font-family: var(--font-mono); }

.mock-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mock-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  width: var(--w, 60%);
}

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.mock-kpi {
  padding: 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.mock-kpi small { display: block; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mock-kpi b { font-family: var(--font-display); font-size: 1rem; }

.mock-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.mock-product {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.mock-product__img {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255, 195, 0, 0.22), transparent 60%),
    linear-gradient(140deg, #23232e, #14141b);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.25);
}

.mock-product__img svg { width: 34px; height: 34px; }
.mock-product__meta { padding: 9px 10px; font-size: 0.74rem; }
.mock-product__meta small { display: block; color: var(--muted); font-size: 0.64rem; }
.mock-product__meta b { color: var(--brand); font-weight: 550; }

.mock-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.mock-col { display: grid; align-content: start; gap: 8px; }

.mock-col__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 2px;
}

.mock-deal {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  line-height: 1.35;
}

.mock-deal small { display: block; color: var(--muted); font-size: 0.62rem; }
.mock-deal em { font-style: normal; color: var(--brand); font-weight: 550; }

.mock-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--muted);
}
.mock-chip[data-on="true"] { background: var(--brand); color: #0b0b0e; border-color: transparent; font-weight: 550; }

/* ==========================================================================
   EhAgora — blocks: cases, stats, process, stack, contact
   ========================================================================== */

/* ---------- cases ---------- */

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(22px, 3vw, 44px);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line-paper);
  box-shadow: 0 40px 80px -60px rgba(11, 11, 14, 0.55);
  overflow: hidden;
}

.section--paper .link-arrow { color: #7a5a00; }
.section--paper .link-arrow:hover { color: var(--ink-on-paper); }

.case-feature__copy { display: grid; gap: 16px; justify-items: start; }
.section--paper .eyebrow { color: var(--muted-on-paper); }
.case-feature h3 { font-size: var(--step-3); }
.case-feature p { color: var(--muted-on-paper); font-size: 0.98rem; }

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-block: 6px;
}

.case-metrics li { display: grid; gap: 2px; }
.case-metrics b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink-on-paper);
}
.case-metrics span { font-size: 0.76rem; color: var(--muted-on-paper); }

.case-feature__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: var(--radius-l);
  background:
    radial-gradient(90% 90% at 70% 20%, rgba(255, 195, 0, 0.5), transparent 60%),
    linear-gradient(150deg, #f7f4ec, #ebe6d8);
  padding: 24px;
  overflow: hidden;
}

.case-feature__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 11, 14, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 80%);
  opacity: 0.5;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(240px, 62%);
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  border: 7px solid #101014;
  background: #101014;
  box-shadow: 0 30px 60px -25px rgba(11, 11, 14, 0.6);
  overflow: hidden;
  transform: rotate(-4deg);
  transition: transform 0.6s var(--ease);
}

.case-feature:hover .phone { transform: rotate(0deg) translateY(-4px); }

.case-feature--alt .case-feature__copy { order: 2; }
.case-feature--alt .case-feature__media { order: 1; }
.case-feature + .case-feature { margin-block-start: clamp(20px, 2.6vw, 34px); }
.case-feature--alt .case-feature__media {
  background:
    radial-gradient(90% 90% at 30% 20%, rgba(255, 195, 0, 0.35), transparent 60%),
    linear-gradient(150deg, #f3efe4, #e4ddcc);
}

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

.phone--back {
  position: absolute;
  z-index: 0;
  inset-block-start: 16%;
  inset-inline-start: 8%;
  width: min(200px, 48%);
  transform: rotate(7deg);
  opacity: 0.92;
  filter: saturate(0.9);
}

.phone--back img { object-position: top; }

.case-list { display: grid; margin-block-start: clamp(20px, 3vw, 34px); }

.case-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1.1fr) minmax(0, 1.4fr) auto 26px;
  align-items: center;
  gap: 18px;
  padding: 22px 14px;
  border-top: 1px solid var(--line-paper);
  transition: background-color 0.3s var(--ease), padding-inline 0.3s var(--ease);
}

.case-row:last-child { border-bottom: 1px solid var(--line-paper); }
.case-row:hover { background: rgba(255, 255, 255, 0.7); padding-inline: 24px; }

.case-row__idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-on-paper); }
.case-row__name h3 { font-size: 1.18rem; letter-spacing: -0.025em; }
.case-row__name span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-paper);
}

.case-row__desc { color: var(--muted-on-paper); font-size: 0.9rem; }
.case-row__metric {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-on-paper);
  white-space: nowrap;
}

.case-row svg { width: 18px; height: 18px; color: var(--ink-on-paper); transition: transform 0.3s var(--ease); }
.case-row:hover svg { transform: translateX(5px); }
[dir="rtl"] .case-row svg { transform: scaleX(-1); }
[dir="rtl"] .case-row:hover svg { transform: scaleX(-1) translateX(5px); }

@media (max-width: 920px) {
  .case-feature { grid-template-columns: 1fr; }
  .case-feature__media { min-height: 300px; order: -1; }
  .case-feature--alt .case-feature__copy { order: 0; }
  .case-feature--alt .case-feature__media { order: -1; }
  .case-row { grid-template-columns: 34px 1fr auto; row-gap: 6px; }
  .case-row__desc { grid-column: 2 / -1; }
  .case-row__metric { display: none; }
}

/* ---------- stats band ---------- */

.stats {
  position: relative;
  background: var(--brand);
  color: #0b0b0e;
  padding-block: clamp(48px, 6vw, 78px);
  overflow: hidden;
}

.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 11, 14, 0.07) 1px, transparent 1px);
  background-size: 88px 100%;
  pointer-events: none;
}

.stats__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  margin-block-end: clamp(24px, 3vw, 40px);
}

.stats__intro h2 { font-size: var(--step-2); max-width: 22ch; }
.stats__intro .eyebrow { color: rgba(11, 11, 14, 0.65); }

.stats__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 30px);
}

.stats__item { display: grid; gap: 4px; padding-inline-start: 18px; border-inline-start: 1px solid rgba(11, 11, 14, 0.22); }
.stats__item:first-child { border-inline-start: 0; padding-inline-start: 0; }

.stats__item b {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats__item span { font-size: 0.86rem; color: rgba(11, 11, 14, 0.72); }

@media (max-width: 780px) {
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .stats__item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- process ---------- */

.process__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.process__aside { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 18px; justify-items: start; }
.process__aside h2 { max-width: 14ch; }
.process__aside p { color: var(--muted); max-width: 38ch; }

.steps { display: grid; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}

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

.step__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  transition: background-color 0.4s var(--ease), color 0.4s, border-color 0.4s;
}

.step.is-in .step__num { background: var(--brand); border-color: transparent; color: #0b0b0e; }

.step__body { display: grid; gap: 8px; }
.step__body h3 { font-size: 1.22rem; }
.step__body p { color: var(--muted); font-size: 0.94rem; max-width: 54ch; }
.step__meta { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }

@media (max-width: 900px) {
  .process__inner { grid-template-columns: 1fr; }
  .process__aside { position: static; }
}

/* ---------- stack ---------- */

.stack__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.stack__copy { display: grid; gap: 18px; justify-items: start; }
.principles { display: grid; gap: 0; margin-block-start: 8px; width: 100%; }

.principle {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.principle svg { width: 20px; height: 20px; color: var(--brand); margin-block-start: 2px; }
.principle h3 { font-size: 0.98rem; letter-spacing: -0.01em; }
.principle p { color: var(--muted); font-size: 0.87rem; }

.stack__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tech-tile {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  display: grid;
  gap: 4px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.tech-tile:hover { border-color: rgba(255, 195, 0, 0.4); transform: translateY(-2px); }
.tech-tile small {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tech-tile b { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .stack__inner { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */

.contact { position: relative; overflow: clip; }
.contact .glow {
  width: 760px; height: 760px;
  inset-block-end: -380px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 195, 0, 0.2), transparent 65%);
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.contact__copy { display: grid; gap: 20px; justify-items: start; }
.contact__copy h2 { max-width: 13ch; }
.contact__copy p { color: var(--muted); }

.contact__links { display: grid; gap: 10px; width: 100%; margin-block-start: 6px; }

.contact__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background-color 0.3s;
}

.contact__link:hover { border-color: rgba(255, 195, 0, 0.45); background: rgba(255, 195, 0, 0.05); }
.contact__link svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.contact__link small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__link b { font-weight: 500; font-size: 0.94rem; word-break: break-word; }

.contact__card {
  color-scheme: dark;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #12121a, #0b0b11);
  box-shadow: var(--shadow-pop);
}

.contact__card .form { gap: 14px; }

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   EhAgora — right-to-left overrides (Arabic)
   Layout is built with logical properties; this file fixes the few
   physical details that must mirror (icons, ornaments, grids).
   ========================================================================== */

[dir="rtl"] {
  letter-spacing: 0;
}

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

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .btn,
[dir="rtl"] .brand { letter-spacing: 0; }

[dir="rtl"] .mono,
[dir="rtl"] .eyebrow,
[dir="rtl"] .pill,
[dir="rtl"] .ticker__item,
[dir="rtl"] .step__meta,
[dir="rtl"] .case-row__idx,
[dir="rtl"] .case-row__metric,
[dir="rtl"] .case-row__name span,
[dir="rtl"] .tech-tile small,
[dir="rtl"] .field label,
[dir="rtl"] .contact__link small,
[dir="rtl"] .svc__num {
  letter-spacing: 0;
  font-family: var(--font-arabic);
  text-transform: none;
}

/* keep latin numerals/domains readable and left-to-right */
[dir="rtl"] .live-clock,
[dir="rtl"] .console__url,
[dir="rtl"] .case-row__metric,
[dir="rtl"] .contact__link b,
[dir="rtl"] .tech-tile b {
  direction: ltr;
  text-align: right;
}

[dir="rtl"] .hero h1 { line-height: 1.22; }
[dir="rtl"] .hero h1 .accent::after { display: none; }
[dir="rtl"] .hero h1 .accent { white-space: normal; }

[dir="rtl"] .sec-head__title h2,
[dir="rtl"] .process__aside h2,
[dir="rtl"] .contact__copy h2 { max-width: 20ch; }

[dir="rtl"] .eyebrow::before { display: none; }

[dir="rtl"] .highlight-line { transform-origin: right; }

/* numbers read left-to-right inside right-to-left text */
[dir="rtl"] .stats__item b,
[dir="rtl"] .kpi b,
[dir="rtl"] .case-metrics b,
[dir="rtl"] .mock-kpi b { direction: ltr; unicode-bidi: isolate; }

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

[dir="rtl"] .toggle-arrow,
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* Arabic typography needs a hair more line height */
[dir="rtl"] p,
[dir="rtl"] .lead { line-height: 1.85; }

[dir="rtl"] .ticker__item { letter-spacing: 0; }
