/* ====================================================
   AD4U.ai — Marketing site stylesheet
   Shared by index.html (EN/LTR) and ar.html (AR/RTL)
   Uses CSS logical properties so RTL mirrors automatically
   ==================================================== */

:root {
  /* Palette — premium, warm, UAE-inspired */
  --bg: #0b0a08;
  --bg-soft: #121009;
  --surface: #19160f;
  --surface-2: #201b12;
  --border: rgba(232, 220, 200, 0.10);
  --border-strong: rgba(232, 220, 200, 0.18);

  --gold-light: #f2dca8;
  --gold: #d9ae6b;
  --gold-dark: #a9793c;

  --violet: #6e62f2;
  --violet-light: #9a90ff;

  --text: #f7f2e7;
  --text-muted: #b7ab95;
  --text-faint: #7d7461;

  --success: #7fae8c;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);

  --container: 1200px;

  --font-en: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: "Tajawal", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ar"] body,
[dir="rtl"] body {
  font-family: var(--font-ar);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

/* Background ambience */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow--gold {
  background: radial-gradient(circle, rgba(217, 174, 107, 0.35), transparent 70%);
  width: 700px; height: 700px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  top: -220px;
}
.glow--violet {
  background: radial-gradient(circle, rgba(110, 98, 242, 0.25), transparent 70%);
  width: 500px; height: 500px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: #1a1206;
  box-shadow: 0 8px 24px rgba(217, 174, 107, 0.25);
}
.btn--gold:hover { box-shadow: 0 10px 30px rgba(217, 174, 107, 0.4); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--gold); }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Badges / eyebrows ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(217, 174, 107, 0.06);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.eyebrow--glow {
  animation: eyebrow-glow 2s ease-in-out infinite;
}
@keyframes eyebrow-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(217, 174, 107, 0.3), inset 0 0 8px rgba(217, 174, 107, 0.1);
    border-color: rgba(217, 174, 107, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(217, 174, 107, 0.6), inset 0 0 16px rgba(217, 174, 107, 0.2);
    border-color: rgba(217, 174, 107, 0.6);
  }
}

/* ---------- Logo ---------- */
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.logo span.brand-4u { color: var(--violet-light); }
.logo span.brand-ai { color: var(--text-muted); font-weight: 700; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 8, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--text-faint);
}
.lang-switch a.is-active {
  background: var(--gold);
  color: #1a1206;
}
.nav__signin { color: var(--text-muted); font-size: 14.5px; font-weight: 600; }
.nav__signin:hover { color: var(--text); }

