/* ============================
   Estë Landing Page
   Premium dark theme
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #050507;
  --bg-alt: #08080d;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(52, 211, 153, 0.2);
  --text: #e4e4ed;
  --text-dim: #808096;
  --accent: #34d399;
  --accent2: #3b82f6;
  --accent-glow: rgba(52, 211, 153, 0.15);
  --secondary-glow: rgba(59, 130, 246, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }
html.home { scroll-snap-type: y proximity; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}
@media (max-width: 768px) {
  body::before { display: none; }
}

/* Skip-to-content (a11y) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 12px;
  opacity: 1;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

/* Focus-visible (keyboard navigation a11y) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Brand wordmark */
.brand {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.feature-card:nth-child(2) { transition-delay: 0.06s; }
.feature-card:nth-child(3) { transition-delay: 0.12s; }
.feature-card:nth-child(4) { transition-delay: 0.18s; }

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes icon-breathe {
  0%, 100% { box-shadow: 0 0 16px rgba(52, 211, 153, 0.12), 0 0 40px rgba(59, 130, 246, 0.06); }
  50% { box-shadow: 0 0 28px rgba(52, 211, 153, 0.25), 0 0 60px rgba(59, 130, 246, 0.12); }
}

@keyframes flow-dot {
  0%, 5% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  95%, 100% { left: calc(100% - 4px); opacity: 0; }
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(52, 211, 153, 0.15); }
  50% { box-shadow: 0 0 50px rgba(52, 211, 153, 0.3), 0 0 100px rgba(52, 211, 153, 0.08); }
}

@keyframes step-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(52, 211, 153, 0.2), 0 0 60px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 44px rgba(52, 211, 153, 0.35), 0 0 80px rgba(59, 130, 246, 0.18); }
}

@keyframes badge-shimmer {
  0%, 65% { left: -100%; }
  100% { left: 250%; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent);
  color: #000;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  text-decoration: none;
  position: relative;
}
.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(52, 211, 153, 0.35), 0 0 0 1px rgba(52, 211, 153, 0.2);
}
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 30px rgba(52, 211, 153, 0.1), inset 0 0 20px rgba(52, 211, 153, 0.03);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s, padding 0.3s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  padding: 12px 0;
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo:hover { opacity: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:not(.btn):hover { color: var(--accent); opacity: 1; }
.nav-links .btn { color: #000; }
.nav-donate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent) !important;
  opacity: 0.8;
}
.nav-donate:hover { opacity: 1 !important; }
.mobile-menu .nav-donate { color: var(--accent) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(5, 5, 7, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a { color: var(--text-dim); font-size: 1.05rem; font-weight: 500; transition: color 0.3s ease; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { color: #000; text-align: center; justify-content: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 120px 0 60px;
  min-height: 100vh;
  scroll-snap-align: start;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Multi-layer gradient mesh background */
/* Animated background (shared across sections) */
.section-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.section-bg .glow-1 {
  width: 700px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.12), transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}
.section-bg .glow-2 {
  width: 500px;
  height: 400px;
  top: 0;
  left: 15%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08), transparent 70%);
  animation: pulse-glow 10s ease-in-out infinite 2s;
}
.section-bg .glow-3 {
  width: 400px;
  height: 350px;
  top: 50px;
  right: 10%;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.06), transparent 70%);
  animation: pulse-glow 12s ease-in-out infinite 4s;
}
/* Orbiting accent dots */
.section-bg .orb {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
}
.section-bg .orb-1 {
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  animation: orbit 20s linear infinite;
  will-change: transform;
}
.section-bg .orb-2 {
  background: var(--accent2);
  box-shadow: 0 0 20px var(--secondary-glow);
  animation: orbit 28s linear infinite reverse;
  will-change: transform;
}
/* Boost glow visibility in non-hero sections */
.section .section-bg .glow-1 {
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.18), transparent 70%);
}
.section .section-bg .glow-2 {
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12), transparent 70%);
}
.section .section-bg .glow-3 {
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.10), transparent 70%);
}

/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: badge-shimmer 5s ease-in-out infinite 2s;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #6ee7b7 40%, var(--accent2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 1.12rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Scroll indicator */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.8; }
}
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-dim);
  animation: scroll-bounce 2s ease-in-out infinite;
  transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; color: var(--accent); }

