:root {
  --brand-950: #0b1f36;
  --brand-900: #0e2a47;
  --brand-800: #10365e;
  --brand-700: #184a78;
  --brand-500: #2b7cd3;
  --brand-400: #56a3ff;
  --accent-600: #16a34a;
  --accent-500: #22c55e;
  --accent-400: #34d399;
  --warning-500: #f59e0b;
  --text-900: #101828;
  --text-700: #344054;
  --text-500: #667085;
  --bg-100: #f8fafc;
  --bg-200: #f1f5f9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --w-container: min(1120px, 92vw);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --fs-100: clamp(12px, 0.75rem + 0.1vw, 14px);
  --fs-200: clamp(14px, 0.85rem + 0.1vw, 16px);
  --fs-300: clamp(16px, 1rem + 0.2vw, 18px);
  --fs-400: clamp(18px, 1.05rem + 0.4vw, 22px);
  --fs-500: clamp(22px, 1.3rem + 0.6vw, 28px);
  --fs-600: clamp(28px, 1.6rem + 1vw, 36px);
  --fs-700: clamp(34px, 2rem + 1.2vw, 44px);
  --fs-800: clamp(40px, 2.4rem + 1.4vw, 56px);
}

/* Dark theme */
html[data-theme="dark"] {
  --brand-950: #071426;
  --brand-900: #0b1b30;
  --brand-800: #0f2949;
  --brand-700: #153c64;
  --brand-500: #2b7cd3;
  --brand-400: #56a3ff;
  --accent-600: #15803d;
  --accent-500: #16a34a;
  --accent-400: #22c55e;
  --text-900: #e5e7eb;
  --text-700: #cbd5e1;
  --text-500: #94a3b8;
  --bg-100: #0b1220;
  --bg-200: #0f172a;
  --surface: #0f1626;
  --border: #1f2937;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(86,163,255,0.18), rgba(86,163,255,0)), var(--bg-100);
  color: var(--text-900);
  line-height: 1.7;
}
img, svg { display: block; max-width: 100%; }

.container { width: var(--w-container); margin-inline: auto; }
.section { padding: var(--space-20) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-200), transparent); }
.section__header { text-align: center; margin-bottom: var(--space-12); }
.section__title { font-size: var(--fs-600); margin-bottom: var(--space-3); }
.section__subtitle { color: var(--text-500); font-size: var(--fs-200); }

.grid { display: grid; gap: var(--space-8); }
.grid--2cols { grid-template-columns: 1fr 1fr; }
.grid--3cols { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px) {
  .grid--2cols { grid-template-columns: 1fr; }
  .grid--3cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--3cols { grid-template-columns: 1fr; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 42, 71, 0.8);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) 0; }
.logo { color: #fff; font-weight: 800; font-size: 22px; letter-spacing: 0.3px; text-decoration: none; position: relative; }
.logo::after { content: ""; position: absolute; inset-inline-end: -10px; top: 55%; width: 6px; height: 6px; background: var(--accent-500); border-radius: 50%; box-shadow: 0 0 10px var(--accent-500); animation: blink 2.4s infinite; }
@keyframes blink { 70% { opacity: .3; transform: scale(.9);} 100% { opacity: 1; transform: scale(1);} }

.nav { position: relative; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2); background: transparent; cursor: pointer; align-items: center; justify-content: center; gap: 4px; }
.nav__bar { width: 22px; height: 2px; background: #fff; display: block; }
.nav__list { list-style: none; display: flex; gap: var(--space-6); margin: 0; padding: 0; }
.nav__list a { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.95; }
.nav__list a:hover, .nav__list a.is-active { opacity: 1; border-bottom: 2px solid var(--brand-400); padding-bottom: 4px; }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__list {
    position: absolute;
    inset-inline-start: 0; inset-inline-end: 0;
    top: calc(100% + 10px);
    background: var(--surface);
    color: var(--text-900);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: var(--space-4);
    display: none;
    flex-direction: column;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { color: var(--text-900); padding: var(--space-2) var(--space-3); border-bottom: none; }
}

/* Hero */
.hero { padding-top: var(--space-16); background: radial-gradient(900px 420px at 25% 20%, rgba(43,124,211,0.35), rgba(43,124,211,0)), linear-gradient(180deg, var(--brand-900), var(--brand-800)); color: #fff; overflow: hidden; position: relative; }
.hero__grid { align-items: center; }
.hero__title { font-size: var(--fs-800); line-height: 1.15; margin-bottom: var(--space-4); }
.gradient-text { background: linear-gradient(90deg, #fff, #cfe3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { font-size: var(--fs-300); color: rgba(255,255,255,0.9); margin-bottom: var(--space-8); }
.hero__actions { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); }
.hero__bullets { list-style: none; display: flex; gap: var(--space-6); padding: 0; margin: 0; color: rgba(255,255,255,0.9); font-size: var(--fs-200); flex-wrap: wrap; }
.hero__badges { display: flex; gap: var(--space-4); margin-top: var(--space-6); flex-wrap: wrap; }
.badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 8px 12px; border-radius: 999px; font-size: 13px; }

/* Decorative orbs */
.orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(18px); opacity: .35; }
.orb--1 { background: radial-gradient(circle at 30% 30%, var(--brand-400), transparent 70%); top: 10%; inset-inline-start: 6%; animation: float 8s ease-in-out infinite; }
.orb--2 { background: radial-gradient(circle at 70% 70%, var(--accent-400), transparent 70%); bottom: 15%; inset-inline-end: 10%; animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(-6px);} 50% { transform: translateY(6px);} }

