/* ─── LIQUID GLASS DESIGN SYSTEM ─── */
:root {
  --font-main: 'Tajawal', sans-serif;
}
html[lang="en"] {
  --font-main: 'Poppins', sans-serif;
  letter-spacing: 0.01em;
}

.tnr-italic {
  font-family: 'Times New Roman', Times, serif !important;
  font-style: italic !important;
}

:root {
  /* Shared Variables */
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 999px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-page: #f0f2f5;
  --text-main: #111827;
  --text-mut: #6b7280;
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-hover: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-b: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  
  --blob-1: #3b82f6; /* Blue */
  --blob-2: #8b5cf6; /* Purple */
  --blob-3: #14b8a6; /* Teal */
  
  --primary: #3b82f6;
  --primary-text: #ffffff;
  
  --danger: #ef4444;
  
  .icon-light { display: none; }
  .icon-dark { display: flex; }
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-page: #0a0a0c;
  --text-main: #f9fafb;
  --text-mut: #9ca3af;
  
  --glass-bg: rgba(20, 20, 25, 0.4);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-b: rgba(255, 255, 255, 0.02);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  --blob-1: #0ed3c1; /* Thabat Teal */
  --blob-2: #8855ff; /* Thabat Purple */
  --blob-3: #0044ff; /* Deep Blue */
  
  --primary: #8855ff;
  --primary-text: #ffffff;
  
  --danger: #ff3366;
  
  .icon-light { display: flex; }
  .icon-dark { display: none; }
}

/* ─── RESET & UTILS ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 2;
}

/* ─── SCENE BLOBS ─── */
.scene {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbit 20s linear infinite;
}

.scene__blob--1 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--blob-1), transparent 70%);
  top: -10%; left: -10%;
  animation-duration: 25s;
}

.scene__blob--2 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--blob-2), transparent 70%);
  bottom: -10%; right: -10%;
  animation-direction: reverse;
  animation-duration: 30s;
}

.scene__blob--3 {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, var(--blob-3), transparent 70%);
  top: 40%; left: 40%;
  animation-duration: 20s;
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

/* ─── GLASS BASE ─── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-bottom-color: var(--glass-border-b);
  border-right-color: var(--glass-border-b);
  box-shadow: var(--glass-shadow);
}

.glass--dark {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.05);
}
[data-theme="light"] .glass--dark { background: rgba(0, 0, 0, 0.8); color: white; }

/* ─── NAV / TOP BAR ─── */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px;
  position: sticky; top: 0; left: 0; width: 100vw;
  z-index: 1000;
  transition: var(--transition);
}
/* This spacer is added from nav to maintain layout if needed, but sticky handles layout natively */
.top-bar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border-b);
  box-shadow: var(--glass-shadow);
}

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 32px; filter: none; }
[data-theme="light"] .nav-brand img { filter: invert(1); }
.logo-text { display: none; }

/* ─── BUTTONS ─── */
.glass-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.glass-btn:hover { background: var(--glass-bg-hover); transform: translateY(-2px); }
.glass-btn:active { transform: translateY(0); }

.store-badge:hover { transform: translateY(-2px) scale(1.03); opacity: 0.95; }
.store-badge:active { transform: translateY(0) scale(1); opacity: 1; }

.glass-btn--primary {
  background: var(--primary) !important;
  color: var(--primary-text) !important;
  border: none;
  box-shadow: 0 4px 20px rgba(136, 85, 255, 0.4);
}
.glass-btn--primary:hover { filter: brightness(1.1); box-shadow: 0 8px 30px rgba(136, 85, 255, 0.6); }

.glass-btn--danger { background: var(--danger) !important; color: white !important; border:none; box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4); }
.glass-btn--danger:hover { filter: brightness(1.1); transform: scale(1.05); }

.sos-header-btn {
  animation: sos-pulse 2s infinite;
  border: 1px solid rgba(255,51,102,0.6) !important;
}

