/* ═══════════════════════════════════════════
   MyCMS — Original Theme (Cream/Editorial)
   Darker text variant
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500&family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --ink:        #0a0a12;
  --paper:      #f5f0e8;
  --cream:      #ede8dc;
  --gold:       #c9a84c;
  --gold-light: #e8c96d;
  --teal:       #1a6b6b;
  --teal-light: #2a9090;
  --muted:      #2c2c38;
  --body-text:  #1a1a24;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,10,18,0.1);
  gap: 1rem;
}
.nav-logo {
  font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.02em; color: var(--teal); text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: #1a1a24;
  font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.lang-switcher { display: flex; gap: .4rem; align-items: center; }
.lang-btn {
  font-family: 'Space Mono', monospace;
  font-size: .65rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 2px;
  border: 1px solid rgba(10,10,18,.3);
  background: transparent; color: #3a3a4a;
  cursor: pointer; transition: all .2s;
}
.lang-btn:hover, .lang-btn.active { background: var(--teal); color: var(--paper); border-color: var(--teal); }
.nav-cta {
  background: var(--teal); color: var(--paper);
  padding: .55rem 1.3rem; border-radius: 2px;
  font-size: .85rem; letter-spacing: 0.06em;
  text-decoration: none; font-weight: 400;
  transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-light); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 65px; left: 0; right: 0; z-index: 99;
  background: rgba(245,240,232,0.98); backdrop-filter: blur(12px);
  padding: 1.5rem 2rem; border-bottom: 1px solid rgba(10,10,18,.1);
  flex-direction: column; gap: 1.2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: #1a1a24; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.mobile-menu a:hover { color: var(--teal); }
.mobile-lang { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 8rem 4rem 4rem; gap: 4rem; position: relative;
}
.hero-bg-shape {
  position: absolute; top: 0; right: 0; width: 55%; height: 100%;
  background: linear-gradient(160deg, var(--teal) 0%, #0d3d3d 100%);
  z-index: 0; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-left { position: relative; z-index: 1; }
.hero-right { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero-badge {
  display: inline-block; font-family: 'Space Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold);
  padding: .3rem .8rem; border-radius: 2px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--teal); position: relative; display: inline-block; }
.hero h1 em::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 3px; background: var(--gold); }
.hero p { font-size: 1.05rem; color: #2c2c38; max-width: 480px; margin-bottom: 2.5rem; line-height: 1.75; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 2rem; width: 380px;
  backdrop-filter: blur(8px); color: var(--paper);
}
.hero-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.hero-card-title { font-family: 'Space Mono', monospace; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.hero-card-badge { background: var(--gold); color: var(--ink); font-size: .65rem; font-weight: 700; padding: .2rem .6rem; border-radius: 20px; font-family: 'Space Mono', monospace; }
.hero-card-stat { margin-bottom: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-card-stat:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.stat-label { font-size: .75rem; opacity: .65; margin-bottom: .3rem; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; }
.stat-sub { font-size: .75rem; opacity: .55; margin-top: .1rem; }
.progress-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: .5rem; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 2px; animation: grow 2s ease forwards; }
@keyframes grow { from { width: 0; } }

/* ── MARQUEE ── */
.marquee-strip { background: var(--ink); color: var(--paper); padding: .9rem 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-block; animation: scroll-left 25s linear infinite; }
.marquee-inner span { font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-right: 3rem; }
.marquee-inner .dot { color: var(--gold); opacity: 1; margin-right: 3rem; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
section { padding: 6rem 4rem; }
.section-tag { font-family: 'Space Mono', monospace; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; display: block; font-weight: 700; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1.2rem; color: var(--ink); }
.section-sub { font-size: 1rem; color: #2c2c38; max-width: 560px; line-height: 1.75; margin-bottom: 3rem; font-weight: 400; }

/* ── HOW IT WORKS ── */
.how { background: var(--cream); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.how-step { position: relative; padding: 2rem; border: 1px solid rgba(10,10,18,.12); border-radius: 4px; background: var(--paper); transition: transform .25s, box-shadow .25s; }
.how-step:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,10,18,.08); }
.step-num { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 900; color: var(--teal); opacity: .15; line-height: 1; margin-bottom: .5rem; }
.step-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.step-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; color: var(--ink); }
.step-desc { font-size: .9rem; color: #2c2c38; line-height: 1.65; font-weight: 400; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.feat-card { padding: 2rem; border: 1px solid rgba(10,10,18,.12); border-radius: 4px; transition: all .25s; position: relative; overflow: hidden; }
.feat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--teal); transition: height .3s; }
.feat-card:hover::before { height: 100%; }
.feat-card:hover { transform: translateX(4px); }
.feat-icon { font-size: 1.5rem; margin-bottom: 1rem; }
.feat-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--ink); }
.feat-desc { font-size: .88rem; color: #2c2c38; line-height: 1.65; font-weight: 400; }

/* ── STATS ── */
.stats { background: var(--teal); color: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; padding-top: 1rem; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 900; line-height: 1; margin-bottom: .3rem; }
.stat-number span { color: var(--gold); }
.stat-unit { font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* ── PRICING ── */
.pricing { background: var(--ink); color: var(--paper); }
.pricing .section-title { color: var(--paper); }
.pricing .section-sub { color: rgba(245,240,232,.75); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.price-card { border: 1px solid rgba(245,240,232,.1); border-radius: 6px; padding: 2.2rem; position: relative; transition: border-color .25s; }
.price-card:hover { border-color: var(--gold); }
.price-card.featured { border-color: var(--gold); background: rgba(201,168,76,.06); }
.price-card.free { border-color: rgba(245,240,232,.12); background: rgba(245,240,232,.02); }
.price-label { font-family: 'Space Mono', monospace; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.price-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: .3rem; }
.price-amount { font-family: 'Space Mono', monospace; font-size: 2.6rem; font-weight: 700; color: var(--paper); margin: .8rem 0 .2rem; display: flex; align-items: flex-start; gap: .1rem; }
.price-amount sup { font-size: 1.1rem; margin-top: .5rem; }
.price-amount small { font-size: .85rem; opacity: .5; align-self: flex-end; margin-bottom: .3rem; }
.price-card.free .price-amount { color: var(--gold-light); }
.free-badge { display: inline-block; font-family: 'Space Mono', monospace; font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(201,168,76,.15); color: var(--gold); border: 1px solid rgba(201,168,76,.3); padding: .15rem .5rem; border-radius: 20px; margin-left: .4rem; vertical-align: middle; position: relative; top: -2px; }
.price-limit { font-family: 'Space Mono', monospace; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(245,240,232,.4); margin-top: .2rem; }
.price-desc { font-size: .83rem; opacity: .65; margin: .8rem 0 1.5rem; line-height: 1.55; }
.price-divider { height: 1px; background: rgba(245,240,232,.1); margin-bottom: 1.5rem; }
.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li { font-size: .85rem; color: rgba(245,240,232,.8); padding: .35rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }

/* Currency Toggle */
.currency-toggle-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.currency-toggle { display: inline-flex; align-items: center; background: rgba(245,240,232,.08); border: 1px solid rgba(245,240,232,.15); border-radius: 30px; padding: 4px; position: relative; }
.currency-btn { position: relative; z-index: 2; font-family: 'Space Mono', monospace; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .45rem 1.3rem; border: none; background: transparent; color: rgba(245,240,232,.5); cursor: pointer; transition: color .3s; border-radius: 24px; white-space: nowrap; }
.currency-btn.active { color: var(--ink); }
.currency-slider { position: absolute; z-index: 1; top: 4px; left: 4px; height: calc(100% - 8px); background: var(--gold); border-radius: 24px; transition: transform .3s cubic-bezier(.4,0,.2,1), width .3s; pointer-events: none; }
.currency-note { font-family: 'Space Mono', monospace; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,240,232,.45); }
.price-num { display: inline-block; transition: transform .22s cubic-bezier(.4,0,.2,1), opacity .22s; }
.price-sym { transition: opacity .22s; }
.price-num.flip-out { transform: translateY(-10px); opacity: 0; }
.price-num.flip-in  { transform: translateY(10px);  opacity: 0; }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.test-card { padding: 2rem; border: 1px solid rgba(10,10,18,.1); border-radius: 4px; background: var(--paper); }
.test-quote { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--gold); line-height: .8; margin-bottom: .5rem; }
.test-text { font-size: .92rem; color: #2c2c38; line-height: 1.7; margin-bottom: 1.5rem; font-weight: 400; }
.test-author { display: flex; align-items: center; gap: .8rem; }
.test-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace; font-size: .8rem; color: var(--paper); font-weight: 700; }
.test-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.test-role { font-size: .78rem; color: #3a3a4a; }

/* ── CTA ── */
.cta-section { background: var(--cream); text-align: center; padding: 7rem 4rem; }
.cta-section .section-title { max-width: 700px; margin: 0 auto 1rem; }
.cta-section .section-sub { margin: 0 auto 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.contact-details { font-size: .88rem; color: #2c2c38; font-weight: 400; }
.contact-details p { margin-bottom: .3rem; }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(245,240,232,.6); padding: 4rem 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-family: 'Space Mono', monospace; font-size: 1rem; color: var(--paper); margin-bottom: .8rem; }
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h4 { font-family: 'Space Mono', monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: rgba(245,240,232,.55); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(245,240,232,.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom span { font-size: .78rem; }
.footer-bottom a { color: rgba(245,240,232,.55); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--gold); }
.footer-contact-links { display: flex; flex-direction: column; gap: .4rem; margin-top: .8rem; }
.footer-contact-links a { color: rgba(245,240,232,.55); text-decoration: none; font-size: .82rem; transition: color .2s; display: inline-flex; align-items: center; gap: .4rem; }
.footer-contact-links a:hover { color: var(--gold); }
.footer-contact-links a.wa-link:hover { color: #25D366; }

/* ── BUTTONS ── */
.btn-primary { display: inline-block; text-decoration: none; background: var(--teal); color: var(--paper); padding: .9rem 2.2rem; font-size: .9rem; font-weight: 500; letter-spacing: 0.05em; border: 2px solid var(--teal); transition: all .25s; border-radius: 2px; }
.btn-primary:hover { background: transparent; color: var(--teal); }
.btn-outline { display: inline-block; text-decoration: none; color: var(--ink); border: 2px solid var(--ink); padding: .9rem 2.2rem; font-size: .9rem; font-weight: 500; letter-spacing: 0.05em; transition: all .25s; border-radius: 2px; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-gold { display: block; text-align: center; text-decoration: none; background: var(--gold); color: var(--ink); padding: .85rem 1.5rem; font-weight: 600; letter-spacing: .05em; border-radius: 2px; transition: background .2s; }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost-white { display: block; text-align: center; text-decoration: none; border: 1px solid rgba(245,240,232,.3); color: rgba(245,240,232,.85); padding: .85rem 1.5rem; font-weight: 400; letter-spacing: .05em; border-radius: 2px; transition: all .2s; }
.btn-ghost-white:hover { border-color: var(--paper); color: var(--paper); }
.btn-whatsapp { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; background: #25D366; color: #fff; padding: .9rem 2.2rem; font-size: .9rem; font-weight: 500; letter-spacing: .05em; border: 2px solid #25D366; transition: all .25s; border-radius: 2px; }
.btn-whatsapp:hover { background: transparent; color: #25D366; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .7s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
.delay-4 { animation-delay: .6s; }

/* ── RTL (Arabic) ── */
body.rtl { direction: rtl; font-family: 'Cairo', 'DM Sans', sans-serif; }
body.rtl .feat-card::before { left: auto; right: 0; }
body.rtl .feat-card:hover { transform: translateX(-4px); }
body.rtl .hero-left { text-align: right; }
body.rtl .hero-bg-shape { left: 0; right: auto; clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%); }
body.rtl .lang-switcher { flex-direction: row-reverse; }
body.rtl .nav-right { flex-direction: row-reverse; }
body.rtl .section-tag, body.rtl .section-sub { text-align: right; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; }
  .hero-bg-shape, .hero-right { display: none; }
  section { padding: 4rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .cta-section { padding: 5rem 1.5rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
