/* Modern Premium Design System */
:root {
  /* Core Palette - Deep, Rich, Premium */
  --bg-main: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  /* Brand Accents - Vibrant & Electric */
  --accent-primary: #3b82f6;
  /* Electric Blue */
  --accent-secondary: #8b5cf6;
  /* Vivid Purple */
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent-glow: rgba(59, 130, 246, 0.5);

  /* Borders & Effects */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(10, 10, 10, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Animations */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-masculine: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  /* Strong, impactful bounce */
  --ease-power: cubic-bezier(0.76, 0, 0.24, 1);
  /* Powerful, decisive */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Smooth scroll offset for fixed header */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: calc(var(--header-height) + 0.5rem);
  }
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.no-scroll {
  overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(to right, #fff, #a1a1aa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 768px) {
  h2 {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: clamp(1.25rem, 8vw, 2rem);
  }
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 65ch;
}

@media (max-width: 768px) {
  p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  p {
    font-size: 0.9375rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-power);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

.section {
  padding: 8rem 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s var(--ease-masculine);
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-masculine), height 0.6s var(--ease-masculine);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.6);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  transform: scale(1.05);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  transition: all 0.3s var(--ease-power);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

@media (max-width: 768px) {
  .header-inner {
    padding-right: 0;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.3s var(--ease-masculine);
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.125rem;
    gap: 0.5rem;
  }

  .brand img {
    height: 28px;
  }
}

.brand:hover {
  transform: scale(1.05);
}

.brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.4s var(--ease-power);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
  transition: transform 0.3s var(--ease-power);
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  z-index: 100;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-power), opacity 0.4s var(--ease-power);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.3s var(--ease-power);
  text-align: center;
}

.mobile-nav-link:last-child {
  border-bottom: none;
  margin-top: 0.5rem;
}

.mobile-nav-link:hover {
  color: var(--accent-primary);
}

.mobile-nav-link.btn {
  border: none;
  padding: 1rem 2rem;
  margin-top: 0.5rem;
}

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

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .hero-content {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    gap: 1.25rem;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .hero-content p {
    font-size: 0.9375rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: slide-down 0.8s var(--ease-masculine) forwards;
}

.pulse {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.hero-buttons .btn {
  flex: 1 1 auto;
  min-width: 140px;
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    min-width: unset;
  }
}

/* Features Section */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.4s var(--ease-masculine);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 1.25rem;
  }

  .feature-card h3 {
    font-size: 1.125rem;
  }

  .feature-card p {
    font-size: 0.9375rem;
  }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-power);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  transition: all 0.4s var(--ease-masculine);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(59, 130, 246, 0.2);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* Contact Section */
.contact-section {
  background: var(--bg-secondary);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

@media (max-width: 480px) {
  .contact-content {
    padding: 0 0.5rem;
  }

  .contact-content h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .contact-content p {
    font-size: 1rem;
  }
}

.contact-content h2 {
  margin-bottom: 1rem;
}

.contact-link {
  color: var(--accent-primary);
  font-weight: 600;
  transition: all 0.3s var(--ease-power);
}

.contact-link:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  max-width: 400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-masculine);
  font-weight: 500;
}

@media (max-width: 480px) {
  .social-links {
    max-width: 100%;
  }

  .social-link {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateX(8px) scale(1.02);
}

.social-link svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s var(--ease-masculine);
}

.social-link:hover svg {
  transform: scale(1.2) rotate(5deg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--ease-power);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: scale(1.01);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
}

/* Fun Popup */
.fun-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 320px;
  transform: translateX(400px);
  transition: transform 0.6s var(--ease-masculine);
}

@media (max-width: 768px) {
  .fun-popup {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: calc(100vw - 32px);
    transform: translateY(400px);
  }

  .fun-popup.show {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .fun-popup {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
  }

  .popup-content {
    padding: 1.25rem;
  }

  .popup-body h3 {
    font-size: 1rem;
  }

  .popup-body p {
    font-size: 0.8125rem;
  }

  .explain-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

.fun-popup.show {
  transform: translateX(0);
}

.popup-content {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
  color: white;
  position: relative;
  overflow: hidden;
}

.popup-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(0deg);
  }

  50% {
    transform: translateX(100%) translateY(100%) rotate(180deg);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.popup-emoji {
  font-size: 2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.popup-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  transition: all 0.3s var(--ease-masculine);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.2) rotate(90deg);
}

.popup-body {
  position: relative;
  z-index: 1;
}

.popup-body h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.popup-body p {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.4;
}

.explain-btn {
  background: white;
  color: var(--accent-primary);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s var(--ease-masculine);
  font-size: 0.875rem;
  width: 100%;
}

.explain-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Expanded Overlay */
.expanded-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  animation: fade-in 0.3s var(--ease-power);
  overflow: hidden;
}