@keyframes sos-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(255, 51, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

.glass-btn--ghost { background: transparent; border-color: rgba(255,255,255,0.2) !important; color: var(--text-main) !important;}
[data-theme="light"] .glass-btn--ghost { border-color: rgba(0,0,0,0.2) !important; }

.glass-btn--lg { height: 56px; padding: 0 32px; font-size: 1.1rem; }

.theme-toggle-btn { width: 48px; padding: 0; background: var(--glass-bg); color: var(--text-main); }

/* ─── HERO ─── */
.hero {
  padding: 100px 0 80px;
  position: relative; z-index: 10;
}
.split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero__content {
  flex: 1;
  max-width: 600px;
}

.hero__kicker { margin-bottom: 24px; }
.hero__title { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
@media(max-width: 768px) { .hero__title { font-size: 2.8rem; } }

.hero__sub {
  font-size: 1.25rem; color: var(--text-mut);
  margin-bottom: 40px;
}

.hero__cta {
  display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap;
}

/* Phone Mockup */
.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-mockup {
  position: relative;
  width: 320px;
  height: 650px;
  border-radius: 44px;
  background: var(--glass-bg);
  border: 4px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 30px 60px rgba(0,0,0,0.5);
  padding: 10px;
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  isolation: isolate;
  margin-right: 40px;
}
.phone-mockup::before {
  content: ''; display: block;
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 30px;
  background: #0a0a0c;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
  z-index: 2;
}
[data-theme="light"] .phone-mockup::before { background: #f0f2f5; }

.phone-screen-wrap {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

/* Floating Elements */
.floating-icon {
  position: absolute;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-main);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 3;
}
.icon-1 { top: 20%; right: -25px; animation: float 5s ease-in-out infinite 0.5s; color: var(--danger); }
.icon-2 { bottom: 35%; left: -25px; animation: float 7s ease-in-out infinite 1s; color: var(--primary); }
.icon-3 { bottom: 15%; right: -15px; animation: float 6s ease-in-out infinite 1.5s; color: var(--blob-1); }

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

@media (max-width: 960px) {
  .split-layout { flex-direction: column; text-align: center; }
  .hero__content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .hero__visual { margin-top: 60px; margin-right: 0;}
  .phone-mockup { width: 280px; height: 580px; margin-right: 0; }
}

/* ─── STATS ─── */
.stats {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.stats--left { justify-content: flex-start; }
@media (max-width: 960px) { .stats--left { justify-content: center; } }

.stats__item {
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center;
  min-width: 120px;
}
.stats__num { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--blob-1), var(--blob-2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stats__desc { color: var(--text-mut); font-size: 0.85rem; font-weight: 600; text-transform: uppercase;}

/* ─── CARDS ─── */
.section { padding: 80px 0; }
.section__header { text-align: center; margin-bottom: 60px; }
.section__title { font-size: 2.5rem; margin-bottom: 12px; }
.section__subtitle { color: var(--text-mut); font-size: 1.1rem; }

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

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.glass-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: var(--transition-slow);
  position: relative;
  z-index: 1;
  background: var(--glass-bg);
  /* Use !important overriding normal .glass properties if needed, but let's test without */
}

@property --gradient-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes loading {
	0% {
		--gradient-angle: 0deg;
	}
	100% {
		--gradient-angle: 360deg;
	}
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: conic-gradient(
		from var(--gradient-angle),
		rgba(255, 255, 255, 0.1) 0deg,
		rgba(255, 255, 255, 0.1) 60deg,
		rgba(255, 255, 255, 0.9) 120deg,
		rgba(255, 255, 255, 0.1) 180deg,
		rgba(255, 255, 255, 0.1) 240deg,
		rgba(255, 255, 255, 0.9) 300deg,
		rgba(255, 255, 255, 0.1) 360deg
	);
  /* The padding adds space to be masked inside content-box, leaving the border */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: loading 12s linear infinite;
  z-index: -1;
  pointer-events: none;
}

.glow-teal:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(14, 211, 193, 0.15); border-color: rgba(14, 211, 193, 0.4); }
.glow-purple:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(136, 85, 255, 0.15); border-color: rgba(136, 85, 255, 0.4); }
.glow-rose:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(255, 51, 102, 0.15); border-color: rgba(255, 51, 102, 0.4); }
.glow-blue:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); }

[data-theme="light"] .glow-teal:hover { box-shadow: 0 20px 40px rgba(14, 211, 193, 0.1); border-color: rgba(14, 211, 193, 0.6); }
[data-theme="light"] .glow-purple:hover { box-shadow: 0 20px 40px rgba(136, 85, 255, 0.1); border-color: rgba(136, 85, 255, 0.6); }
[data-theme="light"] .glow-rose:hover { box-shadow: 0 20px 40px rgba(255, 51, 102, 0.1); border-color: rgba(255, 51, 102, 0.6); }
[data-theme="light"] .glow-blue:hover { box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.6); }

