@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

:root {
  --radius: 1rem;
  /* Grayscale color palette - 0 0% X% HSL values */
  --bg-pure: hsl(0 0% 0%);
  --bg-dark: hsl(0 0% 5%);
  --bg-panel: hsl(0 0% 10%);
  --bg-glass: hsl(0 0% 15% / 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-pure);
  color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Headings use weight 500 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

/* Serif accent: Source Serif 4 for italic/emphasis text inside headings */
h1 em, h1 i, h1 .italic,
h2 em, h2 i, h2 .italic,
h3 em, h3 i, h3 .italic {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
}

/* Custom components classes */
.liquid-glass {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, transparent 40%, transparent 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 20%, transparent 40%, transparent 60%, rgba(255,255,255,0.2) 80%, rgba(255,255,255,0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Animations and transitions */
.transition-all-custom {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.active-scale:active {
  transform: scale(0.95);
}

/* Accordion open/close transitions */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-content.open {
  max-height: 250px;
  opacity: 1;
}

/* Scroll bounce indicator */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-float {
  animation: floatUpDown 2s ease-in-out infinite;
}

/* Simulated AI generation loading animations */
@keyframes loadingWidth {
  0% { width: 0%; }
  100% { width: 100%; }
}
.animate-growth-loader {
  animation: loadingWidth 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Slider custom styles (Webkit) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  height: 6px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Custom premium AI orb animations */
@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(56px) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(56px) rotate(-360deg); }
}
@keyframes orbitSpinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg) translateX(40px) rotate(-360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg) translateX(40px) rotate(0deg); }
}

.animate-orbit-outer {
  animation: orbitSpin 8s linear infinite;
  box-shadow: 0 0 10px #34d399, 0 0 20px rgba(52, 211, 153, 0.6);
}
.animate-orbit-inner {
  animation: orbitSpinReverse 6s linear infinite;
  box-shadow: 0 0 10px #22d3ee, 0 0 20px rgba(34, 211, 238, 0.6);
}