/* ============================================================
   هنا لتسريع الأعمال — Studio Stylesheet v7
   Light-first · burnt-coral accent · themeable · kinetic
   ============================================================ */

:root {
  /* ---- LIGHT (default) ---- */
  --bg:        #f4f1e9;
  --bg-soft:   #ece8dd;
  --surface:   #ffffff;
  --surface-2: #f7f4ec;
  --line:      rgba(24,18,10,0.10);
  --line-2:    rgba(24,18,10,0.18);

  --text:      #17130d;
  --dim:       #5b5448;
  --mut:       #8b8475;
  --faint:     #bdb6a6;

  --accent:    #e5533c;
  --accent-deep:#c8412b;
  --accent-2:  #ff6a4d;
  --accent-ink:#ffffff;

  --card-shadow: 0 24px 60px -28px rgba(24,18,10,0.22);
  --grain-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-op: 0.05;
  --cursor-blend: difference;

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(18px, 5vw, 80px);
  --maxw: 1320px;

  --f-ar: 'Tajawal', system-ui, -apple-system, sans-serif;
  --f-display: 'Cairo', 'Tajawal', sans-serif;
  --f-en: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg:        #0e0c0a;
  --bg-soft:   #14110d;
  --surface:   #18140f;
  --surface-2: #1e1812;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.16);

  --text:      #f3efe7;
  --dim:       #ada595;
  --mut:       #726b5f;
  --faint:     #45403a;

  --accent:    #ff6a4d;
  --accent-deep:#ff7a5f;
  --accent-2:  #e5533c;
  --accent-ink:#1a0c08;

  --card-shadow: none;
  --grain-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-op: 0.05;
  --cursor-blend: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* theme cross-fade only during toggle */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, fill 0.5s ease, box-shadow 0.5s ease !important;
}

body {
  background: var(--bg); color: var(--text);
  font-family: var(--f-ar); font-size: 16px; line-height: 1.7; font-weight: 500;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
b, strong { font-weight: 800; color: var(--text); }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.accent { color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor * { cursor: none; }
}

/* ===== Ambient ===== */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(120px); will-change: transform; }
.aurora-1 { width: 60vw; height: 60vw; top: -18vw; right: -8vw; background: radial-gradient(circle, rgba(229,83,60,0.16), transparent 65%); }
.aurora-2 { width: 52vw; height: 52vw; bottom: -16vw; left: -10vw; background: radial-gradient(circle, rgba(245,170,90,0.14), transparent 65%); }
.aurora-3 { width: 42vw; height: 42vw; top: 38%; left: 42%; background: radial-gradient(circle, rgba(229,83,60,0.08), transparent 65%); }
[data-theme="dark"] .aurora-1 { background: radial-gradient(circle, rgba(255,106,77,0.18), transparent 65%); }
[data-theme="dark"] .aurora-2 { background: radial-gradient(circle, rgba(245,150,70,0.12), transparent 65%); }

.grain { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: var(--grain-op); background-image: var(--grain-img); }

/* ===== Preloader ===== */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(320px, 70vw); }
.loader-mark { font-family: var(--f-display); font-weight: 900; font-size: 40px; color: var(--text); letter-spacing: -0.02em; }
.loader-bar { width: 100%; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader-bar-fill { display: block; height: 100%; width: 0%; background: var(--accent); }
.loader-count { font-family: var(--f-mono); font-size: 13px; color: var(--mut); }
.loader.done { transform: translateY(-100%); transition: transform 0.8s var(--ease); pointer-events: none; }

/* ===== Scroll progress ===== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; transform: scaleX(0); transform-origin: right; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ===== Cursor ===== */
.cursor { position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; mix-blend-mode: var(--cursor-blend); display: none; }
body.has-cursor .cursor { display: block; }
.cursor-dot { position: absolute; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cursor-ring { position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--accent); }
.cursor-ring, .cursor-label { transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s, border-color 0.35s; }
.cursor-label { position: absolute; top: 0; left: 0; font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--accent-ink); opacity: 0; white-space: nowrap; }
body.cursor-hover .cursor-ring { width: 54px; height: 54px; background: rgba(229,83,60,0.12); }
body.cursor-view .cursor-ring { width: 86px; height: 86px; background: var(--accent); border-color: var(--accent); }
body.cursor-view .cursor-dot { opacity: 0; }
body.cursor-view .cursor-label { opacity: 1; }
body.cursor-view .cursor { mix-blend-mode: normal; }