@media (max-width: 768px) {
  .expanded-overlay {
    padding: 0.5rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
}

@media (max-width: 480px) {
  .expanded-overlay {
    padding: 0.25rem;
    padding-top: 1rem;
  }
}

.expanded-overlay[hidden] {
  display: none !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.expanded-content {
  width: min(880px, 92vw);
  max-width: 100vw;
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  animation: slide-up 0.5s var(--ease-masculine);
  margin: 1rem;
}

@media (max-width: 768px) {
  .expanded-content {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    margin: 1rem;
    border-radius: var(--radius-sm);
  }

  .expanded-header {
    padding: 1.25rem;
  }

  .expanded-header h2 {
    font-size: 1.25rem;
  }

  .expanded-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .expanded-content {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    margin: 0.5rem;
  }

  .expanded-header {
    padding: 1rem;
  }

  .expanded-header h2 {
    font-size: 1.125rem;
  }

  .expanded-body {
    padding: 1.25rem;
  }

  .explanation-step {
    grid-template-columns: 36px 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .step-content h4 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: 0.9375rem;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.expanded-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: white;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.expanded-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  flex: 1;
}

.close-expanded {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-power);
  z-index: 10000;
  flex-shrink: 0;
}

.close-expanded:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
}

.close-expanded svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .close-expanded {
    width: 36px;
    height: 36px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .close-expanded svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .close-expanded {
    width: 32px;
    height: 32px;
    top: 0.5rem;
    right: 0.5rem;
  }

  .close-expanded svg {
    width: 18px;
    height: 18px;
  }
}

.popup-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.expanded-body {
  padding: 2rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1;
}

.expanded-body::-webkit-scrollbar {
  width: 8px;
}

.expanded-body::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.expanded-body::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

.expanded-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

.explanation-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  animation: slide-in-left 0.6s var(--ease-masculine) backwards;
}

.explanation-step:nth-child(1) {
  animation-delay: 0.1s;
}

.explanation-step:nth-child(2) {
  animation-delay: 0.2s;
}

.explanation-step:nth-child(3) {
  animation-delay: 0.3s;
}

.explanation-step:nth-child(4) {
  animation-delay: 0.4s;
}

.explanation-step:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font: 700 1.125rem/1 system-ui, sans-serif;
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.4s var(--ease-masculine);
}

.explanation-step:hover .step-number {
  transform: scale(1.2) rotate(360deg);
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 1rem;
}

.final-message {
  background: rgba(59, 130, 246, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-primary);
  margin-top: 2rem;
  animation: slide-in-left 0.6s var(--ease-masculine) 0.6s backwards;
}

.final-message p {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  line-height: 1.5;
}

.final-message p:last-child {
  margin-bottom: 0;
}

.final-message a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s var(--ease-power);
}

.final-message a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Journey Section - Interactive Path Design */
.journey-section {
  position: relative;
  min-height: 300vh;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(11, 11, 15, 1) 0%, rgba(15, 15, 25, 1) 50%, rgba(11, 11, 15, 1) 100%);
}

@media (max-width: 768px) {
  .journey-section {
    min-height: auto;
  }
}

.journey-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

@media (max-width: 768px) {
  .journey-container {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .journey-container {
    padding: 2rem 1rem;
  }
}

/* SVG Path Background */
.journey-path-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 100%);
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.journey-path {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

/* Journey Header */
.journey-header {
  position: relative;
  text-align: center;
  margin-bottom: 8rem;
  z-index: 2;
}

.journey-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 50px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

.badge-icon {
  font-size: 1.2rem;
}

.journey-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.journey-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Journey Steps - Alternating Layout */
.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 6rem;
  z-index: 2;
  opacity: 0.3;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-step.active {
  opacity: 1;
  transform: translateY(0);
}

/* Left-aligned steps */
.journey-step.step-left {
  grid-template-areas: "content marker empty";
}

.journey-step.step-left .step-content {
  grid-area: content;
  text-align: right;
}

.journey-step.step-left .step-marker {
  grid-area: marker;
}

/* Right-aligned steps */
.journey-step.step-right {
  grid-template-areas: "empty marker content";
}

.journey-step.step-right .step-content {
  grid-area: content;
  text-align: left;
}

.journey-step.step-right .step-marker {
  grid-area: marker;
}

/* Step Marker Dot */
.step-marker {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marker-dot {
  width: 20px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
  z-index: 1;
  animation: marker-glow 3s ease-in-out infinite;
}

@keyframes marker-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.6);
    /* Purple glow */
    transform: scale(1.15);
  }
}

