/* ============================================================
   RAFIQI — Homepage styles (ألوان اللوغو الرسمية)
   ============================================================ */
:root {
    --navy-950: #060B1A;
    --navy-900: #0A1226;
    --navy-800: #0E1B3A;
    --navy-700: #13264F;
    --blue-700: #10348C;
    --blue-600: #123FA8;
    --blue-500: #1E6FEB;
    --blue-400: #4E9CFF;
    --blue-300: #7FBAFF;
    --blue-100: #DCEBFF;
    --blue-50:  #EEF5FF;
    --white: #FFFFFF;
    --text: #1A2238;
    --text-2: #5C6B8A;
    --text-3: #93A1BD;
    --line: #E4E9F2;
    --gold: #C49A1E;
    --gold-2: #F5C542;
    --green: #10B981;
    --font: 'Cairo', 'Segoe UI', system-ui, sans-serif;
    --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
    --sh-sm: 0 2px 10px rgba(6,11,26,.06);
    --sh-md: 0 10px 30px rgba(6,11,26,.10);
    --sh-lg: 0 24px 60px rgba(6,11,26,.16);
    --sh-blue: 0 14px 40px rgba(30,111,235,.35);
    --max: 1200px;
}

.home-page, .home-page * { margin: 0; padding: 0; box-sizing: border-box; }
.home-page { font-family: var(--font); background: var(--white); color: var(--text); line-height: 1.7; overflow-x: hidden; }
.home-page a { text-decoration: none; color: inherit; }
.home-page ul { list-style: none; }
.home-page img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }

