:root {
  --cream: #F9F5F0;
  --cream-dark: #F0EAE0;
  --terracotta: #C8623A;
  --terracotta-light: #E07A52;
  --sage: #7A9E7E;
  --sage-light: #A5C4A7;
  --charcoal: #1A1A1A;
  --charcoal-mid: #3A3A3A;
  --warm-gray: #6B6560;
  --warm-gray-light: #9A938D;
  --white: #FFFFFF;
  --section-pad: clamp(80px, 12vw, 140px);
  --container: 1160px;
  --radius: 12px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Figtree', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  padding: 0 clamp(24px, 6vw, 96px);
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}

.hero-arabic-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  pointer-events: none;
  opacity: 0.04;
  user-select: none;
}

.hero-arabic-sahha {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: clamp(200px, 30vw, 480px);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  max-width: 760px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(200, 98, 58, 0.1);
  border: 1px solid rgba(200, 98, 58, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 800;
  line-height: 0.9;
  color: var(--charcoal);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: var(--charcoal-mid);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--warm-gray);
  margin-bottom: 0;
}

.hero-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px 0 0 0;
  border-top: 1px solid var(--cream-dark);
}

.cta-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--cream-dark);
  border-radius: 100px;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

/* ─── HOW IT WORKS ─── */
.howitworks {
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  max-width: var(--container);
  margin: 0 auto;
}

.step-card {
  padding: 40px 36px;
  border: 1px solid var(--cream-dark);
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: var(--terracotta-light);
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-card p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* ─── FEATURES ─── */
.features {
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  background: var(--charcoal);
  color: var(--white);
}

.features .section-label {
  color: var(--sage-light);
}

.features-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 64px;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  max-width: var(--container);
  margin: 0 auto;
}

.feature-item {
  padding: 40px 36px;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s ease;
}

.feature-item:hover {
  background: #242424;
}

.feature-icon {
  color: var(--sage);
  margin-bottom: 20px;
}

.feature-item h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ─── PHILOSOPHY ─── */
.philosophy {
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  background: var(--cream);
}

.philosophy-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-arabic {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.philosophy-word {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  opacity: 0.08;
  transform: rotate(-3deg);
  display: inline-block;
}

.philosophy-text h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.philosophy-text p {
  font-size: 17px;
  color: var(--charcoal-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ─── CONSTRAINTS ─── */
.constraints {
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  background: var(--sage);
}

.constraints-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.constraints .section-label {
  color: rgba(255,255,255,0.7);
}

.constraints h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 56px;
  max-width: 560px;
}

.constraints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.constraint-item {
  padding: 36px 32px;
  border: 1px solid rgba(255,255,255,0.15);
}

.constraint-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.constraint-item p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

/* ─── CLOSING ─── */
.closing {
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  background: var(--charcoal);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-wordmark {
  font-family: 'Fraunces', serif;
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.closing-tagline {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--terracotta-light);
  margin-bottom: 40px;
  display: block;
}

.closing-statement {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  margin-bottom: 28px;
}

.closing-body {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.footer {
  padding: 40px clamp(24px, 6vw, 96px);
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-mark {
  font-family: 'Noto Sans Arabic', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--terracotta);
}

.footer-logo-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.15);
  margin-top: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-arabic {
    justify-content: center;
  }

  .hero-cta-strip {
    gap: 8px;
  }

  .cta-pill {
    font-size: 11px;
    padding: 6px 12px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .constraints-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── SUBSCRIBE SECTION ─── */
.subscribe-section {
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  background: var(--charcoal);
}

.subscribe-inner {
  max-width: 640px;
  margin: 0 auto;
}

.subscribe-label {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

/* Language variants hidden by default; JS shows one at a time on page load */
.subscribe-label-fr,
.subscribe-label-ar { display: none; }

.subscribe-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 36px;
}

.subscribe-desc-fr,
.subscribe-desc-ar { display: none; }

.subscribe-form { display: flex; flex-direction: column; gap: 16px; }

.subscribe-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.subscribe-input {
  flex: 1 1 220px;
  height: 48px;
  padding: 0 18px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: var(--white);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

.subscribe-input::placeholder { color: rgba(255,255,255,0.35); }
.subscribe-input:focus { border-color: var(--terracotta-light); }

.sub-lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 4px;
}

.sub-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sub-lang-btn.active {
  background: var(--terracotta);
  color: var(--white);
}

.sub-lang-btn:hover:not(.active) {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.subscribe-select {
  flex: 1 1 200px;
  height: 48px;
  padding: 0 18px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: rgba(255,255,255,0.8);
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.subscribe-select option { background: #2a2a2a; color: var(--white); }

.subscribe-btn {
  align-self: flex-start;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.subscribe-btn:hover:not(:disabled) { background: var(--terracotta-light); }
.subscribe-btn:disabled { opacity: 0.6; cursor: default; }

.sub-error {
  font-size: 13px;
  color: #f8a07a;
  padding: 0 4px;
}

.subscribe-confirm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--sage);
  border-radius: 50%;
  font-size: 20px;
  color: white;
  font-weight: 700;
}

.confirm-msg {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  font-family: 'Fraunces', serif;
  font-style: italic;
  line-height: 1.5;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 3px; }
