/* ============================================
   WADAH — Cinematic Premium Website
   Style: Apple × OpenAI × Saudi Identity
   ============================================ */

:root {
  /* Core palette */
  --bg: #07050d;
  --bg-2: #0c0817;
  --bg-3: #110a1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Brand purple */
  --purple-50: #f5f0ff;
  --purple-200: #d8c5ff;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-glow: rgba(139, 92, 246, 0.45);

  /* Text */
  --text: #f5f3ff;
  --text-soft: rgba(245, 243, 255, 0.72);
  --text-mute: rgba(245, 243, 255, 0.48);

  /* Easings */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius: 22px;
  --radius-lg: 32px;
}

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

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

body {
  font-family: "IBM Plex Sans Arabic", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ---------- AMBIENT BACKGROUND ---------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6d28d9 0%, transparent 70%);
  bottom: 20%;
  left: -100px;
  animation-delay: -8s;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  top: 40%;
  right: 30%;
  opacity: 0.25;
  animation-delay: -14s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

/* ---------- LAYOUT WRAPPER ---------- */
section, header, footer {
  position: relative;
  z-index: 1;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 28px;
  background: rgba(7, 5, 13, 0.35);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav.scrolled {
  padding: 10px 28px;
  background: rgba(7, 5, 13, 0.75);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 8px 24px -8px var(--purple-glow);
  transition: transform 0.25s var(--ease);
}

.nav-logo:hover .logo-mark {
  transform: rotate(-4deg) scale(1.05);
}

.logo-text {
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.logo-en {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sep {
  color: var(--purple-400);
  opacity: 0.5;
  font-weight: 300;
  font-size: 18px;
  margin: 0 2px;
}

.logo-ar {
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  position: relative;
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.25s var(--ease);
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--purple-400), transparent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

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

.nav-cta {
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9f7aea 0%, #7c3aed 100%);
  color: white;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow:
    0 8px 24px -8px rgba(139, 92, 246, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px -8px rgba(139, 92, 246, 0.65),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

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

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15.5px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.btn-primary {
  background:
    linear-gradient(180deg, #9f7aea 0%, #7c3aed 50%, #6d28d9 100%);
  color: white;
  font-weight: 500;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 0 0 1px rgba(124, 58, 237, 0.4),
    0 8px 20px -4px rgba(124, 58, 237, 0.45),
    0 16px 40px -8px rgba(124, 58, 237, 0.5);
}

/* Soft ambient glow ring */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  z-index: -2;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

/* Shine sweep on hover */
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: skewX(-18deg);
  transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.btn-shine:hover::after {
  left: 130%;
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -1px 0 rgba(0,0,0,0.15) inset,
    0 0 0 1px rgba(167, 139, 250, 0.55),
    0 12px 28px -4px rgba(124, 58, 237, 0.6),
    0 24px 50px -8px rgba(124, 58, 237, 0.55);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover svg {
  transform: translateX(-4px);
}

.btn-primary:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}

/* Ghost button — refined glass */
.btn-ghost {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 4px 12px -4px rgba(0,0,0,0.3);
}

.btn-ghost svg {
  color: var(--purple-400);
  opacity: 0.9;
}

.btn-ghost:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-1.5px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 8px 20px -4px rgba(124, 58, 237, 0.2),
    0 4px 12px -4px rgba(0,0,0,0.3);
}

.btn-ghost:hover svg {
  opacity: 1;
  transform: scale(1.08);
}

.btn-lg {
  padding: 17px 34px;
  font-size: 16.5px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  text-align: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
  line-height: 1.2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    /* Deep ambient lighting from top */
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(124, 58, 237, 0.18) 0%, transparent 50%),
    /* Subtle horizon glow */
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(76, 29, 149, 0.12) 0%, transparent 60%),
    /* Base deep gradient */
    linear-gradient(180deg, #08060f 0%, #06040c 50%, var(--bg) 100%);
}

/* Ultra-subtle grid — barely visible, hints at structure */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at center, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at center, #000 0%, transparent 80%);
  opacity: 0.6;
}

/* Aurora — softer, more diffused, fewer harsh edges */
.hero-aurora {
  position: absolute;
  inset: 0;
  filter: blur(110px);
  opacity: 0.4;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.aurora-1 {
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.85) 0%, transparent 70%);
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  animation: aurora-drift-1 24s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.7) 0%, transparent 70%);
  bottom: -180px;
  right: 8%;
  animation: aurora-drift-2 28s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.65) 0%, transparent 70%);
  bottom: -120px;
  left: 8%;
  animation: aurora-drift-3 32s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-46%) translateY(30px) scale(1.05); }
}
@keyframes aurora-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, -15px) scale(1.05); }
}
@keyframes aurora-drift-3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -20px) scale(0.97); }
}