.home-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 700; border: none; cursor: pointer; border-radius: var(--r-full); transition: all .25s ease; white-space: nowrap; }
.home-page .btn-sm { padding: 9px 20px; font-size: .875rem; }
.home-page .btn-md { padding: 12px 28px; font-size: 1rem; }
.home-page .btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.home-page .btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff; box-shadow: var(--sh-blue); }
.home-page .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(30,111,235,.5); }
.home-page .btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.home-page .btn-glass:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.home-page .btn-light { background: #fff; color: var(--blue-600); box-shadow: var(--sh-md); }
.home-page .btn-light:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

.home-page .ticker { background: linear-gradient(90deg, var(--blue-700), var(--blue-500), var(--blue-700)); color: #fff; font-size: .82rem; padding: 9px 0; overflow: hidden; white-space: nowrap; }
.home-page .ticker-track { display: inline-flex; gap: 46px; animation: home-scroll 34s linear infinite; padding-inline: 20px; }
.home-page .ticker-item { display: inline-flex; align-items: center; gap: 8px; opacity: .95; }
.home-page .ticker-item .dot { width: 7px; height: 7px; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 10px #7CFFB2; }
@keyframes home-scroll { from { transform: translateX(0); } to { transform: translateX(50%); } }

.home-page .header { position: sticky; top: 0; z-index: 100; background: rgba(6,11,26,.82); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.07); }
.home-page .header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.home-page .logo { display: flex; align-items: center; gap: 11px; }
.home-page .logo img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(78,156,255,.4), 0 0 22px rgba(30,111,235,.5); }
.home-page .logo-text { font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.home-page .logo-text .dot { color: var(--blue-400); }
.home-page .nav { display: flex; align-items: center; gap: 30px; }
.home-page .nav a { color: rgba(255,255,255,.78); font-weight: 600; font-size: .93rem; transition: color .2s; position: relative; }
.home-page .nav a:hover { color: #fff; }
.home-page .nav a::after { content: ''; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px; background: var(--blue-400); transition: width .25s; border-radius: 2px; }
.home-page .nav a:hover::after { width: 100%; }
.home-page .header-actions { display: flex; align-items: center; gap: 12px; }
.home-page .nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.home-page .nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s; }

.home-page .hero { position: relative; overflow: hidden; background: radial-gradient(120% 130% at 78% 0%, var(--navy-800) 0%, var(--navy-950) 55%, #03060F 100%); color: #fff; padding: 90px 0 110px; }
.home-page .hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(78,156,255,.18) 1px, transparent 1px); background-size: 34px 34px; opacity: .5; mask-image: radial-gradient(75% 60% at 50% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(75% 60% at 50% 40%, #000, transparent 75%); }
.home-page .hero::after { content: ''; position: absolute; top: -180px; left: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(30,111,235,.45), transparent 68%); filter: blur(30px); border-radius: 50%; }
.home-page .hero .container { position: relative; z-index: 2; }
.home-page .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.home-page .hero-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(78,156,255,.13); border: 1px solid rgba(78,156,255,.35); color: var(--blue-300); padding: 8px 18px; border-radius: var(--r-full); font-size: .82rem; font-weight: 700; margin-bottom: 26px; }
.home-page .hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.15; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 22px; }
.home-page .hero h1 .grad { background: linear-gradient(120deg, var(--blue-400), var(--blue-300) 40%, #fff 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.home-page .hero-desc { font-size: 1.12rem; color: rgba(255,255,255,.72); max-width: 540px; margin-bottom: 36px; }
.home-page .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.home-page .hero-stats { display: flex; gap: 42px; flex-wrap: wrap; }
.home-page .hero-stat .num { font-size: 1.9rem; font-weight: 900; color: #fff; display: block; line-height: 1; }
.home-page .hero-stat .num .u { color: var(--blue-400); }
.home-page .hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 7px; display: block; }
.home-page .hero-visual { position: relative; display: flex; justify-content: center; }
.home-page .logo-orbit { position: relative; width: 340px; height: 340px; }
.home-page .logo-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(78,156,255,.25); animation: home-spin 26s linear infinite; }
.home-page .logo-orbit .ring:nth-child(2) { inset: 26px; border-color: rgba(78,156,255,.42); animation-duration: 18s; animation-direction: reverse; }
.home-page .logo-orbit .ring:nth-child(3) { inset: 52px; border-color: rgba(78,156,255,.2); animation-duration: 34s; }
@keyframes home-spin { to { transform: rotate(360deg); } }
.home-page .logo-core { position: absolute; inset: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, var(--blue-500), var(--blue-700) 65%, var(--navy-900)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 70px rgba(30,111,235,.55), inset 0 0 40px rgba(0,0,0,.35); }
.home-page .logo-core img { width: 62%; height: 62%; object-fit: contain; border-radius: 50%; }
.home-page .float-chip { position: absolute; background: rgba(255,255,255,.96); color: var(--text); padding: 10px 16px; border-radius: var(--r-md); font-weight: 700; font-size: .82rem; box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 8px; animation: home-floaty 5s ease-in-out infinite; }
.home-page .float-chip.c1 { top: 22px; right: -14px; animation-delay: .4s; }
.home-page .float-chip.c2 { bottom: 34px; left: -18px; animation-delay: 1.4s; }
@keyframes home-floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

.home-page .section { padding: 96px 0; }
.home-page .sec-head { text-align: center; max-width: 640px; margin: 0 auto 58px; }
.home-page .sec-label { display: inline-block; background: var(--blue-50); color: var(--blue-600); font-weight: 800; font-size: .8rem; padding: 7px 18px; border-radius: var(--r-full); margin-bottom: 16px; letter-spacing: .3px; }
.home-page .sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: -1px; color: var(--navy-900); margin-bottom: 14px; }
.home-page .sec-head p { color: var(--text-2); font-size: 1.05rem; }

.home-page .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.home-page .feature-card { background: linear-gradient(180deg, #fff, var(--blue-50)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 24px; transition: all .28s ease; }
.home-page .feature-card:hover { transform: translateY(-7px); box-shadow: var(--sh-md); border-color: var(--blue-300); }
.home-page .feature-ic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); box-shadow: var(--sh-blue); color: #fff; }
.home-page .feature-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; color: var(--navy-900); }
.home-page .feature-card p { font-size: .92rem; color: var(--text-2); }

.home-page .subjects-sec { background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.home-page .subjects-sec::before { content: ''; position: absolute; top: -140px; right: -100px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(30,111,235,.35), transparent 70%); filter: blur(20px); }
.home-page .subjects-sec .sec-head h2 { color: #fff; }
.home-page .subjects-sec .sec-head p { color: rgba(255,255,255,.6); }
.home-page .subjects-sec .sec-label { background: rgba(78,156,255,.14); color: var(--blue-300); }
.home-page .subjects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 2; }
.home-page .subject-card { display: flex; align-items: center; gap: 16px; padding: 24px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); transition: all .28s ease; cursor: pointer; }
.home-page .subject-card:hover { background: rgba(30,111,235,.16); border-color: rgba(78,156,255,.5); transform: translateY(-5px); box-shadow: 0 18px 40px rgba(30,111,235,.28); }
.home-page .subject-ic { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.home-page .subject-card h3 { font-size: 1rem; font-weight: 700; }
.home-page .subject-card span { font-size: .8rem; color: rgba(255,255,255,.5); }

.home-page .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.home-page .step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 24px; text-align: center; transition: all .28s; }
.home-page .step-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.home-page .step-num { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.15rem; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff; box-shadow: var(--sh-blue); }
.home-page .step-emoji { font-size: 2rem; margin-bottom: 12px; }
.home-page .step-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 7px; color: var(--navy-900); }
.home-page .step-card p { font-size: .9rem; color: var(--text-2); }

