:root {
  --mint:    #3ECFB2;
  --sky:     #5BC8F5;
  --sun:     #FFD84D;
  --coral:   #FF7C6E;
  --violet:  #C778E0;
  --cream:   #FFFDF5;
  --ink:     #1E2A3A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 6vw 3rem;
  overflow: hidden;
}

/* animated background blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .22;
  animation: drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.blob-1 { width: 520px; height: 520px; background: var(--mint);  top: -120px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 380px; height: 380px; background: var(--sun);   bottom: -80px; left: -60px;  animation-delay: 3s; }
.blob-3 { width: 280px; height: 280px; background: var(--violet);top: 40%;   left: 38%;    animation-delay: 1.5s; }
@keyframes drift {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(30px) scale(1.06); }
}

/* ─── TEXT SIDE ───────────────────────────────────────── */
.hero-text { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 2px solid var(--mint);
  color: var(--mint);
  font-size: .82rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
  box-shadow: 0 2px 10px rgba(62,207,178,.2);
  animation: popIn .5s ease both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}

h1 {
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  animation: slideUp .6s ease .1s both;
}
h1 .highlight {
  position: relative;
  display: inline-block;
  color: var(--coral);
}
h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 8px;
  background: var(--sun);
  border-radius: 4px;
  z-index: -1;
  opacity: .6;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.85;
  color: #4a5568;
  max-width: 500px;
  margin-bottom: 2rem;
  animation: slideUp .6s ease .2s both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideUp .6s ease .3s both;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), #ff4f7b);
  color: #fff;
  text-decoration: none;
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  padding: .8rem 2rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(255,79,123,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255,79,123,.45); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
  transition: gap .2s;
}
.btn-secondary:hover { gap: .7rem; }
.btn-secondary .arrow { font-size: 1.1rem; }

.trust-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
  animation: slideUp .6s ease .4s both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: #718096;
  font-weight: 600;
}
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* ─── VISUAL SIDE ─────────────────────────────────────── */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUp .7s ease .15s both;
}

.jelly-board {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border-radius: 32px;
  padding: 2.2rem 2rem;
  box-shadow:
    0 20px 60px rgba(0,0,0,.09),
    inset 0 1px 0 rgba(255,255,255,.9);
  border: 2px solid rgba(255,255,255,.6);
}

.jelly-title {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

.letter-cell {
  aspect-ratio: 1;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo Bhaijaan 2', cursive;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  animation: jellyPop .4s ease both;
  position: relative;
  overflow: hidden;
}
.letter-cell::after {
  content: '';
  position: absolute;
  top: 6px; left: 10px;
  width: 40%; height: 16%;
  background: rgba(255,255,255,.35);
  border-radius: 50%;
  filter: blur(2px);
}
.letter-cell:hover {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
@keyframes jellyPop {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* cell colors */
.c1  { background: linear-gradient(135deg, #FF7C6E, #FF5252); animation-delay:.05s }
.c2  { background: linear-gradient(135deg, #5BC8F5, #1A9FD4); animation-delay:.10s }
.c3  { background: linear-gradient(135deg, #FFD84D, #FFA726); animation-delay:.15s }
.c4  { background: linear-gradient(135deg, #C778E0, #9B4DCA); animation-delay:.20s }
.c5  { background: linear-gradient(135deg, #3ECFB2, #0FA88B); animation-delay:.25s }
.c6  { background: linear-gradient(135deg, #FF7C6E, #E64980); animation-delay:.30s }
.c7  { background: linear-gradient(135deg, #5BC8F5, #3ECFB2); animation-delay:.35s }
.c8  { background: linear-gradient(135deg, #FFD84D, #FF7C6E); animation-delay:.40s }
.c9  { background: linear-gradient(135deg, #C778E0, #5BC8F5); animation-delay:.45s }
.c10 { background: linear-gradient(135deg, #3ECFB2, #5BC8F5); animation-delay:.50s }
.c11 { background: linear-gradient(135deg, #FFD84D, #C778E0); animation-delay:.55s }
.c12 { background: linear-gradient(135deg, #FF7C6E, #5BC8F5); animation-delay:.60s }

.progress-bar-wrap {
  margin-top: 1.4rem;
  background: #f0f4f8;
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 58%;
  background: linear-gradient(90deg, var(--mint), var(--sky));
  border-radius: 50px;
  animation: fillBar 1.4s ease 1s both;
}
@keyframes fillBar {
  from { width: 0; }
  to   { width: 58%; }
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: #a0aec0;
  font-weight: 600;
  margin-top: .4rem;
}

/* floating badges */
.float-badge {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: .5rem .9rem;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.11);
  display: flex;
  align-items: center;
  gap: .4rem;
  animation: floatLoop 3.5s ease-in-out infinite alternate;
}
.fb-top { top: -18px; left: -20px; color: var(--coral); animation-delay: 0s; }
.fb-bot { bottom: -18px; right: -20px; color: var(--violet); animation-delay: 1s; }
@keyframes floatLoop {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

/* ─── FEATURES STRIP ──────────────────────────────────── */
.features-strip {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 6vw 3.5rem;
  position: relative;
  z-index: 2;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  border: 1.5px solid #e8edf3;
  border-radius: 50px;
  padding: .6rem 1.3rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.feature-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.pill-icon {
  font-size: 1.1rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 5vw 2rem;
    text-align: center;
    min-height: auto;
  }
  .hero-desc { margin: 0 auto 2rem; }
  .cta-group, .trust-row { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .jelly-board { max-width: 340px; }
  .fb-top { left: -10px; }
  .fb-bot { right: -10px; }
}
@media (max-width: 500px) {
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; }
  .letters-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .letter-cell { font-size: 1.4rem; border-radius: 14px; }
}