/* Ultra-fine grain — premium texture, barely perceptible */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Soft bottom fade for seamless section transition */
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: linear-gradient(180deg, transparent, var(--bg) 85%);
  pointer-events: none;
}

/* Top subtle vignette for depth */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at center 40%, transparent 0%, rgba(7, 5, 13, 0.4) 100%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 18px;
  margin-bottom: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 4px 20px -8px rgba(124, 58, 237, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 0 0 var(--purple-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

.title-line {
  font-size: clamp(52px, 8.5vw, 108px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  padding: 0.12em 0.08em;
  background:
    linear-gradient(180deg, #ffffff 0%, #ede9fe 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,0.3))
    drop-shadow(0 0 24px rgba(167, 139, 250, 0.18))
    drop-shadow(0 0 80px rgba(124, 58, 237, 0.25));
  display: inline-block;
  position: relative;
}

.title-sub {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.015em;
  line-height: 1.35;
  max-width: 720px;
}

.hero-desc {
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 18px auto 32px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Proof chips — refined glass pill */
.hero-chips {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.chip svg {
  width: 13px;
  height: 13px;
  color: var(--purple-400);
  opacity: 0.85;
}

.chip-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.12);
}

@media (max-width: 600px) {
  .hero-chips {
    gap: 10px;
    padding: 10px 14px;
  }
  .chip { font-size: 12.5px; }
  .chip-sep { display: none; }
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-wave {
  display: inline-flex;
  align-items: end;
  gap: 4px;
  height: 36px;
}

.wave-bar {
  width: 3px;
  background: linear-gradient(180deg, var(--purple-400), var(--purple-600));
  border-radius: 999px;
  box-shadow: 0 0 12px var(--purple-glow);
  animation: wave 1.4s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0.0s; height: 30%; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 55%; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 90%; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 70%; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 100%; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 45%; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; height: 80%; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; height: 60%; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; height: 95%; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; height: 40%; }
.wave-bar:nth-child(11) { animation-delay: 1.0s; height: 75%; }
.wave-bar:nth-child(12) { animation-delay: 1.1s; height: 50%; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: 12px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--purple-400), transparent);
  animation: scrollDown 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple-200);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
  margin-bottom: 22px;
  padding: 0.25em 0.15em 0.1em;
  background: linear-gradient(180deg, #ffffff 0%, #cbb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-desc {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---------- SCENARIOS ---------- */
.scenarios {
  padding: 140px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.scenario {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}

.scenario-reverse {
  grid-template-columns: 1fr 1.05fr;
}

.scenario-reverse .scenario-media { order: 2; }
.scenario-reverse .scenario-text { order: 1; }

.scenario-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.6),
    0 0 60px -20px var(--purple-glow);
  transition: transform 0.6s var(--ease);
}

.scenario-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7,5,13,0.4) 100%);
  pointer-events: none;
}

.scenario:hover .scenario-media {
  transform: translateY(-6px);
}

.scenario-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.scenario-tag {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--purple-200);
  font-size: 12.5px;
  font-weight: 500;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.bubble {
  padding: 16px 20px;
  border-radius: 18px;
  max-width: 92%;
  position: relative;
}

