/* CodmindApp — dark studio, gold as the only warm accent */
/* Fonts are served from this site (fonts/), not from Google: no outside request, no visitor data
   shared, and the CSP needs no font domains. Same files and unicode ranges Google Fonts served.
   Sora is one variable font covering 400-700. Licence: fonts/OFL.txt */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/sora-v17-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/sora-v17-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/tajawal-v12-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/tajawal-v12-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/tajawal-v12-500-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/tajawal-v12-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/tajawal-v12-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/tajawal-v12-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/tajawal-v12-800-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/tajawal-v12-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #06080F;
  --surface: #0C1120;
  --surface-2: #121a2e;
  --line: rgba(212, 175, 55, .16);
  --line-soft: rgba(255, 255, 255, .06);
  --gold: #D4AF37;
  --gold-hi: #E9C96B;
  --cyan: #22D3EE;
  --text: #E8EBF2;
  --muted: #8A93A8;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --max: 1160px;
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #0a0a0a; }

.wrap { width: min(var(--max), 90%); margin-inline: auto; }
.gold { color: var(--gold-hi); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-primary { background: var(--gold); color: #0A0A0A; }
.btn-primary:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 8, 15, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line-soft); }
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand span { font-size: 1.05rem; }
.links { display: flex; gap: 2rem; list-style: none; }
.links a { color: var(--muted); font-size: .95rem; transition: color .25s; }
.links a:hover { color: var(--text); }
.nav-tools { display: flex; align-items: center; gap: .6rem; }
.lang {
  background: none; border: 1px solid var(--line); color: var(--text);
  padding: .4rem .85rem; border-radius: 999px; cursor: pointer; font-size: .85rem; font-weight: 600;
  transition: border-color .25s, color .25s;
}
.lang:hover { border-color: var(--gold); color: var(--gold-hi); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 7rem 0 5rem; position: relative; }
#home.hero { padding-top: 8.5rem; } /* was an inline style="" in index.html; moved here for the strict CSP */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
.hero-title em { font-style: normal; color: var(--gold-hi); }
.hero-desc { color: var(--muted); font-size: 1.12rem; max-width: 34rem; margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-logo {
  justify-self: center; width: min(360px, 80%); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.hero-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.platforms { margin-top: 3.2rem; display: flex; gap: 1.6rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
.platforms span { display: inline-flex; align-items: center; gap: .5rem; }
.platforms span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Single orchestrated load sequence */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .18s; }
.rise.d3 { animation-delay: .3s; }
.rise.d4 { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section { padding: 7rem 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3.2rem; }
.head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.head p { color: var(--muted); max-width: 30rem; justify-self: end; }
.rule { border-top: 1px solid var(--line-soft); }

/* ---------- Apps ---------- */
.swiper { padding-bottom: 3.4rem; overflow: visible; }
.swiper-slide { height: auto; }
.app {
  height: 100%; display: flex; flex-direction: column; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.app:hover { border-color: var(--line); transform: translateY(-4px); }
.app img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.app-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.app-body h3 { font-size: 1.12rem; font-weight: 600; }
.app-body p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.tags { margin-top: auto; padding-top: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.tag { font-size: .78rem; color: var(--muted); border: 1px solid var(--line-soft); padding: .15rem .6rem; border-radius: 999px; }
.swiper-pagination-bullet { background: var(--muted) !important; opacity: .5; }
.swiper-pagination-bullet-active { background: var(--gold) !important; opacity: 1; width: 22px; border-radius: 4px; }
.swiper-button-prev, .swiper-button-next { color: var(--gold-hi) !important; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 14px !important; }

/* ---------- Services: editorial rows ---------- */
.services { border-top: 1px solid var(--line-soft); }
.svc {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; padding: 2.2rem 0;
  border-bottom: 1px solid var(--line-soft); align-items: start;
}
.svc h3 { font-size: 1.4rem; font-weight: 600; }
.svc p { color: var(--muted); }
.svc-tags { margin-top: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- Process: a real sequence, so numbering is earned ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 2rem 1.6rem 0 0; position: relative; }
.step + .step { padding-inline-start: 1.6rem; border-inline-start: 1px solid var(--line-soft); }
.step-n { font-size: .9rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { text-align: start; }
.contact-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
  padding: 3.4rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.contact-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin-bottom: .8rem; }
.contact-card p { color: var(--muted); }
.contact-actions { display: grid; gap: .7rem; }
.contact-actions .btn { justify-content: center; }
.social { margin-top: 1.4rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.social a { font-size: .9rem; color: var(--muted); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.social a:hover { color: var(--gold-hi); border-color: var(--gold); }

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

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 1rem; background: rgba(3, 5, 10, .75); backdrop-filter: blur(6px); }
.modal.open { display: grid; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: min(820px, 100%); max-height: 90vh; overflow-y: auto; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem;
  animation: sheet .45s var(--ease);
}
@keyframes sheet { from { opacity: 0; transform: translateY(14px) scale(.99); } }
.x { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.x:hover { border-color: var(--gold); color: var(--gold-hi); }
.sheet h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: .4rem; padding-inline-end: 3rem; }
.sheet .lead { color: var(--muted); margin-bottom: 1.4rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; margin-bottom: 1.6rem; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-soft); }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Reveal on scroll (single, consistent) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; text-align: start; }
  .hero-logo { order: -1; width: 180px; justify-self: start; }
  .head { grid-template-columns: 1fr; }
  .head p { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--line-soft); margin-top: 1.5rem; }
  .contact-card { grid-template-columns: 1fr; padding: 2.2rem; }
}
@media (max-width: 760px) {
  .links, .nav-tools .lang { display: none; }
  .links.open { display: flex; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; align-items: center; gap: 1.4rem; padding: 1.6rem; background: rgba(6,8,15,.97); border-bottom: 1px solid var(--line-soft); }
  .nav-tools .lang { display: inline-block; }
  .burger { display: inline-block; }
  section { padding: 5rem 0; }
  .svc { grid-template-columns: 1fr; gap: .6rem; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-inline: 0; border-inline-start: 0; border-top: 1px solid var(--line-soft); padding-block: 1.6rem; }
  .sheet { padding: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}

/* ===== 3D Space Coverflow ===== */
.space { position: relative; overflow: hidden; isolation: isolate; }
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.space::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(112,0,255,.14), transparent 60%),
              radial-gradient(ellipse at 50% 60%, rgba(0,240,255,.08), transparent 55%);
}
.coverflow { padding: 1.5rem 0 4rem; perspective: 1400px; }
.coverflow .swiper-wrapper { align-items: center; }
.coverflow .swiper-slide { width: min(360px, 74vw); height: auto; transform-style: preserve-3d; }
.coverflow .swiper-slide-active { z-index: 3; }

/* Idle zero-gravity float: lives on a wrapper so it never fights Swiper's transforms */
.float { animation: drift 7s ease-in-out infinite; will-change: transform; }
.swiper-slide:nth-child(3n+2) .float { animation-duration: 8.5s; animation-delay: -2s; }
.swiper-slide:nth-child(3n+3) .float { animation-duration: 6.2s; animation-delay: -4s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg); }
  50%      { transform: translate3d(0, -12px, 0) rotateX(2.2deg); }
}

