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

:root {
  --red:    #C62828;
  --red-dk: #8E0000;
  --red-lt: #FF5F52;
  --dark:   #1C1C1E;
  --gray:   #5A5A5E;
  --light:  #F5F5F7;
  --white:  #FFFFFF;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.09);
  --nav-h:  60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* ── SKIP LINK (Accessibility) ── */
.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 9999;
  background: var(--red); color: #fff; padding: 8px 16px; border-radius: 4px;
  font-size: .875rem; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(28,28,30,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex; align-items: center; gap: 24px;
}
.nav-links a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: .875rem; white-space: nowrap;
  transition: color .15s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--red); color: #fff !important;
  padding: 8px 18px; border-radius: 50px;
  font-weight: 600; font-size: .8rem !important;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--red-dk) !important; color: #fff !important; }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.85); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-burger span:nth-child(2) { opacity: 0; }
nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── LANGUAGE SWITCHER ── */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer;
  color: rgba(255,255,255,.75); font-size: .875rem;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: '▾'; font-size: .7rem; }
.lang-switch[open] summary, .lang-switch summary:hover { color: var(--white); }
.lang-menu {
  position: absolute; top: 32px; right: 0; left: auto;
  background: #262628; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); padding: 6px;
  display: flex; flex-direction: column; min-width: 160px;
  max-height: 320px; overflow-y: auto; z-index: 300;
}
.lang-menu a {
  padding: 8px 12px; border-radius: 6px;
  color: rgba(255,255,255,.8); font-size: .85rem;
  text-decoration: none; white-space: nowrap;
}
.lang-menu a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.lang-menu a.active { color: var(--red-lt); font-weight: 600; }

/* ── HERO ── */
.hero {
  background: linear-gradient(140deg, var(--red-dk) 0%, var(--red) 55%, #E53935 100%);
  color: var(--white);
  padding: clamp(56px,10vw,100px) clamp(16px,5vw,48px) clamp(64px,10vw,110px);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; }
.hero-icon {
  width: clamp(72px,15vw,96px); height: clamp(72px,15vw,96px);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  margin: 0 auto 24px; display: block;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: clamp(.95rem, 2.5vw, 1.2rem);
  opacity: .9; margin-bottom: 36px;
}
.hero-btns {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--red-dk);
  font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.trial-badge {
  display: inline-block; margin-top: 24px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28);
  border-radius: 50px; padding: 6px 18px;
  font-size: .83rem; letter-spacing: .01em;
}

/* ── SHARED SECTION ── */
.section-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(48px,8vw,80px) clamp(16px,5vw,48px);
}
.section-label {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; font-weight: 700;
  color: var(--red); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px;
}
.section-sub {
  font-size: .97rem; color: var(--gray);
  max-width: 560px; margin-bottom: 44px; line-height: 1.7;
}

/* ── FEATURES ── */
#features { background: var(--light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.13); }
.feature-icon { font-size: 1.9rem; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 7px; }
.feature-card p { font-size: .855rem; color: var(--gray); line-height: 1.65; }

/* ── STEPS ── */
.steps-section { background: var(--dark); }
.steps-section .section-label { color: var(--red-lt); }
.steps-section .section-title { color: var(--white); }
.steps-section .section-sub   { color: rgba(255,255,255,.6); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 36px;
}
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: .97rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.step p   { font-size: .855rem; color: rgba(255,255,255,.58); line-height: 1.6; }

/* ── PRICING ── */
#pricing { background: var(--light); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px; align-items: start;
}
.plan {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 22px; box-shadow: var(--shadow);
  position: relative;
}
.plan.featured { border: 2px solid var(--red); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  padding: 4px 14px; border-radius: 50px; white-space: nowrap;
}
.plan-icon  { font-size: 1.9rem; margin-bottom: 10px; display: block; }
.plan h3    { font-size: 1.15rem; font-weight: 800; margin-bottom: 5px; }
.plan-desc  { font-size: .845rem; color: var(--gray); margin-bottom: 18px; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--red); margin-bottom: 3px; }
.plan-period{ font-size: .78rem; color: var(--gray); margin-bottom: 22px; }
.plan ul    { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.plan ul li { font-size: .855rem; display: flex; align-items: flex-start; gap: 8px; }
.plan ul li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.trial-note {
  text-align: center; margin-top: 40px;
  background: #FFF3E0; border-radius: var(--radius);
  padding: 20px 24px; font-size: .88rem; color: #BF360C;
  border: 1px solid #FFCCBC; line-height: 1.6;
}
.trial-note strong { display: block; font-size: .97rem; margin-bottom: 4px; }

/* ── CTA BANNER ── */
.cta-section {
  background: linear-gradient(140deg, var(--red-dk), var(--red));
  color: var(--white); text-align: center;
}
.cta-section .section-wrap { padding-top: clamp(48px,8vw,80px); padding-bottom: clamp(48px,8vw,80px); }
.cta-section h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800; margin-bottom: 10px;
}
.cta-section p { opacity: .85; margin-bottom: 32px; font-size: .97rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-white {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--red-dk);
  font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 50px;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s;
}
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-w {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 50px;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn-outline-w:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,.5);
  font-size: .78rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 32px clamp(16px,5vw,48px);
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a, footer a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-links a:hover, footer a:hover { color: var(--white); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(28,28,30,.97);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  nav.open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px clamp(16px,5vw,32px);
    font-size: .95rem;
  }
  .nav-cta { margin: 8px clamp(16px,5vw,32px) 0; border-radius: 8px; display: block; text-align: center; }

  .lang-switch { width: 100%; }
  .lang-switch summary { padding: 12px clamp(16px,5vw,32px); justify-content: space-between; }
  .lang-menu {
    position: static; margin: 4px clamp(16px,5vw,32px) 0;
    box-shadow: none; background: rgba(255,255,255,.05);
    width: auto;
  }

  .hero-btns  { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: min(100%, 320px); justify-content: center; }

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

  .plan.featured { border-width: 2px; }

  .cta-btns { flex-direction: column; align-items: center; }
  .btn-white, .btn-outline-w { width: min(100%, 320px); justify-content: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
}

/* ── RTL (Arabic) ── */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .plan-badge { left: 50%; }