/* --- Showcase carousel --- */
.section.showcase-section {
  height: 100vh;
  min-height: 0;
  padding: 40px 0 24px;
}
.showcase-section > .container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.showcase-carousel {
  position: relative;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.showcase-slides {
  flex: 1;
  min-height: 0;
  display: grid;
}
.showcase-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.showcase-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.showcase-slide > * {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(52, 211, 153, 0.04);
  max-width: 100%;
  max-height: 100%;
}
.showcase-carousel::before {
  content: '';
  position: absolute;
  inset: -50px;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.06), rgba(59, 130, 246, 0.03), transparent 70%);
  z-index: -1;
  filter: blur(30px);
  pointer-events: none;
}
.win-screenshot {
  display: block;
  width: 100%;
  height: auto;
}
.showcase-video-link {
  position: relative;
  display: block;
  width: 80vw;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.showcase-video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.showcase-video-link:hover img { opacity: 1; }
.showcase-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}
.showcase-video-link:hover .showcase-video-play {
  transform: translate(-50%, -50%) scale(1.1);
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.6));
}
.showcase-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding-top: 14px;
  flex-shrink: 0;
}
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 0;
  flex-shrink: 0;
}
.showcase-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 16px;
  background-clip: content-box;
  box-sizing: content-box;
}
.showcase-dot.active {
  background: var(--accent);
  background-clip: content-box;
  transform: scale(1.3);
}
.showcase-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.3);
  background-clip: content-box;
}

/* --- Signal flow --- */
.signal-flow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 64px;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.flow-node strong { font-size: 0.85rem; font-weight: 600; }
.flow-node span { font-size: 0.72rem; color: var(--text-dim); }
.flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.12), 0 0 40px rgba(59, 130, 246, 0.06);
  transition: box-shadow 0.3s;
}
.flow-icon-lg {
  width: 56px;
  height: 56px;
}
.flow-node:hover .flow-icon {
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.3), 0 0 64px rgba(59, 130, 246, 0.15);
}
.flow-connector {
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.flow-line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.25), rgba(59, 130, 246, 0.2));
  position: relative;
  overflow: visible;
}
.flow-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  transform: translateY(-50%);
  animation: flow-dot 2.5s ease-in-out infinite;
}
.flow-connector .flow-line:last-child::after { animation-delay: 1.25s; }
.flow-tag {
  padding: 3px 14px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.flow-targets { display: flex; gap: 14px; }

@media (max-width: 640px) {
  .signal-flow { flex-direction: column; gap: 8px; }
  .flow-connector { padding: 8px 0; flex-direction: column; }
  .flow-line { width: 1px; height: 24px; background: linear-gradient(180deg, rgba(52, 211, 153, 0.25), rgba(59, 130, 246, 0.2)); }
  .flow-line::after { display: none; }
  .flow-targets { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* --- Sections --- */
.section { padding: 100px 0; position: relative; min-height: 100vh; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }

/* Divider glow between sections */
.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 64px;
  font-size: 1.05rem;
}

/* --- Features grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
}
.feature-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  row-gap: 4px;
  padding: 20px 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: visible;
}
.feature-card::before { content: none; }
.feature-card {
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  grid-row: 1 / 3;
  align-self: start;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  margin: 2px 0 0;
  border: none;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.12), 0 0 40px rgba(59, 130, 246, 0.06);
  transition: box-shadow 0.3s;
  animation: icon-breathe 4s ease-in-out infinite;
}
.feature-card:nth-child(3n+2) .feature-icon { animation-delay: 1.3s; }
.feature-card:nth-child(3n) .feature-icon { animation-delay: 2.7s; }
.feature-card:hover .feature-icon {
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.3), 0 0 64px rgba(59, 130, 246, 0.15);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  align-self: end;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

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

/* --- Features "And more" section --- */
#more .features-more-grid { margin-bottom: 64px; }
#more .built-with { margin-top: 0; }
.features-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}
.feature-mini:hover { transform: translateY(-3px); }
.feature-mini svg { color: var(--accent); flex-shrink: 0; }
.feature-mini strong { font-size: 0.82rem; font-weight: 600; }
.feature-mini span { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
@media (max-width: 560px) { .features-more-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}
.step:hover { transform: translateY(-4px); }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  margin: 0 auto 22px;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.2), 0 0 60px rgba(59, 130, 246, 0.1);
  animation: step-glow 4s ease-in-out infinite;
}
.step:nth-child(2) .step-num { animation-delay: 1.3s; }
.step:nth-child(3) .step-num { animation-delay: 2.6s; }
.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step h3 { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }

@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 16px; } }