.marker-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: marker-pulse 2s ease-out infinite;
}

@keyframes marker-pulse {
  0% {
    opacity: 1;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* Step Content */
.step-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(10px);
  max-width: 450px;
  transition: all 0.4s ease;
}

.journey-step.active .step-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.step-content h4 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Quote Steps */
.step-quote .step-icon {
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-quote blockquote {
  margin: 0;
}

.step-quote blockquote p {
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.step-quote cite {
  display: block;
  font-size: 0.9375rem;
  color: var(--accent-secondary);
  font-weight: 600;
  font-style: normal;
}

/* Feature Steps */
.step-feature .step-marker svg {
  width: 32px;
  height: 32px;
  color: var(--accent-primary);
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
}

/* Philosophy Steps */
.philosophy-number {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* Milestone Headers */
.journey-milestone {
  position: relative;
  text-align: center;
  margin: 8rem 0 6rem;
  z-index: 2;
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.8s ease;
}

.journey-milestone.active {
  opacity: 1;
  transform: scale(1);
}

.milestone-header {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
  transition: all 0.4s ease;
}

.journey-milestone.active .milestone-header {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25);
}

.milestone-header h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #3b82f6;
  font-weight: 700;
  line-height: 1.3;
}

.milestone-header h3 .text-purple {
  color: #8b5cf6;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.milestone-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Waypoint */
.journey-waypoint {
  position: relative;
  text-align: center;
  margin: 6rem 0;
  z-index: 2;
  opacity: 0.3;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
  width: 100%;
}

.journey-waypoint.active {
  opacity: 1;
  transform: translateY(0);
}

.waypoint-container {
  position: relative;
  display: inline-block;
  padding: 2rem 4rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
  transition: all 0.6s ease;
  max-width: 100%;
}

.journey-waypoint.active .waypoint-container {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
}

.journey-waypoint h3 {
  font-size: 1.75rem;
  color: #8b5cf6;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding: 0;
  margin: 0;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.3);
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa, #c4b5fd);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

.journey-waypoint.active h3 {
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 80px rgba(139, 92, 246, 0.4);
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
}

.waypoint-container::before,
.waypoint-container::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 100px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.4), transparent);
  transform: translateY(-50%);
  transition: all 0.8s ease;
}

.waypoint-container::before {
  right: 100%;
  margin-right: 2rem;
  background: linear-gradient(to left, transparent, rgba(139, 92, 246, 0.4), transparent);
}

.waypoint-container::after {
  left: 100%;
  margin-left: 2rem;
}

.journey-waypoint.active .waypoint-container::before,
.journey-waypoint.active .waypoint-container::after {
  width: 150px;
  background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.7), rgba(59, 130, 246, 0.5), transparent);
  height: 2px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.journey-waypoint.active .waypoint-container::before {
  background: linear-gradient(to left, transparent, rgba(139, 92, 246, 0.7), rgba(59, 130, 246, 0.5), transparent);
}

/* Destination */
.journey-destination {
  position: relative;
  text-align: center;
  margin-top: 8rem;
  padding: 4rem 2rem;
  z-index: 2;
  opacity: 0.3;
  transform: translateY(40px);
  transition: all 1s ease;
}

.journey-destination.active {
  opacity: 1;
  transform: translateY(0);
}

.destination-marker {
  margin-bottom: 2rem;
}

.destination-flag {
  font-size: 5rem;
  display: inline-block;
  animation: flag-wave 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.4));
}