.bubble-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  opacity: 0.6;
}

.bubble p {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}

.bubble-user {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-right-radius: 6px;
}

.bubble-wadah {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(109, 40, 217, 0.18));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-top-left-radius: 6px;
  box-shadow: 0 8px 32px -12px var(--purple-glow);
}

.bubble-wadah .bubble-label {
  color: var(--purple-200);
  opacity: 1;
}

.scenario-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-points li {
  position: relative;
  padding-right: 22px;
  color: var(--text-soft);
  font-size: 15.5px;
}

.scenario-points li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-400);
  box-shadow: 0 0 8px var(--purple-400);
}

@media (max-width: 880px) {
  .scenario, .scenario-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .scenario-reverse .scenario-media { order: 1; }
  .scenario-reverse .scenario-text { order: 2; }
}

/* ---------- HOW IT WORKS ---------- */
.how {
  padding: 140px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease);
}

.step:hover {
  background: var(--surface-2);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-4px);
}

.step-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-400);
  opacity: 0.7;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1));
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--purple-200);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.step-arrow {
  display: grid;
  place-items: center;
  color: var(--purple-400);
  opacity: 0.6;
}

.step-arrow svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 880px) {
  .step-arrow { transform: rotate(-90deg); }
}

/* ---------- DEVICES ---------- */
.devices {
  padding: 140px 24px;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

.devices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.devices-text .eyebrow { margin-top: 0; }

.devices-text .section-title {
  text-align: right;
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 22px;
}

.devices-text .section-desc {
  text-align: right;
  margin-bottom: 30px;
}

.devices-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.devices-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 16px;
}

.devices-points .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-400), var(--purple-600));
  box-shadow: 0 0 10px var(--purple-glow);
}

.devices-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.device-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 560px;
  background: linear-gradient(135deg, #1a1325, #0c0817);
  border-radius: 46px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 30px 80px -20px var(--purple-glow);
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-character {
  width: 78%;
  height: auto;
  object-fit: contain;
  z-index: 1;
  animation: float-inside 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(109, 40, 217, 0.15));
}

@keyframes float-inside {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Status bar — forced LTR layout (iOS style) */
.phone-status {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #0c0817;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  z-index: 3;
  padding-top: 4px;
}

.phone-time {
  letter-spacing: -0.02em;
}

.phone-status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}

.signal-bars i {
  width: 2.5px;
  background: #0c0817;
  border-radius: 0.5px;
}

.signal-bars i:nth-child(1) { height: 30%; }
.signal-bars i:nth-child(2) { height: 50%; }
.signal-bars i:nth-child(3) { height: 70%; }
.signal-bars i:nth-child(4) { height: 100%; }

.phone-network {
  font-size: 10px;
  letter-spacing: 0;
}

.battery {
  position: relative;
  width: 18px;
  height: 9px;
  border: 1px solid #0c0817;
  border-radius: 2.5px;
  display: inline-block;
}

.battery::after {
  content: "";
  position: absolute;
  right: -2.5px;
  top: 2.5px;
  width: 1.5px;
  height: 4px;
  background: #0c0817;
  border-radius: 0 1px 1px 0;
}

.battery-fill {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 1px;
  width: calc(100% - 5px);
  background: #0c0817;
  border-radius: 1px;
}

/* Hamburger menu */
.phone-menu {
  position: absolute;
  top: 44px;
  left: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 15px;
  z-index: 3;
  padding: 0;
}

.phone-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: #0c0817;
  border-radius: 2px;
}

/* Mic button */
.phone-mic {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-400), var(--purple-700));
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 10px 28px -8px var(--purple-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
  z-index: 3;
}

.phone-mic:hover {
  transform: translateX(-50%) scale(1.05);
}

.phone-mic svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 880px) {
  .devices-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .devices-text .section-title, .devices-text .section-desc { text-align: center; }
  .devices-points { align-items: center; }
}

/* ---------- USES ---------- */
.uses {
  padding: 140px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.use-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  cursor: default;
}

