/* silvrap.com: clean white page, Almarai type, one teal accent, flat surfaces. */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-2: #d6dae1;
  --bg: #ffffff;
  --alt: #f7f8fa;
  --accent: #0e7490;
  --accent-hover: #155e75;
  --accent-soft: #ecf6f8;
  --accent-ink: #0b5566;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Almarai", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[lang="en"] body { font-family: "Inter", "Almarai", system-ui, sans-serif; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
/* Arrows point left (forward in Arabic); mirror them in English */
[dir="ltr"] .flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible, .lang:focus-visible, .menu-btn:focus-visible, summary:focus-visible, .links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 31px; height: 33px; }
/* In English the icon is the S of "silvrap", so it sits right against "ilvrap" */
[lang="en"] .brand { gap: 1px; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
[lang="en"] .brand-name { font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: -0.03em; }
.brand-accent { color: var(--accent); }
.links { display: flex; gap: 28px; }
.links a { font-size: 15px; color: var(--ink-2); transition: color 0.15s; }
.links a:hover { color: var(--ink); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.lang .icon { width: 17px; height: 17px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); place-items: center; cursor: pointer; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 6px 20px 14px; }
.mobile-menu a { display: block; padding: 13px 0; font-weight: 700; border-bottom: 1px solid var(--alt); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: block; }

/* ---------- Shared type ---------- */
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin-top: 14px; }
.sub { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 640px; }
.head { text-align: center; margin-bottom: 36px; }
.head .sub { margin-inline: auto; }
.head.start { text-align: start; margin-bottom: 0; }
.head.start .sub { margin-inline: 0; }
.section { padding: 64px 0; }
.alt { background: var(--alt); border-block: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; margin-top: 18px; }
.hl { color: var(--accent); }
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 7px; }
.ticks .icon { width: 17px; height: 17px; color: var(--accent); stroke-width: 2.4; }

