:root {
  --bg-main: #070b14;
  --bg-secondary: #0d1424;
  --bg-card: rgba(17, 25, 45, 0.78);
  --bg-card-hover: rgba(23, 35, 62, 0.92);
  --bg-glass: rgba(13, 20, 36, 0.82);
  --border-color: rgba(148, 163, 184, 0.16);
  --border-highlight: rgba(56, 189, 248, 0.45);
  --primary: #1f6feb;
  --primary-light: #38bdf8;
  --primary-dark: #1d4ed8;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px rgba(31, 111, 235, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
}

body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(31, 111, 235, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(14, 165, 233, 0.12) 0%, transparent 38%),
    radial-gradient(circle at 50% 75%, rgba(139, 92, 246, 0.10) 0%, transparent 45%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER / NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 10px rgba(31, 111, 235, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(31, 111, 235, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 111, 235, 0.6);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 64px 0 56px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(31, 111, 235, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-badge .pulse {
  width: 9px;
  height: 9px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.hero h1 {
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero h1 .grad {
  background: linear-gradient(90deg, #60a5fa, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-download-main {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #1f6feb 0%, #0284c7 50%, #0ea5e9 100%);
  color: #fff;
  padding: 15px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.08rem;
  box-shadow: 0 14px 34px rgba(31, 111, 235, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-download-main:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.6);
}

.btn-download-main small {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.9;
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-highlight);
  color: #fff;
  padding: 15px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-secondary-hero:hover {
  background: rgba(56, 189, 248, 0.16);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
}

.preview-frame {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  cursor: zoom-in;
  transition: transform 0.3s ease;
  position: relative;
}

.preview-frame:hover {
  transform: translateY(-4px);
}

.preview-frame img {
  border-radius: 12px;
  width: 100%;
}

.zoom-hint {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  pointer-events: none;
}

/* ==================== STATS / HIGHLIGHTS BAR ==================== */
.stats-bar {
  padding: 20px 0 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 700;
}

/* ==================== SECTION HEADINGS ==================== */
.section {
  padding: 72px 0;
  position: relative;
}

.section-alt {
  background: rgba(13, 20, 36, 0.6);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.sec-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.sec-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.14);
  color: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.sec-head h2 {
  font-size: 2.15rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #fff;
}

.sec-head p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==================== ABOUT PROGRAM SECTION ==================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.about-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(31, 111, 235, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

.feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feat-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: rgba(31, 111, 235, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.feat-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feat-badge.v2 {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.4);
}

.feat-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.feat-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* ==================== CHROME EXTENSION STEP-BY-STEP GUIDE ==================== */
.quick-copy-banner {
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.18), rgba(14, 165, 233, 0.1));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.copy-box {
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-box-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-light);
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-code {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: Consolas, monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--primary-dark);
}

.btn-copy.copied {
  background: var(--accent-green);
}

/* Step Navigation Pills */
.step-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.step-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.step-pill-btn:hover,
.step-pill-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-light);
  box-shadow: 0 6px 18px rgba(31, 111, 235, 0.4);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.25s;
}

.step-card:hover {
  border-color: var(--border-highlight);
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.step-info h3 {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
}

.step-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.step-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.step-points li {
  background: rgba(15, 23, 42, 0.7);
  border-right: 3px solid var(--primary-light);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.93rem;
  color: #e2e8f0;
}

.step-points li code {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-light);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: Consolas, monospace;
  direction: ltr;
  display: inline-block;
}

.step-img-wrap {
  background: #090e1a;
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 8px;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.step-img-wrap:hover {
  transform: scale(1.015);
  border-color: #ef4444;
}

.step-img-wrap img {
  border-radius: 10px;
  width: 100%;
}

/* ==================== OTHER BROWSERS SECTION ==================== */
.browsers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.browser-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.browser-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
}

.browser-box img {
  width: 54px;
  height: 54px;
}

.browser-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.browser-box code {
  background: #0f172a;
  border: 1px solid #334155;
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  direction: ltr;
}

.browser-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==================== DOWNLOAD & FAQ SECTION ==================== */
.download-cta-box {
  background: linear-gradient(135deg, #0f1f3d 0%, #132a52 50%, #0d1b36 100%);
  border: 2px solid var(--border-highlight);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.download-cta-box img.cta-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 20px rgba(31, 111, 235, 0.5));
}

.download-cta-box h2 {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.download-cta-box p {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 26px;
  font-size: 1.05rem;
}

.smartscreen-note {
  max-width: 760px;
  margin: 26px auto 0;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: #fde68a;
  text-align: right;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 18px 22px;
  text-align: right;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-q:hover {
  background: rgba(56, 189, 248, 0.06);
}

.faq-a {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 14px;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

/* ==================== FOOTER ==================== */
.footer {
  background: #050811;
  border-top: 1px solid var(--border-color);
  padding: 44px 0 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.footer-links a {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s;
}

.footer-links a:hover {
  border-color: var(--primary-light);
  color: #fff;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.92);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 14px;
  border: 2px solid var(--border-highlight);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 24px;
  background: #ef4444;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-grid,
  .step-card {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid,
  .browsers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-copy-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: #0b1120;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .features-grid,
  .about-grid,
  .stats-grid,
  .browsers-grid {
    grid-template-columns: 1fr;
  }
  .download-cta-box {
    padding: 28px 18px;
  }
}
