/* Rumuz site. One accent (brand red), one radius system:
   buttons = pill, cards = 20px, small chips = 12px. Theme follows the system. */

@font-face {
  font-family: "Readex Pro";
  src: url("/assets/fonts/readex-arabic.woff2") format("woff2");
  font-weight: 160 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Readex Pro";
  src: url("/assets/fonts/readex-latin.woff2") format("woff2");
  font-weight: 160 700;
  font-display: swap;
  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;
}

:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #ececee;
  --ink: #18181b;
  --muted: #52525b;
  --line: #dcdce0;
  --red: #dc1a21;
  --red-text: #c8141b;
  --on-red: #ffffff;
  --ink-cell: #18181b;
  --on-ink-cell: #f4f4f5;
  --on-ink-cell-muted: #b4b4bb;
  --tint: rgba(220, 26, 33, 0.07);
  --shadow: 0 18px 50px -24px rgba(24, 24, 27, 0.28);
  --r-card: 20px;
  --r-chip: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #17171a;
    --surface-2: #202024;
    --ink: #f4f4f5;
    --muted: #a6a6ae;
    --line: #2c2c31;
    --red-text: #ff5a60;
    --ink-cell: #1f1f24;
    --on-ink-cell: #f4f4f5;
    --on-ink-cell-muted: #a6a6ae;
    --tint: rgba(255, 59, 65, 0.1);
    --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.ico-flip { transform: scaleX(-1); }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand svg { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.95rem; color: var(--muted); }
