/* ============================================================
   Tawazon — Main Stylesheet
   ============================================================ */

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

/* ---- Dark Mode (default) ---- */
:root {
  --primary:     #4A90D9;
  --green:       #3DBD7D;
  --orange:      #F4873B;
  --purple:      #9B59B6;
  --bg:          #0D1B2E;
  --dark:        #0D1B2E;
  --dark2:       #112240;
  --dark3:       #1a2f4a;
  --card-bg:     rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.10);
  --text:        #e8f0fe;
  --text-muted:  #8899bb;
  --navbar-bg:   rgba(13,27,46,0.92);
  --surface:     #112240;
  --radius:      16px;
  --radius-lg:   24px;
  --transition:  0.35s cubic-bezier(.4,0,.2,1);
}

/* ---- Light Mode ---- */
body.light-mode {
  --bg:          #F0F4FA;
  --dark:        #F0F4FA;
  --dark2:       #E4EBF5;
  --dark3:       #D8E3F0;
  --card-bg:     rgba(255,255,255,0.85);
  --card-border: rgba(74,144,217,0.18);
  --text:        #0D1B2E;
  --text-muted:  #4A6080;
  --navbar-bg:   rgba(240,244,250,0.95);
  --surface:     #fff;
}
body.light-mode { background: var(--bg); color: var(--text); }
body.light-mode .hero-orb { opacity: 0.12; }
body.light-mode .navbar.scrolled { background: var(--navbar-bg); border-bottom: 1px solid var(--card-border); }
body.light-mode .glass { background: rgba(255,255,255,0.8); box-shadow: 0 4px 24px rgba(74,144,217,0.10); }
body.light-mode .gradient-text { background: linear-gradient(135deg, #2271c3 0%, #1a9e63 50%, #7b2fbe 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
body.light-mode .widget-mockup { border-color: rgba(74,144,217,0.3); background: rgba(255,255,255,0.85); }
body.light-mode .widget-value,
body.light-mode .widget-label,
body.light-mode .widget-unit { color: #0D1B2E; }
body.light-mode .faq-item { background: #fff; border-color: rgba(74,144,217,0.15); }
body.light-mode .faq-question { color: #0D1B2E; }
body.light-mode .form-group input,
body.light-mode .form-group textarea,
body.light-mode .form-group select { background: #fff; border-color: rgba(74,144,217,0.25); color: #0D1B2E; }
body.light-mode .page-hero { background: linear-gradient(135deg, #e8f0fe 0%, #dceeff 100%); }
body.light-mode .page-hero h1 { color: #0D1B2E; }
body.light-mode .page-hero p { color: #4A6080; }
body.light-mode .page-content { background: #F0F4FA; }
body.light-mode .policy-section h2 { color: #0D1B2E; }
body.light-mode .policy-section p,
body.light-mode .policy-section li { color: #4A6080; }
body.light-mode footer { background: #1a2f4a; }
body.light-mode .lang-toggle { background: rgba(74,144,217,0.1); border-color: rgba(74,144,217,0.25); color: #0D1B2E; }
body.light-mode .appstore-btn { border-color: rgba(0,0,0,0.15); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.7; overflow-x: hidden; transition: background var(--transition), color var(--transition); }
body.lang-ar { font-family: 'Cairo', sans-serif; direction: rtl; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7ab5f0; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--green) 50%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all var(--transition); border: none; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #6fa8ea); color: #fff; box-shadow: 0 8px 30px rgba(74,144,217,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(74,144,217,0.5); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--card-border); }
.btn-outline:hover { background: var(--card-bg); border-color: var(--primary); color: var(--text); }
.tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(74,144,217,0.15); color: var(--primary); border: 1px solid rgba(74,144,217,0.3); padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.glass { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 0; transition: all var(--transition); }
.navbar.scrolled { background: rgba(13,27,46,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 12px 0; border-bottom: 1px solid var(--card-border); }
.navbar.hide { transform: translateY(-100%); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--green)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -1px; box-shadow: 0 4px 15px rgba(74,144,217,0.4); }
.logo-img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 15px rgba(74,144,217,0.35); flex-shrink: 0; }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.logo-ar { display: none; }
.logo-en { display: block; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text); padding: 8px 18px; border-radius: 50px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: inherit; }
.lang-toggle:hover { background: rgba(74,144,217,0.15); border-color: var(--primary); }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--card-border); font-size: 1.1rem; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.theme-toggle:hover { background: rgba(74,144,217,0.15); border-color: var(--primary); transform: rotate(20deg); }
.btn-nav { padding: 10px 22px; font-size: 0.9rem; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 90px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25; }
.hero-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--primary), transparent); top: -150px; right: -150px; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--green), transparent); bottom: -100px; left: -100px; }
.hero-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, var(--purple), transparent); top: 40%; left: 40%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 560px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
.eyebrow-text { font-size: 0.85rem; font-weight: 600; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
@keyframes pulse-dot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.6; } }
.hero-title { margin-bottom: 20px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.appstore-btn { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; padding: 12px 24px; border-radius: 14px; text-decoration: none; transition: all var(--transition); border: 1px solid rgba(255,255,255,0.15); }
.appstore-btn:hover { background: #1a1a1a; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); color: #fff; }
.appstore-icon { font-size: 1.8rem; line-height: 1; }
.appstore-text-small { font-size: 0.68rem; opacity: 0.8; letter-spacing: .03em; }
.appstore-text-big { font-size: 1.05rem; font-weight: 700; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; }
.stat-item { text-align: center; }
.stat-number { font-size: 1.6rem; font-weight: 900; color: #fff; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* Widget Mockups */
.hero-widgets { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; }
.widget-mockup { position: absolute; animation: float 6s ease-in-out infinite; }
.widget-water { width: 160px; height: 160px; background: linear-gradient(145deg, rgba(74,144,217,0.2), rgba(74,144,217,0.08)); border: 1px solid rgba(74,144,217,0.35); border-radius: 28px; padding: 16px; backdrop-filter: blur(20px); top: 30px; left: 10px; animation-delay: 0s; overflow: hidden; }
.widget-water-inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
.widget-icon { font-size: 1.4rem; }
.widget-value { font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1; }
.widget-unit { font-size: 0.7rem; color: rgba(255,255,255,0.6); }
.widget-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.widget-progress-bar { width: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.widget-progress-fill { height: 100%; border-radius: 3px; animation: grow-bar 2s ease-out forwards; }
@keyframes grow-bar { from { width: 0; } }
.fill-water { background: linear-gradient(90deg, var(--primary), #7ab5f0); width: 72%; }

.wave-container { position: absolute; bottom: 0; left: 0; right: 0; height: 55px; overflow: hidden; }
.wave { position: absolute; bottom: 0; left: -100%; width: 300%; height: 100%; }
.wave svg { position: absolute; bottom: 0; width: 100%; height: 100%; }
.wave-1 { animation: wave-move 4s linear infinite; opacity: 0.6; }
.wave-2 { animation: wave-move 6s linear infinite reverse; opacity: 0.4; }
.wave-3 { animation: wave-move 8s linear infinite; opacity: 0.25; }
@keyframes wave-move { 0% { transform: translateX(0); } 100% { transform: translateX(33.33%); } }

.widget-steps { width: 170px; height: 130px; background: linear-gradient(145deg, rgba(61,189,125,0.18), rgba(61,189,125,0.07)); border: 1px solid rgba(61,189,125,0.3); border-radius: 24px; padding: 16px; backdrop-filter: blur(20px); top: 50px; right: 0; animation-delay: -2s; }
.widget-steps-inner { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.steps-header { display: flex; justify-content: space-between; align-items: flex-start; }
.steps-ring-wrap { position: relative; width: 54px; height: 54px; }
.steps-ring-bg { width: 100%; height: 100%; border-radius: 50%; border: 4px solid rgba(61,189,125,0.15); }
.steps-ring-progress { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--green); border-right-color: var(--green); animation: ring-spin 0.8s ease-out forwards; }
@keyframes ring-spin { from { transform: rotate(-90deg); } to { transform: rotate(170deg); } }
.steps-pct { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 0.62rem; font-weight: 700; color: var(--green); }

.widget-fasting { width: 185px; height: 185px; background: linear-gradient(145deg, rgba(155,89,182,0.18), rgba(155,89,182,0.07)); border: 1px solid rgba(155,89,182,0.3); border-radius: 28px; padding: 18px; backdrop-filter: blur(20px); bottom: 40px; left: 50%; transform: translateX(-50%); animation-delay: -4s; }
.widget-fasting-inner { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: space-between; }
.fasting-ring-wrap { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.fasting-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fasting-ring-track { fill: none; stroke: rgba(155,89,182,0.15); stroke-width: 6; }
.fasting-ring-prog { fill: none; stroke: url(#fastingGrad); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: fasting-draw 2s ease-out forwards 0.5s; }
@keyframes fasting-draw { to { stroke-dashoffset: 66; } }
.fasting-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.fasting-time { font-size: 1rem; font-weight: 900; color: #fff; line-height: 1; }
.fasting-sub { font-size: 0.58rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

.widget-sleep { width: 145px; height: 110px; background: linear-gradient(145deg, rgba(244,135,59,0.18), rgba(244,135,59,0.07)); border: 1px solid rgba(244,135,59,0.3); border-radius: 22px; padding: 14px; backdrop-filter: blur(20px); bottom: 80px; right: 10px; animation-delay: -1s; }
.widget-sleep-inner { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.sleep-bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.sleep-bar { flex: 1; background: rgba(244,135,59,0.2); border-radius: 3px; animation: bar-rise 1s ease-out forwards; }
.sleep-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sleep-bar:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.sleep-bar:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.sleep-bar:nth-child(4) { height: 90%; animation-delay: 0.4s; }
.sleep-bar:nth-child(5) { height: 65%; animation-delay: 0.5s; }
.sleep-bar:nth-child(6) { height: 80%; animation-delay: 0.6s; }
.sleep-bar:nth-child(7) { height: 50%; animation-delay: 0.7s; }
.sleep-bar.active { background: linear-gradient(180deg, var(--orange), rgba(244,135,59,0.5)); }
@keyframes bar-rise { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-14px); } }
.widget-fasting { animation-name: float-center; }
@keyframes float-center { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-14px); } }

/* FEATURES */
.features { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header p { font-size: 1.1rem; margin-top: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-color, var(--primary)) 0%, transparent 60%); opacity: 0; transition: opacity var(--transition); border-radius: inherit; }
.feature-card:hover { border-color: var(--accent-color, var(--primary)); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 0.07; }
.feature-icon-wrap { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }
.feature-card-water    { --accent-color: var(--primary); }
.feature-card-water    .feature-icon-wrap { background: rgba(74,144,217,0.15);  border: 1px solid rgba(74,144,217,0.2);  color: var(--primary); }
.feature-card-sleep    { --accent-color: var(--orange); }
.feature-card-sleep    .feature-icon-wrap { background: rgba(244,135,59,0.15);  border: 1px solid rgba(244,135,59,0.2);  color: var(--orange); }
.feature-card-steps    { --accent-color: var(--green); }
.feature-card-steps    .feature-icon-wrap { background: rgba(61,189,125,0.15);  border: 1px solid rgba(61,189,125,0.2);  color: var(--green); }
.feature-card-fasting  { --accent-color: var(--purple); }
.feature-card-fasting  .feature-icon-wrap { background: rgba(155,89,182,0.15); border: 1px solid rgba(155,89,182,0.2); color: var(--purple); }
.feature-card-calories { --accent-color: #E74C3C; }
.feature-card-calories .feature-icon-wrap { background: rgba(231,76,60,0.15);   border: 1px solid rgba(231,76,60,0.2);   color: #E74C3C; }
.feature-card-widget   { --accent-color: #1ABC9C; }
.feature-card-widget   .feature-icon-wrap { background: rgba(26,188,156,0.15);  border: 1px solid rgba(26,188,156,0.2);  color: #1ABC9C; }

/* WIDGETS SHOWCASE */
.widgets-showcase { background: var(--dark2); overflow: hidden; }
.widgets-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.widgets-content h2 { margin-bottom: 20px; }
.widgets-content p { margin-bottom: 32px; font-size: 1.05rem; }
.widget-features-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.widget-features-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text-muted); }
.list-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-blue { background: var(--primary); } .dot-green { background: var(--green); } .dot-orange { background: var(--orange); } .dot-purple { background: var(--purple); }
.phone-mockup-wrap { display: flex; justify-content: center; align-items: center; position: relative; }
.phone-frame { width: 260px; height: 520px; background: linear-gradient(145deg, #1e3254, #0f1f38); border-radius: 44px; border: 2px solid rgba(255,255,255,0.1); padding: 18px; box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.phone-notch { width: 90px; height: 28px; background: #0a1628; border-radius: 0 0 20px 20px; margin: 0 auto 16px; }
.phone-screen { height: calc(100% - 52px); display: flex; flex-direction: column; gap: 10px; }
.phone-widget-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-widget { border-radius: 16px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; min-height: 80px; }
.ph-widget-lg { grid-column: span 2; flex-direction: row; align-items: center; gap: 12px; min-height: 70px; }
.ph-widget-icon { font-size: 1.1rem; }
.ph-widget-val { font-size: 1rem; font-weight: 800; color: #fff; }
.ph-widget-lbl { font-size: 0.6rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.ph-water { background: linear-gradient(135deg, rgba(74,144,217,0.35), rgba(74,144,217,0.12)); border: 1px solid rgba(74,144,217,0.25); }
.ph-sleep { background: linear-gradient(135deg, rgba(244,135,59,0.35), rgba(244,135,59,0.12)); border: 1px solid rgba(244,135,59,0.25); }
.ph-steps { background: linear-gradient(135deg, rgba(61,189,125,0.35), rgba(61,189,125,0.12)); border: 1px solid rgba(61,189,125,0.25); }
.ph-fast  { background: linear-gradient(135deg, rgba(155,89,182,0.35), rgba(155,89,182,0.12)); border: 1px solid rgba(155,89,182,0.25); }
.ph-cal   { background: linear-gradient(135deg, rgba(231,76,60,0.35),  rgba(231,76,60,0.12));  border: 1px solid rgba(231,76,60,0.25); }

/* PRICING */
.pricing { background: var(--dark); }
.pricing-card { max-width: 820px; margin: 0 auto; background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.pricing-header { display: grid; grid-template-columns: 1fr 1fr; }
.pricing-col { padding: 32px; text-align: center; }
.pricing-col + .pricing-col { background: linear-gradient(135deg, rgba(74,144,217,0.15), rgba(155,89,182,0.1)); border-left: 1px solid var(--card-border); position: relative; }
.pro-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--purple)); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 16px; border-radius: 0 0 12px 12px; letter-spacing: .05em; }
.pricing-plan-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.pricing-price { font-size: 2.4rem; font-weight: 900; color: #fff; line-height: 1; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table td { padding: 14px 32px; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); }
.pricing-table .feature-name { color: var(--text-muted); }
.pricing-table .check-free, .pricing-table .check-pro { text-align: center; font-size: 1rem; }
.check-yes { color: var(--green); } .check-no { color: rgba(255,255,255,0.2); }
.pricing-footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--card-border); }
.pricing-footer-cell { padding: 24px 32px; display: flex; justify-content: center; }
.pricing-footer-cell + .pricing-footer-cell { border-left: 1px solid var(--card-border); background: linear-gradient(135deg, rgba(74,144,217,0.08), rgba(155,89,182,0.06)); }

/* DOWNLOAD CTA */
.download-cta { background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%); position: relative; overflow: hidden; text-align: center; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; pointer-events: none; }
.cta-orb-1 { width: 500px; height: 500px; background: var(--primary); top: -200px; left: -150px; }
.cta-orb-2 { width: 400px; height: 400px; background: var(--purple); bottom: -150px; right: -100px; }
.cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 16px; } .cta-inner p { font-size: 1.1rem; margin-bottom: 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { background: #080f1c; padding: 60px 0 36px; border-top: 1px solid var(--card-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.9rem; margin-top: 16px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: #fff; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-contact p { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; }
.footer-contact a { color: var(--text-muted); } .footer-contact a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom-links a:hover { color: var(--primary); }

/* INNER PAGES */
.page-hero { padding: 140px 0 80px; background: linear-gradient(180deg, var(--dark2) 0%, var(--dark) 100%); text-align: center; position: relative; overflow: hidden; }
.page-hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; pointer-events: none; }
.page-hero-orb-1 { width: 400px; height: 400px; background: var(--primary); top: -150px; left: 50%; transform: translateX(-50%); }
.page-hero h1 { margin-bottom: 12px; } .page-hero p { font-size: 1rem; max-width: 500px; margin: 0 auto; }
.page-content { padding: 72px 0 100px; background: var(--dark); }
.page-content .container { max-width: 820px; }
.page-article h2 { font-size: 1.4rem; color: #fff; margin-top: 48px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--card-border); }
.page-article h3 { font-size: 1.05rem; color: var(--text); margin-top: 28px; margin-bottom: 10px; }
.page-article p { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }
.page-article ul, .page-article ol { padding-left: 24px; margin-bottom: 16px; }
body.lang-ar .page-article ul, body.lang-ar .page-article ol { padding-left: 0; padding-right: 24px; }
.page-article li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }
.info-box { background: rgba(74,144,217,0.08); border: 1px solid rgba(74,144,217,0.2); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; font-size: 0.9rem; color: var(--text-muted); }
.info-box.green { background: rgba(61,189,125,0.08); border-color: rgba(61,189,125,0.2); }
.last-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); background: var(--card-bg); border: 1px solid var(--card-border); padding: 6px 16px; border-radius: 50px; margin-bottom: 40px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.faq-item.open { border-color: rgba(74,144,217,0.4); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: none; border: none; color: #fff; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-align: left; gap: 16px; font-family: inherit; transition: color var(--transition); }
body.lang-ar .faq-question { text-align: right; }
.faq-question:hover { color: var(--primary); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(.4,0,.2,1); }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }

/* CONTACT FORM */
.contact-section { margin-top: 72px; }
.contact-form { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: 10px; padding: 12px 16px; color: var(--text); font-size: 0.92rem; font-family: inherit; transition: border-color var(--transition); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: rgba(74,144,217,0.05); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark2); color: var(--text); }
.form-submit { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }
.form-success { display: none; text-align: center; padding: 32px; color: var(--green); font-weight: 600; font-size: 1.05rem; }

/* SCROLL ANIMATIONS */
.reveal       { opacity: 0; transform: translateY(30px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(30px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; } .reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; } .reveal-d5 { transition-delay: 0.5s; } .reveal-d6 { transition-delay: 0.6s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .widgets-split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-widgets { height: 360px; }
  .widget-water { width: 130px; height: 130px; top: 10px; left: 0; }
  .widget-steps { width: 140px; height: 110px; right: 0; top: 20px; }
  .widget-fasting { width: 155px; height: 155px; bottom: 10px; }
  .widget-sleep { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-table td { padding: 12px 16px; font-size: 0.82rem; }
  .pricing-col { padding: 24px 16px; }
  .pricing-footer-cell { padding: 18px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .nav-actions .btn-nav { display: none; }
  .hero-stats { gap: 20px; }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; } h2 { font-size: 1.6rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: center; }
  .contact-form { padding: 24px; }
}
body.lang-ar .footer-bottom-links { flex-direction: row-reverse; }
body.lang-ar .footer-contact p { flex-direction: row-reverse; }
body.lang-ar .widget-water { left: auto; right: 10px; }
body.lang-ar .widget-steps { right: auto; left: 0; }
body.lang-ar .widget-sleep { right: auto; left: 10px; }