.hero__visual { display: grid; place-items: center; }
.phone-mockup { width: min(340px, 72vw); aspect-ratio: 9/19.5; border-radius: 34px; padding: 14px; background: linear-gradient(145deg, #0b2038, #153455); box-shadow: inset 0 2px 6px rgba(255,255,255,0.08), 0 25px 45px rgba(0,0,0,0.35); }
.phone__screen { height: 100%; border-radius: 26px; background: #0a1626; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.screen__header { position: absolute; top: 14px; inset-inline: 14px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.06); display: grid; place-items: center; color: #cfe3ff; font-weight: 700; font-size: 14px; }
.screen__card { position: relative; margin: 64px 18px 0; height: 58px; border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.12); }
.screen__card + .screen__card { margin-top: 12px; }
.pulse { position: absolute; width: 120px; height: 120px; top: 36%; inset-inline-start: 24px; border-radius: 50%; background: radial-gradient(circle at center, rgba(43,124,211,0.55), rgba(43,124,211,0) 70%); filter: blur(8px); animation: pulse 4s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: 0.75;} 50% { transform: scale(1.05); opacity: 1; } }

.wave { position: absolute; inset-inline: 0; bottom: -1px; color: var(--bg-100); }
.wave svg { width: 100%; height: 100px; display: block; }
.wave path { fill: currentColor; }

/* Cards */
.cards { align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, background .25s ease; position: relative; overflow: hidden; }
.card::after { content:""; position:absolute; inset: -40% -60% auto auto; height: 120px; width: 120px; background: radial-gradient(closest-side, rgba(86,163,255,.18), rgba(86,163,255,0)); transform: rotate(35deg); }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(2,6,23,0.14); }
.card__icon { font-size: 28px; line-height: 1; }
.card__title { font-size: var(--fs-400); margin-top: var(--space-4); margin-bottom: var(--space-3); }
.card__text { color: var(--text-700); }