.nav-links a { transition: color 0.2s; padding-block: 8px; }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.lang:hover { border-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding-inline: 26px; border-radius: 999px; white-space: nowrap;
  font: inherit; font-weight: 500; font-size: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: color-mix(in srgb, var(--red) 88%, #000); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding-inline: 20px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 88px; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; min-height: calc(100dvh - var(--nav-h) - 96px); }
.eyebrow { color: var(--red-text); font-weight: 500; font-size: 0.95rem; margin-bottom: 20px; }
h1 {
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.22; font-weight: 600; letter-spacing: -0.01em;
  text-wrap: balance;
}
html[lang="en"] h1 { line-height: 1.08; letter-spacing: -0.03em; }
.hero p.lead { margin-top: 24px; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: var(--muted); max-width: 34em; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r-card); background: var(--red); overflow: hidden;
  box-shadow: var(--shadow); isolation: isolate;
}
.hero-visual svg.mark-big { position: absolute; width: 150%; inset-inline-start: -8%; top: 8%; opacity: 1; }
.hero-visual svg.mark-big path { fill: #ffffff; }
.hero-visual svg.mark-ghost { position: absolute; width: 150%; inset-inline-start: -2%; top: 46%; opacity: 0.22; }
.hero-visual svg.mark-ghost path { fill: #000; }
.hero-visual .tag {
  position: absolute; inset-inline-start: 18px; bottom: 18px; z-index: 2; color: #fff; font-weight: 500;
  font-size: 1rem; line-height: 1.5; background: rgba(24, 24, 27, 0.72); padding: 12px 16px; border-radius: var(--r-chip);
}

/* ---------- Sections ---------- */
section { padding-block: 104px; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: 1.3; font-weight: 600; text-wrap: balance; max-width: 18em; }
html[lang="en"] h2 { line-height: 1.12; letter-spacing: -0.025em; }
.sec-sub { margin-top: 16px; color: var(--muted); max-width: 36em; font-size: 1.08rem; }

/* Services bento: exactly 4 cells */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 16px; }
.cell { border-radius: var(--r-card); padding: 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 260px; }
.cell h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.35; }
.cell p { color: inherit; opacity: 0.82; max-width: 30em; }
.cell .ico-lg { width: 40px; height: 40px; margin-bottom: auto; fill: currentColor; }
.cell-a { grid-column: span 5; grid-row: span 2; background: var(--red); color: #fff; min-height: 540px; }
.cell-a svg.mark-wm { position: absolute; width: 130%; inset-inline-end: -40%; top: -6%; opacity: 0.16; pointer-events: none; }
.cell-a svg.mark-wm path { fill: #fff; }
.cell-b { grid-column: span 7; background: var(--surface); border: 1px solid var(--line); }
.cell-c { grid-column: span 4; background: var(--ink-cell); color: var(--on-ink-cell); }
.cell-c p { color: var(--on-ink-cell-muted); opacity: 1; }
.cell-d { grid-column: span 3; background: linear-gradient(160deg, var(--tint), transparent 70%), var(--surface); border: 1px solid var(--line); }
.cell-a .ico-lg { position: relative; }

/* About statement */
.statement { padding-block: 40px 104px; }
.statement p { font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); line-height: 1.5; font-weight: 500; max-width: 24em; text-wrap: balance; }
html[lang="en"] .statement p { line-height: 1.25; letter-spacing: -0.02em; }
.statement em { font-style: normal; color: var(--red-text); }
.statement .pad-start { padding-inline-start: clamp(0px, 12vw, 180px); }

/* Process */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; border-inline-end: 1px solid var(--line); padding-inline-end: 28px; padding-inline-start: 28px; }
.step:first-child { padding-inline-start: 0; }
.step:last-child { border-inline-end: 0; }
.step h3 { font-size: 1.7rem; font-weight: 600; color: var(--red-text); margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Platform */
.platform { background: var(--surface); border-block: 1px solid var(--line); }
.platform-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
.checks { margin-top: 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { color: var(--red-text); margin-top: 6px; }
.plat-panel {
  border-radius: var(--r-card); background: var(--ink-cell); color: var(--on-ink-cell); padding: 40px;
  min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.plat-panel svg.mark-wm { position: absolute; width: 90%; inset-inline-end: -30%; bottom: -22%; opacity: 0.9; }
.plat-panel .big { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 600; line-height: 1.25; position: relative; max-width: 8em; }
.plat-panel .sm { color: var(--on-ink-cell-muted); position: relative; max-width: 22em; }

/* Company details */
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 26px; }
.fact dt { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.fact dd { font-weight: 500; font-size: 1.08rem; line-height: 1.6; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; letter-spacing: 0.02em; }

/* Contact */
.contact { padding-block: 40px 120px; }
.contact-box {
  border-radius: var(--r-card); background: var(--red); color: #fff; padding: clamp(36px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; position: relative; overflow: hidden; isolation: isolate;
}
.contact-box svg.mark-wm { position: absolute; width: 60%; inset-inline-start: -14%; bottom: -40%; opacity: 0.14; z-index: -1; }
.contact-box svg.mark-wm path { fill: #fff; }
.contact-box h2 { color: #fff; max-width: 12em; }
.contact-box p { margin-top: 14px; opacity: 0.92; max-width: 32em; }
.contact-box .mail { display: inline-block; margin-top: 18px; font-weight: 500; font-size: 1.15rem; direction: ltr; unicode-bidi: isolate; border-bottom: 2px solid rgba(255, 255, 255, 0.6); }
.btn-white { background: #fff; color: #18181b; }
.btn-white:hover { transform: translateY(-2px); background: #f4f4f5; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 48px; color: var(--muted); font-size: 0.95rem; }
.foot { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot .brand svg { height: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { padding-block: 10px; }
.foot-links a:hover { color: var(--ink); }
.foot small { display: block; margin-top: 16px; font-size: 0.88rem; max-width: 34em; }

/* Legal pages */
.legal { padding-block: 72px 112px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.legal .updated { color: var(--muted); margin-top: 12px; }
.legal h2 { font-size: 1.4rem; margin-top: 48px; max-width: none; }
.legal p, .legal li { margin-top: 14px; color: var(--muted); }
.legal li { padding-inline-start: 20px; position: relative; }
.legal li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.legal a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .rv.in { opacity: 1; transform: none; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .cta-row { animation: rise 0.9s var(--ease) both; }
  .hero h1 { animation-delay: 0.08s; } .hero .lead { animation-delay: 0.18s; } .hero .cta-row { animation-delay: 0.28s; }
  .hero-visual { animation: reveal 1.1s var(--ease) both 0.1s; }
  .hero-visual svg.mark-big { animation: drift 1.4s var(--ease) both 0.3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes reveal { from { opacity: 0; clip-path: inset(0 0 100% 0 round 20px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 20px); } }
  @keyframes drift { from { transform: translateX(14%) rotate(-3deg); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-visual { aspect-ratio: 16 / 10; }
  .hero-visual svg.mark-big { width: 90%; top: -6%; }
  .hero-visual svg.mark-ghost { width: 90%; top: 40%; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-a { grid-column: span 2; grid-row: auto; min-height: 340px; }
  .cell-b { grid-column: span 2; }
  .cell-c, .cell-d { grid-column: span 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-inline-end: 0; padding-inline: 0 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .step:first-child { padding-inline-start: 0; }
  .platform-grid { grid-template-columns: 1fr; gap: 48px; }
  .facts { grid-template-columns: 1fr 1fr; }
    .contact-box { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  section { padding-block: 72px; }
  .hero { padding-block: 24px 64px; }
  .bento, .steps, .facts { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d { grid-column: auto; }
  .cell { padding: 26px; min-height: 220px; }
  .cta-row .btn { flex: 1 1 100%; }
  .contact-box .btn { width: 100%; }
  .brand svg { height: 26px; }
}