/* ===== Buttons ===== */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; overflow: hidden; will-change: transform; transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s; }
.btn-label, .btn-arrow, .btn svg { position: relative; z-index: 2; }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-xl { padding: 21px 40px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--accent-deep); transform: translateY(101%); transition: transform 0.5s var(--ease); }
.btn-solid:hover::before { transform: translateY(0); }
.btn-arrow { transition: transform 0.4s var(--ease); }
.btn-solid:hover .btn-arrow { transform: translateX(-4px); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--text); transform: translateY(101%); transition: transform 0.5s var(--ease); }
.btn-line:hover { color: var(--bg); border-color: var(--text); }
.btn-line:hover::before { transform: translateY(0); }
.btn-pill { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); padding: 11px 20px; font-size: 14px; }
.btn-pill .btn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.btn-pill:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-pill:hover .btn-dot { background: var(--accent-ink); }

/* ===== Nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s, padding 0.4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom-color: var(--line); padding: 12px 0; }
.nav.hidden { transform: translateY(-100%); }
.nav-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-glyph { display: inline-flex; transition: transform 0.5s var(--ease); }
.brand:hover .brand-glyph { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-ar { font-family: var(--f-display); font-weight: 900; font-size: 21px; letter-spacing: -0.02em; }
.brand-sub { font-size: 10.5px; color: var(--mut); font-weight: 600; margin-top: 3px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--dim); border-radius: 999px; }
.nav-links a span { position: relative; z-index: 2; display: block; }
.nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s; will-change: transform; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.tt-icon { position: absolute; transition: transform 0.5s var(--ease), opacity 0.4s; }
.tt-sun { opacity: 1; transform: rotate(0); }
.tt-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"] .tt-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .tt-moon { opacity: 1; transform: rotate(0); }
.nav-burger { display: none; flex-direction: column; gap: 6px; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; }
.nav-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--bg-soft); display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: var(--pad); transform: translateY(-100%); transition: transform 0.6s var(--ease); visibility: hidden; }
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-links a { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 9vw, 46px); display: flex; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mm-idx { font-family: var(--f-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.mobile-menu-cta { align-self: flex-start; }

/* ===== Section heads ===== */
.sec-tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; margin-bottom: 22px; }
.sec-tag i { color: var(--accent-deep); font-style: normal; }
.sec-head { max-width: 820px; margin: 0 auto clamp(48px, 7vw, 92px); text-align: center; }
.sec-head .sec-tag { justify-content: center; }
.sec-head-start { text-align: start; margin-inline: 0; }
.sec-head-start .sec-tag { justify-content: flex-start; }
.sec-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 6vw, 68px); line-height: 1.08; letter-spacing: -0.025em; }
.sec-sub { margin-top: 22px; font-size: clamp(15px, 1.6vw, 19px); color: var(--dim); line-height: 1.75; }
/* underline draw */
.sec-title[data-underline]::after { content: ''; display: block; height: 3px; width: 64px; margin-top: 20px; background: var(--accent); border-radius: 3px; transform: scaleX(0); transform-origin: right; transition: transform 0.9s var(--ease); }
.sec-head .sec-title[data-underline]::after { margin-inline: auto; }
.sec-title.drawn::after { transform: scaleX(1); }

