:root{--navy:#03111e;--navy2:#061c2c;--ink:#f4f8fb;--muted:#9cb0bd;--line:rgba(170,220,239,.16);--cyan:#7ee7ff;--cyan2:#2cc7f0;--gold:#e9d59b;--card:rgba(7,28,43,.74);--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--navy);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}.container{width:min(var(--max),calc(100% - 40px));margin:auto}.wof-app{min-height:100vh;background:radial-gradient(circle at 50% 0%,rgba(50,142,177,.18),transparent 34%),linear-gradient(180deg,#02101b,#03111e 45%,#020c15);overflow:hidden}.wof-header{position:sticky;top:0;z-index:20;background:rgba(2,14,24,.72);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.nav-wrap{height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1.5px;line-height:1.1}.brand img{width:55px;height:55px;object-fit:contain}.brand b{font-size:13px;color:#fff}.desktop-nav{display:flex;gap:26px;font-size:13px;color:#c2d0d8}.desktop-nav a:hover{color:#fff}.nav-actions{display:flex;align-items:center;gap:10px}.lang-switch{display:inline-flex;align-items:center;border:1px solid var(--line);background:rgba(2,14,24,.45);border-radius:999px;padding:3px;gap:2px}.lang-option,.menu-btn{border:0;background:transparent;color:#9fb4bd;border-radius:999px;padding:7px 9px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.lang-option:hover{color:#fff}.lang-option.is-active{background:rgba(126,231,255,.14);color:#dff8ff}.nav-cta,.btn-primary{background:linear-gradient(135deg,#b9f3ff,#47cbe8);color:#03202b;border:0;border-radius:10px;font-weight:800;box-shadow:0 12px 35px rgba(39,191,230,.18)}.nav-cta{padding:10px 14px;font-size:12px}.menu-btn{display:none}.hero{position:relative;isolation:isolate;background-image:linear-gradient(90deg,rgba(2,14,24,.96) 0%,rgba(2,14,24,.72) 43%,rgba(2,14,24,.48)),linear-gradient(180deg,rgba(2,14,24,.08),#03111e 92%),var(--stadium);background-size:cover;background-position:center 35%;min-height:650px}.hero:after{content:"";position:absolute;inset:auto 0 0;height:170px;background:linear-gradient(transparent,var(--navy));z-index:-1}.hero-inner{min-height:650px;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:50px;padding:70px 0}.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:10px;letter-spacing:2px;color:#8edff0;font-weight:800}.eyebrow i{display:inline-block;width:22px;height:2px;background:var(--cyan)}h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(52px,7vw,92px);line-height:.93;letter-spacing:-4px;margin:18px 0}.hero h1 em,h2 em{font-style:normal;color:var(--cyan)}.hero-copy>p{max-width:590px;color:#c1d0d8;font-size:17px;line-height:1.7}.hero-buttons{display:flex;gap:12px;margin:30px 0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:15px 21px;border-radius:10px;font-weight:800;font-size:13px}.btn-ghost{border:1px solid rgba(190,235,247,.26);background:rgba(3,17,29,.35)}.hero-proof{display:flex;gap:20px;color:#8ca2ae;font-size:11px}.hero-card{padding:20px;border:1px solid rgba(170,226,243,.25);background:linear-gradient(145deg,rgba(8,39,56,.84),rgba(2,18,29,.76));border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.45);backdrop-filter:blur(15px);transform:rotate(1deg)}.hero-card-top,.rank-row,.id-card-head{display:flex;justify-content:space-between;align-items:center}.hero-card-top{font-size:10px;letter-spacing:1.5px;color:#91a9b6}.live-dot{color:#79e4b5}.rank-row{padding:24px 0;border-bottom:1px solid var(--line);gap:30px}.rank-row>div{flex:1}.rank-row small,.demo-stats small{display:block;color:#8198a5;font-size:9px;letter-spacing:1.2px}.rank-row strong{display:block;font-size:29px;margin:4px 0}.rank-row span,.up{font-size:10px;color:#83dfb2}.up{font-weight:700}.mini-pitch{position:relative;height:245px;margin:18px 0;border-radius:14px;background:repeating-linear-gradient(0deg,rgba(110,226,168,.08) 0 1px,transparent 1px 47px),linear-gradient(90deg,rgba(40,145,107,.24),rgba(27,99,85,.14));border:1px solid rgba(110,226,168,.22);overflow:hidden}.pitch-line{position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(200,255,232,.18)}.player{position:absolute;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#dffaff;color:#09202b;font-weight:900;font-size:11px;border:3px solid #5edcf2;box-shadow:0 8px 18px #0008}.p1{left:46%;bottom:12%}.p2{left:16%;bottom:36%}.p3{left:42%;bottom:47%}.p4{right:17%;bottom:36%}.p5{left:30%;top:27%}.p6{right:28%;top:23%}.ai-tip{display:flex;align-items:center;gap:10px;border:1px solid rgba(120,230,255,.16);background:rgba(108,207,234,.08);border-radius:12px;padding:12px}.ai-tip>span{font-size:20px;color:var(--cyan)}.ai-tip small{color:#8aa2ae;font-size:8px;letter-spacing:1.3px}.ai-tip p{font-size:11px;margin:3px 0 0;color:#dce8ed}.ai-tip b{margin-left:auto;color:var(--cyan);font-size:16px}.tabs-section,.news-section{padding:105px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:35px}.section-heading h2,.analyzer h2,.community h2,.newsletter h2{font-size:clamp(30px,4vw,52px);letter-spacing:-2px;margin:9px 0 0}.section-heading p{max-width:360px;color:var(--muted);line-height:1.7;font-size:13px}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:30px}.tab{border:1px solid transparent;background:transparent;color:#8fa6b2;padding:13px 18px;border-radius:9px 9px 0 0;font-weight:800;cursor:pointer}.tab.active{color:#03111e;background:linear-gradient(135deg,#b8f3ff,#6fdcf3)}.tab-panel{display:none}.tab-panel.active{display:block;animation:fade .35s ease}.feature-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px}.feature-card{min-height:235px;padding:25px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,rgba(10,37,53,.78),rgba(3,18,29,.65));transition:.25s;position:relative;overflow:hidden}.feature-card:hover{transform:translateY(-5px);border-color:rgba(126,231,255,.4);box-shadow:0 20px 55px rgba(0,0,0,.24)}.feature-card.featured{grid-row:span 2;min-height:484px;background:radial-gradient(circle at 80% 20%,rgba(71,203,232,.15),transparent 35%),linear-gradient(145deg,rgba(11,52,70,.92),rgba(3,18,29,.75))}.feature-card .icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(126,231,255,.25);border-radius:11px;color:var(--cyan);margin-bottom:70px}.feature-card small{font-size:9px;color:#84a0ad;letter-spacing:1.5px}.feature-card h3{font-size:26px;margin:8px 0}.feature-card p{color:#9eb2bc;font-size:13px;line-height:1.65;max-width:420px}.feature-card b{font-size:12px;color:var(--cyan)}.analyzer{padding:105px 0;background:radial-gradient(circle at 20% 50%,rgba(58,181,219,.12),transparent 35%),linear-gradient(180deg,rgba(4,24,36,.5),rgba(3,16,26,.9))}.analyzer-inner{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.analyzer-copy>p{max-width:520px;color:var(--muted);line-height:1.8}.check-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px;color:#b9cbd3;font-size:12px}.check-list span{padding:12px;border:1px solid var(--line);border-radius:10px;background:rgba(10,34,48,.45)}.id-card{border:1px solid rgba(126,231,255,.25);background:linear-gradient(145deg,rgba(12,44,60,.85),rgba(2,17,28,.82));padding:28px;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.35)}.id-card-head{color:#8fa8b5;font-size:10px;letter-spacing:1.4px;margin-bottom:45px}.id-card label{font-size:11px;color:#b9cbd3;display:block;margin-bottom:8px}.input-row{display:flex;gap:8px}.input-row input,.newsletter input{width:100%;border:1px solid var(--line);background:rgba(0,0,0,.2);color:#fff;border-radius:10px;padding:15px;outline:none}.input-row input:focus,.newsletter input:focus{border-color:var(--cyan)}.input-row button,.newsletter button{border:0;background:var(--cyan);color:#03202b;border-radius:10px;padding:0 20px;font-weight:900;cursor:pointer}.hint{display:block;color:#708995;font-size:9px;margin-top:10px}.demo-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:25px}.demo-stats div{border:1px solid var(--line);padding:14px;border-radius:10px}.demo-stats b{font-size:19px}.analyzer-msg{margin-top:14px;font-size:11px;min-height:17px}.analyzer-msg.success{color:#82e6ba}.analyzer-msg.error{color:#ff9d9d}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.news-card{border:1px solid var(--line);background:rgba(7,29,43,.65);border-radius:15px;overflow:hidden}.news-image{display:block;height:210px;background:linear-gradient(135deg,#0a3143,#071622);overflow:hidden}.news-image img{width:100%;height:100%;object-fit:cover;transition:.4s}.news-card:hover .news-image img{transform:scale(1.05)}.news-image.fallback{display:grid;place-items:center;color:#76dff5;font-weight:900;letter-spacing:2px}.news-body{padding:20px}.news-body small{font-size:9px;color:#7d96a2;letter-spacing:1.4px}.news-body h3{font-size:21px;margin:9px 0}.news-body h3 a:hover{color:var(--cyan)}.news-body p{color:#94aab5;font-size:12px;line-height:1.65}.text-link{font-size:11px;color:var(--cyan);font-weight:800}.community{padding:100px 0;background:radial-gradient(circle at 80% 20%,rgba(225,204,138,.1),transparent 30%),linear-gradient(135deg,#041b29,#03101a)}.community-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:70px}.community p{color:var(--muted);line-height:1.8;max-width:500px}.coming-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.coming-grid div{min-height:115px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:var(--cyan);font-size:24px}.coming-grid span{font-size:11px;color:#9fb1ba;letter-spacing:1px}.newsletter{padding:80px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:linear-gradient(90deg,rgba(59,189,222,.08),transparent 50%,rgba(229,210,146,.06))}.newsletter-inner{display:flex;justify-content:space-between;align-items:center;gap:40px}.newsletter p{color:var(--muted);margin-bottom:0}.newsletter form{width:min(490px,100%);display:flex;gap:8px;position:relative}.newsletter input{padding:16px}.newsletter button{padding:0 20px;white-space:nowrap}.newsletter-msg{position:absolute;top:55px;left:3px;font-size:10px;color:#86e8c0}.wof-footer{background:#020b12;padding:35px 0 20px}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:25px}.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{width:48px;height:48px;object-fit:contain}.footer-brand div{display:flex;flex-direction:column;gap:3px}.footer-brand b{font-size:11px;letter-spacing:1.5px}.footer-brand span,.footer-bottom{font-size:10px;color:#718792}.footer-links{display:flex;gap:18px;font-size:11px;color:#a5b7bf}.socials{display:flex;gap:12px;color:#9eb1ba}.footer-bottom{border-top:1px solid var(--line);margin-top:25px;padding-top:18px;display:flex;justify-content:space-between}@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:900px){.desktop-nav{display:none;position:absolute;top:76px;left:20px;right:20px;padding:15px;background:rgba(3,17,29,.97);border:1px solid var(--line);border-radius:12px;flex-direction:column}.desktop-nav.mobile-open{display:flex}.menu-btn{display:block}.nav-cta{display:none}.hero-inner,.analyzer-inner,.community-inner{grid-template-columns:1fr}.hero{min-height:auto}.hero-inner{padding:70px 0 80px}.hero-card{max-width:620px;width:100%;margin:auto}.feature-grid{grid-template-columns:1fr 1fr}.feature-card.featured{grid-row:auto;min-height:300px}.news-grid{grid-template-columns:1fr 1fr}.newsletter-inner{flex-direction:column;align-items:flex-start}.newsletter form{width:100%}.footer-top{flex-wrap:wrap}.footer-links{order:3;width:100%}}
@media(max-width:620px){.container{width:min(var(--max),calc(100% - 28px))}.brand span{display:none}.lang-switch{display:inline-flex}.hero h1{font-size:52px;letter-spacing:-3px}.hero-copy>p{font-size:14px}.hero-buttons{flex-direction:column}.btn{width:100%}.hero-proof{flex-direction:column;gap:7px}.tabs{overflow-x:auto}.tab{white-space:nowrap}.feature-grid,.news-grid,.check-list,.coming-grid{grid-template-columns:1fr}.feature-card,.feature-card.featured{min-height:auto}.feature-card .icon{margin-bottom:45px}.section-heading{align-items:flex-start;flex-direction:column}.input-row{flex-direction:column}.input-row button{padding:14px}.footer-top{align-items:flex-start;flex-direction:column}.footer-bottom{flex-direction:column;gap:7px}}


/* v2.4 — English / Arabic direction switcher */
html[dir="rtl"] body{direction:rtl}
body.wof-rtl{text-align:right}
body.wof-rtl .brand{direction:rtl}
body.wof-rtl .desktop-nav{direction:rtl}
body.wof-rtl .nav-actions{direction:rtl}
body.wof-rtl .hero-copy>p,body.wof-rtl .section-heading p,body.wof-rtl .analyzer-copy>p,body.wof-rtl .community p,body.wof-rtl .newsletter p{ text-align:right}
body.wof-rtl .hero-buttons,body.wof-rtl .hero-proof{justify-content:flex-start}
body.wof-rtl .section-heading{direction:rtl}
body.wof-rtl .tabs{direction:rtl}
body.wof-rtl .feature-grid,body.wof-rtl .news-grid,body.wof-rtl .check-list,body.wof-rtl .coming-grid{direction:rtl}
body.wof-rtl .analyzer-inner,body.wof-rtl .community-inner{direction:rtl}
body.wof-rtl .input-row{direction:rtl}
body.wof-rtl .newsletter-inner{direction:rtl}
body.wof-rtl .newsletter form{direction:rtl}
body.wof-rtl .newsletter-msg{right:3px;left:auto}
body.wof-rtl .footer-top,body.wof-rtl .footer-bottom{direction:rtl}
body.wof-rtl .footer-links,body.wof-rtl .socials{direction:rtl}
@media(max-width:900px){body.wof-rtl .desktop-nav{left:20px;right:20px;text-align:right}}

/* v2.5 — cleaner section heading alignment */
.tabs-section .section-heading{display:block;margin-bottom:30px;text-align:left}
.tabs-section .section-heading > div{max-width:900px}
.tabs-section .section-heading > p{max-width:560px;margin:14px 0 0;text-align:left}
html[dir="rtl"] .tabs-section .section-heading,
body.wof-rtl .tabs-section .section-heading{text-align:right;direction:rtl}
html[dir="rtl"] .tabs-section .section-heading > p,
body.wof-rtl .tabs-section .section-heading > p{text-align:right}

/* v2.6 */
.wof-header{direction:ltr!important;text-align:left!important}.wof-header .nav-wrap,.wof-header .desktop-nav,.wof-header .nav-actions,.wof-header .lang-switch,.wof-header .brand{direction:ltr!important}.wof-header .desktop-nav{flex-direction:row!important}.wof-rtl .wof-header .desktop-nav,.wof-rtl .wof-header .nav-actions{text-align:left!important}


/* v2.7 — Header is permanently LTR and isolated from page direction. */
.wof-header,
.wof-header * {
    direction: ltr !important;
    unicode-bidi: isolate;
}
.wof-header .nav-wrap {
    direction: ltr !important;
    flex-direction: row !important;
}
.wof-header .desktop-nav {
    direction: ltr !important;
    flex-direction: row !important;
    text-align: left !important;
}
.wof-header .nav-actions {
    direction: ltr !important;
    flex-direction: row !important;
    text-align: left !important;
}
.wof-header .brand {
    direction: ltr !important;
    flex-direction: row !important;
    text-align: left !important;
}
.wof-header .lang-switch {
    direction: ltr !important;
    flex-direction: row !important;
}
@media (max-width: 900px) {
    .wof-header .desktop-nav {
        direction: ltr !important;
        text-align: left !important;
    }
}

/* === WOF v2.8 client-side translation === */
/* The header must never mirror when Arabic/English changes. */
.wof-header,
.wof-header .nav-wrap,
.wof-header .brand,
.wof-header .desktop-nav,
.wof-header .nav-actions,
.wof-header .wof-translate-slot {
  direction: ltr !important;
}
.wof-header .nav-wrap { flex-direction: row !important; }
.wof-header .desktop-nav { flex-direction: row !important; }
.wof-header .nav-actions { flex-direction: row !important; }
.wof-translate-slot { display:flex; align-items:center; justify-content:center; min-width:72px; position:relative; z-index:50; }
.wof-translate-slot .wpat-selector-wrapper,
.wof-translate-slot [class*="wpat"],
.wof-translate-slot select,
.wof-translate-slot button { max-width:150px; }
.wof-translate-missing { font-size:12px; font-weight:800; letter-spacing:.08em; color:#91a9b9; white-space:nowrap; }

/* Arabic is the original content direction. English translation switches only content. */
body.wof-lang-ar main,
body.wof-lang-ar .wof-app,
body.wof-lang-ar .wof-article-page,
body.wof-lang-ar .wof-footer { direction: rtl; }
body.wof-lang-en main,
body.wof-lang-en .wof-app,
body.wof-lang-en .wof-article-page,
body.wof-lang-en .wof-footer { direction: ltr; }

/* Do not let direction switching reverse layout primitives that should stay visually stable. */
.wof-header .brand span,
.wof-header .desktop-nav a,
.wof-header .nav-cta { unicode-bidi: plaintext; }

@media (max-width: 860px) {
  .wof-header .nav-wrap { direction:ltr !important; }
  .wof-header .desktop-nav.mobile-open { direction:ltr !important; }
  .wof-translate-slot { min-width:60px; }
}

/* === WOF v2.9 Arabic-first typography === */
/* Arabic is the original site language, so Cairo is the default font. */
body,
button,
input,
textarea,
select {
  font-family: "Cairo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* After the client-side translator switches to English, return to the clean Latin UI stack. */
body.wof-lang-en,
body.wof-lang-en button,
body.wof-lang-en input,
body.wof-lang-en textarea,
body.wof-lang-en select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Better Arabic rhythm without changing the fixed header composition. */
body:not(.wof-lang-en) .hero h1,
body:not(.wof-lang-en) .section-heading h2,
body:not(.wof-lang-en) .analyzer h2,
body:not(.wof-lang-en) .community h2,
body:not(.wof-lang-en) .newsletter h2 {
  letter-spacing: 0;
  line-height: 1.18;
}
body:not(.wof-lang-en) .eyebrow,
body:not(.wof-lang-en) .feature-card small,
body:not(.wof-lang-en) .rank-row small,
body:not(.wof-lang-en) .demo-stats small,
body:not(.wof-lang-en) .id-card-head,
body:not(.wof-lang-en) .news-body small {
  letter-spacing: .25px;
}
body:not(.wof-lang-en) .hero-copy > p,
body:not(.wof-lang-en) .section-heading p,
body:not(.wof-lang-en) .feature-card p,
body:not(.wof-lang-en) .analyzer-copy > p,
body:not(.wof-lang-en) .community p,
body:not(.wof-lang-en) .newsletter p {
  line-height: 1.9;
}

/* Header position/order stays LTR, while translated text can use the right font. */
.wof-header,
.wof-header .nav-wrap,
.wof-header .brand,
.wof-header .desktop-nav,
.wof-header .nav-actions,
.wof-header .wof-translate-slot {
  direction: ltr !important;
}
