/* ── Override: btn larger on landing page ─────────────────────── */
.btn { padding: 12px 24px; font-size: 15px; }
.btn-ghost { padding: 12px 16px; }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── Override: nav opacity on landing page ────────────────────── */
nav { background: rgba(255,255,255,.88); }

/* ── Override: nav responsive at wider breakpoint ────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ── Utilities ────────────────────────────────────────────────── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── RTL overrides (index-specific) ──────────────────────────── */
html[dir="rtl"] .hero::after { right: auto; left: -100px; }
html[dir="rtl"] .hero-trust-avatars { margin-right: 0; margin-left: 4px; }
html[dir="rtl"] .hero-trust-avatars span { margin-right: 0; margin-left: -8px; }
html[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
html[dir="rtl"] .hero-trust { flex-direction: row-reverse; }
html[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
html[dir="rtl"] .chat-bubble-out { border-radius: 12px 0 12px 12px; text-align: left; }
html[dir="rtl"] .chat-time { text-align: left; }
html[dir="rtl"] .ai-action { flex-direction: row-reverse; }
html[dir="rtl"] .feature-card { text-align: right; }
html[dir="rtl"] .feature-icon { margin-right: 0; }
html[dir="rtl"] .pricing-features li { flex-direction: row-reverse; }
html[dir="rtl"] .pricing-tier { text-align: right; }
html[dir="rtl"] .pricing-desc { text-align: right; }
html[dir="rtl"] .pricing-price { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .pricing-note { text-align: center; }
html[dir="rtl"] .contact-inner { direction: rtl; }
html[dir="rtl"] .contact-link-item { flex-direction: row-reverse; }
html[dir="rtl"] .contact-links { align-items: flex-end; }
html[dir="rtl"] .footer-top { flex-direction: row-reverse; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
html[dir="rtl"] .footer-cols { flex-direction: row-reverse; }
html[dir="rtl"] .section-header { text-align: right; }
html[dir="rtl"] .section-header.center { text-align: center; }
html[dir="rtl"] .section-header .section-sub { margin-right: 0; }
html[dir="rtl"] .section-header.center .section-sub { margin: 0 auto; }
html[dir="rtl"] .footer-brand p { text-align: right; }
html[dir="rtl"] .footer-col h4 { text-align: right; }
html[dir="rtl"] .footer-col ul { align-items: flex-end; }
html[dir="rtl"] .chat-header { flex-direction: row-reverse; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { background: var(--grad); padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero::after {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 70%);
  right: -100px; bottom: -200px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); padding: 5px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse-dot 2s infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.hero h1 { font-size: clamp(34px,5vw,54px); font-weight: 900; line-height: 1.15; color: var(--white); margin-bottom: 20px; letter-spacing: -1px; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 span { color: #7dd3fc; }
.hero p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary { background: var(--white); color: var(--navy); font-size: 16px; padding: 14px 28px; box-shadow: 0 4px 24px rgba(0,0,0,.2); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.btn-hero-outline { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.35); color: var(--white); font-size: 16px; padding: 14px 28px; }
.btn-hero-outline:hover { background: rgba(255,255,255,.2); }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.65); }
.hero-trust-avatars { display: flex; margin-right: 4px; }
.hero-trust-avatars span {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--white); margin-right: -8px;
}

/* ── Hero Visual ──────────────────────────────────────────────── */
.hero-visual { position: relative; height: 420px; }
.hero-card { position: absolute; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px 20px; }
.hero-card-chat { width: 280px; top: 20px; right: 20px; animation: float1 4s ease-in-out infinite; }
.hero-card-ai { width: 240px; bottom: 60px; left: 0; animation: float2 4.5s ease-in-out infinite; }
.hero-card-stat { width: 180px; top: 200px; left: 80px; animation: float3 5s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.chat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.chat-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.chat-sub { font-size: 11px; color: #059669; }
.chat-bubble { background: var(--surface); border-radius: 0 12px 12px 12px; padding: 8px 12px; font-size: 12px; color: var(--mid); margin-bottom: 6px; }
.chat-bubble-out { background: linear-gradient(135deg,#0ea5e9,#6366f1); color: var(--white); border-radius: 12px 12px 0 12px; text-align: right; }
.chat-time { font-size: 10px; color: var(--light); text-align: right; margin-top: 2px; }
.ai-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.ai-action { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(99,102,241,.08); border-radius: var(--radius-sm); margin-bottom: 6px; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); flex-shrink: 0; }
.ai-text { font-size: 12px; color: var(--mid); }
.ai-text strong { color: var(--indigo); }
.stat-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--dark); }
.stat-change { font-size: 12px; color: #059669; font-weight: 600; }
.stat-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: var(--grad); border-radius: 2px; width: 72%; }

/* ── Sections ─────────────────────────────────────────────────── */
section { padding: 88px 0; }
.section-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 12px; }
html[lang="ar"] .section-eyebrow { letter-spacing: 0; }
.section-title { font-size: clamp(26px,4vw,40px); font-weight: 800; line-height: 1.2; color: var(--dark); letter-spacing: -.8px; margin-bottom: 16px; }
html[lang="ar"] .section-title { letter-spacing: 0; line-height: 1.4; }
.section-sub { font-size: 17px; color: var(--muted); max-width: 560px; line-height: 1.7; }
.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Feature Grid ─────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon-blue   { background: rgba(14,165,233,.12); color: var(--blue); }
.feature-icon-indigo { background: rgba(99,102,241,.12); color: var(--indigo); }
.feature-icon-green  { background: rgba(5,150,105,.12); color: #059669; }
.feature-icon-orange { background: rgba(234,88,12,.12); color: #ea580c; }
.feature-icon-purple { background: rgba(168,85,247,.12); color: #a855f7; }
.feature-icon-pink   { background: rgba(219,39,119,.12); color: #db2777; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.features-alt { background: var(--surface); }

/* ── Pricing ──────────────────────────────────────────────────── */
.pricing { background: var(--white); }
.billing-toggle { display: flex; justify-content: center; gap: 0; margin-bottom: 32px; border: 1.5px solid var(--border); border-radius: 8px; width: fit-content; margin-left: auto; margin-right: auto; overflow: hidden; background: var(--surface); }
.btn-billing { background: none; border: none; padding: 10px 24px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; display: flex; align-items: center; gap: 6px; }
.btn-billing.toggle-active { background: var(--blue); color: #fff; }
.save-badge { background: rgba(255,255,255,.25); border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.btn-billing:not(.toggle-active) .save-badge { background: #e0f2fe; color: #0369a1; }
.price-annual-note { font-size: 12px; color: var(--muted); margin-top: -4px; margin-bottom: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.pricing-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 32px; transition: box-shadow .2s, transform .2s; }
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pricing-card.featured { background: var(--grad); border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.pricing-card.featured:hover { transform: translateY(-12px); }
.pricing-tier { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 8px; }
html[lang="ar"] .pricing-tier { letter-spacing: 0; }
.pricing-card.featured .pricing-tier { color: rgba(255,255,255,.7); }
.pricing-tier-default { color: var(--muted); }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 6px; }
.pricing-currency { font-size: 20px; font-weight: 700; color: var(--mid); }
.pricing-amount { font-size: 48px; font-weight: 900; color: var(--dark); line-height: 1; letter-spacing: -2px; }
.pricing-period { font-size: 14px; color: var(--muted); }
.pricing-card.featured .pricing-currency,
.pricing-card.featured .pricing-amount,
.pricing-card.featured .pricing-period { color: var(--white); }
.pricing-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,.75); }
.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pricing-card.featured .pricing-divider { background: rgba(255,255,255,.2); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--mid); }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,.9); }
.pricing-check { width: 18px; height: 18px; border-radius: 50%; background: rgba(5,150,105,.12); color: #059669; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.pricing-card.featured .pricing-check { background: rgba(255,255,255,.2); color: var(--white); }
.pricing-card .btn { width: 100%; justify-content: center; font-size: 15px; padding: 13px; }
.btn-pricing-default { border: 1.5px solid var(--border); background: transparent; color: var(--dark); }
.btn-pricing-default:hover { border-color: var(--blue); color: var(--blue); background: rgba(14,165,233,.04); }
.btn-pricing-featured { background: var(--white); color: var(--navy); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-pricing-featured:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,0,0,.2); }
.pricing-popular { display: inline-block; background: rgba(255,255,255,.25); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-inline-start: 8px; letter-spacing: .4px; text-transform: uppercase; }
.pricing-note { text-align: center; margin-top: 32px; font-size: 14px; color: var(--light); }
.pricing-note a { color: var(--blue); font-weight: 500; }
.text-white{color: var(--white);}
/* ── FAQ ──────────────────────────────────────────────────────── */
.faq { background: var(--surface); }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question { width: 100%; text-align: start; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--dark); font-family: inherit; }
.faq-question:hover { background: var(--surface); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); transition: transform .25s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact { background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-info h2 { font-size: clamp(24px,3.5vw,36px); font-weight: 800; color: var(--dark); letter-spacing: -.8px; margin-bottom: 14px; }
html[lang="ar"] .contact-info h2 { letter-spacing: 0; }
.contact-info p { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--mid); font-weight: 500; transition: color .15s; }
.contact-link-item:hover { color: var(--blue); }
.contact-link-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(14,165,233,.1); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-cta-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; text-align: center; }
.contact-cta-box h3 { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.contact-cta-box p { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.contact-cta-box .btn { width: 100%; justify-content: center; font-size: 16px; padding: 14px; }

/* ── Footer (landing page) ────────────────────────────────────── */
footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .nav-logo { color: var(--white); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.45); margin-top: 10px; max-width: 260px; line-height: 1.6; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; background: var(--dark); }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
html[lang="ar"] .footer-col h4 { letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: background .15s, color .15s; }
.social-btn:hover { background: rgba(255,255,255,.14); color: var(--white); }

/* ── Responsive: Landing ──────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-3px); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 32px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
}