.home-page .pricing-sec { background: var(--blue-50); }
.home-page .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; max-width: 1000px; margin: 0 auto; }
.home-page .price-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 40px 34px; position: relative; transition: all .28s; display: flex; flex-direction: column; }
.home-page .price-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.home-page .price-card.featured { border-color: var(--blue-500); box-shadow: var(--sh-blue); background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%); }
.home-page .price-tag { position: absolute; top: -14px; right: 34px; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff; font-size: .78rem; font-weight: 800; padding: 6px 18px; border-radius: var(--r-full); box-shadow: var(--sh-blue); }
.home-page .price-card .badge { display: inline-block; font-size: .8rem; font-weight: 800; padding: 6px 16px; border-radius: var(--r-full); margin-bottom: 18px; align-self: flex-start; }
.home-page .badge-free { background: var(--blue-50); color: var(--blue-600); }
.home-page .badge-prem { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #fff; }
.home-page .price-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 6px; color: var(--navy-900); }
.home-page .price-card .sub { color: var(--text-2); font-size: .92rem; margin-bottom: 10px; }
.home-page .price-amount { font-size: 2rem; font-weight: 900; color: var(--blue-600); margin-bottom: 4px; }
.home-page .price-amount small { font-size: .85rem; font-weight: 700; color: var(--text-3); }
.home-page .price-dur { color: var(--text-3); font-size: .85rem; margin-bottom: 22px; }
.home-page .price-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.home-page .price-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .94rem; }
.home-page .price-list .ck { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: .7rem; background: var(--blue-50); color: var(--blue-600); font-weight: 900; }
.home-page .price-card .btn { width: 100%; margin-top: auto; }

.home-page .cta { background: radial-gradient(120% 150% at 50% 0%, var(--blue-600) 0%, var(--navy-900) 60%, var(--navy-950) 100%); color: #fff; text-align: center; padding: 96px 0; position: relative; overflow: hidden; }
.home-page .cta::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 30px 30px; opacity: .6; }
.home-page .cta .container { position: relative; z-index: 2; }
.home-page .cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 18px; }
.home-page .cta p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto 36px; }
.home-page .cta .hero-actions { justify-content: center; margin-bottom: 0; }

.home-page .footer { background: var(--navy-950); color: rgba(255,255,255,.6); padding: 70px 0 30px; }
.home-page .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.home-page .footer-brand .logo { margin-bottom: 18px; }
.home-page .footer-brand p { font-size: .92rem; max-width: 300px; line-height: 1.8; }
.home-page .footer h4 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 18px; }
.home-page .footer-links li { margin-bottom: 11px; }
.home-page .footer-links a { font-size: .92rem; transition: color .2s; }
.home-page .footer-links a:hover { color: var(--blue-400); }
.home-page .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.home-page .footer-bottom .heart { color: var(--blue-400); }

@media (max-width: 992px) {
    .home-page .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .home-page .hero-visual { order: -1; }
    .home-page .logo-orbit { width: 260px; height: 260px; }
    .home-page .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .home-page .subjects-grid { grid-template-columns: repeat(2, 1fr); }
    .home-page .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .home-page .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .home-page .nav { display: none; }
    .home-page .nav-toggle { display: flex; }
    .home-page .header-actions .btn-glass { display: none; }
    .home-page .nav.open { display: flex; position: absolute; top: 72px; right: 0; left: 0; flex-direction: column; background: var(--navy-900); padding: 24px; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .home-page .section { padding: 70px 0; }
    .home-page .hero-stats { gap: 28px; }
}
@media (max-width: 560px) {
    .home-page .features-grid, .home-page .subjects-grid, .home-page .steps-grid { grid-template-columns: 1fr !important; }
    .home-page .hero-stat .num { font-size: 1.5rem; }
    .home-page .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .home-page .footer-bottom { flex-direction: column; text-align: center; }
}
