/* Vwayaj B2B — public website. Same tokens as the app; logical properties for Arabic (RTL). */
:root {
  color-scheme: light;
  /* Vwayaj palette: light blue #0896FF, dark blue #003580, white #FFFFFF, lighter blue #C7D1E3 (see app.css). */
  --vw-light: #0896ff; --vw-dark: #003580; --vw-lighter: #c7d1e3;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f1f4f8; --ink: #0b1730; --ink-2: #2b3a55; --muted: #5a6b85; --line: #c7d1e3;
  --brand: #003580; --brand-ink: #ffffff; --brand-soft: #e6f5ff; --brand-deep: #003580; --accent: #0896ff;
  --radius: 14px; --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 12px 32px rgb(15 23 42 / 0.08);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Bengali', Vrinda, 'Nirmala UI', Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { color-scheme: dark; --bg: #050e1f; --surface: #0b1a33; --surface-2: #081530; --ink: #e8eef8; --ink-2: #c9d4e6; --muted: #93a3bd; --line: #1f3354; --brand: #0896ff; --brand-ink: #00163a; --brand-soft: #0a2c55; --brand-deep: #001a40; --accent: #0896ff; --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.35); }
}
:root[data-theme='dark'] { color-scheme: dark; --bg: #050e1f; --surface: #0b1a33; --surface-2: #081530; --ink: #e8eef8; --ink-2: #c9d4e6; --muted: #93a3bd; --line: #1f3354; --brand: #0896ff; --brand-ink: #00163a; --brand-soft: #0a2c55; --brand-deep: #001a40; --accent: #0896ff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.small { font-size: 13.5px; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-lg { min-height: 48px; padding: 10px 22px; font-size: 16px; }
.input { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; padding: 6px 10px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.nav { display: flex; gap: 18px; margin-inline-start: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--brand); }
.top-actions { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; }

.hero { background: linear-gradient(160deg, var(--brand-soft), var(--bg) 70%); padding: 72px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
html[lang='ar'] .eyebrow { letter-spacing: 0; }
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.02em; margin-bottom: 18px; }
html[lang='ar'] .hero h1 { letter-spacing: 0; line-height: 1.35; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 12px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.hero-card-head { font-weight: 700; margin-bottom: 16px; color: var(--ink-2); }
.svc-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.svc-mini span { aspect-ratio: 1; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }

.band { padding: 72px 0; }
.band.alt { background: var(--surface-2); }
.band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; letter-spacing: -0.01em; }
.sub { color: var(--muted); max-width: 680px; margin-bottom: 30px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.svc { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.svc svg { color: var(--brand); flex: none; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p, .feat p { color: var(--muted); font-size: 15px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.feat { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feat > span { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: inherit; text-decoration: none; }
.post img, .post-ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.post-body { display: grid; gap: 6px; padding: 16px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.foot { border-top: 1px solid var(--line); padding: 36px 0 24px; background: var(--surface-2); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--brand); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-in, .contact { grid-template-columns: 1fr; }
  .feat-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .top-in { gap: 10px; }
  .top-actions .input { max-width: 96px; }
  .top .brand-logo { height: 22px; }
  .top .logo { flex: 0 1 auto; min-width: 0; }
  .top-actions { gap: 6px; }
  .top-actions .btn { padding: 8px 12px; }
  .logo span:last-child { font-size: 15px; }
  .hero { padding: 44px 0 40px; }
  .band { padding: 48px 0; }
  .steps, .feat-grid, .post-grid { grid-template-columns: 1fr; }
  .svc-mini { grid-template-columns: repeat(5, 1fr); }
  .contact-list { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* API reference */
.api-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.api-tools .input { flex: 1; min-width: 220px; max-width: 420px; }
.api-group { margin-bottom: 28px; }
.api-group h2 { font-size: 18px; margin-bottom: 10px; }
.api-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.api-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 0.6fr); gap: 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); }
.api-row:first-child { border-top: 0; }
.api-row code { font-size: 13px; overflow-wrap: anywhere; text-align: start; }
.m { font: 700 11.5px ui-monospace, Menlo, monospace; padding: 3px 6px; border-radius: 6px; text-align: center; background: var(--surface-2); }
.m-get { color: #047857; } .m-post { color: #003580; } .m-put, .m-patch { color: #a16207; } .m-delete { color: #b91c1c; }
@media (max-width: 640px) { .api-row { grid-template-columns: 62px minmax(0, 1fr); } .api-row > span:last-child { grid-column: 2; } }

/* Vwayaj logo (transparent wordmark); white tile on dark backgrounds. Footer company block. */
.brand-logo { display: block; height: 32px; width: auto; }
.foot .brand-logo { height: 30px; }
.foot-brand address { font-style: normal; margin-top: 12px; line-height: 1.7; max-width: 520px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .brand-logo { background: #fff; padding: 4px 8px; border-radius: 8px; box-sizing: content-box; } }
:root[data-theme='dark'] .brand-logo { background: #fff; padding: 4px 8px; border-radius: 8px; box-sizing: content-box; }
