:root {
  --bg: #111113;
  --bg-alt: #18181b;
  --bg-elevated: #1c1c1f;
  --text: #fafafa;
  --text-dim: #a1a1aa;
  --text-dimmer: #71717a;
  --border: #232325;
  --border-strong: #3f3f46;
  --accent: #fafafa;

  --display: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --arabic: 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --max-w: 1200px;
  --narrow-w: 720px;
  --radius: 8px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.rtl { font-family: var(--arabic); }

main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--text); color: var(--bg); }

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--narrow-w); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(17, 17, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 34px; height: 34px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
.rtl .site-nav a { font-family: var(--arabic); }
.site-nav a:hover, .site-nav a.active { color: var(--text); }

.lang-toggle {
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.lang-toggle:hover { border-color: var(--text-dim); }

/* Hero */
.hero {
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px);
  border-bottom: 1px solid var(--border);
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.035), transparent 60%);
}
.hero-with-video {
  padding-bottom: clamp(40px, 6vh, 70px);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
  display: inline-block;
}
.rtl .eyebrow {
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--arabic);
  font-size: 13px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 900px;
  margin-bottom: 28px;
}
.rtl .hero-title {
  font-family: var(--arabic);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero-lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 44px;
  font-weight: 400;
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
  text-align: center;
}
.rtl .btn { font-family: var(--arabic); }

.btn-primary {
  background: var(--accent);
  color: #111113;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text-dim);
  background: var(--bg-alt);
}

/* Featured video */
.video-featured {
  margin-top: 40px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-alt);
}
.video-featured iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-featured-title {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
}
.rtl .video-featured-title { font-family: var(--arabic); }

/* Video grid */
.section-videos { padding: clamp(60px, 9vh, 100px) 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease;
}
.video-card:hover { transform: translateY(-2px); }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(17, 17, 19, 0.7);
  border: 1px solid rgba(250, 250, 250, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-play svg { width: 22px; height: 22px; color: var(--text); }
.video-card:hover .video-play { opacity: 1; background: rgba(17, 17, 19, 0.85); }

.video-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
}
.rtl .video-title { font-family: var(--arabic); letter-spacing: -0.005em; line-height: 1.45; }

/* Sections */
.section {
  padding: clamp(60px, 9vh, 110px) 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: 0; }

.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}
.rtl .section-title {
  font-family: var(--arabic);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.section .prose {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.section .prose:last-of-type { margin-bottom: 0; }

.section h2 {
  font-family: var(--display);
  font-size: 26px;
  margin: 56px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.rtl .section h2 { font-family: var(--arabic); letter-spacing: -0.005em; }
.section h2:first-of-type { margin-top: 8px; }

.prose.lead {
  font-size: 21px;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Empty state */
.section-empty .section-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}

/* Socials grid */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.social-card:hover {
  border-color: var(--text-dim);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text);
}
.social-icon svg { width: 100%; height: 100%; }

.social-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.rtl .social-name { font-family: var(--arabic); }

/* Page header */
.page-header {
  padding: clamp(80px, 12vh, 120px) 0 clamp(40px, 6vh, 60px);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -0.04em;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
}
.rtl .page-title {
  font-family: var(--arabic);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* Section CTA */
.section-cta { text-align: center; }
.section-cta h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.rtl .section-cta h2 { font-family: var(--arabic); }
.section-cta p {
  color: var(--text-dim);
  font-size: 18px;
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
  background: var(--bg);
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-tagline {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 320px;
}
.rtl .footer-tagline { font-family: var(--arabic); }

.footer-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 14px;
  font-weight: 600;
}
.rtl .footer-label {
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--arabic);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 15px;
  transition: color 0.15s ease;
}
.rtl .footer-links a { font-family: var(--arabic); }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-rights {
  font-size: 13px;
  color: var(--text-dimmer);
}
.rtl .footer-rights { font-family: var(--arabic); }
.footer-contact {
  font-size: 13px;
  color: var(--text-dimmer);
  transition: color 0.15s ease;
}
.footer-contact:hover { color: var(--text-dim); }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.lang-toggle) { font-size: 14px; }
  .lang-toggle { padding: 6px 12px; }
  .video-grid { gap: 24px; }
  .video-title { font-size: 17px; }
}

@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn { width: 100%; }
  .socials-grid { grid-template-columns: repeat(2, 1fr); }
}
