/* ---------- Design tokens ---------- */
:root {
  --violet: #6B4FBB;
  --violet-dark: #4A3585;
  --violet-light: #EDE7FB;
  --violet-border: #D8D2EC;
  --ink: #1A1A2E;
  --ink-soft: #6B6B7A;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFC;
  --border: #E7E5EF;
  --success: #2E7D32;
  --radius: 10px;
  --radius-lg: 16px;
  --max-width: 1080px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--violet);
  color: #fff;
}
.btn-primary:hover { background: var(--violet-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 8px;
}
.btn-ghost:hover { color: var(--violet); }

.btn-small {
  padding: 9px 18px;
  font-size: 0.875rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--violet-light);
  color: var(--violet-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--violet); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--violet-light) 0%, rgba(237,231,251,0) 70%);
}

.hero-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--violet-light);
  color: var(--violet-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1rem;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-live {
  background: var(--violet-light);
  color: var(--violet-dark);
}

.badge-accent {
  background: var(--violet-light);
  color: var(--violet-dark);
  position: absolute;
  top: -12px;
  left: 24px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--violet-light);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.expansion-note {
  margin-top: 32px;
  border: 1px dashed var(--violet-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.expansion-note i {
  color: #A99BD4;
  font-size: 1.1rem;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
}

.price-card-featured {
  border: 2px solid var(--violet);
}

.price-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.price-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.price-save {
  color: var(--success);
  font-weight: 500;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  margin: 12px 0 20px;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-cta {
  width: 100%;
}

.pricing-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 24px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--bg);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--violet);
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 0.95rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-final p {
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover { color: var(--violet); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-switcher a {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
}

.lang-switcher a.active {
  background: var(--violet-light);
  color: var(--violet-dark);
  font-weight: 600;
}

.lang-switcher a:hover:not(.active) {
  color: var(--violet);
}

/* ---------- RTL support (Arabic) ---------- */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .badge-accent {
  left: auto;
  right: 24px;
}

html[dir="rtl"] .step-number {
  margin-left: 0;
}

html[dir="rtl"] .faq-item summary::after {
  margin-left: 0;
  margin-right: 12px;
}

html[dir="rtl"] .expansion-note,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .footer-inner,
html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .price-card {
  text-align: right;
}
