:root {
  --bg: #0b1120;
  --bg-alt: #111827;
  --surface: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #8b5cf6;
  --mobilis: #2563eb;
  --djezzy: #16a34a;
  --ooredoo: #dc2626;
  --at: #0284c7;
  --radius: 14px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-en: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

html[lang="en"] body,
html[lang="fr"] body {
  font-family: var(--font-en);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 4vw;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-inline: auto;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--surface);
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.lang-btn--active {
  background: var(--primary);
  color: #fff;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #6d28d9);
}

.btn--ghost {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn--light {
  background: #fff;
  color: var(--bg);
}

.btn--light:hover {
  background: #e2e8f0;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}

.hero__glow {
  position: absolute;
  inset: -40% 10% auto;
  height: 70%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.25), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 30%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__version {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__version strong {
  color: var(--text);
}

/* Phone mock */
.phone-mock {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.phone-mock__bar {
  height: 8px;
  width: 40%;
  margin: 0 auto 1rem;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 999px;
}

.phone-mock__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.phone-mock__row--mobilis {
  background: rgba(37, 99, 235, 0.2);
  border-inline-start: 4px solid var(--mobilis);
}

.phone-mock__row--djezzy {
  background: rgba(22, 163, 74, 0.2);
  border-inline-start: 4px solid var(--djezzy);
}

.phone-mock__row--ooredoo {
  background: rgba(220, 38, 38, 0.2);
  border-inline-start: 4px solid var(--ooredoo);
}

.phone-mock__row--at {
  background: rgba(2, 132, 199, 0.2);
  border-inline-start: 4px solid var(--at);
}

.phone-mock__balance {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Operators */
.operators {
  padding: 2rem 0;
  border-block: 1px solid rgba(148, 163, 184, 0.1);
}

.section-label {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.operators__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.op-chip {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.op-chip--mobilis {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
}

.op-chip--djezzy {
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
}

.op-chip--ooredoo {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
}

.op-chip--at {
  background: rgba(2, 132, 199, 0.2);
  color: #7dd3fc;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
}

.section__title--light {
  color: #fff;
  text-align: start;
}

.section__subtitle {
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
  max-width: 52ch;
}

/* Features */
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 640px;
  margin-inline: auto;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cloud */
.cloud__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cloud__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.cloud__desc {
  color: var(--text-muted);
  margin: 0;
  max-width: 42ch;
}

.sync-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed rgba(59, 130, 246, 0.4);
  font-weight: 600;
}

.sync-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.sync-card__arrow {
  color: var(--primary);
  font-size: 1.25rem;
}

/* Download */
.download {
  background: linear-gradient(135deg, #1d4ed8 0%, #5b21b6 100%);
}

.download__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.download__subtitle {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.download__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.download__note a {
  color: #fff;
  font-weight: 600;
}

.download__btn {
  flex-shrink: 0;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .download__btn {
    width: 100%;
  }
}
