/* Main App marketing only. Shared by the three generated static features pages. */
:root {
  --ink: #080b17;
  --ink2: #182033;
  --muted: #59667c;
  --line: #e4eaf5;
  --blue: #3157e8;
  --coral: #e86a2c;
  --dark: #070a18;
  --blue-soft: #eef3ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body.features-page { margin: 0; color: var(--ink); background: #fff; font: 500 17px/1.7 'Assistant', 'Rubik', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body[lang='en'] { font-family: 'Inter', system-ui, sans-serif; font-size: 15px; }
body[lang='ar'] { font-family: 'Cairo', system-ui, sans-serif; font-size: 15px; line-height: 1.95; }
h1, h2, .group-title, .brand { font-family: 'Rubik', 'Assistant', sans-serif; letter-spacing: -.025em; }
body[lang='en'] h1, body[lang='en'] h2, body[lang='en'] .group-title, body[lang='en'] .brand { font-family: 'Inter', sans-serif; }
body[lang='ar'] h1, body[lang='ar'] h2, body[lang='ar'] .group-title, body[lang='ar'] .brand { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; inset-inline-start: 20px; top: 12px; padding: 12px 20px; background: #fff; color: var(--ink); border-radius: 10px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px); }
.nav-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 24px; font-weight: 900; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px; overflow: hidden; background: var(--dark); box-shadow: 0 8px 24px #3157e829; }
.brand-name { background: linear-gradient(135deg,#3157e8,#7c3aed 44%,#e86a2c); color: transparent; background-clip: text; -webkit-background-clip: text; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 7px; }
.nav-links a { padding: 10px 13px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 800; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); background: var(--blue-soft); }
.nav-actions { gap: 12px; }
.lang-switch { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-link { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.lang-link:hover, .lang-link[aria-current] { background: var(--dark); color: #fff; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 12px 23px; border-radius: 14px; font-weight: 800; line-height: 1.5; text-align: center; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { color: #fff; background: linear-gradient(135deg,#071025,#172554); font-size: 14px; }
.btn-coral { color: #fff; background: #c44f18; box-shadow: 0 10px 25px #e86a2c28; }
.btn-coral:hover { background: #b74613; }
.btn-light { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.features-hero { position: relative; padding: 70px 0 46px; background: radial-gradient(ellipse at 85% 0%,#3157e80d,transparent 55%),radial-gradient(ellipse at 10% 60%,#e86a2c0b,transparent 48%),linear-gradient(#fcfdff,#f7f9ff); text-align: center; }
.hero-inner { max-width: 1000px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 7px 15px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 800; margin-bottom: 20px; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
h1 { font-size: clamp(32px,3.4vw,46px); font-weight: 800; line-height: 1.26; }
.accent { color: var(--blue); }
.hero-intro { margin: 22px auto 0; max-width: 770px; font-size: 20px; color: var(--muted); line-height: 1.75; }
body[lang='en'] .hero-intro { font-size: 18px; }
body[lang='ar'] h1 { line-height: 1.5; }
body[lang='ar'] .hero-intro { font-size: 18px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; margin-top: 28px; }
.text-link { color: var(--blue); font-weight: 800; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 20px; }
.category-index { margin-top: 26px; margin-bottom: 20px; scroll-margin-top: 20px; }
.category-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.category-nav a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; line-height: 1.5; background: #fff; transition: border-color .15s, background .15s; }
.category-nav a > span { font: 700 12px/1 'Inter',sans-serif; color: var(--blue); background: var(--blue-soft); padding: 7px; border-radius: 7px; }
.category-nav a:hover { border-color: #b9c7f6; background: #f7f9ff; }
.feature-category { padding: 65px 0; scroll-margin-top: 18px; border-bottom: 1px solid var(--line); }
.category-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 66px; align-items: start; }
.category-heading { padding-top: 6px; }
.category-number { display: inline-flex; font: 800 15px/1 'Inter',sans-serif; color: var(--coral); margin-bottom: 24px; border-bottom: 2px solid var(--coral); padding-bottom: 10px; }
.kicker { font-weight: 800; color: var(--blue); font-size: 14px; margin-bottom: 12px; }
h2 { font-size: clamp(26px,2.4vw,33px); font-weight: 800; line-height: 1.35; text-wrap: pretty; }
.category-intro { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.85; }
body[lang='en'] .category-intro { font-size: 16px; }
body[lang='ar'] h2 { line-height: 1.6; }
body[lang='ar'] .category-intro { font-size: 16px; line-height: 1.95; }
.feature-groups { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 32px #0f172a05; }
details + details { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px; cursor: pointer; list-style: none; border-radius: 14px; }
summary::-webkit-details-marker { display: none; }
summary:hover { background: #f8faff; }
.group-copy { display: block; min-width: 0; }
.group-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.5; }
.group-summary { display: block; margin-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.7; }
body[lang='en'] .group-title { font-size: 16px; }
body[lang='en'] .group-summary { font-size: 14px; }
body[lang='ar'] .group-title { font-size: 16px; line-height: 1.8; }
body[lang='ar'] .group-summary { font-size: 14px; line-height: 1.95; }
.expand-icon { position: relative; margin-top: 2px; width: 28px; height: 28px; flex: 0 0 28px; background: var(--blue-soft); border-radius: 50%; color: var(--blue); }
.expand-icon:before, .expand-icon:after { content: ''; position: absolute; width: 10px; height: 2px; background: currentColor; left: 9px; top: 13px; }
.expand-icon:after { transform: rotate(90deg); }
details[open] .expand-icon:after { display: none; }
.detail-content { padding: 0 24px 25px; }
.detail-content ul { padding: 0; padding-inline-start: 20px; margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.8; }
.detail-content li + li { margin-top: 11px; }
.detail-content li::marker { color: var(--coral); }
body[lang='en'] .detail-content ul { font-size: 14px; }
body[lang='ar'] .detail-content ul { font-size: 14px; line-height: 1.95; }
.feature-category-emphasis { background: linear-gradient(125deg,#071025,#14254b); color: #fff; border: 0; }
.feature-category-emphasis .kicker { color: #ffae83; }
.feature-category-emphasis .category-intro { color: #d1d9ec; }
.feature-category-emphasis .category-number { color: #ffae83; border-color: #ffae83; }
.feature-category-emphasis .feature-groups { color: var(--ink); box-shadow: 0 15px 45px #0002; border-color: transparent; }
.closing-cta { padding: 64px 0; background: #f7f9ff; }
.closing-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 50px; align-items: center; }
.closing-inner > div > p:last-child { max-width: 760px; color: var(--muted); margin-top: 15px; }
.closing-actions { display: grid; gap: 10px; }
.site-footer { background: #050810; color: #c3c6d0; padding: 42px 0; text-align: center; }
.footer-brand { font: 800 26px/1.4 'Inter',sans-serif; color: #fff; }
.footer-socials, .footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 15px 23px; }
.footer-socials { margin: 24px 0; }
.footer-socials a { display: inline-flex; gap: 9px; align-items: center; padding: 9px 14px; border: 1px solid #ffffff20; border-radius: 12px; font-size: 13px; }
.footer-links { font-size: 14px; }
.footer-links a { padding-block: 4px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { color: #ffa677; font-weight: 800; margin-top: 20px; font-size: 14px; }
.footer-disclaimer { margin: 22px auto 0; padding-top: 20px; max-width: 970px; border-top: 1px solid #ffffff20; font-size: 12px; line-height: 1.9; color: #a8adbc; }
@media (max-width: 1050px) {
  .nav-inner { gap: 12px; flex-wrap: wrap; padding-block: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .nav-start { display: none; }
  html { scroll-padding-top: 145px; }
  .category-layout { gap: 35px; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .closing-inner { gap: 30px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .nav-inner { column-gap: 8px; row-gap: 8px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
  .brand-mark img { width: 37px; height: 37px; }
  .lang-link { padding: 4px 8px; font-size: 12px; min-height: 34px; }
  .nav-links { gap: 8px; justify-content: center; }
  .nav-links a { font-size: 13px; padding: 7px 11px; }
  .features-hero { padding: 40px 0 34px; }
  h1 { font-size: 32px; line-height: 1.35; }
  body[lang='en'] h1 { font-size: 30px; }
  body[lang='ar'] h1 { font-size: 29px; }
  .hero-intro, body[lang='en'] .hero-intro, body[lang='ar'] .hero-intro { font-size: 17px; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-actions .btn { width: min(100%,330px); }
  .hero-note { max-width: 280px; margin-inline: auto; }
  .category-index { margin-top: 18px; margin-bottom: 0; }
  .category-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .category-nav a { padding: 10px; gap: 7px; font-size: 14px; min-height: 62px; }
  body[lang='en'] .category-nav a { font-size: 12px; }
  body[lang='ar'] .category-nav a { font-size: 12px; line-height: 1.8; }
  .category-nav a > span { font-size: 10px; padding: 5px; }
  .feature-category { padding: 42px 0; }
  .category-layout { grid-template-columns: 1fr; gap: 24px; }
  .category-number { margin-bottom: 16px; }
  h2 { font-size: 26px; }
  body[lang='ar'] h2 { font-size: 25px; }
  .category-intro { font-size: 17px; margin-top: 12px; }
  summary { padding: 20px 18px; gap: 12px; }
  .detail-content { padding: 0 18px 22px; }
  .group-title { font-size: 17px; }
  .group-summary { font-size: 15px; }
  .detail-content ul { font-size: 15px; }
  .closing-cta { padding: 40px 0; }
  .closing-inner { grid-template-columns: 1fr; gap: 25px; }
  .footer-links { gap: 10px 18px; }
  .footer-disclaimer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