/* ===== Deco shapes ===== */
.deco { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.deco-ring { width: 190px; height: 190px; border: 1.5px solid var(--accent); border-radius: 50%; opacity: 0.22; top: 16%; inset-inline-start: 7%; }
.deco-blob { width: 130px; height: 130px; border-radius: 46% 54% 62% 38%; background: var(--accent); opacity: 0.12; bottom: 18%; inset-inline-end: 11%; }
.deco-plus { font-family: var(--f-mono); font-weight: 200; font-size: 64px; color: var(--accent); opacity: 0.3; top: 24%; inset-inline-end: 22%; }
.deco-ring2 { width: 280px; height: 280px; border: 1.5px solid var(--accent); border-radius: 50%; opacity: 0.16; top: 8%; inset-inline-end: 6%; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 80px; overflow: hidden; }
.hero-grid-lines { position: absolute; inset: 0; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: flex; justify-content: space-between; pointer-events: none; z-index: 0; }
.hero-grid-lines span { width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--line), transparent); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--dim); margin-bottom: clamp(28px, 4vw, 44px); padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.eyebrow-sep { color: var(--faint); }
.eyebrow-mono { font-family: var(--f-mono); font-size: 11.5px; color: var(--accent-deep); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(229,83,60,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,83,60,0.5);} 70% { box-shadow: 0 0 0 12px rgba(229,83,60,0);} 100% { box-shadow: 0 0 0 0 rgba(229,83,60,0);} }
.hero-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(46px, 11vw, 138px); line-height: 0.98; letter-spacing: -0.035em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line-in { display: block; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px; margin-top: clamp(36px, 5vw, 60px); }
.hero-desc { max-width: 480px; font-size: clamp(15px, 1.5vw, 18px); color: var(--dim); line-height: 1.8; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scrollcue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2; }
.hero-scrollcue-text { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--mut); text-transform: uppercase; }
.hero-scrollcue-line { width: 1px; height: 48px; background: linear-gradient(180deg, var(--accent), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3;} 50% { transform: scaleY(1); opacity: 1;} }

/* ===== Strip marquee ===== */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; overflow: hidden; background: var(--bg-soft); }
.strip-rail { display: flex; width: max-content; }
.strip-track { display: flex; align-items: center; gap: 40px; padding-left: 40px; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4vw, 46px); color: var(--text); white-space: nowrap; will-change: transform; }
.strip-star { color: var(--accent); font-style: normal; font-size: 0.6em; }

/* ===== Manifesto ===== */
.manifesto { padding: clamp(90px, 14vw, 200px) 0; }
.manifesto-text { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4.4vw, 58px); line-height: 1.25; letter-spacing: -0.02em; max-width: 1100px; }
.manifesto-text .word { display: inline-block; opacity: 0.16; }

