:root {
  --bg: #090909;
  --panel: #111;
  --panel2: #171717;
  --text: #f4f3ef;
  --muted: #979797;
  --line: #2a2a2a;
  --button: #f3f1eb;
  --buttonText: #111;
  --folder-tab: #5f6064;
  --folder-bg: #5f6064;
  --folder-lip: #b1b3b8;
  --accent: #f06f22;
  --shadow: 0 22px 80px rgba(0,0,0,.28);
  --radius: 28px;
  --font: 'Cabinet Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --arfont: 'Rubik', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-user-drag: none; user-select: none; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.ar { font-family: var(--arfont); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); top: 12px; height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #fff; background: rgba(15, 15, 15, 0.55); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 0 16px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.brand img { display: block; width: 120px; max-height: 30px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; gap: 30px; font-size: 13px; font-weight: 600; }
.main-nav a { opacity: .78; }
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.buy-chip, .lang-btn, .icon-btn { border: 1px solid rgba(255,255,255,.28); background: rgba(10,10,10,.35); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.buy-chip { border-radius: 999px; padding: 10px 15px; font-weight: 700; font-size: 12px; }
.buy-chip s { opacity: .55; }
.lang-btn, .icon-btn { height: 36px; border-radius: 999px; padding: 0 12px; cursor: pointer; }
.icon-btn { width: 36px; padding: 0; }

.hero { min-height: 660px; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: #0c0c0c; }
.hero-media { position: absolute; inset: 0; background-image: url('assets/images/hero-en.png'); background-size: cover; background-position: center; }
html[dir='rtl'] .hero-media { background-image: url('assets/images/hero-ar.png'); }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.68) 34%, rgba(0,0,0,.12) 64%, rgba(0,0,0,.08) 100%); }
html[dir='rtl'] .hero-media::after { background: linear-gradient(270deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.68) 34%, rgba(0,0,0,.12) 64%, rgba(0,0,0,.08) 100%); }
.hero-shade { position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, var(--bg)); }
.hero-content { position: relative; z-index: 3; padding-bottom: 74px; }
.hero .eyebrow { color: rgba(255,255,255,.68); }
.hero h1, .hero p, .hero-copy { color: #fff !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(52px,6vw,92px); line-height: .92; letter-spacing: -.055em; max-width: 780px; margin-bottom: 24px; }
.hero-copy { font-size: 17px; line-height: 1.65; max-width: 600px; color: rgba(255,255,255,.7); }
.hero-stats { display: flex; gap: 34px; margin-top: 28px; }
.hero-stats div { display: flex; gap: 8px; align-items: center; }
.hero-stats strong { font-size: 20px; color: #fff !important; }
.hero-stats span { font-size: 12px; color: rgba(255, 255, 255, 0.65) !important; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 20px; font-weight: 800; font-size: 13px; border: 1px solid var(--line); cursor: pointer; }
.btn.primary { background: #fff; color: #111; border-color: #fff; }
.btn.secondary { background: rgba(15,15,15,.45); color: #fff; border-color: rgba(255,255,255,.26); backdrop-filter: blur(8px); }

.section { padding: 72px 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 34px; }
.section-heading.compact { display: block; }
.section-heading h2 { font-size: clamp(38px,4vw,62px); letter-spacing: -.045em; line-height: 1; margin: 0; }
.section-heading p { color: var(--muted); line-height: 1.7; margin: 0; max-width: 780px; }
.section-heading.compact p { margin-top: 16px; }

/* Collections Grid & Apple Folder UI */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.collection-card { position: relative; border: 1px solid var(--line); border-radius: 26px 26px 0 0; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }

.collection-preview { position: relative; aspect-ratio: 1.17/1; background: #1a1a1a; overflow: hidden; cursor: pointer; }
.collection-preview > img.mockup-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; pointer-events: none; transform: translateY(-35px) scale(1.12); transform-origin: center center; }
.raw-overlay { position: absolute; left: 50%; top: 50%; z-index: 10; width: 82%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0; transform: translate(-50%, -48%) scale(.92); border-radius: 6px; box-shadow: 0 18px 45px rgba(0,0,0,.28); transition: opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1); pointer-events: none; image-rendering: auto; }
.collection-preview:hover .raw-overlay { opacity: 1; transform: translate(-50%, -50%) }

.preview-hint { position: absolute; bottom: 85px; right: 15px; background: rgba(0,0,0,0.65); color: #fff; font-size: 10px; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); pointer-events: none; z-index: 5; }
html[dir='rtl'] .preview-hint { right: auto; left: 15px; }

.collection-title-overlay { position: absolute; inset: 20px 20px auto; z-index: 2; color: #fff; text-shadow: 0 1px 18px rgba(0,0,0,.6); pointer-events: none; }
.collection-title-overlay h3 { font-size: 16px; margin: 0 0 2px; }
.collection-title-overlay p { font-size: 12px; margin: 0; opacity: .82; }

/* Authentic Apple Folder Construction */
.folder-container { position: relative; margin-top: -65px; z-index: 4; }
.folder-back { position: relative; background: var(--folder-bg); border-radius: 0px 20px 0 0; padding-top: 50px; }
html[dir='rtl'] .folder-back { border-radius: 20px 0 0 0; }
.folder-tab { position: absolute; top: -45px; left: 0; width: 48%; height: 55px; background: var(--folder-bg); border-radius: 20px 20px 0 0; clip-path: polygon(0 0, 72% 0, 88% 100%, 0 100%); display: flex; align-items: center; padding-left: 14px; }
html[dir='rtl'] .folder-tab { left: auto; right: 0; clip-path: polygon(12% 100%, 28% 0, 100% 0, 100% 100%); justify-content: flex-start; padding-left: 14px; padding-right: 14px; }
.view-all-badge { font-size: 10px; color: #fff; font-weight: 700; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 2px 8px; background: rgba(0,0,0,0.15); transform: translateY(-8px); }

.folder-pocket { position: relative; padding: 10px 12px 0; overflow: visible; }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; z-index: 1; transform: translateY(-50px); }
.thumb-item { min-width: 0; }
.thumb { display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: #222; transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1); }
.thumb:hover { transform: translateY(-24px) scale(1.08); z-index: 5; box-shadow: 0 10px 20px rgba(0,0,0,.35); }
.thumb.active { outline: 2px solid #fff; outline-offset: 1px; transform: translateY(-10px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.folder-front-lip { position: relative; z-index: 2; background: var(--folder-lip); border-radius: 14px 14px 0px 0px; padding: 8px 12px 14px; margin-top: 4px; transform: translateY(-80px); }
.folder-front-lip::after { content: ''; position: absolute; left: 0;  right: 0; top: 100%; height: 80px;  background: var(--folder-lip); }
.thumb-names-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.thumb-name { font-size: 9px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-dots { position: absolute; left: 50%; bottom: -55px; transform: translateX(-50%); display: flex; justify-content: center; gap: 5px; margin-top: 0; z-index: 5; }
.folder-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.folder-dots span.active { background: #fff; }

/* Formats, Benefits, Pricing, FAQ */
.format-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.format-grid article, .why-grid article { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--panel); }
.format-grid span { font-size: 22px; font-weight: 800; display: block; }
.format-grid strong { display: block; margin-top: 8px; font-size: 12px; }
.format-grid small { display: block; color: var(--muted); margin-top: 4px; }
.why-card, .purchase-card { border: 1px solid var(--line); background: var(--panel); border-radius: 24px; padding: 42px; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 30px; }
.why-grid i { font-style: normal; color: #595959; font-size: 11px; float: right; }
.why-grid h3 { font-size: 18px; margin: 28px 0 10px; }
.why-grid p { color: var(--muted); line-height: 1.65; font-size: 14px; margin: 0; }
.arabic-sample { font-family: var(--arfont); }
.purchase-card { display: grid; grid-template-columns: 1fr 320px; gap: 80px; align-items: center; }
.purchase-card h2 { font-size: clamp(38px,4vw,64px); line-height: 1; letter-spacing: -.045em; max-width: 760px; margin-bottom: 16px; }
.purchase-side { text-align: center; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 12px 0 18px; }
.price s { font-size: 22px; color: #777; }
.price strong { font-size: 60px; line-height: 1; }
.purchase-btn { width: 100%; background: #5b5b5b; color: #fff; border-color: #777; }
.purchase-side ul { padding: 0; list-style: none; color: var(--muted); font-size: 12px; line-height: 1.7; }
.faq-section h2 { font-size: 56px; letter-spacing: -.04em; }
.faq-section details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-section summary { cursor: pointer; font-weight: 700; }
.faq-section details p { color: var(--muted); max-width: 850px; line-height: 1.7; padding-top: 14px; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 28px 0 38px; margin-top: 30px; }
.footer strong { font-size: 12px; letter-spacing: .14em; }
.footer small { display: block; color: var(--muted); margin-top: 4px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand img { width: 120px; height: 28px; object-fit: contain; object-position: left center; }
html[dir='rtl'] .footer-brand img { object-position: right center; }
.socials { display: flex; gap: 22px; align-items: center; color: var(--muted); font-size: 11px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; }
.socials svg { width: 18px; height: 18px; lex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

html[data-theme='light'] {
  --bg: #f4f2ed;
  --panel: #fff;
  --text: #0d0d0d;
  --muted: #676767;
  --line: #d8d5ce;
  --button: #111;
  --buttonText: #fff;
  --folder-tab: #0077c8;
  --folder-bg: #0277be;
  --folder-lip: #4fc3f8;
}
html[data-theme='light'] .site-header { background: rgba(255,255,255,.68); border-color: rgba(0,0,0,.10); color: #111; }
html[data-theme='light'] .collection-card { background: #fff; }

html[dir='rtl'] .brand img { object-position: right center; }
html[dir='rtl'] .hero-content { text-align: right; }
html[dir='rtl'] .hero-copy { margin-right: 0; margin-left: auto; }
html[dir='rtl'] .hero-stats, html[dir='rtl'] .hero-cta { justify-content: flex-start; }
html[dir='rtl'] .collection-title-overlay { text-align: right; }
html[dir='rtl'] .why-grid i { float: left; }

@media(max-width:1050px){
  .shell { width: calc(100% - 24px); }
  .main-nav { display: none; }
  .collections-grid { grid-template-columns: 1fr; }
  .format-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .purchase-card { grid-template-columns: 1fr; gap: 30px; }
}

/* Ultrawide screens */

@media (min-width: 1800px) {
  .shell { width: min(1800px, calc(100% - 96px)); }
}

@media(max-width:600px) {
.site-header { top: 8px; height: 54px; grid-template-columns: auto 1fr; gap: 8px; padding: 0 10px; }
.brand img { width: 90px; }
.header-actions { gap: 6px; }
.buy-chip { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; flex-shrink: 0; font-size: 9px; padding: 7px 9px; }
.lang-btn { height: 34px; padding: 0 10px; font-size: 11px; }
.icon-btn { width: 34px; height: 34px; }
}