/* ===== Light Theme Variables ===== */
:root {
  --bg: #2563eb;
  --bg-soft: #1d4ed8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-on-blue: #ffffff;
  --text-muted-on-blue: rgba(255, 255, 255, 0.82);
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-2: #0d9488;
  --accent-soft: #dbeafe;
  --accent-2-soft: #ccfbf1;
  --warm: #f59e0b;
  --whatsapp: #16a34a;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(37, 99, 235, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Almarai', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: linear-gradient(165deg, #1e3a8a 0%, #2563eb 45%, #3b82f6 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 88px;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

.container {
  width: min(100% - 2rem, 500px);
  margin-inline: auto;
}

/* ===== Background ===== */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-blob--1 {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.12);
  top: -80px;
  right: -60px;
}

.bg-blob--2 {
  width: 280px;
  height: 280px;
  background: rgba(96, 165, 250, 0.25);
  top: 35%;
  left: -100px;
}

.bg-blob--3 {
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
  bottom: 10%;
  right: -50px;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

main, .site-header, .sticky-bar {
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.site-header {
  padding: 1rem 0 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===== Hero ===== */
.hero {
  padding: 1.5rem 0 1rem;
  text-align: center;
}

.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.hero__visual {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
}

.hero__circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent-2-soft));
  border: 2px solid #bfdbfe;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}

.hero__circle-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}

.hero__orbit {
  position: absolute;
  inset: -8px;
  border: 2px dashed #93c5fd;
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__title {
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.hero__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin-inline: auto;
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  direction: ltr;
}

/* ===== Quick Nav ===== */
.quick-nav {
  padding: 1rem 0;
}

.quick-nav__track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quick-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: calc(var(--radius-lg) - 4px);
  transition: all 0.2s ease;
}

.quick-nav__item svg {
  color: var(--accent);
  opacity: 0.65;
  transition: opacity 0.2s;
}

.quick-nav__item--active,
.quick-nav__item:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.quick-nav__item--active svg,
.quick-nav__item:hover svg {
  opacity: 1;
}

/* ===== Sections ===== */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  line-height: 1.5;
  color: var(--text-on-blue);
}

.section-head p {
  font-size: 0.85rem;
  color: var(--text-muted-on-blue);
}

.contact {
  padding: 0.5rem 0 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: scale(0.98);
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.btn__text {
  flex: 1;
  text-align: center;
}

.btn__arrow {
  opacity: 0.75;
  flex-shrink: 0;
}

.btn--call {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #15803d, var(--whatsapp));
  color: #fff;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.2);
}

/* ===== Features ===== */
.features {
  padding: 0 0 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-card--wide {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  border-right: 4px solid var(--accent);
}

.feature-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-card__icon--shield {
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-card__icon--fiber {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}

.feature-card__icon--5g {
  background: #fef3c7;
  color: #d97706;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.features__grid .feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.features__grid .feature-card:first-child {
  border-bottom: 3px solid var(--accent-2);
}

.features__grid .feature-card:last-child {
  border-bottom: 3px solid var(--warm);
}

.feature-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.feature-card__tags li {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.packages-banner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.packages-banner__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.packages-banner p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.packages-banner__link {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  padding: 0.45rem 0.9rem;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ===== Footer / Legal (inline, single page) ===== */
.footer {
  padding: 1rem 0 1.5rem;
}

.legal-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.legal-box__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-box p + p {
  margin-top: 0.6rem;
}

.footer__copy {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted-on-blue);
}

/* ===== Sticky bar ===== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  z-index: 200;
}

.sticky-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 0.15s;
}

.sticky-bar__btn:active {
  transform: scale(0.97);
}

.sticky-bar__btn--call {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.sticky-bar__btn--wa {
  background: linear-gradient(135deg, #15803d, var(--whatsapp));
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .container {
    max-width: 540px;
  }

  .quick-nav__item {
    flex-direction: row;
    font-size: 0.8rem;
    padding: 0.75rem 0.85rem;
  }

  .packages-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