@keyframes flag-wave {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

.destination-content {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.destination-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.destination-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .journey-step {
    grid-template-columns: auto 1fr;
    grid-template-areas: "marker content";
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .journey-step.step-left,
  .journey-step.step-right {
    grid-template-areas: "marker content";
  }

  .journey-step .step-content {
    text-align: left;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .journey-step {
    grid-template-columns: auto 1fr;
    grid-template-areas: "marker content";
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .journey-step .step-content {
    text-align: left;
    max-width: 100%;
    padding: 1.5rem;
  }

  .step-marker {
    width: 50px;
    height: 50px;
  }

  .marker-dot {
    width: 16px;
    height: 16px;
  }

  .marker-pulse {
    width: 50px;
    height: 50px;
  }

  .journey-header {
    margin-bottom: 4rem;
  }

  .journey-header h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .journey-header p {
    font-size: 1rem;
  }

  .milestone-header {
    padding: 2rem 1.5rem;
  }

  .milestone-header h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .journey-milestone {
    margin: 4rem 0 3rem;
  }

  .journey-waypoint {
    margin: 4rem 0;
  }

  .waypoint-container {
    padding: 1.5rem 2rem;
  }

  .journey-waypoint h3 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .waypoint-container::before,
  .waypoint-container::after {
    width: 60px;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .journey-waypoint.active .waypoint-container::before,
  .journey-waypoint.active .waypoint-container::after {
    width: 80px;
  }

  .destination-content {
    padding: 2rem 1.5rem;
  }

  .destination-content h3 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .destination-content p {
    font-size: 1.125rem;
  }

  .step-content h4 {
    font-size: 1.125rem;
  }

  .step-content p {
    font-size: 0.9375rem;
  }

  .step-quote blockquote p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .journey-step {
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .journey-step .step-content {
    padding: 1.25rem;
  }

  .step-marker {
    width: 40px;
    height: 40px;
  }

  .marker-dot {
    width: 14px;
    height: 14px;
  }

  .marker-pulse {
    width: 40px;
    height: 40px;
  }

  .journey-header {
    margin-bottom: 3rem;
  }

  .journey-header h2 {
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }

  .journey-header p {
    font-size: 0.9375rem;
  }

  .milestone-header {
    padding: 1.5rem 1.25rem;
  }

  .milestone-header h3 {
    font-size: clamp(1.125rem, 6vw, 1.5rem);
  }

  .milestone-header p {
    font-size: 1rem;
  }

  .journey-milestone {
    margin: 3rem 0 2.5rem;
  }

  .journey-waypoint {
    margin: 3rem 0;
  }

  .journey-waypoint h3 {
    font-size: clamp(1.125rem, 6vw, 1.375rem);
    padding: 1rem 1.5rem;
  }

  .destination-content {
    padding: 1.5rem 1.25rem;
  }

  .destination-content h3 {
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }

  .destination-content p {
    font-size: 1rem;
  }

  .step-quote .step-icon {
    font-size: 3rem;
  }

  .philosophy-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* Floating Balloons Animation - Premium Cinematic Design */
#balloons-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.8;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --scroll-speed: 1;
}

.balloon {
  position: absolute;
  bottom: 0;
  width: 50px;
  height: 65px;
  will-change: transform, opacity;
  transform-origin: center bottom;
  /* Use transform3d for GPU acceleration and organic motion */
  animation: float-up-organic var(--duration, 25s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-play-state: running;
  /* Layer-based properties set via JS */
  transform: translate3d(0, 150px, 0) scale(var(--scale, 0.7));
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3)) blur(var(--blur, 0px));
  opacity: var(--opacity, 0.5);
}

/* Depth layer adjustments */
.balloon[data-layer="foreground"] {
  z-index: 3;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.balloon[data-layer="midground"] {
  z-index: 2;
}

.balloon[data-layer="background"] {
  z-index: 1;
}

/* Special trophy balloon styling */
.balloon-special {
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)) drop-shadow(0 8px 25px rgba(0, 0, 0, 0.5)) !important;
  animation: float-up-organic var(--duration, 35s) cubic-bezier(0.2, 0.4, 0.3, 0.95) forwards;
}

/* Trophy pause effect - combined with wobble for smooth motion */
.balloon-special .balloon-inner {
  animation: wobble-trophy 7s ease-in-out infinite;
}

.balloon-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--balloon-color, rgba(139, 92, 246, 0.4)) 0%, color-mix(in srgb, var(--balloon-color, rgba(139, 92, 246, 0.4)) 70%, black) 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: wobble-organic 6s ease-in-out infinite;
  position: relative;
  transform: translateZ(0);
}

.balloon-inner::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid color-mix(in srgb, var(--balloon-color, rgba(139, 92, 246, 0.4)) 50%, black);
}

.balloon-inner::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 12px;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 50%);
  border-radius: 50%;
}

