:root {
  --bg: #0b0610;
  --bg2: #2a0d1f;
  --accent: #ff4d7e;
  --accent-2: #f9626b;
  --text: #f9eaf2;
  --muted: #d6baca;
  --chip: #ffb3c7;
  --card: rgba(255,255,255,0.06);
  --outline: rgba(255,255,255,0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 70% 40%, var(--bg2), var(--bg));
}
/* Support RTL for languages like Arabic */
[dir="rtl"] body, [dir="rtl"] .hero-copy { direction: rtl; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(8px); background: linear-gradient(to bottom, rgba(20,8,18,0.75), rgba(20,8,18,0)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.2px; font-size: 20px; }
.brand-weak { color: var(--muted); font-weight: 600; margin-left: 6px; font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link { color: var(--text); opacity: .85; text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; color: var(--text); padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn:hover, .btn:focus { text-decoration: none; }
.btn-ghost { border-color: var(--outline); }
.btn-pill { border-color: var(--outline); border-radius: 999px; padding: 8px 12px; }

.lang { position: relative; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--outline); border-radius: 10px; backdrop-filter: blur(6px); }
.lang-menu a { color: var(--text); text-decoration: none; display: block; padding: 8px 12px; border-radius: 8px; }
.lang-menu a:hover { background: rgba(255,255,255,0.08); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px 0 56px; }
.hero-media { position: relative; min-height: 70vh; }

/* Before/After slider */
.ba-slider { position: absolute; inset: 0 0 0 0; overflow: hidden; }

/* Style the img-comparison-slider to match design */
img-comparison-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  border: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img-comparison-slider:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

img-comparison-slider * {
  outline: none;
  border: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img-comparison-slider::part(before) {
  filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.5);
}

img-comparison-slider::part(after) {
  filter: none;
}

/* Custom handle styling to match design */
img-comparison-slider::part(handle) {
  width: 28px;
  height: 28px;
  background: #fff;
  border: 2px solid rgba(255,77,126,0.9);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
}

img-comparison-slider::part(handle)::before {
  content: '';
  width: 6px;
  height: 6px;
  background: rgba(255,77,126,0.95);
  border-radius: 50%;
  box-shadow: -8px 0 0 0 rgba(255,77,126,0.95), 8px 0 0 0 rgba(255,77,126,0.95);
}

/* Labels */
.ba-label { position: absolute; bottom: 16px; padding: 4px 10px; font-weight: 600; font-size: 10px; border-radius: 999px; color: white; white-space: nowrap; z-index: 10; transition: all 0.2s ease; transform: translateX(-50%); }
.ba-label--before { background: rgba(0,0,0,0.9); border: 1px solid rgba(255,255,255,0.3); }
.ba-label--after { background: rgba(139,0,0,0.9); border: 1px solid rgba(255,255,255,0.3); }

/* Bottom blur slider removed */

.hero-copy { display: flex; flex-direction: column; gap: 12px; }
.chip { display: inline-block; background: var(--chip); color: #4a1020; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; width: max-content; }
.try-video { color: var(--text); text-decoration: none; background: var(--card); border: 1px solid var(--outline); padding: 6px 10px; border-radius: 10px; width: max-content; font-weight: 700; }
.hero h1 { font-family: 'Ubuntu', Inter, system-ui, sans-serif; font-weight: 500; font-size: clamp(26px, 4.2vw, 42px); line-height: 1.1; margin: 8px 0 0; letter-spacing: -0.4px; text-wrap: balance; max-width: 22ch; }
.lead { font-family: 'Sora', Inter, system-ui, sans-serif; color: var(--muted); font-size: 17px; margin: 6px 0 14px; max-width: 48ch; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; }

.dropzone { border-radius: 22px; border: 1px dashed var(--outline); background: rgba(255,255,255,0.04); padding: 22px; width: min(560px, 100%); margin-bottom: 72px; }
.dropzone-inner { display: grid; justify-items: center; gap: 14px; padding: 22px; border: 1px solid var(--outline); border-radius: 18px; background: rgba(255,255,255,0.04); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; border: none; padding: 14px 18px; font-size: 16px; border-radius: 999px; box-shadow: none; transition: box-shadow .25s ease, transform .05s ease; }
.btn-primary:hover,
.btn-primary:focus-visible { box-shadow: 0 10px 28px rgba(255,77,126,0.45); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 6px 18px rgba(255,77,126,0.3); }
.dz-hint { opacity: .9; color: var(--text); }
.dz-badges { display: flex; gap: 12px; }
.badge { background: var(--card); border: 1px solid var(--outline); padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: 12px; }
.fineprint { color: var(--muted); max-width: 56ch; text-align: center; font-size: 12px; }
.fineprint a { color: var(--text); }

.site-footer { padding: 28px 0 56px; color: var(--muted); }
.btn-thin { border-color: var(--outline); padding: 8px 12px; white-space: nowrap; }
.legal { font-size: 12px; margin-top: 10px; }

/* Footer content moved into body */
.body-footer { margin-top: 18px; display: grid; gap: 8px; color: var(--muted); justify-items: end; text-align: right; position: fixed; right: 24px; bottom: 24px; z-index: 40; }

/* Responsive */
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.5fr 1fr; align-items: center; min-height: calc(100vh - 72px); }
  .hero-media { min-height: calc(100vh - 140px); }
  .ba-slider { inset: 0; }
  /* Keep header in normal flow on desktop */
  .site-header { position: sticky; top: 0; background: linear-gradient(to bottom, rgba(20,8,18,0.75), rgba(20,8,18,0)); }
}