.use-card:hover {
  background: var(--surface-2);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px var(--purple-glow);
}

.use-card svg {
  width: 32px;
  height: 32px;
  color: var(--purple-400);
  margin-bottom: 18px;
}

.use-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.use-card p {
  color: var(--text-soft);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .uses-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .uses-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- WHY ---------- */
.why {
  padding: 140px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

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

.why-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(167, 139, 250, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.why-card:hover::before { opacity: 1; }
.why-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-4px);
}

.why-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-400);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  opacity: 0.85;
}

.why-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.why-card p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta {
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.5;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-character {
  width: 280px;
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 30px 60px var(--purple-glow)) drop-shadow(0 0 40px rgba(167, 139, 250, 0.25));
  animation: float 5s ease-in-out infinite;
}

@media (max-width: 600px) {
  .cta-character { width: 220px; }
}

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

.cta-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 22px;
  padding: 0.05em 0;
  background: linear-gradient(180deg, #ffffff 0%, #cbb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 40px;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.cta-form input {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s var(--ease);
}

.cta-form input::placeholder {
  color: var(--text-mute);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--purple-400);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.cta-form input[name="phone"] {
  grid-column: 1 / -1;
}

.cta-form button {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 6px;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Company attribution under CTA */
.cta-attribution {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
}

.cta-attribution svg {
  width: 14px;
  height: 14px;
  color: var(--purple-400);
  opacity: 0.85;
  transition: transform 0.6s var(--ease);
}

.cta-attribution strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

.cta-attribution:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(167, 139, 250, 0.25);
  color: rgba(255,255,255,0.85);
  transform: translateY(-1px);
}

.cta-attribution:hover svg {
  transform: rotate(180deg);
  opacity: 1;
}

.cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
  transition: all 0.2s var(--ease);
}

.cta-contact:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.cta-contact svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .cta-form { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 50px 24px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover { color: var(--text); }

.footer-tag {
  font-size: 13px;
  color: var(--text-mute);
}

.footer-company {
  color: var(--purple-200);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.footer-company:hover {
  color: var(--purple-400);
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* Stagger children inside a section */
.scenario-list .reveal { transition-delay: 0s; }
.steps .reveal:nth-child(1) { transition-delay: 0s; }
.steps .reveal:nth-child(3) { transition-delay: 0.1s; }
.steps .reveal:nth-child(5) { transition-delay: 0.2s; }
.uses-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.uses-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.uses-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.uses-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.uses-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.uses-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.uses-grid .reveal:nth-child(7) { transition-delay: 0.35s; }
.uses-grid .reveal:nth-child(8) { transition-delay: 0.4s; }
.why-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.why-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.why-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.why-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.why-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ---------- VIDEO MODAL ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.video-modal[hidden] {
  display: none;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 10, 0.85);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  cursor: pointer;
}

.video-modal-container {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.video-modal-container > .video-modal-header,
.video-modal-container > .video-modal-hint {
  width: 100%;
  max-width: 480px;
}

.video-modal.is-open .video-modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}

.video-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}

.video-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: "Inter", sans-serif;
}

.video-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: rec-pulse 1.6s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.video-modal-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.video-modal-close svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.video-modal-close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: white;
  transform: rotate(90deg);
}

.video-modal-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.15),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 120px -20px rgba(124, 58, 237, 0.35);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-frame video {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  width: auto;
  background: #000;
}

.video-modal-glow {
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(124, 58, 237, 0.2));
  filter: blur(30px);
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

.video-modal-hint {
  display: flex;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

.video-modal-hint kbd {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom-width: 2px;
  color: rgba(255,255,255,0.7);
  font-family: "Inter", monospace;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .video-modal { padding: 16px; }
  .video-modal-title { font-size: 13.5px; }
  .video-modal-frame { aspect-ratio: 9 / 16; max-height: 70vh; }
}

/* Body lock when modal open */
body.modal-open {
  overflow: hidden;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
