@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

:root {
  --bg-deep: #0a1a12;
  --bg-surface: #0f2318;
  --bg-card: #142e1f;
  --fg-primary: #e8e0d4;
  --fg-secondary: #a89f8f;
  --fg-muted: #6b6358;
  --accent-gold: #c9a84c;
  --accent-gold-soft: rgba(201, 168, 76, 0.15);
  --accent-green: #4a9e6b;
  --accent-green-soft: rgba(74, 158, 107, 0.1);
  --border-subtle: rgba(232, 224, 212, 0.06);
  --border-accent: rgba(201, 168, 76, 0.2);
  --font-display: 'Outfit', sans-serif;
  --font-arabic: 'Amiri', serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--fg-primary);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Geometric pattern overlay */
.geo-pattern {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(74, 158, 107, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.hero-ornament {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin-bottom: 2.5rem;
}

.hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--accent-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  direction: rtl;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--fg-primary) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--fg-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  letter-spacing: 0.04em;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.75rem 2rem;
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
}
.hero-cta:hover { opacity: 0.88; transform: translateY(-2px); }

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--fg-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  text-align: center;
}

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

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-accent);
}

.philosophy blockquote {
  font-family: var(--font-arabic);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--fg-primary);
  line-height: 1.8;
  margin-bottom: 1rem;
  direction: rtl;
}

.philosophy .attribution {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: italic;
}

.philosophy-text {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  margin-top: 2.5rem;
  line-height: 1.9;
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.features-header p {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--fg-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

.feature-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border-color: var(--border-accent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.feature-card.featured .feature-detail {
  padding-left: 2rem;
  border-left: 1px solid var(--border-accent);
}

.source-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.source-list li {
  font-size: 0.85rem;
  color: var(--fg-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.source-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== PRINCIPLES ===== */
.principles {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.principles-inner {
  max-width: 900px;
  margin: 0 auto;
}

.principles-header {
  text-align: center;
  margin-bottom: 3rem;
}

.principles-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.principle-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.principle-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.3;
  flex-shrink: 0;
  width: 60px;
  line-height: 1;
}

.principle-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.principle-content p {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* ===== CLOSING ===== */
.closing {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem;
  text-align: center;
}

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

.closing-ornament {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.closing h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-primary);
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .feature-card.featured .feature-detail {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 1px solid var(--border-accent);
  }
  .principle-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .principle-number {
    font-size: 1.8rem;
    width: auto;
  }
}

@media (max-width: 480px) {
  .hero { padding: 1.5rem; }
  .feature-card { padding: 1.5rem; }
}