.coverflow .app {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease), opacity .6s var(--ease);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  background: linear-gradient(160deg, rgba(18,26,46,.92), rgba(8,11,22,.96));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
/* glass glare follows the pointer */
.coverflow .app::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.14), transparent 45%);
  opacity: var(--glare, 0); transition: opacity .4s;
}
.coverflow .swiper-slide:not(.swiper-slide-active) .app { opacity: .5; filter: saturate(.6); }
.coverflow .swiper-slide-active .app {
  border-color: rgba(0,240,255,.45);
  box-shadow: 0 0 0 1px rgba(0,240,255,.12), 0 0 46px -6px rgba(0,240,255,.35), 0 0 90px -20px rgba(112,0,255,.45);
}
.coverflow .app img { transition: transform .8s var(--ease); }
.coverflow .swiper-slide-active .app img { transform: scale(1.03); }

/* Mobile: lighter 3D so it stays at 60fps */
@media (max-width: 640px) {
  .coverflow { perspective: 900px; }
  .coverflow .swiper-slide:not(.swiper-slide-active) .app { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .coverflow .app { transform: none !important; }
}

/* Emails */
.mails { margin-top: 1rem; display: grid; gap: .45rem; }
.mails a { color: var(--text); font-size: .98rem; direction: ltr; text-align: start; width: fit-content; transition: color .25s; }
.mails a:hover { color: var(--gold-hi); }
.mails span { color: var(--muted); font-size: .82rem; margin-inline-end: .5rem; }

/* ===== Device mockups inside the coverflow ===== */
.swiper-slide.is-phone { width: min(290px, 70vw); }
.swiper-slide.is-laptop { width: min(500px, 88vw); }

.coverflow .app { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; overflow: visible; }
.coverflow .swiper-slide-active .app { border: 0; box-shadow: none; }
.coverflow .app::after { border-radius: 36px; }
.coverflow .swiper-slide-active .device { filter: drop-shadow(0 0 28px rgba(0,240,255,.28)) drop-shadow(0 0 70px rgba(112,0,255,.35)); }
.coverflow .app .app-body { padding: 1.2rem .4rem 0; text-align: start; display: block; }
.coverflow .app .app-body p { -webkit-line-clamp: 2; }
.coverflow .app .tags { justify-content: start; }

.device { position: relative; transform-style: preserve-3d; }
.device .display { position: absolute; inset: 10px; overflow: hidden; background: #05070C; }
.device .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); border: 0; border-radius: 0; aspect-ratio: auto; transform: none !important; }
.device .shot.on { opacity: 1; }

/* Phone: a modern handset frame */
.device-phone {
  width: 240px; aspect-ratio: 9 / 19.5; margin-inline: auto; border-radius: 42px; padding: 0;
  background: linear-gradient(150deg, #3a4460 0%, #111729 45%, #05070C 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 5px #05070C, 0 30px 60px -20px rgba(0,0,0,.8);
}
.device-phone .display { border-radius: 33px; }
.device-phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; border-radius: 16px; background: #000; z-index: 4; }
.device-phone::before, .device-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a3247; }
.device-phone::before { inset-inline-start: -3px; top: 110px; height: 56px; }
.device-phone::after { inset-inline-end: -3px; top: 160px; height: 84px; }

/* Laptop: lid + keyboard base */
.device-laptop { width: 100%; }
.device-laptop .lid {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px 16px 6px 6px; padding: 0;
  background: linear-gradient(160deg, #3a4460 0%, #111729 50%, #05070C 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 30px 60px -22px rgba(0,0,0,.85);
}
.device-laptop .display { border-radius: 6px; }
.device-laptop .base {
  position: relative; height: 14px; margin: 0 -7%; border-radius: 0 0 16px 16px;
  background: linear-gradient(#2a3247, #0b0f1c);
  box-shadow: 0 10px 22px -10px rgba(0,0,0,.9);
}
.device-laptop .base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 14%; height: 4px; border-radius: 0 0 6px 6px; background: #05070C;
}

/* Slideshow controls */
.shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(6,8,15,.7); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: border-color .25s, color .25s, background .25s;
}
.shot-nav:hover { border-color: var(--gold); color: var(--gold-hi); }
.shot-nav.prev { left: 6px; }
.shot-nav.next { right: 6px; }
.shot-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.shot-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); transition: width .35s var(--ease), background .35s; }
.shot-dots i.on { width: 18px; background: var(--gold); }
.device-laptop .shot-nav { width: 28px; height: 28px; font-size: 1.1rem; }