.balloon-symbol {
  position: absolute;
  bottom: -110px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 2;
  animation: symbol-swing-gentle 4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  will-change: transform;
}

/* Gentler, more elegant swing for trophy */
@keyframes symbol-swing-gentle {
  0%,
  100% {
    transform: translateX(-50%) rotate(-3deg) translateY(0);
  }

  25% {
    transform: translateX(-50%) rotate(2deg) translateY(-2px);
  }

  50% {
    transform: translateX(-50%) rotate(3deg) translateY(0);
  }

  75% {
    transform: translateX(-50%) rotate(-2deg) translateY(-2px);
  }
}

.balloon-string {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(100, 100, 100, 0.6), transparent);
  animation: string-sway 3s ease-in-out infinite;
  pointer-events: none;
}

/* Organic, cinematic float-up animation using transform3d for GPU acceleration */
/* All movement via transform3d for smooth 60fps performance */
@keyframes float-up-organic {
  0% {
    /* Start below viewport (150px below bottom: 0) */
    transform: translate3d(0, 150px, 0) scale(var(--scale, 0.7));
    opacity: 0;
  }

  5% {
    /* Gentle fade-in as it enters viewport */
    opacity: var(--opacity, 0.5);
  }

  15% {
    /* Early gentle curve - slight ease-in with organic drift */
    transform: translate3d(
      calc(var(--drift-curve, 0) * 0.3), 
      calc(150px - (100vh + 300px) * 0.15 * var(--speed-multiplier, 1) * var(--scroll-speed, 1)), 
      0
    ) scale(var(--scale, 0.7));
  }

  35% {
    /* Building momentum with curved path */
    transform: translate3d(
      calc(var(--drift-amount, 0) * 0.4 + var(--drift-curve, 0) * 0.5), 
      calc(150px - (100vh + 300px) * 0.35 * var(--speed-multiplier, 1) * var(--scroll-speed, 1)), 
      0
    ) scale(var(--scale, 0.7));
  }

  50% {
    /* Mid-journey: main drift curve at peak */
    transform: translate3d(
      calc(var(--drift-amount, 0) * 0.7 + var(--drift-curve, 0) * 0.6), 
      calc(150px - (100vh + 300px) * 0.5 * var(--speed-multiplier, 1) * var(--scroll-speed, 1)), 
      0
    ) scale(var(--scale, 0.7));
  }

  70% {
    /* Continuing organic path */
    transform: translate3d(
      calc(var(--drift-amount, 0) * 0.9 + var(--drift-curve, 0) * 0.5), 
      calc(150px - (100vh + 300px) * 0.7 * var(--speed-multiplier, 1) * var(--scroll-speed, 1)), 
      0
    ) scale(var(--scale, 0.7));
  }

  90% {
    /* Near top: full drift, slight ease-out */
    transform: translate3d(
      calc(var(--drift-amount, 0) + var(--drift-curve, 0) * 0.3), 
      calc(150px - (100vh + 300px) * 0.9 * var(--speed-multiplier, 1) * var(--scroll-speed, 1)), 
      0
    ) scale(var(--scale, 0.7));
    opacity: var(--opacity, 0.5);
  }

  100% {
    /* Exit above viewport with full organic curve */
    transform: translate3d(
      calc(var(--drift-amount, 0) * 1.1 + var(--drift-curve, 0)), 
      calc(150px - (100vh + 300px) * var(--speed-multiplier, 1) * var(--scroll-speed, 1)), 
      0
    ) scale(var(--scale, 0.7));
    opacity: 0;
  }
}

/* Combined wobble and float for trophy balloon - more elegant motion */
@keyframes wobble-trophy {
  0%, 100% {
    transform: translateX(0) rotate(0deg) translateY(0);
  }
  15% {
    transform: translateX(-1.5px) rotate(-0.5deg) translateY(-2px);
  }
  30% {
    transform: translateX(1px) rotate(0.3deg) translateY(-4px);
  }
  45% {
    transform: translateX(-1px) rotate(-0.3deg) translateY(-5px);
  }
  60% {
    transform: translateX(1.5px) rotate(0.5deg) translateY(-4px);
  }
  75% {
    transform: translateX(-1px) rotate(-0.3deg) translateY(-2px);
  }
  90% {
    transform: translateX(1px) rotate(0.3deg) translateY(0);
  }
}

