/* Wmimo Homepage - Folia-Inspired Kinetic Parallax & Glassmorphism Design */

:root {
  --fh-bg: var(--bg-app);
  --fh-text: var(--text-primary);
  --fh-glow-1: rgba(0, 188, 223, 0.16);
  --fh-glow-2: rgba(2, 132, 199, 0.12);
  --fh-glow-3: rgba(0, 218, 245, 0.15);
  --fh-glow-4: rgba(56, 189, 248, 0.08);
  --fh-geo-border: rgba(255, 255, 255, 0.15);
  --fh-geo-dots: radial-gradient(rgba(0, 188, 223, 0.3) 2px, transparent 2px);
  --fh-star-bg: #ffffff;
  --fh-star-shadow: rgba(0, 188, 223, 0.6);
  --fh-typo-color: var(--text-primary);
  --fh-typo-opacity: 0.035;
  --fh-title-color: #ffffff;
  --fh-title-3d: #080c14;
  --fh-title-shadow: rgba(0, 0, 0, 0.85);
  --fh-subtitle-color: var(--text-secondary);
  --fh-glass-bg: rgba(18, 25, 41, 0.72);
  --fh-glass-border: var(--border-color);
  --fh-btn-primary-bg: linear-gradient(135deg, #00BCDF 0%, #0284C7 100%);
  --fh-btn-primary-text: #ffffff;
  --fh-btn-primary-hover: linear-gradient(135deg, #38BDF8 0%, #00BCDF 100%);
  --fh-btn-secondary-hover: rgba(255, 255, 255, 0.08);
  --fh-card-glow: radial-gradient(circle at center, rgba(0, 188, 223, 0.18) 0%, transparent 65%);
  --fh-scroll-border: rgba(255, 255, 255, 0.35);
  --fh-scroll-wheel: var(--brand-primary);
}

body.folia-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow-x: hidden;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Folia Fixed Atmospheric Background
   ========================================================================== */
.fume-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
  transition: background 0.3s ease;
}

.glow-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--fh-glow-1) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-2 {
  bottom: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--fh-glow-2) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-3 {
  top: 40%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--fh-glow-3) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-4 {
  top: 80%;
  left: 10%;
  width: 32vw;
  height: 32vw;
  background: radial-gradient(circle, var(--fh-glow-4) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Geometric Clusters */
.geo {
  position: absolute;
  border: 1px solid var(--fh-geo-border);
  will-change: transform;
}

.geo-cluster {
  transform-origin: center;
}

.geo-circle-hollow {
  border-radius: 50%;
  border-width: 2px;
}

.geo-square-hollow {
  border-width: 2px;
}

.geo-cat,
.geo-triangle {
  border: none !important;
  background-image: url('../images/cat_icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent !important;
  filter: drop-shadow(0 0 14px rgba(0, 218, 245, 0.35));
  pointer-events: none;
}

.geo-dots {
  background-image: var(--fh-geo-dots);
  background-size: 16px 16px;
  border: none;
  opacity: 0.28;
}

/* Twinkling Stars */
.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--fh-star-bg);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px var(--fh-star-shadow);
  will-change: transform, opacity;
}

/* ==========================================================================
   Kinetic Typography Layer (Huge Atmospheric Slogans)
   ========================================================================== */
.typography-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 650vh;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.typo {
  position: absolute;
  font-weight: 900;
  color: var(--fh-typo-color);
  opacity: var(--fh-typo-opacity);
  white-space: nowrap;
  letter-spacing: -0.05em;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.typo-1 { top: 4%;  left: -5%;  font-size: 14vw; }
.typo-2 { top: 16%; right: -8%; font-size: 11vw; }
.typo-3 { top: 29%; left: 8%;   font-size: 10vw; }
.typo-4 { top: 42%; left: 24%;  font-size: 8.5vw; }
.typo-5 { top: 56%; left: -4%;  font-size: 11vw; }
.typo-6 { top: 69%; right: -4%; font-size: 9.5vw; }
.typo-7 { top: 81%; left: 12%;  font-size: 8.5vw; }
.typo-8 { top: 92%; right: 8%;  font-size: 10.5vw; }

/* ==========================================================================
   Scroll Content & Sections
   ========================================================================== */
.scroll-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 9vw;
  box-sizing: border-box;
  will-change: transform, opacity;
}

/* Hero Section */
.hero-section {
  flex-direction: column;
  text-align: center;
  padding-top: 15vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.hero-content .title {
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--fh-title-color);
  text-shadow: 
    1px 1px 0 var(--fh-title-3d),
    2px 2px 0 var(--fh-title-3d),
    3px 3px 0 var(--fh-title-3d),
    4px 4px 0 var(--fh-title-3d),
    5px 5px 0 var(--fh-title-3d),
    6px 6px 0 var(--fh-title-3d),
    8px 8px 18px var(--fh-title-shadow);
  line-height: 0.95;
}

.hero-content .subtitle {
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 500;
  color: var(--fh-subtitle-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.cta-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-actions {
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .btn,
.cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .btn-primary,
.cta-actions .btn-primary {
  background: linear-gradient(135deg, #00BCDF 0%, #0284C7 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(0, 188, 223, 0.38) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.hero-actions .btn-primary svg,
.cta-actions .btn-primary svg {
  stroke: #FFFFFF !important;
}

.hero-actions .btn-primary:hover,
.cta-actions .btn-primary:hover {
  background: linear-gradient(135deg, #38BDF8 0%, #00BCDF 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 188, 223, 0.55) !important;
}

.hero-actions .btn-secondary.glass,
.cta-actions .btn-secondary.glass {
  background: rgba(18, 25, 41, 0.72) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-card);
}

.hero-actions .btn-secondary.glass:hover,
.cta-actions .btn-secondary.glass:hover {
  background: rgba(24, 34, 56, 0.85) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Mouse Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.88rem;
  color: var(--fh-subtitle-color);
  gap: 10px;
  letter-spacing: 0.05em;
  user-select: none;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--fh-scroll-border);
  border-radius: 13px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--fh-scroll-wheel);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite ease-in-out;
  box-shadow: 0 0 8px rgba(0, 218, 245, 0.8);
}

@keyframes scrollWheel {
  0% { top: 6px; opacity: 1; height: 8px; }
  50% { top: 16px; opacity: 0.8; height: 10px; }
  100% { top: 22px; opacity: 0; height: 4px; }
}

/* Feature Container */
.feature-container {
  display: flex;
  width: 100%;
  max-width: 1240px;
  align-items: center;
  gap: 5rem;
}

.feature-section.reverse .feature-container {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
  position: relative;
  will-change: transform, opacity;
}

.feature-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.feature-desc {
  font-size: 1.15rem;
  color: var(--fh-subtitle-color);
  line-height: 1.75;
  margin: 0;
}

.feature-deco {
  position: absolute;
  top: -45px;
  left: -25px;
  font-size: 4rem;
  color: #00daf5;
  opacity: 0.18;
  pointer-events: none;
  line-height: 1;
}

.visual-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform, opacity;
}

/* Glass Card */
.glass-card {
  background: var(--fh-glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--fh-glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.image-card {
  width: 100%;
  max-width: 520px;
  position: relative;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--fh-card-glow);
  pointer-events: none;
}

/* Preview Rotator */
.preview-rotator {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(18, 25, 41, 0.85);
  border: 1px solid var(--border-color);
}

.preview-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
  box-sizing: border-box;
  text-align: center;
}

.preview-slide.active {
  opacity: 1;
  transform: scale(1);
}

.mockup-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mockup-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 188, 223, 0.12);
  border: 1px solid rgba(0, 188, 223, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  box-shadow: 0 0 25px rgba(0, 188, 223, 0.25);
}

.mockup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mockup-badge {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(0, 188, 223, 0.15);
  border: 1px solid rgba(0, 188, 223, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--brand-primary-light);
  font-weight: 600;
}

/* Stacked Cards Fan-Out */
.stacked-cards {
  position: relative;
  width: 100%;
  height: 400px;
}

.src-card {
  position: absolute;
  width: 270px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem;
  box-sizing: border-box;
  will-change: transform, opacity;
  border-radius: var(--radius-card);
}

.card-1 {
  top: 8%;
  left: 8%;
  z-index: 3;
  background: rgba(24, 34, 56, 0.92);
  border: 1px solid rgba(0, 188, 223, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 188, 223, 0.12);
}

.card-2 {
  top: 32%;
  left: 26%;
  z-index: 2;
  background: rgba(18, 25, 41, 0.85);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.card-3 {
  top: 56%;
  left: 44%;
  z-index: 1;
  background: rgba(14, 20, 34, 0.8);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.card-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

.card-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Center-Align Section */
.center-align {
  flex-direction: column;
  text-align: center;
}

.feature-container-center {
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
}

/* ==========================================================================
   Interactive Comparison Slider (.theme-compare)
   ========================================================================== */
.theme-compare {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-top: 3.5rem;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.theme-compare-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #0E1422;
  border: 1px solid var(--border-color);
}

/* Right View: Direct Network (Default) */
.theme-compare-base {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 3rem 4rem;
  box-sizing: border-box;
  background: radial-gradient(circle at 80% 50%, rgba(239, 68, 68, 0.08) 0%, #0E1422 70%);
  text-align: right;
}

/* Left View: Wmimo Accelerated (Overlay) */
.theme-compare-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 4rem;
  box-sizing: border-box;
  background: radial-gradient(circle at 20% 50%, rgba(0, 188, 223, 0.15) 0%, #0A0E17 70%);
  clip-path: inset(0 50% 0 0);
  border-right: none;
}

.compare-stat-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.compare-stat-badge.good {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.compare-stat-badge.bad {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.compare-heading {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.compare-heading.cyan {
  color: #00daf5;
  text-shadow: 0 0 25px rgba(0, 218, 245, 0.4);
}

.compare-heading.gray {
  color: #94a3b8;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.7);
}

.compare-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  border-left: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  box-shadow: 0 0 15px rgba(0, 218, 245, 0.8);
}

.theme-compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 218, 245, 0.5);
  transform: translate(-50%, -50%);
}

.theme-compare-handle span {
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: #0f172a;
}

.theme-compare-label {
  position: absolute;
  top: 20px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.theme-compare-label-left { left: 24px; color: #00daf5; }
.theme-compare-label-right { right: 24px; color: #94a3b8; }

/* Bottom CTA Section */
.cta-section {
  min-height: 80vh;
}

.cta-box {
  width: 100%;
  max-width: 960px;
  padding: 4.5rem 3rem;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at 50% 0%, rgba(0, 188, 223, 0.14) 0%, rgba(18, 25, 41, 0.85) 80%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Site Footer */
.site-footer {
  position: relative;
  z-index: 10;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-container,
  .feature-section.reverse .feature-container {
    flex-direction: column;
    text-align: center;
    gap: 3.5rem;
  }
  
  .text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-deco {
    left: 50%;
    transform: translateX(-50%) !important;
  }

  .stacked-cards {
    height: 340px;
    display: flex;
    justify-content: center;
  }

  .src-card {
    width: 240px;
    height: 150px;
  }

  .card-1 { left: 5%; }
  .card-2 { left: 22%; }
  .card-3 { left: 38%; }

  .theme-compare-base,
  .theme-compare-overlay {
    padding: 2rem;
  }

  .compare-heading {
    font-size: 1.5rem;
  }
}
