/* ============================================================================
   RELAY brand layer - Light & Premium (unlayered; wins over Quanta base).
   Warm off-white ground, near-black ink, ONE emerald accent. Enterprise-clean
   (Sierra/Decagon register), no rainbow gradient.
   ============================================================================ */
:root {
  --bg: #f4f4f1;
  --bg-2: #efeeea;
  --surface: #ffffff;
  --ink: #111318;
  --ink-soft: #565c6b;
  --ink-faint: #8a8f9c;
  --line: #e6e5e1;
  --line-2: #d7d6d1;
  --accent: #0e9e67;
  --accent-soft: rgba(14, 158, 103, 0.12);
  --accent-press: #0b7f53;
  --wa: #25d366;

  --radius: 20px;
  --radius-sm: 14px;
  --pill: 999px;

  --font-display: "Clash Display", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 52px);
  --shadow: 0 1px 2px rgba(17, 19, 24, 0.04), 0 12px 32px -16px rgba(17, 19, 24, 0.12);
  --shadow-lg: 0 30px 80px -34px rgba(17, 19, 24, 0.35);
}

html { background-color: var(--bg) !important; color: var(--ink) !important; color-scheme: light !important; scroll-behavior: smooth; }
body.relay-body {
  min-height: 100dvh; background-color: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.62; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[dir="rtl"] body.relay-body { letter-spacing: 0; }
.relay-body ::selection { background: var(--accent); color: #fff; }
.relay-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main, header, footer { position: relative; z-index: 1; }

.rl-wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grad-text { color: var(--accent); }

.rl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body);
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--ink-soft);
  border: 1px solid var(--line-2); border-radius: var(--pill); padding: 6px 14px 6px 12px; background: var(--surface);
}
.rl-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.rl-h1, .rl-h2, .rl-h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.03; margin: 0; text-wrap: balance; color: var(--ink); }
.rl-h1 { font-size: clamp(3rem, 7.2vw, 6rem); font-weight: 600; line-height: 0.98; }
.rl-h2 { font-size: clamp(1.95rem, 4vw, 3.1rem); line-height: 1.06; }
.rl-h3 { font-size: 1.24rem; font-weight: 600; }
.rl-lead { color: var(--ink-soft); font-size: 1.15rem; max-width: 44ch; margin: 0; }
[dir="rtl"] .rl-h1, [dir="rtl"] .rl-h2, [dir="rtl"] .rl-h3, [dir="rtl"] .rl-lead { letter-spacing: 0; }

/* top bar */
.rl-bar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.rl-bar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.rl-brand { display: flex; align-items: center; gap: 11px; }
.rl-brand img { width: 30px; height: 30px; display: block; border-radius: 9px; }
.rl-brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.03em; }
.rl-nav { display: flex; align-items: center; gap: 26px; }
.rl-nav a.rl-navlink { text-decoration: none; color: var(--ink-soft); font-size: 0.93rem; }
.rl-nav a.rl-navlink:hover { color: var(--ink); }
@media (max-width: 860px) { .rl-nav a.rl-navlink { display: none; } }
.rl-lang { font-family: var(--font-body); font-size: 0.85rem; font-weight: 550; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 8px 14px; cursor: pointer; }
.rl-lang:hover { color: var(--ink); border-color: var(--ink-faint); }