/* ===== Services ===== */
.services { padding: clamp(80px, 10vw, 140px) 0; }
.pkg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pkg { position: relative; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; box-shadow: var(--card-shadow); transition: transform 0.6s var(--ease), border-color 0.5s, box-shadow 0.5s; }
.pkg::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-xl); pointer-events: none; background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(229,83,60,0.08), transparent 45%); opacity: 0; transition: opacity 0.5s; }
.pkg:hover { transform: translateY(-6px); border-color: var(--line-2); }
.pkg:hover::after { opacity: 1; }
.pkg-feat { background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.pkg-badge { position: absolute; top: 24px; inset-inline-end: 24px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-weight: 800; font-size: 12px; padding: 6px 14px; border-radius: 999px; }
.pkg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.pkg-index { font-family: var(--f-mono); font-size: 13px; color: var(--mut); }
.pkg-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.pkg-name { font-family: var(--f-display); font-weight: 900; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; margin-bottom: 12px; }
.pkg-desc { color: var(--dim); font-size: 15.5px; line-height: 1.7; margin-bottom: 28px; max-width: 420px; }
.pkg-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 30px; }
.pkg-from { font-size: 13px; color: var(--mut); font-weight: 600; }
.pkg-amount { font-family: var(--f-en); font-weight: 700; font-size: clamp(48px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.pkg-feat .pkg-amount { color: var(--accent); }
.pkg-cur { font-size: 0.5em; vertical-align: super; color: var(--dim); margin-inline-end: 2px; }
.pkg-list { list-style: none; margin-bottom: 32px; }
.pkg-list li { position: relative; padding: 11px 0; padding-inline-start: 28px; font-size: 15px; color: var(--dim); border-bottom: 1px solid var(--line); }
.pkg-list li:last-child { border-bottom: 0; }
.pkg-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 15px; width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5533c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.pkg-list li b { color: var(--text); }
.pkg-note { text-align: center; margin-top: 44px; color: var(--dim); font-size: 15.5px; }
.pkg-note .accent { margin-inline-end: 4px; }

/* ===== Horizontal pinned capabilities ===== */
.hwrap { position: relative; }
.hpin { min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 60px 0; }
.hpin-inner { width: 100%; }
.hhead { max-width: var(--maxw); margin: 0 auto 44px; padding-inline: var(--pad); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hhead .sec-title { font-size: clamp(30px, 5vw, 60px); }
.hhint { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 13px; color: var(--mut); }
.hhint svg { color: var(--accent); }
.htrack { display: flex; gap: 22px; padding-inline: var(--pad); width: max-content; will-change: transform; }
.hcard { direction: rtl; text-align: start; flex: 0 0 auto; width: min(82vw, 400px); min-height: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px); box-shadow: var(--card-shadow); display: flex; flex-direction: column; transition: transform 0.5s var(--ease), border-color 0.4s; }
.hcard:hover { transform: translateY(-6px); border-color: var(--accent); }
.hcard-num { font-family: var(--f-mono); font-size: 13px; color: var(--accent-deep); margin-bottom: auto; }
.hcard h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(21px, 2.4vw, 27px); margin: 26px 0 12px; letter-spacing: -0.01em; }
.hcard p { color: var(--dim); font-size: 15px; line-height: 1.75; }

/* ===== Showcase ===== */
.work { padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px); }
.work-list { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: flex; flex-direction: column; }
.wk { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(28px, 4vw, 50px) 0; border-top: 1px solid var(--line); position: relative; }
.wk:last-child { border-bottom: 1px solid var(--line); }
.wk-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.wk-clip { width: 100%; height: 100%; clip-path: inset(0 0 0 0); }
.wk-media-inner { width: 100%; height: 100%; overflow: hidden; }
.wk-media img { width: 100%; height: 120%; object-fit: cover; object-position: top center; transform: scale(1.02); transition: transform 0.8s var(--ease); }
.wk:hover .wk-media img { transform: scale(1.06); }
.wk-meta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 18px; }
.wk-i { font-family: var(--f-mono); font-size: 13px; color: var(--mut); }
.wk-name { font-family: var(--f-en); font-weight: 700; font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -0.02em; transition: color 0.4s; }
.wk:hover .wk-name { color: var(--accent); }
.wk-tag { grid-column: 2; font-size: 14px; color: var(--dim); }
.wk-go { grid-column: 1 / -1; justify-self: start; font-family: var(--f-mono); font-size: 13px; color: var(--mut); margin-top: 6px; transition: color 0.4s, transform 0.4s var(--ease); }
.wk:hover .wk-go { color: var(--accent); transform: translateX(-6px); }

/* ===== Tech stack ===== */
.stack { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.stack-rail { display: flex; width: max-content; margin-top: 8px; }
.stack-track { display: flex; align-items: center; gap: 18px; padding-left: 18px; white-space: nowrap; will-change: transform; }
.stack-track span { font-family: var(--f-en); font-weight: 500; font-size: clamp(18px, 2.4vw, 30px); color: var(--dim); padding: 12px 26px; border: 1px solid var(--line); border-radius: 999px; transition: color 0.4s, border-color 0.4s, background 0.4s; }
.stack-track span:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ===== Process ===== */
.process { padding: clamp(80px, 10vw, 140px) 0; }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 80px); align-items: start; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--f-en); font-weight: 700; font-size: clamp(40px, 7vw, 96px); line-height: 0.9; color: transparent; -webkit-text-stroke: 1.4px var(--line-2); letter-spacing: -0.04em; transition: color 0.5s, -webkit-text-stroke-color 0.5s; }
.step:hover .step-num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step-body { max-width: 620px; padding-top: 8px; }
.step-body h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); margin-bottom: 12px; letter-spacing: -0.015em; }
.step-body p { color: var(--dim); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; }