.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block: 96px 60px;
  text-align: center;
}
.hero__eyebrow { margin-block-end: 28px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin-inline: auto;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--gold-light), var(--gold) 50%, var(--violet-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-block-start: 24px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
}
.hero__ctas {
  margin-block-start: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-block-start: 18px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.hero__meta .sep { margin-inline: 8px; }

/* Hero mockup panel */
.mockup {
  margin-block-start: 64px;
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  text-align: start;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup__dot:nth-child(1) { background: #e07a6b; }
.mockup__dot:nth-child(2) { background: #e0bd6b; }
.mockup__dot:nth-child(3) { background: #7fae8c; }
.mockup__url {
  margin-inline-start: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: monospace;
}
.mockup__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
}
.mockup__side {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 16px;
}
.mockup__side .bar { height: 8px; border-radius: 4px; background: rgba(247,242,231,0.12); margin-block-end: 10px; width: 70%; }
.mockup__side .chip {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(217,174,107,0.12);
  color: var(--gold-light);
  margin-block-end: 8px;
}
.mockup__card {
  border-radius: var(--radius-sm);
  min-height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.55);
}
.mockup__card--gold { background: linear-gradient(135deg, #f2dca8, #d9ae6b 55%, #a9793c); }
.mockup__card--violet { background: linear-gradient(135deg, #9a90ff, #6e62f2 55%, #4136b0); color: rgba(255,255,255,0.75); }

/* ---------- Trust / models strip ---------- */
.trust {
  padding-block: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust__label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-block-end: 24px;
  text-transform: uppercase;
}
.trust__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.trust__chip {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Showcase gallery (real output) ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.showcase-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.showcase-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-card__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.showcase-card__caption span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-block-start: 3px;
}

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card { aspect-ratio: 4 / 5; }
}

/* ---------- Section heading ---------- */
.section {
  padding-block: 110px;
}
.section--tight { padding-block: 80px; }
.section-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-block-end: 64px;
}
.section-head .eyebrow { margin-block-end: 20px; }
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section-head p {
  margin-block-start: 16px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Studios ---------- */
.studios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.studio-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 32px;
}
.studio-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-block-end: 20px;
}
.studio-card:nth-child(1) .studio-card__icon { background: rgba(217,174,107,0.15); }
.studio-card:nth-child(2) .studio-card__icon { background: rgba(110,98,242,0.15); }
.studio-card h3 { font-size: 22px; font-weight: 700; margin-block-end: 10px; }
.studio-card p { color: var(--text-muted); line-height: 1.6; margin-block-end: 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- Localization / UAE section ---------- */
.local-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.local-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
  text-align: center;
}
.local-card__badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(217,174,107,0.12);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-inline: auto;
  margin-block-end: 16px;
  font-size: 20px;
}
.local-card h4 { font-size: 15.5px; font-weight: 700; margin-block-end: 8px; }
.local-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Creative director demo ---------- */
.director {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.director__list { display: flex; flex-direction: column; gap: 22px; margin-block-start: 28px; }
.director__item { display: flex; gap: 16px; }
.director__num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(217,174,107,0.14);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.director__item h4 { font-size: 16px; font-weight: 700; margin-block-end: 4px; }
.director__item p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

.brief-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.brief-card__prompt {
  font-size: 14.5px;
  color: var(--text-muted);
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 14px;
  margin-block-end: 22px;
  font-style: italic;
}
.brief-card__label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-block-end: 12px;
}
.brief-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.brief-card__result {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 16px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(217,174,107,0.12);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-block-end: 16px;
  font-size: 18px;
}
.feature-card h4 { font-size: 16.5px; font-weight: 700; margin-block-end: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.step { text-align: center; }
.step__num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1206;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  margin-inline: auto;
  margin-block-end: 20px;
}
.step h4 { font-size: 17px; font-weight: 700; margin-block-end: 10px; }
.step p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; max-width: 280px; margin-inline: auto; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card--popular {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(217,174,107,0.08), var(--surface) 40%);
}
.price-card__badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a1206;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
[dir="rtl"] .price-card__badge { transform: translateX(50%); }
.price-card h3 { font-size: 20px; font-weight: 700; }
.price-card__desc { font-size: 13.5px; color: var(--text-muted); margin-block: 8px 22px; }
.price-card__amount { font-size: 40px; font-weight: 800; }
.price-card__amount span { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.price-card__credits {
  font-size: 13.5px; color: var(--gold-light);
  margin-block: 10px 26px;
  font-weight: 600;
}
.price-card__features { flex-grow: 1; display: flex; flex-direction: column; gap: 12px; margin-block-end: 26px; }
.price-card__features li { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); align-items: flex-start; }
.price-card__features li::before { content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0; }
.pricing-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  margin-block-start: 28px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(217,174,107,0.14), rgba(110,98,242,0.12));
  border: 1px solid var(--border-strong);
  padding: 64px 40px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-block-end: 14px; }
.cta-banner p { color: var(--text-muted); margin-block-end: 30px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-block-end: 40px;
  flex-wrap: wrap;
}
.footer__brand p {
  color: var(--text-faint);
  font-size: 13.5px;
  margin-block-start: 10px;
  max-width: 280px;
  line-height: 1.6;
}
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); margin-block-end: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--text-muted); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block-start: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Mobile ---------- */
.mobile-only { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links--open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .nav__links--open a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav__links--open .mobile-only { display: block; margin-block-start: 6px; }
  .nav { position: sticky; }
  .nav__row { position: relative; }
  .nav__actions > .lang-switch,
  .nav__actions > .nav__signin { display: none; }
  .nav__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    font-size: 18px;
  }
  .studios,
  .director,
  .feature-grid,
  .steps,
  .pricing-grid { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: repeat(2, 1fr); }
  .mockup__body { grid-template-columns: 1fr; }
  .mockup__side { order: 2; }
  .footer__top { flex-direction: column; }
  .section { padding-block: 72px; }
  .hero { padding-block: 64px 40px; }
}

@media (max-width: 560px) {
  .local-grid { grid-template-columns: 1fr 1fr; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
}

/* Utility: reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