/* CTAs: ink primary (premium), quiet secondary */
.cta-nav { font-size: 0.92rem; font-weight: 560; text-decoration: none; color: #fff; background: var(--ink); border-radius: var(--pill); padding: 10px 20px; white-space: nowrap; transition: transform 0.12s ease, background 0.16s; }
.cta-nav:hover { transform: translateY(-1px); background: #000; }
.cta-primary { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; text-decoration: none; color: #fff; background: var(--ink); border-radius: var(--pill); padding: 16px 30px; box-shadow: var(--shadow); transition: transform 0.12s ease; }
.cta-primary:hover { transform: translateY(-2px); }
.cta-primary .arw, .cta-block .arw { transition: transform 0.18s ease; }
.cta-primary:hover .arw, .cta-block:hover .arw { transform: translateX(5px); }
.cta-ghost { display: inline-flex; align-items: center; gap: 9px; font-weight: 550; font-size: 1.02rem; text-decoration: none; color: var(--ink); border-radius: var(--pill); padding: 15px 26px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color 0.16s, background 0.16s; }
.cta-ghost:hover { border-color: var(--ink-faint); }
.cta-block { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.4rem); letter-spacing: -0.02em; text-decoration: none; color: #fff; background: var(--ink); border-radius: var(--pill); padding: 18px 34px; transition: transform 0.12s ease; }
.cta-block:hover { transform: translateY(-2px); }

/* hero */
.rl-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(30px, 5vw, 56px); }
.rl-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .rl-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.rl-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.rl-statpills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rl-statpill { border-radius: var(--pill); padding: 11px 20px; background: var(--surface); border: 1px solid var(--line-2); font-size: 0.92rem; color: var(--ink-soft); white-space: nowrap; }
.rl-statpill b { font-family: var(--font-display); font-weight: 600; color: var(--accent); margin-inline-end: 6px; }

.rl-hero-stage { position: relative; display: grid; place-items: center; padding: 24px; }
.rl-hero-stage::before { content: ""; position: absolute; inset: 4% 2%; z-index: 0; background: radial-gradient(52% 56% at 50% 46%, var(--accent-soft), transparent 72%); filter: blur(30px); pointer-events: none; }
.rl-hero-stage::after { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask: radial-gradient(72% 72% at 50% 50%, #000, transparent 76%); mask: radial-gradient(72% 72% at 50% 50%, #000, transparent 76%); opacity: 0.5; pointer-events: none; }
.rl-hero-stage > * { position: relative; z-index: 1; }
.rl-float { animation: rl-float 7s ease-in-out infinite; }
@keyframes rl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* chat demo (light) */
.rl-chat { border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 420px; width: 100%; margin-inline: auto; }
.rl-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fafaf8; }
.rl-chat-av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; }
.rl-chat-who b { font-weight: 600; font-size: 0.98rem; }
.rl-chat-who small { color: var(--accent); font-size: 0.76rem; display: flex; align-items: center; gap: 5px; }
.rl-chat-who small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.rl-chat-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; justify-content: flex-end; background: #f7f7f4; }
.rl-msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; animation: msgIn 0.32s ease; box-shadow: 0 1px 1px rgba(17,19,24,.05); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rl-msg.user { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-inline-start-radius: 5px; }
.rl-msg.bot { align-self: flex-end; color: #08351f; background: #dcf8c6; border-bottom-inline-end-radius: 5px; }
.rl-typing { align-self: flex-end; background: #fff; border: 1px solid var(--line); padding: 13px 16px; border-radius: 16px; display: inline-flex; gap: 5px; }
.rl-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: dot 1.2s infinite; }
.rl-typing span:nth-child(2) { animation-delay: 0.2s; }
.rl-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.rl-chat-chip { align-self: center; margin-top: 4px; font-size: 0.8rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 14px; }

/* trust bar */
.rl-trust { padding: clamp(30px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rl-trust .cap { text-align: center; color: var(--ink-faint); font-size: 0.82rem; margin: 0 0 22px; }
.rl-trust-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(22px, 4vw, 48px); }
.rl-trust-row img { height: 24px; width: auto; opacity: 0.7; transition: opacity 0.2s ease; }
.rl-trust-row img:hover { opacity: 1; }

/* sections */
.rl-section { position: relative; padding: clamp(66px, 9vw, 116px) 0; }
.rl-sec-head { max-width: 60ch; margin-bottom: clamp(38px, 5vw, 56px); }
.rl-sec-head .rl-eyebrow { margin-bottom: 20px; }
.rl-sec-head .rl-h2 { margin-top: 14px; }

/* bento (light, premium white cards) */
.rl-bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 761px) {
  .rl-bento { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, minmax(190px, auto)); }
  .rl-bento .rl-card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .rl-bento .rl-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .rl-bento .rl-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .rl-bento .rl-card:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
}
.rl-card { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 32px; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.rl-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px -22px rgba(17, 19, 24, 0.28); }
.rl-card-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--accent); margin-bottom: 20px; }
.rl-card-ic svg { width: 26px; height: 26px; color: #fff; }
.rl-bento .rl-card:nth-child(1) .rl-card-ic { width: 60px; height: 60px; }
.rl-bento .rl-card:nth-child(1) h3 { font-size: 1.5rem; }
.rl-card h3 { margin-bottom: 10px; }
.rl-card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* industries */
.rl-uc-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.rl-uc-tab { font-family: var(--font-body); font-size: 0.95rem; font-weight: 550; cursor: pointer; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 10px 20px; transition: all 0.16s ease; }
.rl-uc-tab:hover { color: var(--ink); }
.rl-uc-tab.on { color: #fff; background: var(--ink); border-color: transparent; }
.rl-uc-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.rl-uc-panel h3 { margin-bottom: 20px; }
.rl-uc-flow { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.rl-uc-flow .m { padding: 12px 16px; border-radius: 14px; font-size: 0.98rem; }
.rl-uc-flow .m.u { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.rl-uc-flow .m.a { align-self: flex-end; color: #fff; background: var(--accent); }

/* work gallery */
.rl-works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .rl-works { grid-template-columns: 1fr; } }
.rl-work { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform 0.2s ease; }
.rl-work:hover { transform: translateY(-4px); }
.rl-work .media { aspect-ratio: 16 / 10; position: relative; background: #0e0f14; }
.rl-work .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-work .meta { padding: 20px 24px; }
.rl-work .meta .t { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.rl-work .meta h3 { margin-top: 7px; }

/* faq */
.rl-faq { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.rl-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 4px 22px; box-shadow: var(--shadow); }
.rl-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rl-faq summary::-webkit-details-marker { display: none; }
.rl-faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s ease; }
.rl-faq details[open] summary::after { transform: rotate(45deg); }
.rl-faq p { color: var(--ink-soft); margin: 0 0 20px; font-size: 0.98rem; max-width: 62ch; }

/* closing CTA */
.rl-cta { position: relative; border-radius: var(--radius); overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 92px) clamp(24px, 5vw, 60px); background: radial-gradient(60% 130% at 50% 0%, var(--accent-soft), transparent 68%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rl-cta h2 { max-width: 20ch; margin: 0 auto 16px; }
.rl-cta p { color: var(--ink-soft); max-width: 42ch; margin: 0 auto 34px; font-size: 1.1rem; }

/* footer */
.rl-footer { border-top: 1px solid var(--line); padding: 40px 0 60px; }
.rl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.86rem; color: var(--ink-faint); }
.rl-foot a { color: var(--ink-soft); text-decoration: none; }
.rl-foot a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rl-float, .rl-msg, .rl-typing span { animation: none; }
  .cta-primary, .cta-nav, .cta-block, .rl-card, .rl-work { transition: none; }
}

/* ---------- visual feature rows (zigzag with screenshots) ---------- */
.rl-feats { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 88px); }
.rl-feat { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.rl-feat.rev .rl-feat-media { order: 2; }
@media (max-width: 820px) { .rl-feat, .rl-feat.rev { grid-template-columns: 1fr; gap: 26px; } .rl-feat.rev .rl-feat-media { order: 0; } }
.rl-feat-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.rl-feat-media::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(17,19,24,.03); pointer-events: none; }
.rl-feat-media img { display: block; width: 100%; height: auto; }
.rl-feat-body .rl-card-ic { margin-bottom: 20px; }
.rl-feat-body h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.rl-feat-body p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; max-width: 46ch; }

/* ---------- services / pricing ---------- */
.rl-svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .rl-svcs { grid-template-columns: 1fr; } }
.rl-svc { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 32px 28px; box-shadow: var(--shadow); }
.rl-svc .who { color: var(--ink-soft); font-size: 0.92rem; margin: 6px 0 18px; min-height: 2.6em; }
.rl-svc .price { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.02em; }
.rl-svc .price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--ink-faint); margin-top: 4px; letter-spacing: 0; }
.rl-svc ul { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.rl-svc li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
.rl-svc li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); margin-top: 1px; }
.rl-svc .cta-ghost, .rl-svc .cta-primary { justify-content: center; width: 100%; font-size: 0.98rem; }
/* featured: dark ink card among light */
.rl-svc.feat { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 30px 70px -30px rgba(17, 19, 24, 0.5); }
.rl-svc.feat .rl-h3, .rl-svc.feat .price { color: #fff; }
.rl-svc.feat .who { color: rgba(255, 255, 255, 0.65); }
.rl-svc.feat .price small { color: rgba(255, 255, 255, 0.5); }
.rl-svc.feat li { color: rgba(255, 255, 255, 0.78); }
.rl-svc.feat li::before { color: #7ee2b8; background: rgba(126, 226, 184, 0.14); }
.rl-svc.feat .cta-primary { background: var(--accent); }
.rl-svc .badge { position: absolute; top: -13px; inset-inline-start: 24px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; color: #fff; background: var(--accent); border-radius: var(--pill); padding: 5px 14px; }
/* trust strip under pricing */
.rl-svc-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; color: var(--ink-soft); font-size: 0.9rem; }
.rl-svc-trust span { display: inline-flex; align-items: center; gap: 8px; }
.rl-svc-trust span::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- services v2 (no prices, detail-rich) ---------- */
.rl-svc .meta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 550; color: var(--accent); background: var(--accent-soft); border-radius: var(--pill); padding: 7px 14px; margin-bottom: 4px; }
.rl-svc.feat .meta { color: #7ee2b8; background: rgba(126, 226, 184, 0.14); }

/* ---------- experience / about ---------- */
.rl-about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .rl-about { grid-template-columns: 1fr; } }
.rl-about .rl-lead { margin-top: 18px; max-width: 52ch; }
.rl-cred { display: flex; flex-direction: column; gap: 12px; }
.rl-cred .item { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 18px 20px; box-shadow: var(--shadow); }
.rl-cred .item .ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.rl-cred .item b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.rl-cred .item p { margin: 3px 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- footer v2 (multi-column) ---------- */
.rl-footer2 { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.rl-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 820px) { .rl-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .rl-foot-grid { grid-template-columns: 1fr; } }
.rl-foot-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 30ch; margin: 12px 0 0; }
.rl-foot-col h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin: 0 0 14px; }
.rl-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rl-foot-col a, .rl-foot-col span { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.rl-foot-col a:hover { color: var(--accent); }
.rl-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; color: var(--ink-faint); font-size: 0.82rem; }
