/* ==========================================================================
   Ghayah (غاية) — Official Landing Page & Legal Portal Stylesheet
   Palette: Crisp White (#FFFFFF) + Rose Gradient (#D43D68 -> #FF6F91)
   ========================================================================== */

:root {
  --white: #ffffff;
  --bg-soft: #fff6f8;
  --bg-blush: #fdecef;
  --surface: #ffffff;
  --rose: #D43D68;
  --rose-mid: #e8527d;
  --rose-light: #ff7597;
  --rose-deep: #a62449;
  --rose-ink: #3b1020;
  --rose-tint: rgba(212, 61, 104, 0.08);
  --rose-tint-strong: rgba(212, 61, 104, 0.15);
  --grad-main: linear-gradient(135deg, #D43D68 0%, #e95580 55%, #ff789a 100%);
  --grad-deep: linear-gradient(135deg, #ad234a 0%, #D43D68 55%, #f06088 100%);
  --grad-soft: linear-gradient(180deg, #ffffff 0%, #fff5f8 50%, #ffffff 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #fff9fb 100%);
  --text: #1e1620;
  --text-sub: #5d5160;
  --text-muted: #8b7d8e;
  --border: #f2dfe6;
  --border-strong: #eccad6;
  --green: #16a34a;
  --shadow-sm: 0 4px 16px rgba(212, 61, 104, 0.06);
  --shadow-md: 0 14px 38px rgba(212, 61, 104, 0.11);
  --shadow-lg: 0 28px 70px rgba(166, 36, 73, 0.18);
  --shadow-phone: 0 35px 80px rgba(145, 28, 63, 0.25), 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--rose);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ambient Decorative Blurs ---------- */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Typography Helpers ---------- */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose-tint);
  color: var(--rose);
  border: 1px solid rgba(212, 61, 104, 0.18);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(212, 61, 104, 0.2);
  animation: pulseDot 2s infinite;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 14px;
}

.text-grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  font-size: 18px;
  color: var(--text-sub);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-main);
  color: var(--white) !important;
  box-shadow: 0 10px 26px rgba(212, 61, 104, 0.32);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(212, 61, 104, 0.44);
}

.btn-outline {
  background: var(--white);
  color: var(--rose) !important;
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--rose);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 15px;
}

/* ---------- Sticky Glass Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(242, 223, 230, 0.8);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(212, 61, 104, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(212, 61, 104, 0.25);
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-tint);
  padding: 2px 9px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-main);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--rose);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-drawer.open {
  display: grid;
  gap: 12px;
}

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}

.mobile-drawer a:hover {
  background: var(--bg-soft);
  color: var(--rose);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 61, 104, 0.11) 0%, transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(255, 117, 151, 0.12) 0%, transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(212, 61, 104, 0.06) 0%, transparent 50%),
    var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.28;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.hero-lead {
  font-size: 19.5px;
  color: var(--text-sub);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img,
.avatar-stack .more-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-inline-start: -12px;
  box-shadow: 0 4px 12px rgba(212, 61, 104, 0.15);
  background: var(--bg-soft);
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-inline-start: 0;
}

.avatar-stack .more-pill {
  display: grid;
  place-items: center;
  background: var(--grad-main);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.trust-copy strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.trust-copy span {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Realistic iPhone App Chat Mockup ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 61, 104, 0.26) 0%, rgba(255, 117, 151, 0.08) 55%, transparent 75%);
  z-index: 0;
  animation: breathe 5s ease-in-out infinite;
}

.iphone-frame {
  position: relative;
  z-index: 2;
  width: 336px;
  background: linear-gradient(145deg, #2d1522 0%, #170b12 100%);
  border-radius: 48px;
  padding: 11px;
  box-shadow: var(--shadow-phone);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.iphone-notch {
  width: 106px;
  height: 24px;
  background: #12080e;
  border-radius: 999px;
  margin: 6px auto 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
}

.iphone-notch::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #3b5998 0%, #111 70%);
}

.app-screen {
  background: #fcf8fa;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 590px;
  border: 1px solid rgba(212, 61, 104, 0.1);
}

/* App Chat Header (mirrors ChatAppBar in Flutter) */
.chat-topbar {
  background: var(--white);
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.chat-peer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.peer-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
}

