/* Nuwas Commerce landing page. Static, no third-party requests (fonts are self-hosted, see fonts/OFL.txt). */

@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("/fonts/cairo-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("/fonts/cairo-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("/fonts/cairo-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("/fonts/cairo-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700.woff2") format("woff2"); }

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --soft: #edf4f0;
  --fg: #10302b;
  --muted: #5d6f6a;
  --border: #d7e2dd;
  --primary: #0e7c66;
  --primary-fg: #ffffff;
  --accent: #e4572e;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(16 48 43 / 6%), 0 8px 24px rgb(16 48 43 / 6%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1c19;
    --surface: #13261f;
    --soft: #172f28;
    --fg: #e8f1ed;
    --muted: #9db3ac;
    --border: #25413a;
    --primary: #2bb394;
    --primary-fg: #04201a;
    --accent: #f07a55;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.7 "Poppins", "Cairo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: "Cairo", system-ui, sans-serif; line-height: 1.8; }
a { color: var(--primary); }
img, svg { max-width: 100%; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--fg); }
.nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.8rem; color: var(--fg); }
@media (max-width: 48rem) { .nav a:not(.lang) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.4rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); }

/* hero */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .wrap { display: grid; gap: 3rem; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
@media (max-width: 56rem) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 2.5rem; } }
.eyebrow { display: inline-block; background: var(--soft); color: var(--primary); border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.85rem; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin: 1rem 0; letter-spacing: -0.01em; }
html[lang="ar"] h1 { line-height: 1.4; letter-spacing: 0; }
h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.note { font-size: 0.85rem; color: var(--muted); }

.mock { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); padding: 1.25rem; }
.mock-bar { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.mock-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--border); }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row b { font-variant-numeric: tabular-nums; }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--soft); color: var(--primary); }
.chip.warm { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* sections */
section { padding: 4rem 0; scroll-margin-top: 4rem; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.3; margin: 0 0 0.5rem; }
.sub { color: var(--muted); margin: 0 0 2.25rem; max-width: 44rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
section.alt .card { background: var(--surface); }
.card h3 { margin: 0.6rem 0 0.35rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .ico { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; display: grid; place-items: center; background: var(--soft); color: var(--primary); }
.card .ico svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.8rem; }
.tags span { font-size: 0.78rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.55rem; color: var(--muted); }

.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pillar { padding: 1.2rem 0; border-top: 3px solid var(--primary); }
.pillar h3 { margin: 0.3rem 0; font-size: 1.05rem; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.demo { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.demo .card { display: flex; flex-direction: column; gap: 0.6rem; }
.demo .card .btn { margin-top: auto; align-self: flex-start; }

.steps { counter-reset: s; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: var(--primary-fg); font-weight: 700; margin-bottom: 0.6rem; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 0.95rem; }

.contact { text-align: center; }
.contact .sub { margin-inline: auto; }
.contact .cta { justify-content: center; }

footer { padding: 2rem 0 3rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
