/* ============================================
   CHUCHOTTE — One-page website
   ============================================ */

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

:root {
  --bg-deep: #0d0d1a;
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --violet: #7B2FBE;
  --blue: #2F80ED;
  --violet-light: #9B59D0;
  --blue-light: #5B9BF0;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(13, 13, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-blob-icon {
  width: 28px;
  height: 28px;
  border-radius: 50% 40% 50% 45%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  animation: blobIconPulse 3s ease-in-out infinite;
}

.nav-blob-icon.small {
  width: 22px;
  height: 22px;
}

@keyframes blobIconPulse {
  0%, 100% { border-radius: 50% 40% 50% 45%; transform: scale(1); }
  33% { border-radius: 45% 50% 40% 50%; transform: scale(1.05); }
  66% { border-radius: 40% 45% 50% 40%; transform: scale(0.97); }
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  padding: 8px 20px !important;
  border-radius: 100px;
  color: white !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(123, 47, 190, 0.12) 0%, rgba(47, 128, 237, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Blob */
.blob-container {
  width: 280px;
  height: 280px;
  position: relative;
  margin-bottom: 2.5rem;
}

.blob-shape {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7B2FBE, #5B3FD9, #2F80ED);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blobMorph 10s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(123, 47, 190, 0.35));
}

@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  20% { border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%; }
  40% { border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%; }
  60% { border-radius: 30% 60% 40% 70% / 70% 40% 60% 30%; }
  80% { border-radius: 50% 40% 70% 30% / 40% 70% 30% 60%; }
}

.blob-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(123, 47, 190, 0.15);
  animation: pulseRing 4s ease-out infinite;
}

.blob-pulse-ring.ring-2 {
  animation-delay: 2s;
}

@keyframes pulseRing {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Blob particles */
.blob-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50% 40% 50% 45%;
  background: linear-gradient(135deg, #7B2FBE, #5B3FD9, #2F80ED);
  opacity: 0;
  pointer-events: none;
  filter: blur(0.5px);
  animation: blobIconPulse 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(123, 47, 190, 0.4);
}

/* Title */
.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.title-gradient {
  background: linear-gradient(135deg, var(--violet-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.tagline-highlight {
  color: var(--text-primary);
  font-weight: 600;
}

/* CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1.05rem;
  box-shadow: 0 8px 32px rgba(123, 47, 190, 0.3), 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(123, 47, 190, 0.4), 0 4px 12px rgba(0,0,0,0.3);
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.15rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.hero-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--violet), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* --- Section shared --- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--violet-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* --- Features --- */
.features {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.features-line-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  overflow: hidden;
}

.features-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--violet), var(--blue), transparent);
  transform: scaleY(0);
  transform-origin: top;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
}

.feature-card-glow {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 190, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(123, 47, 190, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 60px rgba(123, 47, 190, 0.06);
}

.feature-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.4;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.12), rgba(47, 128, 237, 0.08));
  margin-bottom: 1.25rem;
  position: relative;
}

.feature-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(123, 47, 190, 0.15);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon-wrap::after {
  opacity: 1;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-card kbd {
  display: inline;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.feature-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet-light);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(123, 47, 190, 0.2);
  background: rgba(123, 47, 190, 0.06);
}

/* --- Demo --- */
.demo {
  padding: 8rem 0;
  position: relative;
}

.demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.demo-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.demo-connector {
  padding-top: 80px;
  width: 80px;
  flex-shrink: 0;
}

.connector-svg {
  width: 100%;
}

.demo-step {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.demo-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.demo-step-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.demo-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.demo-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Demo keys */
.demo-keys {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
  padding: 0 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.key-plus {
  color: var(--text-muted);
  font-weight: 500;
}

/* Demo blob mini */
.demo-blob-mini {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-blob {
  width: 56px;
  height: 56px;
  border-radius: 50% 40% 50% 45%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  animation: blobIconPulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(123, 47, 190, 0.4);
}

.sound-waves {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  left: calc(50% + 40px);
}

.sound-waves span {
  display: block;
  width: 3px;
  background: linear-gradient(to top, var(--violet), var(--blue));
  border-radius: 2px;
  animation: soundWave 1s ease-in-out infinite;
}

.sound-waves span:nth-child(1) { height: 12px; animation-delay: 0s; }
.sound-waves span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.sound-waves span:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.sound-waves span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.sound-waves span:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes soundWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* Demo text appear */
.demo-text-appear {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
}

.typed-cursor {
  color: var(--violet-light);
  animation: cursorBlink 1s step-end infinite;
  font-weight: 300;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* --- Download --- */
.download {
  padding: 6rem 0 4rem;
}

.download-card {
  position: relative;
  text-align: center;
  padding: 5rem 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(123, 47, 190, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.download-blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.download-blob-svg {
  width: 100%;
  height: 100%;
}

.download-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}

.download-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  position: relative;
}

.download-card .btn {
  position: relative;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
  flex-wrap: wrap;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-icon {
  width: 16px;
  height: 16px;
}

/* --- Support / Wishlist --- */
.support {
  padding: 2rem 0 4rem;
}

.support-card {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--blue), transparent);
}

.support-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.support-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.support-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-support {
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.15), rgba(47, 128, 237, 0.15));
  border: 1px solid rgba(123, 47, 190, 0.25);
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-support:hover {
  background: linear-gradient(135deg, rgba(123, 47, 190, 0.25), rgba(47, 128, 237, 0.25));
  border-color: rgba(123, 47, 190, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123, 47, 190, 0.2);
}

.btn-support .btn-icon {
  width: 18px;
  height: 18px;
}

/* --- Footer --- */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-name {
  background: linear-gradient(135deg, var(--violet-light), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.footer-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-credit strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--violet-light);
}

.footer-credit a:hover strong {
  color: var(--violet-light);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-flow {
    flex-direction: column;
    align-items: center;
  }

  .demo-connector {
    padding-top: 0;
    transform: rotate(90deg);
    width: 60px;
    height: 40px;
  }

  .demo-step {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .blob-container {
    width: 160px;
    height: 160px;
    margin-bottom: 1.5rem;
  }

  .blob-pulse-ring {
    width: 180px;
    height: 180px;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-inner {
    padding: 0 1.25rem;
  }

  .features, .demo {
    padding: 5rem 0;
  }

  .download-card {
    padding: 3rem 1.5rem;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 1rem;
  }

}

/* --- Visibility for GSAP --- */
.hero-content > *,
.feature-card,
.demo-step,
.demo-connector,
.download-card > * {
  will-change: transform, opacity;
}