/* More natural string sway with subtle vertical movement */
@keyframes string-sway {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1.5deg) translateY(0);
  }

  33% {
    transform: translateX(-50%) rotate(1deg) translateY(1px);
  }

  66% {
    transform: translateX(-50%) rotate(1.5deg) translateY(0);
  }
}

/* More natural, organic wobble with subtle rotation */
@keyframes wobble-organic {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  20% {
    transform: translateX(-2px) rotate(-1deg);
  }

  40% {
    transform: translateX(1px) rotate(0.5deg);
  }

  60% {
    transform: translateX(-1px) rotate(-0.5deg);
  }

  80% {
    transform: translateX(2px) rotate(1deg);
  }
}

@media (max-width: 768px) {
  .balloon {
    width: 40px;
    height: 52px;
  }

  .balloon-symbol {
    font-size: 1.5rem;
    bottom: -90px;
  }

  .balloon-string {
    height: 65px;
    bottom: -65px;
  }

  /* Reduce blur on mobile for performance */
  .balloon[data-layer="background"] {
    --blur: 1px;
  }
}

@media (max-width: 480px) {
  .balloon {
    width: 35px;
    height: 45px;
  }

  .balloon-symbol {
    font-size: 1.25rem;
    bottom: -75px;
  }

  .balloon-string {
    height: 55px;
    bottom: -55px;
  }

  /* Further reduce effects on small screens */
  .balloon[data-layer="background"] {
    --blur: 0.5px;
  }
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.05) 100%);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    gap: 1.25rem;
  }

  .site-footer {
    padding: 3rem 0;
  }
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Walking Person Animation - Professional Sprite */
.walking-person {
  position: fixed;
  bottom: 60px;
  left: 0;
  z-index: 9998;
  animation:
    walk-across 12s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    fade-out 1s ease-out 10.5s forwards;
  animation-delay: 1.5s;
  pointer-events: none;
  transform: translateX(-250px);
}

@keyframes walk-across {
  0% {
    transform: translateX(-250px);
  }

  100% {
    transform: translateX(calc(100vw + 150px));
  }
}

/* Realistic Shadow */
.person-shadow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  animation: shadow-pulse 0.8s ease-in-out infinite;
  filter: blur(4px);
}

@keyframes shadow-pulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0.35;
  }
}

/* Walking Sprite Animation */
.walking-sprite {
  width: 200px;
  height: 200px;
  background-image: url('./walking-sprite.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: sprite-walk 0.8s steps(1) infinite;
}

@keyframes sprite-walk {
  0% {
    transform: translateY(0);
  }

  12.5% {
    transform: translateY(-2px);
  }

  25% {
    transform: translateY(0);
  }

  37.5% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(0);
  }

  62.5% {
    transform: translateY(-2px);
  }

  75% {
    transform: translateY(0);
  }

  87.5% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Fade out animation */
@keyframes fade-out {
  to {
    opacity: 0;
  }
}


/* Utilities */
.text-gradient {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fade-in-up {
  animation: fadeInUp 0.8s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------
   Insights
-------------------------------------------------------- */

.insights-header {
  position: relative;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 55%, transparent 100%);
  overflow: hidden;
}

.insights-header::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.3), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.insights-header-inner {
  max-width: 780px;
}

.insights-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.insights-header-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.insights-header-subtitle {
  color: var(--text-secondary);
  max-width: 60ch;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .insights-header {
    padding-top: calc(var(--header-height) + 2.75rem);
    padding-bottom: 2.25rem;
  }

  .insights-header-title {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }
}

@keyframes insights-glow {
  0% {
    transform: scale(1) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.04) translateY(-6px);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.06) translateY(4px);
    opacity: 0.6;
  }
}

.insights-section {
  padding-top: 4rem;
}

.insights-filters-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.75rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.insights-filters-card::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.28), transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .insights-filters-card {
    animation: insights-glow 12s ease-in-out infinite alternate;
  }
}

.insights-filters-layout {
  display: flex;
  justify-content: space-between;
  gap: 1.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.insights-filters-left {
  flex: 1 1 260px;
  min-width: 0;
}

.insights-filters-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  flex: 1 1 260px;
}

.insights-input-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.insights-search-wrapper,
.insights-sort-wrapper {
  width: 100%;
}

