/* ==========================================================================
   خالد طارق — personal site
   Plain CSS, mobile-first, RTL.
   ========================================================================== */

:root {
  --ink: #0B1220;
  --ink-soft: #1B2436;
  --body: #3C4658;
  --muted: #68738A;
  --line: #E4E9F2;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --brand: #1D4ED8;
  --brand-deep: #14349C;
  --brand-soft: #EEF4FF;
  --teal: #0EA5A4;
  --radius: 20px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 18px 40px -22px rgba(11, 18, 32, .28);
  --header-h: 68px;

  /* type scale */
  --fs-display: clamp(2rem, 4.6vw, 3.05rem);
  --fs-h1: clamp(1.6rem, 3.4vw, 2.35rem);
  --fs-h2: clamp(1.38rem, 2.7vw, 1.9rem);
  --fs-h3: 1.06rem;
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  /* spacing rhythm */
  --sec-y: clamp(56px, 6.4vw, 92px);
  --gap: clamp(16px, 1.7vw, 22px);
  --card-pad: clamp(22px, 2.1vw, 28px);

  /* surfaces */
  --card-radius: 16px;
  --panel-radius: 20px;
  --inner-radius: 12px;
  --btn-radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 18px -14px rgba(11, 18, 32, .32);
  --shadow-md: 0 2px 4px rgba(11, 18, 32, .04), 0 20px 44px -26px rgba(11, 18, 32, .32);
  --shadow-lg: 0 30px 70px -44px rgba(11, 18, 32, .5);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Cairo", "Noto Kufi Arabic", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--brand); }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid #93B4FF;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--brand);
  filter: drop-shadow(0 6px 12px rgba(29, 78, 216, .22));
}

/* the mark is one colour: on a dark surface it flips to white */
.section-dark .brand-mark,
.on-dark .brand-mark { color: #fff; }

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
}

.brand-text small {
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .3px;
}

.nav {
  display: none;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: var(--body);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  transition: color .15s ease;
}

.nav a:hover { color: var(--brand); }

.nav a.btn { color: #fff; }

.nav.open {
  display: flex;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 12px 20px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -30px rgba(11, 18, 32, .55);
}

.nav.open a {
  padding: 11px 6px;
  border-radius: 10px;
}

.nav.open a.btn {
  margin-top: 8px;
  justify-content: center;
  padding: 12px 18px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(29, 78, 216, .9);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -16px rgba(29, 78, 216, .95);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: #C9D4E8; background: #FBFCFE; }

.btn-sm {
  padding: 9px 18px;
  border-radius: 10px;
  font-size: .9rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: 44px 8px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(29, 78, 216, .10), transparent 70%),
    radial-gradient(700px 380px at 10% 0%, rgba(14, 165, 164, .10), transparent 70%),
    #fff;
}

.hero-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid #D8E3FF;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: .84rem;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .16);
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.32;
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(.98rem, 1.5vw, 1.06rem);
  line-height: 1.85;
  color: var(--body);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.1vw, 1.65rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  unicode-bidi: plaintext;
}

.stat span {
  font-size: .86rem;
  color: var(--muted);
  font-weight: 600;
}

/* hero artwork */

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
  padding-block: 18px;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(360px, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(29, 78, 216, .18), rgba(14, 165, 164, .10) 55%, transparent 72%);
  filter: blur(6px);
}

.phone {
  position: relative;
  width: 250px;
  height: 500px;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #131C2E, #0B1220 60%);
  box-shadow: 0 40px 60px -34px rgba(11, 18, 32, .65), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: rotate(-2.5deg);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 8px;
  border-radius: 999px;
  background: #2A3446;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  padding: 26px 14px 14px;
  border-radius: 32px;
  background: linear-gradient(180deg, #F7F9FF, #EAF0FD);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.ps-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ps-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand), var(--teal));
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
}

.ps-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-lines i {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: #D5DDEC;
}

.ps-lines i:first-child { width: 66px; }
.ps-lines i:last-child { width: 42px; background: #E4EAF4; }

.ps-card {
  margin-top: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px -18px rgba(11, 18, 32, .55);
}

.ps-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
}

.ps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 7px;
  border-top: 1px dashed #E9EEF7;
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.ps-row:first-of-type { margin-top: 6px; }

.ps-row b { color: var(--brand); font-size: .8rem; }

.ps-bubble {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 5px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .73rem;
  font-weight: 600;
  box-shadow: 0 8px 18px -14px rgba(11, 18, 32, .5);
}

.ps-bubble.alt {
  align-self: flex-end;
  border-radius: 14px 14px 5px 14px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px -14px rgba(29, 78, 216, .9);
}

.ps-tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #E1E8F4;
}

