/* ============================================================
   Zawāj Landing Page — styles.css
   Premium glassmorphic horizontal-scroll site
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: rgb(240, 66, 107);
  --accent-rgb: 240, 66, 107;
  --deep-purple: #1a0a2e;
  --mid-purple: #2E0D59;
  --warm-rose: #5c1a3a;
  --rose: #8b2252;
  --orange: #f07830;
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --font-heading: 'Platypi', serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'Amiri', serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--deep-purple);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #shader-canvas {
    display: none;
  }
  body {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--mid-purple) 50%, var(--warm-rose) 100%);
  }
}

/* ---------- Feature Item Glow Effect ---------- */

/* ---------- Shimmer Text ---------- */
@keyframes shimmerText {
  0%, 100% { background-position-x: 250%; }
  50% { background-position-x: -100%; }
}

/* ---------- Sliding Icon Button ---------- */
.btn-icon-circle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s;
}
.btn-icon-circle svg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- WebGL Canvas ---------- */
#shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  background: transparent;
  transition: background 0.3s ease;
}
.nav.nav-scrolled {
  background: transparent;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo-svg {
  width: 32px;
  height: 38px;
}
.nav-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-link.active {
  color: var(--text-primary);
}
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 48px 4px 20px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  letter-spacing: 0.01em;
  overflow: hidden;
}
.nav-cta > span:first-child {
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta .btn-icon-circle {
  width: 36px;
  height: 36px;
}
.nav-cta:hover {
  padding: 4px 20px 4px 48px;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.4);
}
.nav-cta:hover .btn-icon-circle {
  right: calc(100% - 40px);
}
.nav-cta:hover .btn-icon-circle svg {
  transform: rotate(45deg);
}

/* ---------- Scroll Container (Desktop) ---------- */
.scroll-container {
  height: calc(6 * 100vh);
  position: relative;
  z-index: 1;
}
.panels-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}
.panels-track {
  display: flex;
  will-change: transform;
}

/* ---------- Panel Base ---------- */
.panel {
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 72px 48px 48px;
}

/* ---------- Panel 1: Hero ---------- */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  max-width: 680px;
}
.hero-logo {
  margin-bottom: 16px;
  animation: heroPulse 4s ease-in-out infinite;
}
.hero-logo-svg {
  width: 160px;
  height: 176px;
  filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.3));
}
.hero-logo-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.3));
}
@keyframes heroPulse {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(var(--accent-rgb), 0.3)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 60px rgba(var(--accent-rgb), 0.45)); transform: scale(1.02); }
}
.hero-arabic {
  font-family: var(--font-arabic);
  font-size: 32px;
  color: var(--text-secondary);
  margin-bottom: -4px;
  letter-spacing: 0.04em;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-bottom: 6px;
  background-color: rgba(255,255,255,0.8);
  background-image: linear-gradient(to right, transparent 0%, #fff 40%, #fff 60%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-repeat: no-repeat;
  background-size: 50% 100%;
  animation: shimmerText 3s 1.5s infinite linear;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 400;
}
.hero-availability {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-top: 20px;
  font-weight: 400;
}
.hero-waitlist-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.hero-waitlist-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  color: var(--text-tertiary);
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-indicator-arrow {
  width: 20px;
  height: 20px;
  animation: scrollArrowPulse 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
@keyframes scrollArrowPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Stage Panels (2, 3, 4) ---------- */
.stage-layout {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
}

/* Phone Mockup */
.phone-container {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-animate {
  opacity: 0;
  transform: translateX(120px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-animate.in-view {
  opacity: 1;
  transform: translateX(0);
}
.phone-frame {
  width: 280px;
  height: 560px;
  border-radius: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  padding: 48px 20px 20px;
  overflow: hidden;
}
.phone-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* --- Phone: Matchmaking Screen --- */
.phone-matchmaking {
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pm-header {
  margin-bottom: 8px;
}
.pm-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pm-badge-green {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.pm-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
}
.pm-ring-svg {
  width: 100%;
  height: 100%;
}
.pm-score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}
.pm-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.pm-match-text {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--orange), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pm-btn {
  margin-top: 16px;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

/* --- Phone: Talking Stage Screen --- */
.phone-talking {
  gap: 14px;
  padding-top: 16px;
}
.pt-topic-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  letter-spacing: 0.02em;
}
.pt-question {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 4px 0;
}
.pt-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pt-option {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: default;
}
.pt-option-selected {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--text-primary);
}
.pt-option-write {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* --- Phone: Marriage Screen --- */
.phone-marriage {
  gap: 14px;
  padding-top: 16px;
}
.pmr-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  letter-spacing: 0.02em;
}
.pmr-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.pmr-goals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pmr-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pmr-goal-done span {
  color: var(--text-primary);
}
.pmr-goal-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.pmr-progress {
  margin-top: auto;
  padding-top: 12px;
}
.pmr-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.pmr-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
}
.pmr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--accent));
  border-radius: 100px;
  transition: width 0.6s ease;
}