.glass-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.card-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.glass-card__label { font-size: 0.85rem; color: var(--text-mut); font-weight: 600; text-transform: uppercase; letter-spacing: 1px;}
.glass-card__title { font-size: 1.5rem; margin-bottom: 12px; }
.glass-card__body { color: var(--text-mut); font-size: 1rem; flex-grow: 1; margin-bottom: 24px; }
.card-footer { margin-top: auto; }

/* ─── BADGES ─── */
.glass-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.05);
}
[data-theme="light"] .glass-badge { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }

.glass-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.glass-badge--violet { color: #a78bfa; background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.2); }
[data-theme="light"] .glass-badge--violet { color: #8b5cf6; }
.glass-badge--aqua { color: #2dd4bf; background: rgba(20, 184, 166, 0.1); border-color: rgba(20, 184, 166, 0.2); }
[data-theme="light"] .glass-badge--aqua { color: #0d9488; }
.glass-badge--rose { color: #fb7185; background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.2); }
[data-theme="light"] .glass-badge--rose { color: #e11d48; }

/* ─── MISC ─── */
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.justify-center { justify-content: center; }
.divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); margin: 60px 0; }

/* ─── SECTION 3: CAROUSEL ─── */
.carousel-container {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 20px 0 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel { 
  display: flex; 
  justify-content: center;
  gap: 32px; 
  min-width: max-content; 
  padding: 0 40px; 
  margin: 0 auto; 
}
.carousel-item { width: 420px; padding: 24px; display: flex; flex-direction: column; scroll-snap-align: center; }

/* ─── Animated Micro-UI for Carousel ─── */
.illustration-box.micro-screen {
    width: 100%; height: 280px;
    background: #050810;
    border-radius: 24px; margin-bottom: 24px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
}
[data-theme="light"] .illustration-box.micro-screen {
    background: #f1f5f9; border-color: rgba(0,0,0,0.05);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

/* 1. Breathing Micro UI */
.micro-ui-breathing { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.breath-ring-ui { position: relative; width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.progress-ring { transform: rotate(-90deg); position: absolute; top:0; left:0; }
.progress-ring__circle {
    stroke-dasharray: 402;
    stroke-dashoffset: 402;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
    animation: breath-stroke 8s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
}
@keyframes breath-stroke {
    0% { stroke-dashoffset: 402; }
    40% { stroke-dashoffset: 0; }
    60% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 402; }
}
.breath-center-content { display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.breath-text { font-size: 1.1rem; font-weight: 700; color: #10b981; margin-bottom: 4px; animation: breath-text-pulse 8s ease-in-out infinite; }
.breath-timer { font-size: 2.2rem; font-weight: 300; color: var(--text-main); line-height: 1; font-variant-numeric: tabular-nums; }
@keyframes breath-text-pulse {
    0% { opacity: 0.5; transform: scale(0.9); }
    40% { opacity: 1; transform: scale(1.1); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(0.9); }
}
.breath-metrics {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--text-main);
    backdrop-filter: blur(5px);
}
.breath-metrics i { width: 14px; color: #10b981; }

/* 2. Venting Micro UI */
.micro-ui-venting { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.voice-timer { font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text-main); margin-bottom: 30px; }
.voice-timer .muted { color: var(--text-mut); font-size: 1rem; margin-left:4px; }
.realistic-wave { display: flex; align-items: center; gap: 4px; height: 60px; margin-bottom: 40px; }
.r-bar { width: 6px; background: #e11d48; border-radius: 4px; transition: height 0.1s ease; box-shadow: 0 0 10px rgba(225, 29, 72, 0.6); }
.b1 { height: 20%; animation: rw-1 1.2s infinite ease-in-out alternate; }
.b2 { height: 40%; animation: rw-2 0.9s infinite ease-in-out alternate; animation-delay: 0.2s; }
.b3 { height: 70%; animation: rw-3 1.1s infinite ease-in-out alternate; animation-delay: 0.4s; }
.b4 { height: 100%; animation: rw-4 1.3s infinite ease-in-out alternate; background: #fff; box-shadow: 0 0 15px #fff, 0 0 20px #e11d48; }
.b5 { height: 60%; animation: rw-3 1.0s infinite ease-in-out alternate; animation-delay: 0.1s; }
.b6 { height: 30%; animation: rw-2 1.4s infinite ease-in-out alternate; animation-delay: 0.3s; }
.b7 { height: 15%; animation: rw-1 1.1s infinite ease-in-out alternate; }

@keyframes rw-1 { 0% { height: 15%; } 100% { height: 40%; } }
@keyframes rw-2 { 0% { height: 30%; } 100% { height: 60%; } }
@keyframes rw-3 { 0% { height: 50%; } 100% { height: 80%; } }
@keyframes rw-4 { 0% { height: 60%; } 100% { height: 100%; } }

.mic-button {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e, #be123c);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.4), inset 0 0 10px rgba(255,255,255,0.3);
    animation: mic-pulse 2s infinite ease-in-out;
}
[data-theme="light"] .mic-button i { color: #fff; }
@keyframes mic-pulse {
    0% { transform: scale(1); box-shadow: 0 10px 20px rgba(225, 29, 72, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 10px 30px rgba(225, 29, 72, 0.6), 0 0 0 15px rgba(225, 29, 72, 0.1); }
    100% { transform: scale(1); box-shadow: 0 10px 20px rgba(225, 29, 72, 0.4); }
}

.vapor-particles { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.particle {
    position: absolute; bottom: 35%; left: 50%;
    width: 8px; height: 8px;
    background: #f43f5e;
    box-shadow: 0 0 10px #f43f5e, 0 0 20px #fb7185;
    border-radius: 50%;
    opacity: 0;
    animation: vapor-anim 2.5s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}
.particle:nth-child(1) { margin-left: -20px; animation-delay: 0s; width: 6px; height: 6px; }
.particle:nth-child(2) { margin-left: 0px; animation-delay: 0.8s; width: 10px; height: 10px; background: #fb7185; }
.particle:nth-child(3) { margin-left: 20px; animation-delay: 1.6s; width: 5px; height: 5px; background: #fda4af; }
.particle:nth-child(4) { margin-left: -10px; animation-delay: 1.2s; width: 7px; height: 7px; }
.particle:nth-child(5) { margin-left: 10px; animation-delay: 2.1s; width: 8px; height: 8px; background: #fff; }

/* Carousel Micro Tags */
.c-tag-1 { top: 15%; left: -20px; transform: translateY(0); animation: float-c-tag 4.5s ease-in-out infinite alternate; z-index: 10; }
.c-tag-2 { bottom: 40%; right: -20px; transform: translateY(0); animation: float-c-tag 5.5s ease-in-out infinite alternate-reverse; z-index: 10; }

@keyframes float-c-tag { 0% { transform: translateY(-15px); } 100% { transform: translateY(15px); } }

@keyframes vapor-anim {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.9; filter: blur(0px); }
    50% { transform: translateY(-40px) translateX(10px) scale(1.5); opacity: 0.6; filter: blur(1px); }
    100% { transform: translateY(-100px) translateX(-15px) scale(0.1); opacity: 0; filter: blur(4px); }
}
.carousel-img { width: 100%; height: 280px; object-fit: cover; border-radius: 24px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 2px solid rgba(255,255,255,0.05); }

/* ─── SECTION 4: SLEEP PROTOCOL ─── */
.sleep-section { 
    padding: 80px 0; 
    border-radius: 60px; 
    margin: 40px 0; 
    background: #0a0f1a; 
    overflow: hidden;
    position: relative;
}

@property --tracer-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.sleep-content { 
    display: flex; align-items: center; gap: 40px; padding: 40px; 
    position: relative;
    /* Card is wrapped inside index.html */
}

.sleep-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 2px;
    background: conic-gradient(from var(--tracer-angle), transparent 0deg, transparent 270deg, rgba(255, 215, 0, 1) 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: trace-border 12s linear infinite;
}

@keyframes trace-border {
    to { --tracer-angle: 360deg; }
}
.sleep-img-wrapper {
    position: relative;
    flex-shrink: 0;
}
.dawn-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(234, 179, 8, 0.4), rgba(249, 115, 22, 0.2) 40%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
    animation: dawn-pulse 8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
@keyframes dawn-pulse {
    0% { transform: scale(0.95); opacity: 0.5; filter: blur(30px); }
    100% { transform: scale(1.15); opacity: 1; filter: blur(50px); }
}
.sleep-img { width: 320px; height: 500px; object-fit: cover; border-radius: 32px; box-shadow: 0 20px 40px rgba(0,0,0,0.8); position: relative; z-index: 1; }
@media (max-width: 900px) { .sleep-content { flex-direction: column; text-align: center; } .sleep-img { width: 280px; height: 460px; } }

/* Sleep Bento Grid Expansion */
.sleep-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.bento-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.bento-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
}
.bento-icon {
    color: #eab308;
    width: 24px; height: 24px; flex-shrink: 0;
}
.bento-text-label {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}
@media (max-width: 600px) {
    .sleep-bento-grid { grid-template-columns: 1fr; }
}

.text-white { color: #fff !important; } .text-white-mut { color: #a1a1aa !important; }

/* ─── SECTION 5: SOS ─── */
.sos-section { 
  background: rgba(10, 15, 26, 0.4); 
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05); /* very light glowing border */
  padding: 120px 40px; 
  text-align: center; 
  border-radius: 60px;
  position: relative;
  z-index: 5;
  margin: 80px 0;
  box-shadow: 0 0 100px rgba(255,51,102,0.15); /* enhanced neon red spread */
}
[data-theme="light"] .sos-section {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Neon Orbs */
.neon-orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; opacity: 0.6; }
.orb-red { top: -50px; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(255, 51, 102, 0.8), transparent 70%); }
.orb-blue { bottom: -50px; right: -50px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent 70%); }
[data-theme="light"] .orb-red { opacity: 0.3; }
[data-theme="light"] .orb-blue { opacity: 0.2; }

.sos-wrapper { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.sos-icon-ring { 
  width: 120px; height: 120px; border-radius: 50%; 
  border: 2px solid rgba(255,51,102,0.8); 
  display: flex; align-items: center; justify-content: center; 
  color: #ff3366; box-shadow: 0 0 80px rgba(255,51,102,0.6), inset 0 0 40px rgba(255,51,102,0.3); 
  margin-bottom: 40px; animation: pulse-red-intense 3s ease-in-out infinite; 
}
@keyframes pulse-red-intense { 
  0% { box-shadow: 0 0 50px rgba(255,51,102,0.4), inset 0 0 20px rgba(255,51,102,0.2); transform: scale(1); } 
  50% { box-shadow: 0 0 100px rgba(255,51,102,0.8), inset 0 0 50px rgba(255,51,102,0.4); transform: scale(1.05); } 
  100% { box-shadow: 0 0 50px rgba(255,51,102,0.4), inset 0 0 20px rgba(255,51,102,0.2); transform: scale(1); } 
}
.sos-icon-ring svg { width: 56px; height: 56px; filter: drop-shadow(0 0 15px rgba(255,51,102,1)); }
.sos-title { font-size: 3.5rem; color: var(--text-main); margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.sos-desc { color: var(--text-mut); font-size: 1.3rem; margin-bottom: 60px; max-width: 600px; }
.swipe-to-sos { 
  width: 100%; max-width: 420px; height: 80px; 
  border-radius: 40px; background: rgba(255,51,102,0.08); 
  border: 1px solid rgba(255,51,102,0.4); 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: inset 0 0 20px rgba(255,51,102,0.1);
  display: flex; align-items: center; position: relative; overflow: hidden; 
}
.swipe-text { width: 100%; text-align: center; color: #ff3366; font-weight: 700; font-size:1.2rem; display: flex; align-items: center; justify-content: center; gap: 12px; }
.swipe-btn { 
  position: absolute; right: 10px; /* RTL means start is right */
  width: 60px; height: 60px; border-radius: 50%; 
  background: linear-gradient(135deg, #ff3366, #e11d48); 
  color: white; display: flex; align-items: center; justify-content: center; 
  font-weight: 800; box-shadow: 0 0 30px rgba(255,51,102,0.8), inset 0 0 10px rgba(255,255,255,0.4); 
  z-index: 2; transition: transform 0.3s ease;
}
.swipe-btn:hover { transform: scale(1.1); cursor: pointer; box-shadow: 0 0 50px rgba(255,51,102,1), inset 0 0 15px rgba(255,255,255,0.6); }

/* ─── SECTION 6: GALLERY ─── */
.ui-gallery { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-top: 80px; 
    position: relative;
    gap: 0;
    perspective: 1000px;
}
.phone-wrapper { position: relative; z-index: 1; }
.phone-left {
    z-index: 1;
    transform: translateY(20px) rotate(-2deg);
    animation: float-left 8s ease-in-out infinite alternate;
}
.phone-right {
    z-index: 2;
    margin-left: -80px; 
    transform: translateY(-40px) rotate(2deg);
    animation: float-right 6s ease-in-out infinite alternate;
}
@keyframes float-left {
    0% { transform: translateY(20px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(-1deg); }
}
@keyframes float-right {
    0% { transform: translateY(-40px) rotate(2deg); }
    100% { transform: translateY(-60px) rotate(1deg); }
}
.gallery-img { width: 100%; max-width: 320px; border-radius: 40px; border: 2px solid rgba(255,255,255,0.1); object-fit: cover; background: #000; padding: 6px; box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
.img-left { box-shadow: 0 30px 60px rgba(139, 92, 246, 0.4), inset 0 0 20px rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.3); }
.img-right { box-shadow: 0 30px 60px rgba(16, 185, 129, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.3); }

/* Micro Tags */
.micro-tag {
    position: absolute; background: rgba(30, 30, 40, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.tag-left { top: 30%; left: -60px; transform: translateX(-100%); }
.tag-right { top: 50%; right: -60px; transform: translateX(100%); }
.tag-line { position: absolute; height: 1px; background: rgba(255, 255, 255, 0.3); }
.line-left { top: calc(30% + 18px); left: -60px; width: 60px; }
.line-right { top: calc(50% + 18px); right: -60px; width: 60px; }

/* RTL Layout fixes for Gallery Micro-Tags */
[dir="rtl"] .tag-left { left: auto; right: -60px; transform: translateX(100%); }
[dir="rtl"] .line-left { left: auto; right: -60px; }

[dir="rtl"] .tag-right { right: auto; left: -60px; transform: translateX(-100%); }
[dir="rtl"] .line-right { right: auto; left: -60px; }

@media (max-width: 900px) {
    .ui-gallery { flex-direction: column; gap: 60px; }
    .phone-right { margin-left: 0; transform: translateY(0) rotate(0); }
    .phone-left { transform: translateY(0) rotate(0); }
    .tag-left { left: 50%; top: -40px; transform: translateX(-50%); }
    .tag-right { right: 50%; bottom: -40px; top: auto; transform: translateX(50%); }
    .line-left, .line-right { display: none; }
}

/* ─── TESTIMONIALS AVATAR ORBS ─── */
.glass-orb {
    width: 56px; height: 56px; border-radius: 50%;
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2), 0 4px 10px rgba(0,0,0,0.2);
}
.orb-1 { background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.8), rgba(29, 78, 216, 0.6)); } /* Deep Blue */
.orb-2 { background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.8), rgba(126, 34, 206, 0.6)); } /* Soft Purple */
.orb-3 { background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.8), rgba(4, 120, 87, 0.6)); } /* Emerald Green */

/* ─── TESTIMONIALS ANTIGRAVITY ─── */
.antigravity-card {
    animation: antigravity-float 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
    will-change: transform;
}
.antigravity-card:hover {
    animation-play-state: paused;
}
.ag-1 { animation-delay: 0s; }
.ag-2 { animation-delay: -2s; }
.ag-3 { animation-delay: -4s; }

@keyframes antigravity-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-16px); }
}

/* ─── FOOTER ─── */
.footer {
  padding: 80px 20px 40px;
  position: relative;
  z-index: 10;
  background: #050a0f;
  overflow: hidden;
}
[data-theme="light"] .footer {
  background: #f8fafc;
}

.footer-center-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
[data-theme="light"] .footer-center-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 60%);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.security-badge {
    background: rgba(20, 25, 35, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
[data-theme="light"] .security-badge {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.lock-icon {
    width: 16px;
    color: #10b981;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
}
.security-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-glass-btn {
    height: 40px;
    padding: 0 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
[data-theme="light"] .footer-glass-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.footer-glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
[data-theme="light"] .footer-glass-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.footer-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin-bottom: 20px;
}
[data-theme="light"] .footer-divider {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.footer-copyright {
    color: var(--text-mut);
    font-size: 0.85rem;
    opacity: 0.5;
    font-weight: 500;
}