.ps-tabbar i {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #D9E1F0;
}

.ps-tabbar i:first-child { background: var(--brand); opacity: .9; }

.chip-float {
  position: absolute;
  z-index: 3;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.chip-float.a {
  top: 34px;
  inset-inline-start: 4px;
  direction: ltr;
}

.chip-float.b {
  bottom: 48px;
  inset-inline-end: 0;
  direction: ltr;
}

/* ---------- sections ---------- */

.section { padding-block: var(--sec-y); }

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 620px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .7;
}

.section-head h2,
.contact-card h2 {
  font-size: var(--fs-h2);
  line-height: 1.4;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.85;
  text-wrap: pretty;
}

.grid-3 {
  display: grid;
  gap: var(--gap);
}

.card {
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #D3DDEF;
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 8px;
  font-size: var(--fs-h3);
  line-height: 1.45;
}

.card p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--body);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--inner-radius);
  background: var(--brand-soft);
  color: var(--brand);
}

.icon svg { width: 22px; height: 22px; }

/* ---------- work ---------- */

.work-card { display: flex; flex-direction: column; }

.work-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 148px;
  margin-bottom: 20px;
  border-radius: var(--inner-radius);
  color: #fff;
  overflow: hidden;
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px 140px at 80% 0%, rgba(255, 255, 255, .35), transparent 65%),
    radial-gradient(180px 120px at 10% 100%, rgba(255, 255, 255, .18), transparent 70%);
}

.work-thumb span {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .2px;
  direction: ltr;
}

.work-thumb small {
  position: relative;
  z-index: 1;
  font-size: .8rem;
  font-weight: 700;
  opacity: .85;
}

.thumb-roya { background: linear-gradient(135deg, #1D4ED8, #0EA5A4); }
.thumb-jeras { background: linear-gradient(135deg, #0F766E, #1D4ED8); }
.thumb-datarix { background: linear-gradient(135deg, #0B1220, #3B4B8F); }

.work-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  direction: ltr;
  justify-content: flex-start;
}

.work-card p { flex: 1 1 auto; }

.pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  direction: rtl;
  white-space: nowrap;
}

.pill-live {
  background: #E8F7EF;
  border: 1px solid #C7EBD8;
  color: #0F7A48;
}

.pill-wip {
  background: #FFF5E6;
  border: 1px solid #FBE1BC;
  color: #A65B08;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: #4B5670;
  font-size: .74rem;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  direction: ltr;
}

.work-links a {
  color: var(--brand);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.work-links a:hover { border-color: currentColor; }

/* ---------- dark section ---------- */

.section-dark {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -15%, rgba(29, 78, 216, .42), transparent 62%),
    radial-gradient(700px 420px at 5% 110%, rgba(14, 165, 164, .2), transparent 62%),
    linear-gradient(180deg, #0D1626 0%, #0B1220 45%, #080E19 100%);
  border-block: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  color: #AEB9CC;
}

.section-dark .eyebrow { color: #8AAEFF; }
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: #93A0B8; }

.how-grid {
  display: grid;
  gap: var(--gap);
}

.how-item {
  display: flex;
  gap: 14px;
  padding: var(--card-pad);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .072), rgba(255, 255, 255, .022));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 36px -28px #000;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.how-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11), 0 26px 50px -30px #000;
}

.how-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(138, 174, 255, .16);
  color: #A8C2FF;
  font-size: .9rem;
  font-weight: 800;
}

.how-item h3 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.02rem;
}

.how-item p {
  color: #9FABC2;
  font-size: .92rem;
}

/* ---------- contact ---------- */

.contact-card {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4.4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(29, 78, 216, .10), transparent 65%),
    linear-gradient(180deg, #F8FAFF, #FFFFFF);
  box-shadow: var(--shadow-md);
}

.contact-card .hero-actions { margin-top: 22px; }

.lead-sm {
  margin-top: 12px;
  max-width: 40ch;
  color: var(--body);
  font-size: .98rem;
}

.copy-note {
  min-height: 1.4em;
  margin-top: 10px;
  color: #0F7A48;
  font-size: .85rem;
  font-weight: 700;
}

.links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--inner-radius);
  background: #fff;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.links a:hover {
  border-color: #C9D4E8;
  transform: translateY(-1px);
}