/* ---------- Stacked Screenshot Cards ---------- */
.screenshot-stack {
  flex: 0 0 50%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 420px;
  height: 500px;
}
.screenshot-card {
  position: absolute;
  width: 220px;
  height: 476px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Horizontal cascade — each card offset to the right */
.screenshot-card[data-index="0"] {
  z-index: 1;
  transform: translateX(0);
}
.screenshot-card[data-index="1"] {
  z-index: 2;
  transform: translateX(100px);
}
.screenshot-card[data-index="2"] {
  z-index: 3;
  transform: translateX(200px);
}

/* Hover: bring to top layer in place, dim siblings —
   :has() ensures dimming only fires when an actual card is hovered,
   not the empty space around them inside the container. */
.screenshot-stack:has(.screenshot-card:hover) .screenshot-card:not(:hover) {
  filter: brightness(0.6);
}
.screenshot-card:hover {
  z-index: 10 !important;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(var(--accent-rgb), 0.3),
    0 0 40px rgba(var(--accent-rgb), 0.15);
}

/* ---------- Stage Content ---------- */
.stage-content {
  flex: 1;
  position: relative;
  padding-left: 16px;
}
.stage-number {
  display: none;
}
.stage-heading {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  -webkit-text-fill-color: transparent;
  background-color: rgba(255,255,255,0.8);
  background-image: linear-gradient(to right, transparent 0%, #fff 40%, #fff 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  background-size: 50% 100%;
  animation: shimmerText 3s 2s infinite linear;
}
.stage-subheading {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 12px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  max-width: 440px;
}

/* ---------- Feature List ---------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.feature-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  max-width: 520px;
  position: relative;
}
.feature-item::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-md) + 3px);
  background: linear-gradient(
    135deg,
    rgba(240, 66, 107, 0.4),
    rgba(139, 92, 246, 0.3),
    rgba(59, 130, 246, 0.3),
    rgba(240, 66, 107, 0.4)
  );
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.feature-item:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}
.feature-item:hover::before {
  opacity: 0.8;
}
.fi-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s, border-color 0.3s;
  transition-delay: calc(var(--delay, 0) * 0.15s);
}
.fi-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ---------- Panel 5: Waitlist ---------- */
.panel-waitlist {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding-bottom: 0;
}
.waitlist-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 520px;
  flex: 1 1 auto;
  padding-bottom: 24px;
  padding-top: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.waitlist-content::-webkit-scrollbar {
  display: none;
}
.waitlist-heading {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.15;
  -webkit-text-fill-color: transparent;
  background-color: rgba(255,255,255,0.8);
  background-image: linear-gradient(to right, transparent 0%, #fff 40%, #fff 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  background-size: 50% 100%;
  animation: shimmerText 3s 1.5s infinite linear;
}
.waitlist-subheading {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 24px;
}

/* --- Form Card --- */
.form-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* Step Indicators */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.form-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}
.form-step-active .form-step-dot {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}
.form-step-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  transition: color 0.3s;
}
.form-step-active .form-step-label {
  color: var(--text-primary);
}
.form-step-line {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 16px;
}

/* Form Pages */
.form-page {
  display: none;
}
.form-page-active {
  display: block;
  animation: formFadeIn 0.35s ease;
}
@keyframes formFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-required {
  color: var(--accent);
}
.form-optional {
  color: var(--text-tertiary);
  font-weight: 400;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder {
  color: var(--text-tertiary);
}
.form-input:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.form-input.form-input-error {
  border-color: var(--accent);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-select option {
  background: var(--deep-purple);
  color: var(--text-primary);
}
.form-error {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
  min-height: 0;
}

/* Phone Input Row */
.phone-input-row {
  display: flex;
  gap: 8px;
}
.phone-code-select {
  width: 110px;
  flex-shrink: 0;
  padding-right: 20px;
  font-size: 14px;
}
.phone-number-input {
  flex: 1;
}

/* Pill Selector */
.pill-selector {
  display: flex;
  gap: 10px;
}
.pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover {
  background: rgba(255, 255, 255, 0.1);
}
.pill.pill-active {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--text-primary);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.checkbox-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.checkbox-item input[type="checkbox"] {
  display: none;
}
.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}
.checkbox-item input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-item input:checked + .checkbox-custom::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.checkbox-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form Buttons */
.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  letter-spacing: 0.02em;
}
.form-btn-next {
  width: 100%;
  background: var(--accent);
  color: #fff;
  margin-top: 8px;
  position: relative;
  padding: 4px 56px 4px 24px;
  height: 50px;
  overflow: hidden;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.form-btn-next > span:first-child {
  position: relative;
  z-index: 1;
}
.form-btn-next:hover {
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35);
  padding: 4px 24px 4px 56px;
  transform: none;
}
.form-btn-next:hover .btn-icon-circle {
  right: calc(100% - 44px);
}
.form-btn-next:hover .btn-icon-circle svg {
  transform: rotate(45deg);
}
.form-btn-back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
.form-btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.form-btn-submit {
  background: var(--accent);
  color: #fff;
  flex: 1;
  position: relative;
  padding: 4px 56px 4px 24px;
  height: 50px;
  overflow: hidden;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.form-btn-submit > span:first-child {
  position: relative;
  z-index: 1;
}
.form-btn-submit:hover {
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35);
  padding: 4px 24px 4px 56px;
  transform: none;
}
.form-btn-submit:hover .btn-icon-circle {
  right: calc(100% - 44px);
}
.form-btn-submit:hover .btn-icon-circle svg {
  transform: rotate(45deg);
}
.form-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.form-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-btn-loading {
  pointer-events: none;
}
.form-error-global {
  display: block;
  text-align: center;
  margin-bottom: 4px;
}

/* Success State */
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.success-checkmark {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}
.checkmark-svg {
  width: 100%;
  height: 100%;
}
.checkmark-circle {
  stroke-dasharray: 150.8;
  stroke-dashoffset: 150.8;
  animation: checkmarkCircle 0.6s ease-in-out forwards;
}
.checkmark-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: checkmarkDraw 0.4s 0.4s ease-in-out forwards;
}
@keyframes checkmarkCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes checkmarkDraw {
  to { stroke-dashoffset: 0; }
}
.success-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}
.success-text {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- Contact Panel ---------- */
.panel-contact {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  gap: 0;
  padding: 0 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.contact-wrapper::-webkit-scrollbar {
  display: none;
}

/* Split layout: info left, form right */
.contact-layout {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  width: 100%;
}

/* Left: Info */
.contact-info {
  flex: 1;
}
.contact-heading {
  font-family: var(--font-body);
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
  white-space: nowrap;
  -webkit-text-fill-color: transparent;
  background-color: rgba(255,255,255,0.8);
  background-image: linear-gradient(to right, transparent 0%, #fff 40%, #fff 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-repeat: no-repeat;
  background-size: 50% 100%;
  animation: shimmerText 3s 1.5s infinite linear;
}
.contact-route {
  font-size: 16px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  font-weight: 400;
}
.contact-subheading {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 340px;
  line-height: 1.6;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-detail svg {
  margin-top: 2px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.contact-detail-label {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 500;
}
.contact-detail-value {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}
a.contact-detail-value {
  transition: color 0.2s;
}
a.contact-detail-value:hover {
  color: var(--accent);
}

/* Right: Form Card */
.contact-form-card {
  flex: 1;
  max-width: 480px;
}
.contact-form-group {
  margin-bottom: 24px;
}
.contact-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.contact-form-input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.contact-form-input::placeholder {
  color: var(--text-tertiary);
}
.contact-form-input:focus {
  border-bottom-color: rgba(var(--accent-rgb), 0.6);
}
.contact-form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.contact-form-submit {
  position: relative;
  width: 100%;
  padding: 4px 56px 4px 24px;
  height: 50px;
  margin-top: 8px;
  background: #fff;
  color: var(--deep-purple);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  letter-spacing: 0.01em;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.contact-form-submit > span:first-child {
  position: relative;
  z-index: 1;
}
.contact-form-submit .btn-icon-circle {
  background: var(--deep-purple);
  color: #fff;
}
.contact-form-submit:hover {
  padding: 4px 24px 4px 56px;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}
.contact-form-submit:hover .btn-icon-circle {
  right: calc(100% - 44px);
}
.contact-form-submit:hover .btn-icon-circle svg {
  transform: rotate(45deg);
}
.contact-form-submit:active {
  transform: translateY(0);
}

/* Honeypot — invisible to real users */
.contact-form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Per-field validation errors */
.contact-form-error {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
  min-height: 0;
}

/* Input error state */
.contact-form-input-error {
  border-bottom-color: rgba(var(--accent-rgb), 0.8) !important;
}

/* Form-level status message */
.contact-form-status {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.contact-form-status.status-error {
  background: rgba(240, 66, 107, 0.1);
  color: var(--accent);
  border: 1px solid rgba(240, 66, 107, 0.2);
}

/* Loading state for submit button */
.contact-form-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}
.contact-form-submit.loading > span:first-child {
  visibility: hidden;
}
.contact-form-submit.loading .btn-icon-circle {
  visibility: hidden;
}
.contact-form-submit.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--deep-purple);
  border-radius: 50%;
  animation: contactSpin 0.6s linear infinite;
}
@keyframes contactSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Contact form success state */
.contact-form-success {
  text-align: center;
  padding: 40px 20px;
}

/* Social (inside contact-info, left column) */
.contact-social {
  margin-top: 36px;
}
.contact-social-label {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-weight: 500;
}
.contact-social-links {
  display: flex;
  gap: 16px;
}
.contact-social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.contact-social-item svg {
  width: 28px;
  height: 28px;
}
.contact-social-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.contact-legal {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding-top: 32px;
  width: 100%;
  max-width: 520px;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-link {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--text-secondary);
}
.footer-divider {
  color: var(--text-tertiary);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
  padding-bottom: 16px;
}

/* ---------- Mobile Pagination Dots ---------- */
.mobile-dots {
  display: none;
}

/* ============================================================
   MOBILE STYLES (< 768px)
   ============================================================ */
@media (max-width: 767px) {

  /* Hide nav section links on mobile */
  .nav-links {
    display: none;
  }

  /* Override horizontal scroll — use swipeable cards */
  .scroll-container {
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .panels-sticky {
    position: static;
    height: 100%;
  }
  .panels-track {
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .panel {
    padding: 80px 24px 80px;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .panel::-webkit-scrollbar {
    display: none;
  }

  /* Hero */
  .hero-logo-svg {
    width: 80px;
    height: 93px;
  }
  .hero-logo-img {
    width: 100px;
    height: 100px;
  }
  .hero-arabic {
    font-size: 24px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-tagline {
    font-size: 17px;
  }
  .hero-sub {
    font-size: 14px;
  }
  .scroll-indicator {
    margin-top: 32px;
  }
  .scroll-indicator-text {
    display: none;
  }
  .scroll-indicator-arrow {
    display: none;
  }
  .scroll-indicator::after {
    content: 'Swipe';
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }

  /* Stage Panels */
  .stage-layout {
    flex-direction: column;
    gap: 28px;
    padding: 0;
    max-width: 100%;
  }
  .phone-container {
    flex: 0 0 auto;
    order: -1;
  }
  .phone-frame {
    width: 200px;
    height: 400px;
    border-radius: 28px;
    border-width: 2px;
  }
  .phone-notch {
    width: 80px;
    height: 20px;
    border-radius: 0 0 10px 10px;
  }
  .phone-screen {
    padding: 36px 14px 14px;
  }
  .stage-heading {
    font-size: 28px;
  }
  .stage-subheading {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .stage-content {
    padding-left: 0;
    width: 100%;
  }
  .feature-item {
    padding: 12px 14px;
    gap: 12px;
  }
  .feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .feature-icon svg {
    width: 18px;
    height: 18px;
  }
  .feature-text {
    font-size: 13px;
  }

  /* Phone screen content scaling */
  .pm-score-ring {
    width: 80px;
    height: 80px;
  }
  .pm-score-num {
    font-size: 22px;
  }
  .pm-match-text {
    font-size: 18px;
  }
  .pm-label {
    font-size: 11px;
  }
  .pm-btn {
    padding: 8px 20px;
    font-size: 12px;
  }
  .pm-badge {
    font-size: 10px;
    padding: 4px 10px;
  }
  .pt-question {
    font-size: 13px;
  }
  .pt-option {
    padding: 8px 10px;
    font-size: 11px;
  }
  .pt-topic-badge {
    font-size: 10px;
    padding: 4px 10px;
  }
  .pmr-title {
    font-size: 16px;
  }
  .pmr-goal {
    padding: 7px 10px;
    font-size: 11px;
    gap: 8px;
  }
  .pmr-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  /* Screenshot Stack */
  .screenshot-stack {
    flex: 0 0 auto;
    order: -1;
    width: 220px;
    height: 220px;
  }
  .screenshot-card {
    width: 95px;
    height: 205px;
    border-radius: 14px;
  }
  .screenshot-card[data-index="0"] {
    transform: translateX(0);
  }
  .screenshot-card[data-index="1"] {
    transform: translateX(50px);
  }
  .screenshot-card[data-index="2"] {
    transform: translateX(100px);
  }

  /* Waitlist */
  .panel-waitlist {
    padding: 80px 20px 24px;
  }
  .waitlist-heading {
    font-size: 28px;
  }
  .waitlist-subheading {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .waitlist-content {
    max-width: 100%;
    justify-content: flex-start;
    padding-top: 8px;
  }
  .form-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
  .form-steps {
    margin-bottom: 20px;
  }
  .form-step-line {
    width: 32px;
    margin: 0 10px;
  }
  .form-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  .footer {
    padding-top: 20px;
  }

  /* Contact */
  .panel-contact {
    padding: 80px 20px 24px;
  }
  .contact-wrapper {
    gap: 28px;
    padding: 0;
  }
  .contact-layout {
    flex-direction: column;
    gap: 32px;
  }
  .contact-heading {
    font-size: 40px;
  }
  .contact-heading br {
    display: none;
  }
  .contact-subheading {
    margin-bottom: 24px;
  }
  .contact-details {
    gap: 16px;
  }
  .contact-detail-value {
    font-size: 16px;
  }
  .contact-form-card {
    max-width: 100%;
  }
  .contact-social {
    text-align: center;
    margin-top: 28px;
  }
  .contact-social-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .contact-social-item {
    width: 54px;
    height: 54px;
  }
  .contact-social-item svg {
    width: 24px;
    height: 24px;
  }

  /* Nav */
  .nav {
    padding: 0 20px;
    height: 60px;
  }
  .nav-logo-text {
    font-size: 17px;
  }
  .nav-logo-svg {
    width: 26px;
    height: 31px;
  }
  .nav-logo-img {
    width: 28px;
    height: 28px;
  }
  .nav-cta {
    padding: 8px 18px;
    font-size: 13px;
  }

  /* Mobile Dots */
  .mobile-dots {
    display: flex;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    z-index: 100;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
  }
  .mobile-dot-active {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
    width: 24px;
    border-radius: 100px;
  }

  /* On mobile, phone animations are always visible */
  .phone-animate {
    opacity: 1;
    transform: translateX(0);
  }
  .fi-animate {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   TABLET (768px - 1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .stage-layout {
    gap: 40px;
  }
  .phone-frame {
    width: 240px;
    height: 480px;
    border-radius: 34px;
  }
  .stage-heading {
    font-size: 36px;
  }
  .hero-title {
    font-size: 56px;
  }
  .feature-item {
    max-width: 420px;
  }
  .screenshot-stack {
    width: 360px;
    height: 420px;
  }
  .screenshot-card {
    width: 180px;
    height: 389px;
    border-radius: 24px;
  }
  .screenshot-card[data-index="0"] {
    transform: translateX(0);
  }
  .screenshot-card[data-index="1"] {
    transform: translateX(80px);
  }
  .screenshot-card[data-index="2"] {
    transform: translateX(160px);
  }
  .contact-heading {
    font-size: 56px;
  }
  .contact-layout {
    gap: 40px;
  }
}

/* ============================================================
   LARGE DESKTOP (> 1440px)
   ============================================================ */
@media (min-width: 1440px) {
  .stage-layout {
    max-width: 1360px;
    gap: 80px;
  }
  .phone-frame {
    width: 300px;
    height: 600px;
  }
  .screenshot-stack {
    width: 480px;
    height: 540px;
  }
  .screenshot-card {
    width: 240px;
    height: 519px;
    border-radius: 30px;
  }
  .screenshot-card[data-index="1"] {
    transform: translateX(110px);
  }
  .screenshot-card[data-index="2"] {
    transform: translateX(220px);
  }
}