/* Product preview */
.mock { border: 1px solid var(--line-2); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -28px rgba(15, 23, 42, 0.22); }
.mock-top { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--alt); }
.dots { display: flex; gap: 6px; direction: ltr; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6dae1; }
.mock-url { margin-inline: auto; font-size: 12px; color: var(--muted); direction: ltr; font-family: "Inter", sans-serif; }
.mock-body { display: flex; height: 420px; }
.mock-list { width: 38%; flex-shrink: 0; border-inline-end: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.m-tabs { display: flex; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.m-tabs b, .m-tabs span { padding: 4px 10px; border-radius: 999px; color: var(--muted); background: var(--alt); }
.m-tabs b { background: var(--ink); color: #fff; }
.m-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; }
.m-item.active { background: var(--accent-soft); }
.m-item div { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.45; }
.m-item b { font-size: 13px; }
.m-item small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; }
.ch { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ch.wa { background: #25d366; } .ch.ig { background: #e1306c; } .ch.tg { background: #229ed9; } .ch.web { background: var(--ink); }
.mock-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--alt); }
.c-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.c-head div { display: flex; flex-direction: column; flex: 1; line-height: 1.4; }
.c-head b { font-size: 13.5px; }
.c-head small { font-size: 11.5px; color: var(--muted); font-family: "Inter", sans-serif; }
.c-status { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.c-body { flex: 1; overflow: hidden; padding: 16px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; animation: pop 0.3s ease both; }
.msg.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-start-start-radius: 4px; }
.msg.out, .msg.ai { align-self: flex-end; background: var(--ink); color: #fff; border-start-end-radius: 4px; }
.msg.ai { background: var(--accent); }
.msg .tag-ai { display: block; font-size: 11px; font-weight: 700; opacity: 0.8; margin-bottom: 2px; }
.sys { align-self: center; font-size: 11.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; animation: pop 0.3s ease both; }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 11px 13px; border-radius: 12px; background: #e2e8f0; animation: pop 0.25s ease both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0.35; } }
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px 12px; height: 42px; padding-inline: 14px 5px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: #94a3b8; }
.c-foot i { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.c-foot .icon { width: 16px; height: 16px; }

/* ---------- Channels ---------- */
.channels { padding: 32px 0 36px; border-top: 1px solid var(--line); }
.eyebrow { text-align: center; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 20px; }
/* The chip list is duplicated by app.js and slides by exactly one copy for a seamless loop */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.track { display: flex; width: max-content; animation: slide 45s linear infinite; }
.track > .chip { margin-inline-end: 10px; }
.marquee:hover .track { animation-play-state: paused; }
[dir="rtl"] .track { animation-name: slide-rtl; }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes slide-rtl { to { transform: translateX(50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding-inline: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.chip .logo { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.chip .logo .icon { width: 17px; height: 17px; }
.chip em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.chip.muted { color: var(--muted); }

/* ---------- Pillars and cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.pillar h3 { font-size: 20px; font-weight: 800; margin: 18px 0 8px; line-height: 1.4; }
.pillar p { color: var(--muted); }
.ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color 0.15s; }
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 17px; font-weight: 800; margin: 16px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Numbers ---------- */
.numbers { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 16px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-family: "Inter", sans-serif; font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); direction: ltr; }
.stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 0.25s, transform 0.25s; }
.step::after { content: ""; position: absolute; inset-inline: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: transparent; transition: background 0.25s; }
.step.on::after { background: var(--accent); }
.step.on { border-color: var(--accent); transform: translateY(-4px); }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--alt); border: 1px solid var(--line); font-family: "Inter", sans-serif; font-size: 14px; font-weight: 700; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s; }
.step.on .num { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.12); }
.step h3 { font-size: 17px; font-weight: 800; margin: 16px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Industries ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Each card sets --k inline; the top line and the icon tint come from it */
.mini { position: relative; overflow: hidden; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s; }
.mini::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--k, var(--accent)); }
.mini:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.28); }
.mini .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--k, var(--accent)); background: color-mix(in srgb, var(--k, var(--accent)) 12%, #fff); }
.mini .icon { width: 22px; height: 22px; }
.mini h3 { font-size: 16px; font-weight: 800; margin: 14px 0 6px; }
.mini p { font-size: 14.5px; color: var(--muted); }

/* ---------- Integrations ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logo-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.logo-card b { font-family: "Inter", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; direction: ltr; text-align: start; }
.logo-card small { font-size: 13.5px; color: var(--muted); }
.logo-card.soon { border-style: dashed; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] .plus { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 680px; }

/* ---------- Final call to action ---------- */
.final { background: var(--ink); color: #fff; padding: 56px 0; }
.final-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.final h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.3; }
.final p { margin-top: 10px; color: #cbd5e1; max-width: 560px; }
.final-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 0; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 400px; color: var(--muted); font-size: 15px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links b { font-size: 15px; margin-bottom: 4px; }
.foot-links a { color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { margin-top: 44px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .links { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-in, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .ticks { justify-content: center; }
  .pillars, .grid3 { grid-template-columns: repeat(2, 1fr); }
  .grid4, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .head.start { text-align: center; }
  .head.start .sub { margin-inline: auto; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { width: min(1160px, 100% - 32px); }
  .nav-in { gap: 12px; height: 62px; }
  .nav-cta { display: none; }
  .hero { padding: 44px 0 56px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .pillars, .grid3, .grid4, .steps, .logos { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .head { margin-bottom: 28px; }
  .mock-list { display: none; }
  .mock-body { height: 360px; }
  .final-in { text-align: center; justify-content: center; }
  .final p { margin-inline: auto; }
  .final-cta { width: 100%; }
  .final-cta .btn { flex: 1 1 100%; }

  /* Phone-sized cards: icon beside the title instead of above it, tighter padding and type */
  h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .h2 { font-size: 24px; margin-top: 10px; }
  .sub { font-size: 15px; margin-top: 10px; }
  .pillars, .grid3, .grid4, .steps, .logos { gap: 10px; }
  .pillar, .card, .mini, .step {
    display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start;
    padding: 14px 16px; border-radius: 12px;
  }
  .pillar .ic, .card .ic, .mini .ic, .step .num { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; }
  .pillar h3, .card h3, .mini h3, .step h3 { margin: 0; font-size: 15.5px; line-height: 1.45; }
  .pillar p, .card p, .mini p, .step p { font-size: 13.5px; line-height: 1.6; }
  .mini .icon { width: 20px; height: 20px; }
  .step.on { transform: none; }
  .logo-card { padding: 12px 14px; }
  .logo-card b { font-size: 15px; }
  .stat { padding: 22px 10px; }
  .stat b { font-size: 34px; }
  .stat span { font-size: 13.5px; }
  .faq summary { padding: 16px 0; font-size: 15.5px; }
  .faq details p { font-size: 14px; padding-bottom: 16px; }
  .final { padding: 40px 0; }
  .final h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .sys, .typing, .typing i { animation: none; }
  .track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