.links a span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  direction: ltr;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: .84rem;
}

.footer-note { color: #8A93A6; }

/* ---------- larger screens ---------- */

@media (min-width: 620px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .nav-toggle { display: none; }

  .nav.open a { padding: 0; border-radius: 0; }
  .nav.open a.btn { margin-top: 0; padding: 9px 18px; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .hero { padding-block: 64px 24px; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 30px; }
  .hero-art { min-height: 520px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-card { grid-template-columns: 1.15fr .85fr; align-items: center; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 3.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .hero-art, .nav-toggle { display: none; }
  body { font-size: 12pt; }
}

/* ==========================================================================
   Multi-page additions
   ========================================================================== */

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip:focus { inset-inline-start: 12px; }

.nav a[aria-current="page"] { color: var(--brand); }

/* ---------- page hero ---------- */

.page-hero {
  padding-block: 34px 10px;
  background:
    radial-gradient(800px 360px at 88% -20%, rgba(29, 78, 216, .10), transparent 70%),
    radial-gradient(600px 320px at 6% 0%, rgba(14, 165, 164, .09), transparent 70%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-style: normal; opacity: .55; }

.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 22ch;
}

.page-hero .lead { max-width: 58ch; }

.page-hero .hero-actions { margin-top: 24px; }

.section-tight { padding-block: clamp(34px, 5vw, 58px); }

.grid-2 {
  display: grid;
  gap: var(--gap);
}

/* ---------- links inside cards ---------- */

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--brand);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.more:hover { text-decoration: underline; }

.card > .more { margin-top: 16px; }

.service-card h3 { font-size: 1.15rem; }

.service-card ul {
  margin: 12px 0 0;
  padding-inline-start: 18px;
  color: var(--body);
  font-size: .93rem;
}

.service-card li { margin-bottom: 4px; }

/* ---------- checklist ---------- */

.list-check {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--body);
  font-size: .96rem;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: .28em;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 20px 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1rem;
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
}

.step p { font-size: .93rem; color: var(--body); }

/* ---------- faq ---------- */

.faq { display: grid; gap: 10px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--inner-radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq .answer {
  padding: 0 18px 16px;
  color: var(--body);
  font-size: .93rem;
}

/* ---------- cta band ---------- */

.cta-band {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 4.4vw, 44px);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(29, 78, 216, .5), transparent 62%),
    radial-gradient(520px 320px at 0% 120%, rgba(14, 165, 164, .28), transparent 62%),
    linear-gradient(180deg, #111C31 0%, #0B1220 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), var(--shadow-lg);
  color: #B9C4D6;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 8px;
}

.cta-band p { font-size: .97rem; max-width: 52ch; }

.cta-band .hero-actions { margin-top: 20px; }

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .32);
}

/* ---------- project page ---------- */

.proj-head {
  display: grid;
  gap: 26px;
}

.proj-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: var(--panel-radius);
  color: #fff;
  overflow: hidden;
}

.proj-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(280px 180px at 82% 4%, rgba(255, 255, 255, .32), transparent 62%),
    radial-gradient(220px 160px at 8% 100%, rgba(255, 255, 255, .16), transparent 68%);
}

.proj-banner strong {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .3px;
  direction: ltr;
}

.proj-banner span {
  position: relative;
  z-index: 1;
  font-size: .9rem;
  font-weight: 700;
  opacity: .85;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--bg-soft);
  list-style: none;
}

.meta-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
}

.meta-list dt { color: var(--muted); font-weight: 600; }
.meta-list dd { margin: 0; color: var(--ink); font-weight: 700; }

.prose p { margin-bottom: 14px; font-size: .98rem; }
.prose p:last-child { margin-bottom: 0; }

.callout {
  padding: 16px 18px;
  border: 1px solid #FBE1BC;
  border-radius: 14px;
  background: #FFF8EE;
  color: #7A4A08;
  font-size: .9rem;
  font-weight: 600;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: 26px;
  align-items: start;
}

.form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.field { display: grid; gap: 6px; }

.field label {
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}

.field .hint { color: var(--muted); font-size: .78rem; font-weight: 600; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
}

.field textarea { min-height: 128px; resize: vertical; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #9DB6FF;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .1);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.form-note {
  min-height: 1.3em;
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
}