/* Details window */
.modal-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.4rem; align-items: center; }
.modal-device .device-phone { width: 250px; }
.modal-info h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: .6rem; padding-inline-end: 2rem; }
.modal-info .tags { margin-bottom: 1rem; }
.sub { font-size: .8rem; color: var(--gold-hi); font-weight: 600; margin: 1rem 0 .4rem; }
.modal-info .lead { margin-bottom: 0; font-size: 1rem; }
.features { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.4rem; }
.features li { position: relative; padding-inline-start: 1.2rem; color: var(--text); font-size: .98rem; }
.features li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.modal-info .actions { margin-top: .4rem; }
.sheet { max-width: 920px; }

@media (max-width: 760px) {
  .modal-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .modal-device .device-phone { width: 210px; }
  .device-phone { width: 210px; }
}

/* ===================================================================
   v-PRO: type system, warmer ink, realistic 3D devices, hover light
   =================================================================== */
:root {
  --font-display: "Sora", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --text: #F4F1E8;
  --muted: #9AA3B8;
  --gold-hi: #F2D47E;
}
body { font-family: var(--font-body); font-size: 1.1rem; font-weight: 400; }
h1, h2, h3, h4, .brand span { font-family: var(--font-display); letter-spacing: -.01em; }
h1, h2 { font-weight: 700; }
.hero-title { font-weight: 700; letter-spacing: -.025em; }
.hero-desc, .lead, .app-body p, .svc p, .step p { font-weight: 400; }
.app-body h3, .svc h3, .step h3 { font-weight: 600; }
.tag, .badge, .platforms { font-family: var(--font-display); font-weight: 500; letter-spacing: .01em; }

/* ---------- Stage: camera perspective for real depth ---------- */
.stage3d {
  position: relative; isolation: isolate; perspective: 1500px;
  display: flex; justify-content: center; padding: 22px 0 46px;
}
/* soft floor shadow under the device */
.stage3d::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 4px; height: 34px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.75), transparent 70%);
  filter: blur(7px);
}