.peer-avatar-wrap img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(212, 61, 104, 0.25);
}

.online-dot {
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--white);
}

.peer-meta h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.verified-pill {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  font-size: 10px;
}

.peer-meta span {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
}

.chat-top-actions {
  display: flex;
  gap: 6px;
}

.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--rose);
  display: grid;
  place-items: center;
}

/* Pinned Message / Safety Notice Bar (mirrors PinnedMessageBar) */
.pinned-bar {
  background: linear-gradient(90deg, #fff0f4 0%, #fff7f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--rose-deep);
  font-weight: 600;
}

/* Chat Stream Body */
.chat-stream {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 61, 104, 0.04) 0%, transparent 65%),
    #fcf8fa;
}

.chat-date-chip {
  align-self: center;
  background: rgba(212, 61, 104, 0.09);
  color: var(--rose-deep);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 2px;
}

.msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 12.8px;
  line-height: 1.55;
  position: relative;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.msg.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.msg-out {
  align-self: flex-start;
  background: var(--grad-main);
  color: var(--white);
  border-bottom-right-radius: 5px;
  box-shadow: 0 6px 16px rgba(212, 61, 104, 0.22);
}

.msg-in {
  align-self: flex-end;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.msg-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  opacity: 0.78;
  margin-top: 3px;
}

/* Voice Note Waveform Bubble (mirrors audio_waveform_widget.dart) */
.voice-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 185px;
}

.voice-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  color: inherit;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.msg-in .voice-play {
  background: var(--rose-tint);
  color: var(--rose);
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 22px;
  flex: 1;
}

.wave-bars span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.85;
  animation: waveAnim 1.2s ease-in-out infinite;
}

.wave-bars span:nth-child(1) { height: 35%; animation-delay: 0.0s; }
.wave-bars span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.wave-bars span:nth-child(3) { height: 95%; animation-delay: 0.2s; }
.wave-bars span:nth-child(4) { height: 55%; animation-delay: 0.3s; }
.wave-bars span:nth-child(5) { height: 85%; animation-delay: 0.4s; }
.wave-bars span:nth-child(6) { height: 45%; animation-delay: 0.5s; }
.wave-bars span:nth-child(7) { height: 90%; animation-delay: 0.2s; }
.wave-bars span:nth-child(8) { height: 60%; animation-delay: 0.35s; }
.wave-bars span:nth-child(9) { height: 75%; animation-delay: 0.15s; }
.wave-bars span:nth-child(10) { height: 40%; animation-delay: 0.45s; }
.wave-bars span:nth-child(11) { height: 65%; animation-delay: 0.25s; }
.wave-bars span:nth-child(12) { height: 30%; animation-delay: 0.05s; }

/* In-Chat Trivia Icebreaker Card (mirrors games/trivia in Flutter) */
.trivia-card {
  align-self: center;
  width: 96%;
  background: var(--white);
  border: 1.5px solid rgba(212, 61, 104, 0.26);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(212, 61, 104, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.45s ease;
}

.trivia-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.trivia-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 5px;
}

.trivia-q {
  font-size: 12.2px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.trivia-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--rose-deep);
  font-weight: 700;
}

/* Typing indicator */
.typing-bubble {
  align-self: flex-end;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 14px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  transition: opacity 0.25s ease;
}

.typing-bubble.hidden {
  display: none;
}

.typing-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  display: block;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-bubble i:nth-child(2) { animation-delay: 0.15s; }
.typing-bubble i:nth-child(3) { animation-delay: 0.3s; }