/* ===== Stats ===== */
.stats { padding: clamp(60px, 8vw, 100px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--f-en); font-weight: 700; font-size: clamp(40px, 6vw, 74px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.stat-label { display: block; margin-top: 12px; font-size: 14px; color: var(--dim); font-weight: 600; }

/* ===== Why ===== */
.why { padding: clamp(80px, 10vw, 140px) 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--card-shadow); transition: transform 0.5s var(--ease), border-color 0.4s; }
.why-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.why-ic { display: inline-flex; font-size: 22px; color: var(--accent); margin-bottom: 18px; }
.why-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.why-card p { color: var(--dim); font-size: 14.5px; line-height: 1.75; }

/* ===== FAQ ===== */
.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq-wrap { max-width: 920px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 26px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--f-display); font-weight: 800; font-size: clamp(17px, 2vw, 23px); letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex-shrink: 0; width: 22px; height: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5533c' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; transition: transform 0.4s var(--ease); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 4px 28px; color: var(--dim); font-size: 15.5px; line-height: 1.8; max-width: 760px; }

/* ===== CTA ===== */
.cta { position: relative; padding: clamp(110px, 16vw, 220px) 0; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 60% 80% at 50% 60%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-inner .sec-tag { justify-content: center; }
.cta-title { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 9vw, 124px); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 24px; }
.cta-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.cta-title .line-in { display: block; }
.cta-sub { font-size: clamp(16px, 1.8vw, 21px); color: var(--dim); margin-bottom: 44px; max-width: 560px; }
.cta-phone { margin-top: 26px; font-family: var(--f-en); font-weight: 600; font-size: 19px; color: var(--mut); letter-spacing: 0.04em; transition: color 0.4s; }
.cta-phone:hover { color: var(--accent); }

/* ===== Footer ===== */
.footer { padding: clamp(60px, 8vw, 100px) 0 36px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer-logo { font-family: var(--f-display); font-weight: 900; font-size: 44px; letter-spacing: -0.03em; }
.footer-logo i { color: var(--accent); font-style: normal; }
.footer-brand p { margin-top: 18px; color: var(--mut); font-size: 14.5px; line-height: 1.8; max-width: 380px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { font-family: var(--f-display); font-weight: 800; font-size: 13px; color: var(--text); margin-bottom: 18px; letter-spacing: 0.04em; }
.footer-col a, .footer-col span { display: block; padding: 6px 0; color: var(--mut); font-size: 14px; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; color: var(--faint); font-size: 13px; }

/* ===== WhatsApp ===== */
.wa { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 90; box-shadow: 0 12px 30px rgba(37,211,102,0.4); transition: transform 0.4s var(--ease); }
.wa:hover { transform: scale(1.08) rotate(-6deg); }
.wa-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(37,211,102,0.4); animation: waring 2.4s ease-out infinite; z-index: -1; }
@keyframes waring { 0% { transform: scale(1); opacity: 0.6;} 100% { transform: scale(2); opacity: 0;} }

/* reveal-safe defaults */
[data-reveal], [data-fade] { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 120px 0 90px; min-height: 92svh; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .hero-scrollcue { display: none; }
  .deco-plus, .deco-blob { display: none; }
  .deco-ring, .deco-ring2 { opacity: 0.14; }
  .pkg-grid { grid-template-columns: 1fr; }
  /* keep natural order on mobile: 01 المواقع ثم 02 التطبيقات */

  /* horizontal scroll → swipe carousel on mobile */
  .hpin { min-height: auto; display: block; overflow: visible; padding: 0; }
  .htrack {
    width: auto;                 /* not max-content, so the row can overflow & scroll */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    transform: none !important;  /* clear any leftover GSAP transform */
  }
  .htrack::-webkit-scrollbar { display: none; }
  .hcard { scroll-snap-align: start; width: 80vw; min-height: 300px; }

  .why-grid { grid-template-columns: 1fr; }
  .wk { grid-template-columns: 1fr; gap: 18px; }
  .wk-media { order: -1; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step-num { font-size: 54px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-base { justify-content: center; text-align: center; }
  .wa { width: 54px; height: 54px; bottom: 18px; inset-inline-end: 18px; }
}
@media (max-width: 460px) {
  :root { --pad: 18px; }
  .hero-title { font-size: clamp(40px, 14vw, 60px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .theme-toggle { width: 38px; height: 38px; }
}

/* ===== Reduced motion =====
   Owner explicitly requested rich motion and browses with reduced-motion on.
   Motion is JS-driven with gentle easing; if JS/GSAP is absent, content is
   visible by default (reveal-safe). Block intentionally minimal. */
@media (prefers-reduced-motion: reduce) {
  /* intentionally empty */
}