.form-note.error { color: #B42318; }

.contact-aside { display: grid; gap: 14px; }

/* ---------- floating whatsapp ---------- */

.wa-float {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 32px -14px rgba(37, 211, 102, .95), 0 2px 6px rgba(11, 18, 32, .18);
  transition: transform .15s ease, box-shadow .18s ease;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 36px -14px rgba(37, 211, 102, 1);
}

.wa-float .wa-icon { width: 30px; height: 30px; }

.wa-icon { display: block; }

/* ---------- misc ---------- */

.section-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: .86rem;
}

@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .meta-list div { font-size: .92rem; }
}

@media (min-width: 900px) {
  .proj-head { grid-template-columns: 1.1fr .9fr; align-items: start; gap: 34px; }
  .contact-grid { grid-template-columns: 1.05fr .95fr; gap: 34px; }
  .cta-band { grid-template-columns: 1.3fr .7fr; align-items: center; }
  .cta-band .hero-actions { margin-top: 0; justify-content: flex-end; }
  .page-hero { padding-block: 52px 18px; }
  .wa-float { inset-inline-end: 24px; bottom: 24px; width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}

/* ---------- footer (multi-page) ---------- */

.site-footer { padding-block: 34px 22px; }

.footer-top {
  display: grid;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.footer-brand { display: grid; gap: 10px; max-width: 36ch; }
.footer-brand p { color: var(--muted); font-size: .86rem; }

.footer-cols { display: grid; gap: 22px; }

.footer-col h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
}

.footer-col a,
.footer-col p {
  display: block;
  padding-block: 3px;
  color: var(--muted);
  font-size: .86rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
  padding-top: 16px;
  color: #8A93A6;
  font-size: .8rem;
}

@media (min-width: 620px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .footer-top { grid-template-columns: .9fr 1.5fr; align-items: start; gap: 40px; }
}

/* ---------- inline code ---------- */

code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  direction: ltr;
  unicode-bidi: embed;
}

/* keep the floating WhatsApp button from sitting on top of the footer text on phones */
@media (max-width: 619px) {
  .site-footer { padding-bottom: 88px; }
}

/* ==========================================================================
   Device / screenshot frames
   ========================================================================== */

.device {
  margin: 0;
  flex: 0 0 auto;
  width: 200px;
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(160deg, #1B2436, #0B1220 72%);
  box-shadow: 0 28px 46px -30px rgba(11, 18, 32, .65), 0 0 0 1px rgba(255, 255, 255, .05) inset;
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.device-hero {
  width: min(240px, 60vw);
  transform: rotate(-2deg);
}

.shots {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 6px 2px 16px;
  scroll-snap-type: x mandatory;
}

.shots > .device,
.shots > .screen-wide { scroll-snap-align: start; }

.shots .device { width: 186px; }

.screen-wide {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.screen-wide img {
  display: block;
  width: 100%;
  height: auto;
}

.screen-half {
  flex: 1 1 0;
  min-width: 280px;
}

.browser {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #F1F5FB;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D3DCEC;
}

.browser img {
  display: block;
  width: 100%;
  height: auto;
}

/* media block on work cards */

.work-media {
  position: relative;
  height: 300px;
  min-height: 300px;
  margin-bottom: 18px;
  border-radius: var(--inner-radius);
  overflow: hidden;
  display: grid;
  place-items: end center;
  background:
    radial-gradient(420px 240px at 70% 0%, rgba(29, 78, 216, .16), transparent 65%),
    radial-gradient(320px 200px at 10% 100%, rgba(14, 165, 164, .12), transparent 70%),
    var(--bg-soft);
}

.work-media .device {
  width: 140px;
  margin-bottom: -22px;
  box-shadow: 0 20px 34px -22px rgba(11, 18, 32, .6);
}

.work-media .screen-wide,
.work-media .browser {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.work-media .screen-wide img,
.work-media .browser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 620px) {
  .shots .device { width: 200px; }
}

@media (min-width: 900px) {
  .shots { justify-content: flex-start; }
  .device-hero { width: 250px; }
}

/* crop the bottom edge of store screenshots inside the device frames */
.device img {
  aspect-ratio: 9 / 18.2;
  object-fit: cover;
  object-position: top center;
}

/* ---------- logo ---------- */



/* ---------- reveal on scroll ---------- */

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22, .68, .3, 1), transform .6s cubic-bezier(.22, .68, .3, 1);
}

.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.work-links a:hover { opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card:hover,
  .how-item:hover,
  .btn:hover { transform: none; }
}