/* --- Musician section --- */
.musician-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.musician-features { display: flex; flex-direction: column; gap: 28px; }
.musician-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.3s ease;
}
.musician-feature:hover {
  transform: translateX(6px);
}
.musician-feature:hover .mf-icon {
  box-shadow: 0 0 32px rgba(52, 211, 153, 0.3), 0 0 64px rgba(59, 130, 246, 0.15);
}
.mf-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.12), 0 0 40px rgba(59, 130, 246, 0.06);
  transition: box-shadow 0.3s;
}
.musician-feature strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.musician-feature p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; margin: 0; }

@media (max-width: 800px) {
  .musician-grid { grid-template-columns: 1fr; gap: 48px; }
  .musician-preview { order: -1; }
}

/* --- Musician carousel --- */
.musician-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}
.musician-carousel {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}
.musician-slides {
  display: grid;
  min-height: 0;
}
.musician-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.musician-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.musician-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 60px rgba(52, 211, 153, 0.04);
  animation: float 6s ease-in-out infinite;
}
.musician-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  border-radius: 16px;
}
.musician-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding-top: 14px;
  flex-shrink: 0;
}
.musician-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 0;
  flex-shrink: 0;
}
.musician-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 16px;
  background-clip: content-box;
  box-sizing: content-box;
  transition: background 0.3s, transform 0.3s;
}
.musician-dot.active {
  background: var(--accent);
  background-clip: content-box;
  transform: scale(1.3);
}
.musician-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.3);
  background-clip: content-box;
}

/* --- Download section --- */
.download-section { text-align: center; }
.btn-download {
  font-size: 1.1rem;
  padding: 18px 44px;
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.15);
  animation: btn-glow 3s ease-in-out infinite;
}
.btn-download:hover {
  box-shadow: 0 8px 50px rgba(52, 211, 153, 0.3), 0 0 0 1px rgba(52, 211, 153, 0.3);
}
.download-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.download-app {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.download-app:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.06);
  transform: translateY(-2px);
}
.download-app h3 { font-size: 1.1rem; margin: 0; letter-spacing: 0.06em; display: flex; align-items: center; justify-content: center; gap: 8px; }
.badge-beta { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; padding: 2px 8px; border-radius: 9999px; background: color-mix(in srgb, var(--accent-warn, #ffc107) 15%, transparent); color: var(--accent-warn, #ffc107); border: 1px solid color-mix(in srgb, var(--accent-warn, #ffc107) 40%, transparent); }
.download-app-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
  min-height: 2.5em;
}
.download-app .btn-download {
  font-size: 0.95rem;
  padding: 14px 28px;
}
.download-app .download-note {
  font-size: 0.75rem;
}
@media (max-width: 700px) {
  .download-duo { grid-template-columns: 1fr; }
}
.download-note { font-size: 0.85rem; color: var(--text-dim); }
.download-reqs {
  display: inline-block;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
  backdrop-filter: blur(8px);
}
.download-reqs h3 { font-size: 1rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.download-reqs ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-reqs li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.download-reqs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- Footer --- */
.footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  scroll-snap-align: end;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); opacity: 1; }
.footer-sep { color: rgba(255, 255, 255, 0.08); }
.footer-legal {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-legal a {
  color: var(--text-dim);
  font-size: 0.8rem;
  opacity: 0.75;
  transition: opacity 0.2s, text-decoration-color 0.2s;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.12);
  text-underline-offset: 3px;
}
.footer-legal a:hover { opacity: 1; text-decoration-color: var(--accent); }
.footer-motto { font-size: 0.85rem; font-style: italic; color: var(--text-dim); opacity: 0.7; margin-top: 8px; }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* --- Built With --- */
/* built-with inside #support section */
.built-with {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.built-with-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.built-with-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s;
}
.tech-badge:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.tech-badge svg { opacity: 0.7; }

/* --- Legal pages --- */
.legal-page { padding-top: 140px; overflow: visible; }
.legal-content {
  max-width: 700px;
}
.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 48px;
}
.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legal-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}
.legal-content li {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.legal-content a { color: var(--accent); }
.legal-content code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88rem;
}