/* ---------- Phone: metal rim, bevel light, tilted in 3D ---------- */
.device { transform-style: preserve-3d; transition: transform 1s var(--ease), filter .6s var(--ease); }
.device-phone {
  background: linear-gradient(140deg, #8a95b3 0%, #2a3350 18%, #0d1120 42%, #05070C 62%, #3a4566 88%, #6c7796 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    inset 0 0 0 4px #05070C,
    inset 0 0 0 5px rgba(255,255,255,.08),
    0 40px 70px -26px rgba(0,0,0,.95),
    -18px 22px 40px -22px rgba(112,0,255,.25);
  transform: rotateY(-16deg) rotateX(4deg);
}
.device-phone .display::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(158deg, rgba(255,255,255,.10) 0%, transparent 28%, transparent 70%, rgba(255,255,255,.04) 100%);
}
.device-phone::before, .device-phone::after { background: linear-gradient(#8a95b3, #2a3350); }

/* ---------- Laptop: aluminium lid + base with light edge ---------- */
.device-laptop { transform: rotateX(12deg) rotateY(-12deg); }
.device-laptop .lid {
  background: linear-gradient(150deg, #9aa5c2 0%, #2a3350 22%, #0a0d17 55%, #05070C 80%, #4a5577 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 0 0 4px #05070C, 0 40px 70px -28px rgba(0,0,0,.95);
}
.device-laptop .lid::before {
  content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px;
  border-radius: 50%; background: #1b2236; box-shadow: inset 0 0 1px #000; z-index: 4;
}
.device-laptop .base {
  background: linear-gradient(#b3bdd6, #3a4460 35%, #0b0f1c);
  box-shadow: 0 14px 26px -12px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.35);
}

/* ---------- Glass gloss: moving light that follows the pointer ---------- */
.device .gloss {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 28%) var(--my, 18%), rgba(255,255,255,.30) 0%, transparent 38%),
    linear-gradient(118deg, transparent 36%, rgba(255,255,255,.12) 47%, rgba(255,255,255,.02) 52%, transparent 60%);
  mix-blend-mode: screen; opacity: .85; transition: opacity .5s var(--ease);
}
.device .gloss { overflow: hidden; }
.device-laptop .gloss { border-radius: 16px 16px 6px 6px; }

/* Hover on a card: device straightens and lifts toward the viewer */
@media (hover: hover) {
  .coverflow .app:hover .device-phone { transform: rotateY(-7deg) rotateX(2deg) translateZ(26px); }
  .coverflow .app:hover .device-laptop { transform: rotateX(6deg) rotateY(-5deg) translateZ(20px); }
  .coverflow .app:hover .device .gloss { opacity: 1; }
  .coverflow .app:hover .device { filter: brightness(1.06); }
}
.modal-device .device-phone { transform: rotateY(-10deg) rotateX(3deg); }
.modal-device .device-laptop { transform: rotateX(8deg) rotateY(-7deg); }

/* ---------- Hover text: gold shimmer and glow ---------- */
@keyframes shimmer { from { background-position: 0% center; } to { background-position: 200% center; } }
@keyframes glowpulse { 0%,100% { text-shadow: 0 0 0 rgba(242,212,126,0); } 50% { text-shadow: 0 0 16px rgba(242,212,126,.55); } }
.shimmer-text {
  background: linear-gradient(100deg, #B8860B 0%, #F2D47E 35%, #FFFFFF 50%, #F2D47E 65%, #B8860B 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (hover: hover) {
  .app:hover .app-body h3,
  .svc:hover h3,
  .step:hover h3 {
    background: linear-gradient(100deg, #B8860B 0%, #F2D47E 35%, #FFFFFF 50%, #F2D47E 65%, #B8860B 100%);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 1.8s linear infinite;
  }
  .app:hover .tag { color: var(--gold-hi); border-color: rgba(242,212,126,.6); box-shadow: 0 0 14px rgba(212,175,55,.35); }
  .links a:hover { color: var(--gold-hi); text-shadow: 0 0 14px rgba(242,212,126,.55); }
  .btn-ghost:hover, .btn-primary:hover { animation: glowpulse 1.4s ease-in-out infinite; }
  .svc:hover, .step:hover { transform: translateX(-4px); }
  .svc, .step { transition: transform .5s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .app:hover .app-body h3, .svc:hover h3, .step:hover h3, .btn-ghost:hover, .btn-primary:hover { animation: none !important; }
  .device { transition: none; }
}

/* ===================================================================
   Brand reel: portrait video in a gold-hairline frame
   =================================================================== */
.reel {
  position: relative; justify-self: center; width: min(340px, 80%); aspect-ratio: 464 / 640;
  border-radius: 26px; overflow: hidden; background: #05070C; margin: 0;
  border: 1px solid rgba(212,175,55,.35);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(212,175,55,.22);
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,8,15,0) 62%, rgba(6,8,15,.6) 100%),
              linear-gradient(120deg, rgba(255,255,255,.07) 0%, transparent 35%);
}
@media (hover: hover) {
  .reel:hover { border-color: rgba(242,212,126,.7); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 80px -16px rgba(212,175,55,.38); }
}
.reel-sound {
  position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px;
  background: rgba(6,8,15,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,.45); color: var(--gold-hi); font: inherit; font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: background .3s, border-color .3s;
}
.reel-sound:hover { background: rgba(212,175,55,.18); border-color: var(--gold); }
.reel-sound .wave { transition: opacity .3s; }
.reel-sound[aria-pressed="true"] .wave { opacity: 1; }
.reel-sound[aria-pressed="false"] .wave { opacity: 0; }
@media (max-width: 960px) {
  .reel { order: -1; justify-self: start; width: 200px; }
  .reel-sound { font-size: .78rem; padding: .35rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reel { transition: none; }
}

/* Play control: visible when paused, so the reel can always be started */
.reel-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; padding-inline-start: 4px;
  background: rgba(6,8,15,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242,212,126,.6); color: var(--gold-hi); cursor: pointer;
  opacity: 0; transform: scale(.92); transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s;
}
.reel.is-paused .reel-play, .reel .reel-play:focus-visible { opacity: 1; transform: scale(1); }
.reel-play:hover { background: rgba(212,175,55,.22); }
.reel video { cursor: pointer; }

/* =====================================================================
   Round 2: bigger devices with real thickness, calm swipe, space background
   ===================================================================== */

/* --- Larger brand reel --- */
.reel { width: min(470px, 94%); border-radius: 30px; }
@media (max-width: 960px) { .reel { width: min(300px, 84%); } }

/* --- Bigger devices --- */
.swiper-slide.is-phone { width: min(340px, 80vw); }
.swiper-slide.is-laptop { width: min(640px, 94vw); }
.device-phone { width: 290px; }
.device-laptop .lid { border-radius: 20px 20px 8px 8px; }
.modal-device .device-phone { width: 290px; }
@media (max-width: 760px) {
  .device-phone { width: 250px; }
  .modal-device .device-phone { width: 240px; }
}

/* --- Real thickness: a metal body layer set behind the glass, so the edge reads as depth --- */
.device .thick {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, #5b6686 0%, #1b2236 35%, #05070C 60%, #3a4566 100%);
  transform: translateZ(-22px) translate(10px, 12px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
  filter: brightness(.8);
}
.device-phone .thick { border-radius: 52px; }
.device-laptop .thick { border-radius: 22px; }
.device-phone, .device-laptop { transform-style: preserve-3d; }
.device-phone .display, .device-laptop .display { z-index: 1; }
.device-phone .notch, .device-laptop .lid::before { z-index: 4; }
.device-laptop .base { transform: translateZ(-6px); }

/* Non-active slides lean less, so they never look squeezed */
.coverflow .swiper-slide:not(.swiper-slide-active) .device-phone { transform: rotateY(-8deg) rotateX(2deg); }
.coverflow .swiper-slide:not(.swiper-slide-active) .device-laptop { transform: rotateX(6deg) rotateY(-6deg); }

/* While a finger or mouse is pressed, the card holds still: no tilt, no float */
.coverflow.dragging .app { transform: none !important; }
.coverflow.dragging .float { animation-play-state: paused; }
.coverflow.dragging .device { transition: none; }

/* --- Full-page space background (behind everything) --- */
#starfield {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none;
}
.nebula { position: fixed; inset: -10%; z-index: -3; pointer-events: none; overflow: hidden; }
.nebula span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .22;
  will-change: transform;
}
.nebula span:nth-child(1) { background: radial-gradient(circle, #D4AF37 0%, transparent 65%); top: -18%; right: -12%; animation: neb1 38s ease-in-out infinite alternate; }
.nebula span:nth-child(2) { background: radial-gradient(circle, #7000FF 0%, transparent 65%); bottom: -22%; left: -14%; animation: neb2 46s ease-in-out infinite alternate; }
.nebula span:nth-child(3) { background: radial-gradient(circle, #00F0FF 0%, transparent 65%); top: 30%; left: 30%; width: 42vmax; height: 42vmax; opacity: .12; animation: neb3 52s ease-in-out infinite alternate; }
@keyframes neb1 { to { transform: translate3d(-8vw, 6vh, 0) scale(1.12); } }
@keyframes neb2 { to { transform: translate3d(10vw, -8vh, 0) scale(1.08); } }
@keyframes neb3 { to { transform: translate3d(-6vw, -10vh, 0) scale(.92); } }

/* Sections are transparent so the space shows through */
section, .hero { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .nebula span { animation: none !important; }
}

/* =====================================================================
   Round 3: centered carousel, crisper device edges, stronger space
   ===================================================================== */

/* Carousel stays centred: no free sliding, active card always in the middle */
.coverflow { overflow: visible; }
.coverflow .swiper-wrapper { align-items: center; } /* centring is done by Swiper (centeredSlides) */
.coverflow .swiper-slide { display: flex; justify-content: center; }
.coverflow .app { width: 100%; }

/* Crisper edges: a bright bevel line, a dark separation line, then the metal body */
.device-phone {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.7),
    inset 0 0 0 2px rgba(0,0,0,.85),
    inset 0 0 0 6px #04060B,
    inset 0 0 0 7px rgba(255,255,255,.28),
    0 0 0 1px #000,
    0 46px 70px -24px rgba(0,0,0,.98),
    -20px 26px 46px -22px rgba(112,0,255,.3);
}
.device-phone .thick { filter: brightness(1.05); }
.device .gloss { background:
    radial-gradient(circle at var(--mx, 24%) var(--my, 14%), rgba(255,255,255,.42) 0%, transparent 34%),
    linear-gradient(112deg, transparent 30%, rgba(255,255,255,.16) 42%, rgba(255,255,255,.03) 50%, transparent 58%);
  opacity: 1; }
.device-phone .display::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), inset 0 0 18px rgba(0,0,0,.6);
}

/* Stronger space: more visible nebula */
.nebula span { opacity: .34; }
.nebula span:nth-child(3) { opacity: .2; }

/* =====================================================================
   Site-wide space background: CSS base layer (works even without JS),
   two star layers that drift slowly, under the canvas and every element
   ===================================================================== */
html { background: #04060C; }
body { background: transparent; }

.space-bg {
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 85% 8%, rgba(212,175,55,.10), transparent 70%),
    radial-gradient(ellipse 60% 50% at 8% 92%, rgba(112,0,255,.16), transparent 70%),
    radial-gradient(ellipse 50% 45% at 50% 50%, rgba(0,240,255,.05), transparent 70%),
    linear-gradient(180deg, #05070F 0%, #070A17 55%, #04050B 100%);
}
.space-bg::before, .space-bg::after {
  content: ""; position: absolute; inset: -40px; pointer-events: none;
}
/* small stars */
.space-bg::before {
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 96px 150px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.2px 1.2px at 170px 60px, rgba(242,212,126,.9), transparent),
    radial-gradient(1px 1px at 240px 210px, rgba(0,240,255,.8), transparent),
    radial-gradient(1px 1px at 300px 110px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.2px 1.2px at 60px 260px, rgba(160,120,255,.9), transparent),
    radial-gradient(1px 1px at 200px 290px, rgba(255,255,255,.6), transparent);
  background-size: 320px 320px;
  animation: starsDrift 140s linear infinite;
}
/* larger, softer stars */
.space-bg::after {
  background-image:
    radial-gradient(2px 2px at 140px 220px, rgba(242,212,126,.45), transparent),
    radial-gradient(2px 2px at 380px 90px, rgba(0,240,255,.35), transparent),
    radial-gradient(2.5px 2.5px at 520px 330px, rgba(255,255,255,.3), transparent),
    radial-gradient(2px 2px at 700px 160px, rgba(160,120,255,.4), transparent);
  background-size: 760px 560px;
  filter: blur(.4px);
  animation: starsDrift 260s linear infinite reverse;
}
@keyframes starsDrift { to { transform: translate3d(-320px, 160px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .space-bg::before, .space-bg::after { animation: none !important; }
}

/* Stronger glow for the space layers */
#starfield { z-index: -2; } /* no blend mode: same look on the dark sky, much cheaper to scroll */
.nebula span { opacity: .5; }
.nebula span:nth-child(3) { opacity: .3; }
.space-bg::before { opacity: 1; }

/* Background keeps drifting under "reduce motion", only calmer */
@media (prefers-reduced-motion: reduce) {
  .space-bg::before { animation: starsDrift 240s linear infinite !important; }
  .space-bg::after { animation: starsDrift 420s linear infinite reverse !important; }
  .nebula span:nth-child(1) { animation: neb1 80s ease-in-out infinite alternate !important; }
  .nebula span:nth-child(2) { animation: neb2 92s ease-in-out infinite alternate !important; }
  .nebula span:nth-child(3) { animation: neb3 104s ease-in-out infinite alternate !important; }
}

/* =====================================================================
   Legibility over the space background: brighter ink + a dark halo
   so every line stays readable above the stars and digits
   ===================================================================== */
:root { --text: #FFFFFF; --muted: #C3CBDB; }
body { color: var(--text); }

h1, h2, h3, h4 {
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(3,5,12,.95), 0 0 2px rgba(3,5,12,.9);
}
p, li, .hero-desc, .lead, .svc p, .step p, .app-body p, .head p, .contact-card p, .platforms, footer, .sub {
  color: var(--muted);
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(3,5,12,.95), 0 0 2px rgba(3,5,12,.85);
}
.lead, .hero-desc { color: #D5DCE9; }
.tag { color: #E6EBF5; background: rgba(6,8,15,.6); border-color: rgba(255,255,255,.22); text-shadow: none; }
.links a { color: #E2E8F3; text-shadow: 0 1px 8px rgba(3,5,12,.95); }
.gold, .gold-text, .sub { color: var(--gold-hi); }
.btn-ghost { background: rgba(6,8,15,.55); color: #FFFFFF; }
.btn-primary { text-shadow: none; }

/* Hover shimmer text must stay clean (no dark halo behind transparent text) */
.app:hover .app-body h3, .svc:hover h3, .step:hover h3 { text-shadow: none; }

/* A soft dark scrim behind the reading column, still letting the space show */
.svc, .step, .head, .contact-card { position: relative; }
.contact-card { background: rgba(8,11,22,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* =====================================================================
   Round 5: every device identical and crisp.
   - No dimming, blur or saturation on side cards (that was the "blurry" look)
   - Same angle for all cards; only a gentle straightening on hover
   - Thickness drawn as crisp solid edge layers, not a 3D layer (no rasterised blur)
   - Idle float moves up/down only (no rotation shimmer)
   ===================================================================== */
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
.coverflow .swiper-slide:not(.swiper-slide-active) .app { opacity: 1; filter: none; }
.coverflow .swiper-slide .app { opacity: 1; }
.coverflow .swiper-slide-active .device { filter: none; }

/* Remove the 3D helper layer: it caused the soft, blurred edges */
.device .thick { display: none; }
.device { transform-style: flat; backface-visibility: hidden; }

/* One identical base angle for every phone */
.device-phone,
.coverflow .swiper-slide:not(.swiper-slide-active) .device-phone,
.coverflow .swiper-slide-active .device-phone {
  transform: rotateY(-12deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
@media (hover: hover) {
  .coverflow .app:hover .device-phone { transform: rotateY(-7deg) rotateX(2deg); }
}

/* Solid, crisp thickness: stacked edge layers that read as a real metal body */
.device-phone {
  box-shadow:
    1px 1px 0 #3a4560,
    2px 2px 0 #2a3350,
    3px 3px 0 #1d2439,
    4px 4px 0 #161c2e,
    5px 5px 0 #10152299,
    6px 6px 0 #0b0f1c,
    7px 7px 0 #080b15,
    8px 8px 0 #05070C,
    inset 0 0 0 1px rgba(255,255,255,.7),
    inset 0 0 0 2px rgba(0,0,0,.85),
    inset 0 0 0 6px #04060B,
    inset 0 0 0 7px rgba(255,255,255,.28),
    0 0 0 1px #000,
    0 40px 60px -26px rgba(0,0,0,.95);
}

/* Lighting: one clean highlight line along the top-left edge */
.device-phone::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 7; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 14%, rgba(255,255,255,0) 86%, rgba(255,255,255,.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 2px;
}

/* Email rows: address + copy button */
.mail-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mail-row span { color: var(--muted); font-size: .85rem; min-width: 5.5rem; }
.mail-link { direction: ltr; color: #FFFFFF; font-weight: 600; text-shadow: 0 1px 10px rgba(3,5,12,.95); transition: color .25s; }
.mail-link:hover { color: var(--gold-hi); }
.copy-btn {
  background: rgba(6,8,15,.6); border: 1px solid var(--line); color: var(--gold-hi); cursor: pointer;
  padding: .3rem .8rem; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 600;
  transition: border-color .25s, background .25s;
}
.copy-btn:hover { border-color: var(--gold); background: rgba(212,175,55,.14); }

/* ===== Web services band: large, gold, attention-grabbing ===== */
.web-band { padding: 4.5rem 0 3.5rem; text-align: center; }
.web-title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem); max-width: 1000px; margin-inline: auto;
  background: linear-gradient(100deg, #B8860B 0%, #F2D47E 25%, #FFF3C4 50%, #F2D47E 75%, #B8860B 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
  filter: drop-shadow(0 0 22px rgba(212,175,55,.35));
}
.web-title .dot { -webkit-text-fill-color: #FFE8A3; color: #FFE8A3; margin-inline: .25rem; }
.web-sub {
  margin-top: 1.2rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #E4E9F3 !important;
  text-shadow: 0 2px 14px rgba(3,5,12,.95);
}
.web-band::after {
  content: ""; display: block; width: min(420px, 60%); height: 1px; margin: 2.6rem auto 0;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  box-shadow: 0 0 14px rgba(212,175,55,.6);
}
@media (prefers-reduced-motion: reduce) { .web-title { animation: none; } }

/* Clean gold headline: no halo or filter, so the gradient reads as solid gold */
.web-title { text-shadow: none; filter: none; color: transparent; }

/* ===== Social icons: equal tiles, icon above label ===== */
.social { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 96px)); gap: .8rem; }
.social a.social-tile {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: .9rem .4rem .75rem; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(6,8,15,.6); color: #FFFFFF; text-shadow: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.social-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold-hi); border: 1px solid rgba(242,212,126,.5);
  background: radial-gradient(circle at 30% 25%, rgba(242,212,126,.18), rgba(6,8,15,.2) 70%);
  transition: color .3s, background .3s, box-shadow .3s;
}
.social-label { font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: #E8EDF6; }
@media (hover: hover) {
  .social a.social-tile:hover { border-color: var(--gold); background: rgba(212,175,55,.1); transform: translateY(-3px); }
  .social a.social-tile:hover .social-icon { color: #0A0A0A; background: linear-gradient(135deg, #F2D47E, #D4AF37); box-shadow: 0 0 18px rgba(212,175,55,.55); }
}
@media (max-width: 760px) { .social { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .social a.social-tile { transition: none; } }

/* WhatsApp icon inside the WhatsApp buttons */
.wa-icon { display: inline-grid; place-items: center; line-height: 0; }
.btn .wa-icon svg { width: 20px; height: 20px; }
.btn-primary .wa-icon { color: #0A0A0A; }
.btn-ghost .wa-icon { color: #25D366; }

/* =====================================================================
   PRO PHONE v3 — one authoritative block (higher specificity than the
   earlier layers). Gold-titanium frame, black bezel ring, real keys,
   antenna slits, camera island with lens, solid edge thickness.
   Transforms (tilt/hover) are left to the existing rules on purpose.
   ===================================================================== */
.device.device-phone {
  border-radius: 50px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 9%),
    linear-gradient(90deg,
      #2b261b 0%, #7d6c45 3%, #e7d39a 6%, #a48d58 9%, #4b4130 14%,
      #1f1b14 50%,
      #4b4130 86%, #a48d58 91%, #e7d39a 94%, #7d6c45 97%, #2b261b 100%);
  box-shadow:
    /* solid side thickness, receding to the right/bottom like the tilt */
    1px 1px 0 #6e5f3e, 2px 2px 0 #5b4f34, 3px 3px 0 #4a402b, 4px 4px 0 #3b3323,
    5px 5px 0 #2f281c, 6px 6px 0 #231e15, 7px 7px 0 #19150f, 8px 8px 0 #0f0d09,
    /* crisp outer rim + specular lip */
    0 0 0 1px rgba(0,0,0,.92),
    inset 1.5px 1.5px 0 rgba(255,246,214,.75),
    inset -1.5px -1.5px 0 rgba(0,0,0,.55),
    /* contact shadow */
    0 46px 70px -28px rgba(0,0,0,.96);
}
/* earlier pseudo side-buttons are replaced by real keys below */
.device.device-phone::before { content: none; }
.device.device-phone::after { border-radius: 50px; }

/* Screen sits inside a true black bezel ring */
.device.device-phone .display {
  inset: 6px; border-radius: 44px; border: 6px solid #020305;
  background: #05070C;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10);
}
.device.device-phone .display::before { border-radius: 38px; }

/* Camera island with lens */
.device.device-phone .notch {
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 26px; border-radius: 20px; z-index: 5;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.04);
}
.device.device-phone .notch .lens {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6d8cff 0 9%, #1b2a6b 22%, #070b1f 50%, #000 72%);
  box-shadow: 0 0 0 1.5px #111522, 0 0 0 2.5px rgba(255,255,255,.05);
}

/* Hardware keys (physical sides, independent of RTL/LTR) */
.device.device-phone .key {
  position: absolute; width: 4px; border-radius: 2px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, #2b261b, #c9b27a 45%, #6b5c3a);
  box-shadow: inset 0 1px 0 rgba(255,246,214,.6), 0 0 0 .5px rgba(0,0,0,.8);
}
.device.device-phone .key-action   { left: -3.5px;  top: 15%;  height: 4.2%; }
.device.device-phone .key-vol-up   { left: -3.5px;  top: 22%;  height: 7.6%; }
.device.device-phone .key-vol-down { left: -3.5px;  top: 31%;  height: 7.6%; }
.device.device-phone .key-power    { right: -3.5px; top: 25%;  height: 11.5%; }

/* Antenna slits in the frame */
.device.device-phone .band {
  position: absolute; width: 4px; height: 6px; z-index: 6; pointer-events: none;
  background: rgba(10,9,6,.75); box-shadow: 0 0 0 .5px rgba(255,246,214,.15);
}
.device.device-phone .band-top    { top: 0;    left: 24%; }
.device.device-phone .band-bottom { bottom: 0; right: 24%; }

/* Active phone: same body, plus a soft gold-cyan halo */
.coverflow .swiper-slide-active .device.device-phone {
  box-shadow:
    1px 1px 0 #6e5f3e, 2px 2px 0 #5b4f34, 3px 3px 0 #4a402b, 4px 4px 0 #3b3323,
    5px 5px 0 #2f281c, 6px 6px 0 #231e15, 7px 7px 0 #19150f, 8px 8px 0 #0f0d09,
    0 0 0 1px rgba(0,0,0,.92),
    inset 1.5px 1.5px 0 rgba(255,246,214,.75),
    inset -1.5px -1.5px 0 rgba(0,0,0,.55),
    0 46px 70px -28px rgba(0,0,0,.96),
    0 0 60px -10px rgba(212,175,55,.38),
    0 0 110px -30px rgba(0,240,255,.25);
}

@media (max-width: 760px) {
  .device.device-phone { border-radius: 44px; }
  .device.device-phone::after { border-radius: 44px; }
  .device.device-phone .display { inset: 5px; border-width: 5px; border-radius: 39px; }
  .device.device-phone .notch { top: 16px; height: 22px; }
}

/* =====================================================================
   Rich app content (used by apps that define these optional fields)
   ===================================================================== */
/* Whole screenshot, nothing cropped, on the app's own background */
.device .display.fit-contain { background: var(--screen-bg, #05070C); }
.device .display.fit-contain .shot { object-fit: contain; }

/* App icon beside the name on the slider card */
.app-body h3.has-icon { display: flex; align-items: center; gap: .6rem; }
.app-icon { width: 34px; height: 34px; border-radius: 9px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 14px -6px rgba(0,0,0,.8); }
.app-icon.lg { width: 64px; height: 64px; border-radius: 16px; }

/* Details window, rich layout */
.sheet:has(.modal-grid.rich) { max-width: 1080px; }
.modal-grid.rich { align-items: start; grid-template-columns: minmax(260px, .9fr) 1.4fr; }
.modal-grid.rich .modal-device { position: sticky; top: 0; }
.app-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; padding-inline-end: 2.4rem; }
.app-head h2 { margin: 0; padding: 0; }
.app-head .dev { margin: .15rem 0 0; font-size: .9rem; color: var(--gold-hi); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0 .2rem; }
.chip {
  font-size: .82rem; font-weight: 500; padding: .3rem .75rem; border-radius: 999px;
  color: #EAF6FF; background: rgba(0,240,255,.07); border: 1px solid rgba(0,240,255,.28);
}
.shape-chips .chip { color: #FFF3D1; background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.35); }

.feature-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: .4rem; }
.fcard {
  padding: .85rem .95rem; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-soft);
  border-inline-start: 2px solid var(--gold);
}
.fcard h5 { margin: 0 0 .3rem; font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: #FFFFFF; }
.fcard p { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--muted); }

.activation {
  margin: 1.4rem 0 1.2rem; padding: 1.1rem 1.2rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.03));
  border: 1px solid rgba(212,175,55,.45);
}
.activation h4 { margin: 0 0 .7rem; font-size: 1.02rem; color: var(--gold-hi); }
.activation ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .55rem; }
.activation li { counter-increment: s; position: relative; padding-inline-start: 2.2rem; font-size: .95rem; color: #FFFFFF; }
.activation li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: -.05rem;
  width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: #0A0A0A; background: var(--gold);
}
.activation .serial { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .9rem 0 .35rem; }
.activation .serial span { font-size: .85rem; color: var(--muted); }
.activation code {
  direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem;
  padding: .25rem .6rem; border-radius: 8px; color: #FFE8A3; background: rgba(0,0,0,.45); border: 1px solid rgba(212,175,55,.35);
}
.activation .act-note { margin: 0; font-size: .85rem; color: var(--muted); }

@media (max-width: 860px) {
  .modal-grid.rich { grid-template-columns: 1fr; }
  .modal-grid.rich .modal-device { position: static; }
  .feature-cards { grid-template-columns: 1fr; }
}

/* Screenshot arrows sit on the bottom edge beside the dots, never over app content */
.device .display .shot-nav {
  top: auto; bottom: 8px; transform: none;
  width: 26px; height: 26px; font-size: 1.05rem;
  background: rgba(6,8,15,.78); border-color: rgba(242,212,126,.4);
}
.device .display .shot-nav.prev { left: 12px; }
.device .display .shot-nav.next { right: 12px; }
.device .display .shot-dots { bottom: 17px; }
.device.device-phone .display .shot-nav.prev { left: 14px; }
.device.device-phone .display .shot-nav.next { right: 14px; }

/* =====================================================================
   Modal close button fix: the sheet itself no longer scrolls, only its
   content does, so the X stays pinned in the corner above everything
   (including the phone shown in the window) and is always tappable.
   ===================================================================== */
.sheet { overflow: hidden; padding: 0; display: flex; flex-direction: column; max-height: 90vh; }
#modalContent { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2.2rem; max-height: 90vh; }
.sheet .x {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 60;
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0;
  background: rgba(8,11,22,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--gold); color: var(--gold-hi); font-size: 1.35rem; line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.6);
}
.sheet .x:hover { background: rgba(212,175,55,.2); }
@media (max-width: 760px) {
  #modalContent { padding: 1.6rem 1.2rem; }
  .sheet .x { width: 46px; height: 46px; top: 10px; inset-inline-end: 10px; }
}

/* =====================================================================
   Performance: nebulas without a live blur filter. The soft edge now
   comes from a multi-stop gradient, so the slow drift is GPU-only.
   ===================================================================== */
.nebula span { filter: none !important; backface-visibility: hidden; }
.nebula span:nth-child(1), .nebula span:nth-child(2) { width: 72vmax; height: 72vmax; }
.nebula span:nth-child(3) { width: 50vmax; height: 50vmax; }
/* keep the same visual centres as the original 60vmax / 42vmax blobs */
.nebula span:nth-child(1) { top: calc(-18% - 6vmax); right: calc(-12% - 6vmax); }
.nebula span:nth-child(2) { bottom: calc(-22% - 6vmax); left: calc(-14% - 6vmax); }
.nebula span:nth-child(3) { top: calc(30% - 4vmax); left: calc(30% - 4vmax); }
.nebula span:nth-child(1) {
  background: radial-gradient(circle closest-side,
    rgba(212,175,55,.9) 0%, rgba(212,175,55,.78) 14%, rgba(212,175,55,.62) 28%, rgba(212,175,55,.46) 42%,
    rgba(212,175,55,.31) 56%, rgba(212,175,55,.18) 70%, rgba(212,175,55,.08) 84%, rgba(212,175,55,0) 100%);
}
.nebula span:nth-child(2) {
  background: radial-gradient(circle closest-side,
    rgba(112,0,255,.9) 0%, rgba(112,0,255,.78) 14%, rgba(112,0,255,.62) 28%, rgba(112,0,255,.46) 42%,
    rgba(112,0,255,.31) 56%, rgba(112,0,255,.18) 70%, rgba(112,0,255,.08) 84%, rgba(112,0,255,0) 100%);
}
.nebula span:nth-child(3) {
  background: radial-gradient(circle closest-side,
    rgba(0,240,255,.9) 0%, rgba(0,240,255,.78) 14%, rgba(0,240,255,.62) 28%, rgba(0,240,255,.46) 42%,
    rgba(0,240,255,.31) 56%, rgba(0,240,255,.18) 70%, rgba(0,240,255,.08) 84%, rgba(0,240,255,0) 100%);
}

/* ===== v9: app title under each phone =====
   ".app img" (16:10, full width) was also stretching the small app icon, which pushed
   the title outside the screen. The icon gets its own fixed square size, and the text
   under a phone never gets wider than the phone mockup itself (290px; 250px on mobile),
   so any new app with a long name wraps inside the frame. */
.app .app-icon { width: 30px; height: 30px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.coverflow .swiper-slide.is-phone .app-body { max-width: 290px; margin-inline: auto; }
.coverflow .app .app-body h3 { font-size: 1rem; line-height: 1.4; }
.coverflow .app .app-body h3.has-icon { gap: .5rem; }
.coverflow .app .app-body h3 > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .coverflow .swiper-slide.is-phone .app-body { max-width: 250px; }
  .coverflow .app .app-body h3 { font-size: .95rem; }
  .app .app-icon { width: 28px; height: 28px; }
}