/* Chat Input Bar (mirrors ChatUIField) */
.chat-inputbar {
  background: var(--white);
  padding: 9px 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
}

.chat-game-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--rose-tint);
  color: var(--rose);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-fake-input {
  flex: 1;
  background: #f7f1f4;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-main);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(212, 61, 104, 0.3);
}

/* Floating Glass Cards around Hero Phone */
.float-card {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 61, 104, 0.18);
  border-radius: 18px;
  padding: 11px 15px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.float-card img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.float-card strong {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.25;
}

.float-card span {
  font-size: 11.5px;
  color: var(--rose);
  font-weight: 700;
}

.float-1 {
  top: 46px;
  right: -18px;
  animation: floatY 4.5s ease-in-out infinite;
}

.float-2 {
  bottom: 84px;
  left: -24px;
  animation: floatY 5.2s ease-in-out infinite 1.2s;
}

.float-3 {
  top: 230px;
  left: -30px;
  animation: floatY 4.8s ease-in-out infinite 0.6s;
}

/* ---------- Stats Strip ---------- */
.stats-band {
  margin-top: -40px;
  position: relative;
  z-index: 5;
  padding-bottom: 36px;
}

.stats-grid {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 6px 12px;
  border-left: 1px solid var(--border);
}

.stat-item:last-child {
  border-left: none;
}

.stat-num {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-sub);
}

/* ---------- Features Bento Grid ---------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-soft {
  background: var(--grad-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-card:hover::before {
  opacity: 1;
}

.feat-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--rose-tint);
  color: var(--rose);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feat-icon {
  background: var(--grad-main);
  color: var(--white);
  transform: scale(1.06) rotate(-3deg);
}

.feature-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 15.8px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ---------- Interactive App Experience Section ---------- */
.showcase-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.showcase-tabs {
  display: grid;
  gap: 16px;
}

.tab-btn {
  text-align: right;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.28s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.tab-btn:hover {
  border-color: var(--border-strong);
  background: #fffafb;
}

.tab-btn.active {
  border-color: var(--rose);
  background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
  box-shadow: var(--shadow-md);
}

.tab-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--rose-tint);
  color: var(--rose);
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.tab-btn.active .tab-num {
  background: var(--grad-main);
  color: var(--white);
}

.tab-btn h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.tab-btn p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.65;
}

.showcase-stage {
  background: linear-gradient(145deg, #fff1f5 0%, #ffe4ec 100%);
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  padding: 36px 28px;
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.stage-panel {
  display: none;
  width: 100%;
  max-width: 390px;
  animation: fadeSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-panel.active {
  display: block;
}

.ui-card {
  background: var(--white);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(166, 36, 73, 0.14);
  border: 1px solid var(--border);
}

/* Interactive Trivia Demo inside Stage Panel 2 */
.trivia-demo-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.trivia-demo-opt:hover {
  border-color: var(--rose);
  background: var(--bg-soft);
}

.trivia-demo-opt.picked {
  border-color: var(--rose);
  background: var(--grad-main);
  color: var(--white);
}

.trivia-feedback {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 13.5px;
  font-weight: 700;
  display: none;
}

.trivia-feedback.show {
  display: block;
  animation: fadeSlideUp 0.3s ease;
}

/* Compatibility Profile Demo inside Stage Panel 3 */
.compat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.compat-header img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--rose-light);
}

.compat-badge {
  background: var(--grad-main);
  color: var(--white);
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(212, 61, 104, 0.3);
}

.meter-row {
  margin-bottom: 12px;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

.meter-track {
  height: 9px;
  background: var(--bg-blush);
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--grad-main);
  border-radius: 999px;
}

/* ---------- Nour AI Assistant Section ---------- */
.nour-box {
  background: linear-gradient(135deg, #fff5f8 0%, #ffffff 55%, #ffeef3 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 54px 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.nour-avatars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.nour-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.nour-card:hover {
  transform: translateY(-6px);
}

.nour-card img {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border-radius: 50%;
}

.nour-card strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.nour-card span {
  font-size: 12.5px;
  color: var(--rose);
  font-weight: 600;
}

.nour-points {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.nour-point {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--text);
}

.nour-point i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-main);
  color: var(--white);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- 4-Step Journey Timeline ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--grad-main);
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 22px rgba(212, 61, 104, 0.28);
}