/* --- Manual / Documentation page --- */
.manual-content { max-width: 820px; }
.manual-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.manual-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.manual-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 48px;
  display: none; /* hidden on desktop — sidebar serves as TOC */
}
@media (max-width: 900px) {
  .manual-toc { display: block; } /* visible on mobile where sidebar is hidden */
}
.manual-toc p {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.manual-toc ol {
  list-style: decimal;
  padding-left: 24px;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.manual-toc li {
  padding-left: 4px;
  margin-bottom: 4px;
  break-inside: avoid;
}
.manual-toc li::before { display: none; }
.manual-toc li::marker { color: var(--text-dim); font-size: 0.85rem; }
.manual-toc a {
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.manual-toc a:hover { opacity: 0.75; }
.manual-toc-appendix {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.manual-toc-appendix li { padding-left: 0; }
@media (max-width: 600px) {
  .manual-toc ol { columns: 1; }
}
.manual-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.manual-content thead th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  background: var(--surface);
}
.manual-content tbody td {
  padding: 6px 12px;
  color: var(--text-dim);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  line-height: 1.6;
}
.manual-content tbody tr:last-child td { border-bottom: none; }
.manual-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 0.82rem;
  line-height: 1.6;
}
.manual-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}
.manual-content ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 12px;
}
.manual-content ol > li {
  padding-left: 4px;
}
.manual-content ol > li::before { display: none; }
.manual-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.manual-content strong { color: var(--text-primary); }
.manual-breadcrumb {
  font-size: var(--text-sm, 0.85rem);
  color: var(--text-dim);
  margin-bottom: 32px;
}
.manual-breadcrumb a { color: var(--accent); text-decoration: none; }
.manual-breadcrumb a:hover { text-decoration: underline; }
.manual-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm, 0.85rem);
}
.manual-nav a { color: var(--accent); text-decoration: none; }
.manual-nav a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .manual-nav { flex-direction: column; gap: 12px; }
}

/* --- Manual sidebar layout --- */
.manual-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1140px;
}
.manual-layout > .legal-content {
  flex: 1;
  min-width: 0;
}
.manual-layout > .manual-content {
  max-width: 820px;
}
.manual-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--text-dim) 25%, transparent) transparent;
}
.manual-sidebar ol,
.manual-sidebar ul { list-style: none; padding: 0; margin: 0; }
.manual-sidebar a {
  display: block;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.5;
  transition: color 0.2s, background 0.2s;
}
.manual-sidebar a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text-dim) 8%, transparent);
}
.manual-sidebar a.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: 600;
}
.manual-sidebar-appendix {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.manual-sidebar::-webkit-scrollbar { width: 3px; }
.manual-sidebar::-webkit-scrollbar-track { background: transparent; }
.manual-sidebar::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-dim) 25%, transparent);
  border-radius: 3px;
}
.manual-sidebar-switch {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.manual-sidebar-switch a {
  color: var(--text-dim) !important;
  font-style: italic;
}
.manual-sidebar-switch a:hover {
  color: var(--accent) !important;
}
@media (max-width: 900px) {
  .manual-layout { display: block; }
  .manual-sidebar { display: none; }
}

/* --- Docs landing page --- */
.docs-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 40px auto;
}
.docs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
}
.docs-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.06);
  transform: translateY(-2px);
}
.docs-card h2 { font-size: 1.1rem; margin: 0; letter-spacing: 0.06em; }
.docs-card-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  min-height: 2.5em;
  text-align: center;
}
.docs-card-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
}
@media (max-width: 700px) {
  .docs-duo { grid-template-columns: 1fr; }
}

/* --- Support section --- */
#support { min-height: auto; scroll-snap-align: none; padding: 80px 0; }
.support-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.support-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.06), transparent 70%);
  pointer-events: none;
}
.support-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
}
.support-text {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
}
.support-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.support-btn { font-size: 0.95rem; }
@media (max-width: 480px) {
  .support-card { padding: 36px 24px; }
  .support-buttons { flex-direction: column; }
  .support-btn { justify-content: center; }
}

/* --- FAQ page --- */
.faq-page { padding-top: 140px; scroll-snap-align: none; }
.faq-page .section-title { margin-bottom: 10px; }
.faq-page .section-sub { margin-bottom: 48px; }

/* --- FAQ accordion --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.faq-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.04);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover {
  background: var(--surface-hover);
}
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-dim);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 20px 18px;
}
.faq-answer p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-answer a {
  color: var(--accent);
}

/* --- Mobile optimizations --- */
@media (max-width: 768px) {
  .section { padding: 64px 0; min-height: auto; }
  .section-sub { margin-bottom: 40px; }
  .legal-page { padding-top: 110px; }
  .faq-page { padding-top: 110px; }
}
@media (max-width: 480px) {
  .hero-cta { gap: 10px; }
  .hero-cta .btn-lg { width: 100%; justify-content: center; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