.insights-search-wrapper input,
.insights-sort-wrapper select {
  width: 100%;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s var(--ease-power);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.insights-sort-wrapper select {
  background-color: rgba(10, 10, 10, 0.8);
  color: var(--text-primary);
}

.insights-sort-wrapper select option {
  background-color: var(--bg-main);
  color: var(--text-primary);
  padding: 0.5rem;
}

.insights-search-wrapper input::placeholder {
  color: var(--text-muted);
}

.insights-search-wrapper input:focus,
.insights-sort-wrapper select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

.insights-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.insights-filter-pill {
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease-masculine);
}

.insights-filter-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.12);
}

.insights-filter-pill.active {
  border-color: transparent;
  background: var(--accent-gradient);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.55);
}

@media (max-width: 768px) {
  .insights-filters-card {
    padding: 1.4rem 1.4rem;
  }

  .insights-filters-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .insights-filters-right {
    align-items: stretch;
  }
}

.insights-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 900px) {
  .insights-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.insight-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-masculine), box-shadow 0.35s var(--ease-masculine),
    border-color 0.35s var(--ease-masculine), background 0.35s var(--ease-masculine);
}

.insight-card::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-power);
  pointer-events: none;
}

.insight-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8), 0 0 25px rgba(59, 130, 246, 0.35);
  animation: emotional-pulse 5s ease-in-out infinite;
}

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

.insight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.insight-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
  color: #e5e7eb;
}

.insight-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.insight-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.insight-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease-power);
}

.insight-card h3 a:hover {
  color: var(--accent-primary);
}

.insight-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.insight-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  color: var(--accent-primary);
  position: relative;
  padding-bottom: 0.1rem;
}

.insight-read-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.25s var(--ease-power);
}

.insight-read-link:hover::after {
  width: 100%;
}

.insight-card.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: none;
}

.insight-card.visible {
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.insight-card.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  visibility: hidden;
}

@keyframes emotional-pulse {
  0%, 100% {
    transform: translateY(-8px) scale(1.02);
  }
  50% {
    transform: translateY(-12px) scale(1.025);
  }
}

@media (max-width: 768px) {
  .insight-card {
    padding: 1.6rem 1.5rem;
  }

  .insight-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Article layout */

.article-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 3rem;
  text-align: left;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.4), transparent 60%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.3), transparent 65%);
  opacity: 0.7;
  z-index: -1;
  animation: insights-glow 12s ease-in-out infinite alternate;
}

.article-hero-inner {
  max-width: 780px;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.article-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  margin-bottom: 1rem;
}

.article-hero-subtitle {
  color: var(--text-secondary);
  max-width: 60ch;
  font-size: 1.05rem;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 768px) {
  .article-hero {
    padding-top: calc(var(--header-height) + 3rem);
  }

  .article-hero h1 {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
  }

  .article-hero-subtitle {
    font-size: 0.98rem;
  }
}

.article-body {
  max-width: 780px;
}

.article-module {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 1.9rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-masculine), box-shadow 0.4s var(--ease-masculine),
    border-color 0.4s var(--ease-masculine), background 0.4s var(--ease-masculine);
}

.article-module::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 45%;
  height: 140%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-power);
}

.article-module:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(255, 255, 255, 0.03);
}

.article-module:hover::before {
  opacity: 1;
}

.article-module h2 {
  font-size: 1.55rem;
  margin-bottom: 0.9rem;
}

.article-module p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.article-module ul,
.article-module ol {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
}

.article-module li {
  margin-bottom: 0.55rem;
}

.article-module strong {
  color: var(--text-primary);
}

.article-story {
  border-left: 3px solid rgba(139, 92, 246, 0.7);
}

.article-insight {
  border-left: 3px solid rgba(59, 130, 246, 0.8);
}

.article-micro-actions {
  border-left: 3px solid rgba(16, 185, 129, 0.85);
}

.article-reflection {
  border-left: 3px solid rgba(234, 179, 8, 0.9);
}

.article-quote {
  text-align: center;
  border-left: 0;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.95));
}

.article-quote blockquote {
  margin: 0;
  font-size: 1.3rem;
  font-style: italic;
  color: #e5e7eb;
}

.article-back-link {
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .article-module {
    padding: 1.5rem 1.4rem;
  }

  .article-module h2 {
    font-size: 1.35rem;
  }
}
