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

:root {
  --bg: #FAFAFD;
  --card: #FFFFFF;
  --text: #1A1733;
  --muted: #6E6A85;
  --purple: #7C3AED;
  --purple-mid: #4C1D95;
  --purple-deep: #2A1060;
  --purple-soft: #F0EAFE;
  --orange: #F59E0B;
  --blue: #3B82F6;
  --green: #10B981;
  --cyan: #0EA5E9;
  --ring: rgba(124, 58, 237, 0.18);
  --shadow-sm: 0 1px 2px rgba(42, 16, 96, 0.05), 0 2px 6px rgba(42, 16, 96, 0.05);
  --shadow-md: 0 10px 30px -8px rgba(42, 16, 96, 0.16);
  --shadow-lg: 0 28px 60px -16px rgba(42, 16, 96, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 104px 24px 88px;
  color: #fff;
  background:
    radial-gradient(120% 100% at 50% -10%, #6D28D9 0%, #4C1D95 45%, var(--purple-deep) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(90% 90% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero p {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.86;
  max-width: 560px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

/* ---------- CTA (buttons) ---------- */
.cta {
  display: inline-flex; align-items: center;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1), filter 0.18s;
}
.cta:hover { transform: translateY(-3px); filter: brightness(1.06); }
.cta:active { transform: translateY(-1px) scale(0.98); }
.cta img { height: 60px; border-radius: 10px; box-shadow: var(--shadow-lg); }
@media (max-width: 600px) { .cta img { height: 50px; } }

/* ---------- Stats ---------- */
.stats {
  display: flex; justify-content: center; gap: 64px;
  padding: 44px 24px;
  background: var(--card);
  border-bottom: 1px solid #EEEBF7;
  box-shadow: var(--shadow-sm);
}
.stat { text-align: center; }
.stat .num {
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat:first-child .num { color: var(--purple); }
.stat:nth-child(2) .num { color: var(--orange); }
.stat:nth-child(3) .num { color: var(--blue); }
.stat:last-child .num { color: var(--green); }
.stat .label { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 3px; }

/* ---------- Section header ---------- */
.section-header { text-align: center; padding: 76px 0 44px; }
.section-header h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-header p { color: var(--muted); margin-top: 10px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Feature cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid #F0EDF8;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  font-size: 26px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.card:nth-child(1) .icon { background: var(--purple-soft); }
.card:nth-child(2) .icon { background: #E7FBF3; }
.card:nth-child(3) .icon { background: #E8F1FE; }
.card:nth-child(4) .icon { background: #FFF4E0; }
.card:nth-child(5) .icon { background: #FDE7EF; }
.card:nth-child(6) .icon { background: #E6F6FC; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- Tiers ---------- */
.tiers { padding: 0 0 76px; }
.tier-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--card);
  border: 1px solid #F0EDF8;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tier-row:hover { transform: translateX(3px); box-shadow: var(--shadow-md); }
.tier-row:nth-child(1) { border-left-color: var(--green); }
.tier-row:nth-child(2) { border-left-color: var(--orange); }
.tier-row:nth-child(3) { border-left-color: var(--blue); }
.tier-row:nth-child(4) { border-left-color: var(--cyan); }
.tier-row:nth-child(5) { border-left-color: var(--purple); }
.tier-icon { font-size: 26px; width: 44px; text-align: center; }
.tier-info h4 { font-size: 16px; font-weight: 700; }
.tier-info p { font-size: 13px; color: var(--muted); }
.tier-count {
  margin-left: auto;
  font-size: 13px; font-weight: 600;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Language grid ---------- */
.lang-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
  max-width: 840px; margin: 0 auto; padding: 0 24px 80px;
}
.lang-flag {
  display: flex; align-items: center; gap: 7px;
  background: var(--card);
  border: 1px solid #EDEAF6;
  border-radius: 12px;
  padding: 9px 15px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
  white-space: nowrap; text-decoration: none; color: inherit;
}
.lang-flag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple);
}
.lang-flag.active {
  border-color: var(--purple);
  background: var(--purple-soft);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ---------- CTA section ---------- */
.cta-section {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 88px 24px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 50% 120%, #6D28D9 0%, #4C1D95 40%, var(--purple-deep) 100%);
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 100%, #000, transparent);
  mask-image: radial-gradient(80% 80% at 50% 100%, #000, transparent);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-section p { opacity: 0.85; margin-bottom: 30px; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 32px 24px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid #EEEBF7;
}
footer a { color: var(--purple); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; padding: 24px 24px 72px; }
.faq { background: var(--card); border: 1px solid #F0EDF8; border-radius: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 26px;
  font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--purple); transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 26px 22px; color: var(--muted); font-size: 15px; }

/* ---------- RTL ---------- */
[dir="rtl"] .hero, [dir="rtl"] .cta-section, [dir="rtl"] .section-header, [dir="rtl"] .stats { text-align: center; }
[dir="rtl"] .tier-row { border-left: none; border-right: 4px solid transparent; }
[dir="rtl"] .tier-row:nth-child(1) { border-right-color: var(--green); }
[dir="rtl"] .tier-row:nth-child(2) { border-right-color: var(--orange); }
[dir="rtl"] .tier-row:nth-child(3) { border-right-color: var(--blue); }
[dir="rtl"] .tier-row:nth-child(4) { border-right-color: var(--cyan); }
[dir="rtl"] .tier-row:nth-child(5) { border-right-color: var(--purple); }
[dir="rtl"] .tier-row:hover { transform: translateX(-3px); }
[dir="rtl"] .tier-count { margin-left: 0; margin-right: auto; }

/* ---------- Focus / accessibility ---------- */
a:focus-visible, .lang-flag:focus-visible, summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero { padding: 72px 20px 64px; }
  .stats { gap: 28px; flex-wrap: wrap; }
  .stat .num { font-size: 28px; }
  .tier-row { flex-wrap: wrap; }
  .tier-count { margin-left: 0; width: 100%; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