.card--media { padding: 0; overflow: hidden; }
.card--media .media { aspect-ratio: 16/9; background: linear-gradient(135deg, #dbeafe, #e0e7ff); }
html[data-theme="dark"] .card--media .media { background: linear-gradient(135deg, #0f1a2a, #13203a); }
.card--media .card__body { padding: var(--space-6); }
.card__tags { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.tag { background: var(--bg-200); color: var(--text-700); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline__item { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-4); align-items: start; }
.timeline__dot { width: 18px; height: 18px; background: var(--brand-500); border: 2px solid #fff; border-radius: 50%; box-shadow: var(--shadow); margin-top: 6px; }
.timeline__content h3 { margin: 0 0 var(--space-2); font-size: var(--fs-300); }
.timeline__content p { margin: 0; color: var(--text-700); }

/* Pricing */
.pricing { align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow); text-align: center; position: relative; overflow:hidden; }
.price-card--featured { border-color: var(--brand-500); box-shadow: 0 18px 48px rgba(43,124,211,0.25); transform: translateY(-4px); }
.price-card--featured::before { content:""; position:absolute; inset: 0; background: radial-gradient(800px 200px at 50% 0, rgba(86,163,255,.25), rgba(86,163,255,0)); }
.price-card__title { font-size: var(--fs-400); margin-bottom: var(--space-4); }
.price-card__price { font-size: var(--fs-500); margin-bottom: var(--space-4); color: var(--brand-500); }
.price-card__features { list-style: none; padding: 0; margin: 0 0 var(--space-6); color: var(--text-700); display: grid; gap: 8px; }

/* About */
.about { align-items: center; }
.list { padding: 0; margin: var(--space-4) 0 0; list-style: none; display: grid; gap: 8px; }
.list--check li::before { content: "✔"; color: var(--accent-500); margin-inline-start: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; box-shadow: var(--shadow); }
.stat__num { font-size: var(--fs-500); color: var(--brand-500); font-weight: 800; }
.stat__label { color: var(--text-500); }

/* Quotes */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 var(--space-3); font-size: var(--fs-300); }
.quote figcaption { color: var(--text-500); font-size: var(--fs-200); }

/* Buttons */
.btn { --btn-bg: var(--brand-500); --btn-color: #fff; --btn-border: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-color); text-decoration: none; font-weight: 800; letter-spacing: .2px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; box-shadow: 0 8px 20px rgba(43,124,211,0.25); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43,124,211,0.35); }
.btn--primary { --btn-bg: linear-gradient(135deg, var(--brand-500), var(--brand-400)); }
.btn--secondary { --btn-bg: transparent; --btn-color: #fff; --btn-border: rgba(255,255,255,0.5); box-shadow: none; }
html[data-theme="dark"] .btn--secondary { --btn-color: var(--text-900); --btn-border: var(--border); }
.btn--ghost { --btn-bg: transparent; --btn-color: #fff; --btn-border: rgba(255,255,255,0.25); box-shadow: none; }
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content:""; position:absolute; top: 0; bottom: 0; inset-inline-start: -120%; width: 120%; background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: skewX(-22deg); transition: .5s; }
.btn--shine:hover::after { inset-inline-start: 120%; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: .6s ease; }
.reveal.is-inview { opacity: 1; transform: translateY(0); }

/* Forms */
.form__grid { align-items: start; }
.form__field { display: grid; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
label { font-weight: 800; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-900); outline: none; transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
input:hover, select:hover, textarea:hover { transform: translateY(-1px); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(43,124,211,0.2); }
.error { color: #e11d48; height: 16px; font-size: 12px; }
.form__actions { display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-6); }
.form__note { color: var(--text-500); }
.alert { margin-top: var(--space-4); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); }
.alert.is-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
html[data-theme="dark"] .alert.is-success { background: #052e27; border-color: #134e4a; color: #a7f3d0; }
html[data-theme="dark"] .alert.is-error { background: #3f1d1d; border-color: #7f1d1d; color: #fecaca; }

/* Footer */
.site-footer { background: linear-gradient(180deg, var(--brand-900), var(--brand-950)); color: #fff; padding: var(--space-12) 0 var(--space-6); margin-top: var(--space-16); position: relative; overflow: hidden; }
.site-footer::before { content:""; position:absolute; inset: -20% 20% auto auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(86,163,255,.2), rgba(86,163,255,0)); filter: blur(18px); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); align-items: start; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__links a { color: #cbd5e1; text-decoration: none; }
.footer__links a:hover { color: #fff; }
.social { display: flex; gap: var(--space-4); align-items: center; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--space-10); padding-top: var(--space-6); color: #cbd5e1; text-align: center; }

/* Back to top */
.back-to-top { position: fixed; inset-inline-end: 18px; bottom: 24px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-900); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Utilities */
.muted { color: #cbd5e1; }

/* Section scroll offset for sticky header */
section { scroll-margin-top: 90px; }

/* Blog & Legal Content Styles */
.article-content, .legal-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}
.article-content h1, .legal-content h1 {
  font-size: var(--fs-600);
  margin-bottom: var(--space-6);
  color: var(--brand-900);
}
.article-content h2, .legal-content h2 {
  font-size: var(--fs-400);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--brand-500);
}
.article-content h3, .legal-content h3 {
  font-size: var(--fs-300);
  margin-top: var(--space-6);
  color: var(--text-900);
}
.article-content p, .legal-content p,
.article-content ul, .legal-content ul {
  color: var(--text-700);
  margin-bottom: var(--space-4);
}
.article-content ul, .legal-content ul {
  padding-right: var(--space-6);
}
.article-content li, .legal-content li {
  margin-bottom: var(--space-2);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) 0;
  font-size: 0.95rem;
}
.comparison-table th, .comparison-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: center;
  color: var(--text-700);
}
.comparison-table th {
  background-color: var(--bg-200);
  font-weight: 700;
  color: var(--brand-900);
}
