/* landing.css — Shatir landing page (PRD §34.3.1)
 * v2.0  2026-05-21 — Brand refresh: DeepSeek-inspired blue/purple palette,
 *                    Gemini-style Noto Kufi/Sans Arabic typography, neural-grid
 *                    hero background, animated AI chat demo with typing indicator,
 *                    AI strip section emphasising tech identity.
 *                    Schools CTA section removed — schools now have a dedicated
 *                    portal flow (schools-login.html → schools-dashboard.html).
 */

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 7rem);
  background: white;
}

/* Decorative AI-flavoured background — pure CSS, zero-asset */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(77, 107, 254, 0.10) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(139, 92, 246, 0.06) 1px, transparent 1.5px);
  background-size: 28px 28px, 56px 56px;
  background-position: 0 0, 14px 14px;
  mask-image: radial-gradient(ellipse at center top, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, transparent 80%);
  opacity: 0.9;
}
.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-bg-glow--blue {
  width: 480px; height: 480px;
  background: var(--primary-500);
  top: -160px; right: -120px;
  opacity: 0.18;
}
.hero-bg-glow--purple {
  width: 380px; height: 380px;
  background: var(--purple-500);
  bottom: -120px; left: -80px;
  opacity: 0.15;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 1.35rem; }

.hero-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--primary-700);
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--primary-100);
  box-shadow: var(--shadow-card);
}
.hero-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(77, 107, 254, 0.18);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(77, 107, 254, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(77, 107, 254, 0.08); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.025em;
}
.hero-title .accent-gradient {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--indigo-500) 50%, var(--purple-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-700);
  margin: 0;
  max-width: 58ch;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.btn-icon { display: inline-block; }

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.hero-mini-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mini-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  background: linear-gradient(135deg, var(--primary-600), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.hero-mini-stats span { font-size: 0.75rem; color: var(--ink-500); margin-top: 2px; font-weight: 500; }

/* ── Phone mockup with AI chat demo ─────────────────────────── */
.hero-visual { display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: clamp(280px, 30vw, 360px);
  background: var(--ink-900);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow-elev), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.phone-frame-glow {
  position: absolute;
  inset: -20px;
  border-radius: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  filter: blur(40px);
  opacity: 0.35;
  z-index: -1;
  animation: glow-rotate 8s ease-in-out infinite;
}
@keyframes glow-rotate {
  0%, 100% { opacity: 0.35; transform: rotate(0deg); }
  50%      { opacity: 0.5;  transform: rotate(180deg); }
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: var(--ink-900);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, white 0%, var(--primary-50) 100%);
  border-radius: 28px;
  padding: 2.5rem 1rem 1.25rem;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ink-700);
  font-weight: 700;
  padding: 0 0.5rem 0.3rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.phone-status-icons { letter-spacing: 1px; }
.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 0.4rem;
}
.phone-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
}
.phone-ai-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  animation: pulse-dot 2s ease-in-out infinite;
}
.phone-chat { display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }

.chat-bubble {
  padding: 0.7rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 88%;
  animation: bubble-in 0.6s ease both;
  position: relative;
}
.bubble-user {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  align-self: flex-start;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 12px rgba(77, 107, 254, 0.25);
}
.bubble-ai {
  background: white;
  color: var(--ink-800);
  align-self: flex-end;
  border-bottom-left-radius: 6px;
  border: 1px solid var(--ink-100);
  animation-delay: 0.25s;
  position: relative;
}
.bubble-ai-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.bubble-ai--typing {
  animation-delay: 1.4s;
  padding: 0.85rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  max-width: max-content;
}
.typing-dot {
  width: 8px; height: 8px;
  background: var(--primary-400);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s;  }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Features grid ─────────────────────────────────────────── */
.features { background: white; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elev);
  border-color: var(--primary-200);
}
.feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--primary-100);
}
.feature-icon { font-size: 1.85rem; line-height: 1; }
.feature-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.feature-card p { margin: 0; color: var(--ink-700); font-size: 0.95rem; line-height: 1.7; }

/* ── AI Strip — dark band emphasising AI tech identity ─────── */
.ai-strip {
  background: linear-gradient(135deg, var(--ink-900) 0%, #1A2A6C 50%, #2E1A6B 100%);
  color: white;
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.ai-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.ai-strip-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ai-strip-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-200);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}
.ai-strip-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ai-strip-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 56ch;
}
.ai-strip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}
.ai-pill {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Download ───────────────────────────────────────────────── */
.download { background: var(--primary-50); position: relative; overflow: hidden; }
.download::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 200px;
  background: radial-gradient(ellipse, rgba(77, 107, 254, 0.10), transparent 70%);
  pointer-events: none;
}
.download .container { position: relative; z-index: 1; }
.download-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.6rem;
  background: var(--ink-900);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(15, 17, 23, 0.18);
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 17, 23, 0.28);
}
.store-icon { display: inline-flex; align-items: center; line-height: 1; color: white; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: 0.72rem; opacity: 0.75; }
.store-text strong { font-size: 1.1rem; font-weight: 700; }
.download-help { text-align: center; margin: 1.75rem 0 0; color: var(--ink-500); font-size: 0.9rem; }
.download-help a { color: var(--primary-700); font-weight: 700; text-decoration: none; }
.download-help a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .ai-strip-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .ai-strip-pills { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-mini-stats { grid-template-columns: 1fr; gap: 0.5rem; }
  .phone-frame { width: 280px; }
}