.step-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-sub);
}

/* ---------- Safety & Privacy Fortress ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.safety-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.safety-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.safety-item .s-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--rose-tint);
  color: var(--rose);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.safety-item h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.safety-item p {
  font-size: 14.8px;
  color: var(--text-sub);
}

.shield-visual {
  background: var(--grad-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.shield-visual::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -80px;
  left: -80px;
}

.shield-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  padding: 15px 18px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
}

.shield-pill span {
  font-weight: 700;
  font-size: 15px;
}

.shield-status {
  background: #22c55e;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 10px;
}

.story-card blockquote {
  font-size: 16px;
  color: var(--text);
  line-height: 1.85;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.story-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.story-author strong {
  display: block;
  font-size: 15px;
}

.story-author span {
  font-size: 13px;
  color: var(--rose);
  font-weight: 600;
}

/* ---------- FAQ Accordion ---------- */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: var(--rose);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rose-tint);
  color: var(--rose);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--rose);
  color: var(--white);
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--text-sub);
  font-size: 15.8px;
  line-height: 1.85;
}

/* ---------- Download CTA Banner ---------- */
.cta-banner {
  background: var(--grad-deep);
  border-radius: 36px;
  padding: 64px 48px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-banner::before {
  width: 340px;
  height: 340px;
  top: -160px;
  right: -100px;
}

.cta-banner::after {
  width: 280px;
  height: 280px;
  bottom: -140px;
  left: -80px;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  font-size: 18.5px;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
}

.store-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.store-badge {
  background: var(--white);
  color: var(--text) !important;
  border-radius: 18px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 205px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: right;
}

.store-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.store-badge small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

.store-badge strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff9fb;
  border-top: 1px solid var(--border);
  padding: 72px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 15.5px;
  max-width: 340px;
}

.saudi-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}

.saudi-badge img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-col h4 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 9px;
}

.footer-col a:hover {
  color: var(--rose);
  transform: translateX(-3px);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Legal & Inner Pages ---------- */
.legal-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 61, 104, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 117, 151, 0.12) 0%, transparent 45%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 76px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}

.legal-hero p {
  color: var(--text-sub);
  font-size: 17px;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: -42px auto 70px;
  padding: 46px 44px;
  position: relative;
  z-index: 3;
}

.legal-block {
  padding: 22px 24px;
  border-radius: 18px;
  background: #fffcfd;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.legal-block h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-block p,
.legal-block li {
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.9;
}

.legal-block ul,
.legal-block ol {
  padding-inline-start: 22px;
  display: grid;
  gap: 8px;
}

.callout-rose {
  background: linear-gradient(135deg, #fff2f6 0%, #fff9fb 100%);
  border-right: 4px solid var(--rose);
  padding: 18px 22px;
  border-radius: 14px;
  margin-top: 20px;
  color: var(--rose-ink);
  font-weight: 600;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ---------- Keyframes ---------- */
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 61, 104, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(212, 61, 104, 0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.1); }
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-grid,
  .showcase-wrap,
  .nour-box,
  .safety-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-cta,
  .hero-trust {
    justify-content: center;
  }

  .features-grid,
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-left: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .float-1 { right: 0; }
  .float-2, .float-3 { left: 0; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 44px 0 76px;
  }

  .features-grid,
  .stories-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    padding: 20px 14px;
  }

  .stat-item {
    border-left: none;
  }

  .float-card {
    display: none;
  }

  .nour-box,
  .cta-banner,
  .legal-card {
    padding: 32px 20px;
  }

  .iphone-frame {
    width: 308px;
  }
}
