/* ============================
   Morain Lab — 想法孵化器
   Aurora/极光 视觉主题
   ============================ */

:root {
  --bg-deep: #05050f;
  --bg-primary: #0a0a18;
  --bg-secondary: #0f0f28;
  --bg-surface: rgba(18,18,48,0.5);
  --bg-glass: rgba(18,18,48,0.35);
  --bg-glass-hover: rgba(30,30,80,0.45);

  --aurora-1: #8B5CF6;  /* Purple */
  --aurora-2: #06B6D4;  /* Cyan */
  --aurora-3: #F472B6;  /* Pink */
  --aurora-4: #10B981;  /* Green accent */

  --grad-aurora: linear-gradient(135deg, var(--aurora-1), var(--aurora-2), var(--aurora-3));
  --grad-text: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6);
  --grad-btn: linear-gradient(135deg, #8B5CF6, #06B6D4);
  --grad-card: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.05));

  --text-primary: #f0f0f8;
  --text-secondary: #9898b8;
  --text-muted: #6868a0;

  --border-color: rgba(255,255,255,0.06);
  --border-glow: rgba(139,92,246,0.3);

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px rgba(139,92,246,0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-normal: 0.4s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.8s cubic-bezier(0.4,0,0.2,1);

  --header-height: 68px;
  --container-max: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: rgba(139,92,246,0.4);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================
   Aurora Canvas
   ============================ */
#auroraCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ============================
   Scrollbar
   ============================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.5); }

/* ============================
   Header
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(5,5,15,0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(5,5,15,0.9);
  backdrop-filter: blur(32px) saturate(1.6);
  box-shadow: 0 1px 40px rgba(0,0,0,0.4);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

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

.logo-mark {
  position: relative;
  flex-shrink: 0;
}

.logo-mark svg { transition: var(--transition-fast); }

.logo-glow {
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: var(--grad-aurora);
  filter: blur(12px);
  opacity: 0.3;
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

.logo-text-wrap { display: flex; flex-direction: column; gap: 1px; }

.logo-text {
  font-size: 18px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav { display: flex; gap: 4px; }

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--grad-aurora);
  border-radius: 1px;
  transition: transform var(--transition-fast);
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-glass); }

.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.menu-btn { display: none; padding: 8px; color: var(--text-secondary); }

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

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.aurora-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  filter: blur(120px);
  opacity: 0.4;
  mix-blend-mode: screen;
  animation: auroraDrift 20s ease-in-out infinite;
}

.aurora-1 {
  background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(139,92,246,0.3) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 20%, rgba(6,182,212,0.2) 0%, transparent 60%);
  animation-duration: 18s;
  animation-delay: 0s;
}

.aurora-2 {
  background: radial-gradient(ellipse 50% 60% at 70% 60%, rgba(244,114,182,0.25) 0%, transparent 60%),
              radial-gradient(ellipse 40% 50% at 30% 70%, rgba(16,185,129,0.15) 0%, transparent 60%);
  animation-duration: 22s;
  animation-delay: -6s;
}

.aurora-3 {
  background: radial-gradient(ellipse 70% 40% at 50% 50%, rgba(139,92,246,0.15) 0%, transparent 60%),
              radial-gradient(ellipse 40% 70% at 80% 80%, rgba(6,182,212,0.2) 0%, transparent 60%);
  animation-duration: 25s;
  animation-delay: -12s;
}

@keyframes auroraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  25% { transform: translate(3%, -2%) scale(1.05); opacity: 0.45; }
  50% { transform: translate(-2%, 3%) scale(1.1); opacity: 0.5; }
  75% { transform: translate(2%, 1%) scale(1.03); opacity: 0.4; }
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 60px 24px 40px;
  animation: heroFade 1.2s ease forwards;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: var(--aurora-1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.1); }
  50% { box-shadow: 0 0 40px rgba(139,92,246,0.25); }
}

.hero-title {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-line { display: block; }

.hero-grad-text {
  display: inline-block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradShift 4s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  outline: none;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 24px rgba(139,92,246,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(139,92,246,0.5);
}

.btn-glow {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

.btn-glow:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 30px rgba(139,92,246,0.15);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-num {
  font-size: 32px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  color: var(--text-muted);
}

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

/* ============================
   Section Common
   ============================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.15);
  color: var(--aurora-1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================
   Feed Section
   ============================ */
.feed-section {
  padding: 80px 0;
  position: relative;
}

.feed-ticker {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  height: 360px;
}

.feed-track {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: feedScroll 30s linear infinite;
}

@keyframes feedScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.feed-track:hover { animation-play-state: paused; }

.feed-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.feed-item:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(139,92,246,0.2);
}

.feed-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feed-item-content { flex: 1; min-width: 0; }

.feed-item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feed-item-title span {
  color: var(--aurora-1);
}

.feed-item-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.feed-item-status {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.feed-status-launched { background: rgba(16,185,129,0.15); color: #10B981; }
.feed-status-beta { background: rgba(251,191,36,0.15); color: #FBBF24; }
.feed-status-milestone { background: rgba(139,92,246,0.15); color: #A78BFA; }

/* ============================
   Ideas Section
   ============================ */
.ideas-section {
  padding: 80px 0;
  position: relative;
}

.ideas-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(139,92,246,0.3);
}

.filter-btn.active {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.idea-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-normal);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.idea-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--grad-aurora));
  opacity: 0;
  transition: var(--transition-normal);
}

.idea-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.25);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  background: var(--bg-glass-hover);
}

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

.idea-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.idea-card-emoji {
  font-size: 36px;
  line-height: 1;
}

.idea-card-badges {
  display: flex;
  gap: 6px;
}

.idea-card-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.idea-badge-ai { background: rgba(139,92,246,0.15); color: #A78BFA; }
.idea-badge-life { background: rgba(16,185,129,0.15); color: #34D399; }
.idea-badge-tech { background: rgba(6,182,212,0.15); color: #22D3EE; }
.idea-badge-game { background: rgba(244,114,182,0.15); color: #F472B6; }
.idea-badge-design { background: rgba(251,191,36,0.15); color: #FBBF24; }

.idea-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.idea-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.idea-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.idea-card-meta span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.idea-card-progress {
  margin: 16px 0;
}

.idea-card-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 6px;
}

.idea-card-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--card-accent, var(--grad-aurora));
  transition: width 1s ease;
}

.idea-card-progress-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.idea-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.idea-status-idea { background: rgba(139,92,246,0.1); color: #A78BFA; }
.idea-status-designing { background: rgba(251,191,36,0.15); color: #FBBF24; }
.idea-status-building { background: rgba(6,182,212,0.15); color: #22D3EE; }
.idea-status-launched { background: rgba(16,185,129,0.15); color: #34D399; }

.idea-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.idea-card-actions {
  display: flex;
  gap: 12px;
}

.idea-card-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
}

.idea-card-action:hover { color: var(--text-primary); }

.idea-card-action.liked { color: var(--aurora-3); }

.idea-card-claim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.idea-card-claim:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}

/* ============================
   Lifecycle Section
   ============================ */
.lifecycle-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.lifecycle-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 40px 0;
  position: relative;
}

.lifecycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.lifecycle-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 2px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: var(--transition-normal);
  animation: lifecyclePulse 3s ease-in-out infinite;
}

.lifecycle-step:hover .lifecycle-icon {
  border-color: rgba(139,92,246,0.5);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(139,92,246,0.2);
}

.lifecycle-step:nth-child(1) .lifecycle-icon { animation-delay: 0s; }
.lifecycle-step:nth-child(3) .lifecycle-icon { animation-delay: 0.3s; }
.lifecycle-step:nth-child(5) .lifecycle-icon { animation-delay: 0.6s; }
.lifecycle-step:nth-child(7) .lifecycle-icon { animation-delay: 0.9s; }
.lifecycle-step:nth-child(9) .lifecycle-icon { animation-delay: 1.2s; }
.lifecycle-step:nth-child(11) .lifecycle-icon { animation-delay: 1.5s; }

@keyframes lifecyclePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(139,92,246,0); }
  50% { box-shadow: 0 0 20px rgba(139,92,246,0.15); }
}

.lifecycle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.lifecycle-arrow {
  color: var(--text-muted);
  opacity: 0.5;
  margin: 0 8px;
}

/* ============================
   Leaderboard
   ============================ */
.leaderboard-section {
  padding: 80px 0;
  position: relative;
}

.leaderboard-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.lb-tab {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.lb-tab:hover { color: var(--text-primary); border-color: rgba(139,92,246,0.3); }

.lb-tab.active {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.lb-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.lb-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(139,92,246,0.2);
  transform: translateX(4px);
}

.lb-rank {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.lb-rank-1 { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #1a1a2e; }
.lb-rank-2 { background: linear-gradient(135deg, #94A3B8, #64748B); color: #1a1a2e; }
.lb-rank-3 { background: linear-gradient(135deg, #D97706, #B45309); color: #fff; }
.lb-rank-other { background: rgba(255,255,255,0.06); color: var(--text-muted); font-weight: 600; }

.lb-content { flex: 1; min-width: 0; }

.lb-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.lb-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.lb-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--aurora-2);
  flex-shrink: 0;
}

/* ============================
   AI Scoring
   ============================ */
.ai-scoring-section {
  padding: 80px 0;
  position: relative;
}

.ai-scoring-card {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: var(--transition-normal);
}

.ai-scoring-card:hover {
  border-color: rgba(139,92,246,0.2);
  box-shadow: var(--shadow-glow);
}

.ai-scoring-input {
  padding: 32px;
  border-bottom: 1px solid var(--border-color);
}

.ai-input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.ai-input-row {
  display: flex;
  gap: 12px;
}

.ai-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-fast);
}

.ai-input:focus {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 20px rgba(139,92,246,0.1);
}

.ai-input::placeholder { color: var(--text-muted); }

.ai-scoring-result {
  padding: 32px;
  min-height: 200px;
}

.ai-result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 24px;
  text-align: center;
}

.ai-result-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: resultFade 0.5s ease;
}

@keyframes resultFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-result-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
}

.ai-result-item.full {
  grid-column: 1 / -1;
}

.ai-result-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ai-result-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-result-stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.ai-result-stars span {
  color: var(--aurora-2);
  font-size: 16px;
}

.ai-result-stars span.empty {
  color: var(--text-muted);
  opacity: 0.3;
}

/* ============================
   Lab Section
   ============================ */
.lab-section {
  padding: 80px 0;
  position: relative;
}

.lab-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.lab-profile-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 280px;
}

.lab-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lab-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  background: var(--grad-aurora);
  animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lab-avatar-text {
  position: relative;
  z-index: 1;
  font-size: 32px;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lab-info { flex: 1; }

.lab-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.lab-bio {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.lab-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.lab-stat {
  display: flex;
  flex-direction: column;
}

.lab-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.lab-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.lab-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: default;
}

.badge:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(139,92,246,0.2);
  transform: translateY(-2px);
}

.badge-icon { font-size: 22px; }

.badge-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.lab-products-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.lab-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.lab-product-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.lab-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139,92,246,0.2);
  box-shadow: var(--shadow-glow);
}

.lab-product-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lab-product-tag.launched { background: rgba(16,185,129,0.15); color: #34D399; }
.lab-product-tag.building { background: rgba(6,182,212,0.15); color: #22D3EE; }
.lab-product-tag.designing { background: rgba(251,191,36,0.15); color: #FBBF24; }

.lab-product-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lab-product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.lab-product-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--aurora-2);
  transition: var(--transition-fast);
}

.lab-product-card:hover .lab-product-link { gap: 6px; }

/* ============================
   Sites Section
   ============================ */
.sites-section {
  padding: 80px 0;
  position: relative;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.site-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(12px);
}

.site-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-accent, var(--aurora-1)) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.site-card:hover .site-card-glow { opacity: 0.08; }

.site-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent, var(--border-glow));
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.site-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(16,185,129,0.15);
  color: #34D399;
}

.site-badge-launched { background: rgba(16,185,129,0.15); color: #34D399; }

.site-card-title {
  font-size: 18px;
  font-weight: 700;
}

.site-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.site-card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.site-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--card-accent, var(--aurora-2));
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-card:hover .site-card-link { gap: 8px; }

/* ============================
   Footer
   ============================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 32px;
  margin-top: 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-logo span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-tagline {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--aurora-1);
  font-style: italic;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-records {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-record {
  color: inherit;
  white-space: nowrap;
  transition: var(--transition-fast);
}

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

/* ============================
   Animations (Scroll)
   ============================ */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Mobile
   ============================ */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(5,5,15,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    transition: var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
  }

  .nav.nav-open { transform: translateY(0); }

  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .menu-btn { display: block; }

  .hero { min-height: 90vh; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 24px; }

  .hide-mobile { display: none; }

  .ideas-grid { grid-template-columns: 1fr; }
  .sites-grid { grid-template-columns: 1fr; }
  .leaderboard-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .lifecycle-track { gap: 0; }
  .lifecycle-arrow { display: none; }
  .lifecycle-step { margin: 0 4px; }
  .lifecycle-icon { width: 48px; height: 48px; font-size: 20px; }

  .lab-profile { flex-direction: column; align-items: flex-start; }
  .lab-profile-left { flex-direction: column; align-items: flex-start; }

  .ai-scoring-result .ai-result-content { grid-template-columns: 1fr; }
  .ai-input-row { flex-direction: column; }

  .lab-products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .lab-badges { justify-content: center; }
  .lab-stats { gap: 16px; }
}

/* ============================
   2026 Wonder Aurora Theme
   ============================ */
:root {
  --bg-deep: #04070c;
  --bg-primary: #071017;
  --bg-secondary: #0b151a;
  --bg-surface: rgba(13, 27, 30, 0.76);
  --bg-glass: rgba(8, 18, 25, 0.68);
  --bg-glass-hover: rgba(16, 34, 37, 0.82);
  --aurora-1: #72f2c5;
  --aurora-2: #65d9ff;
  --aurora-3: #ff89c2;
  --aurora-4: #ffe36e;
  --grad-aurora: linear-gradient(115deg, #72f2c5, #65d9ff 40%, #ff89c2 72%, #ffe36e);
  --grad-text: linear-gradient(90deg, #f7fff8, #8effd6 28%, #80ddff 58%, #ff9dce 84%, #fff1a0);
  --grad-btn: linear-gradient(118deg, #68e5b9, #70d8ff 52%, #ff90c5);
  --text-primary: #f7fff9;
  --text-secondary: #bbcad0;
  --text-muted: #7f989e;
  --border-color: rgba(190, 255, 231, 0.1);
  --border-glow: rgba(114, 242, 197, 0.42);
  --shadow-glow: 0 18px 60px rgba(36, 232, 176, 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --header-height: 72px;
  --container-max: 1220px;
}

body {
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 137, 194, 0.07), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(114, 242, 197, 0.07), transparent 30%),
    #04070c;
}

main {
  position: relative;
  z-index: 1;
}

.container {
  padding-inline: 28px;
}

.header {
  height: var(--header-height);
  background: rgba(4, 8, 13, 0.56);
  border-bottom-color: rgba(216, 255, 240, 0.07);
}

.header.scrolled {
  background: rgba(4, 9, 13, 0.9);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.3);
}

.logo {
  gap: 10px;
}

.logo-mark svg {
  filter: drop-shadow(0 0 14px rgba(114, 242, 197, 0.32));
}

.logo-text {
  font-size: 17px;
  letter-spacing: 0;
}

.logo-sub {
  color: #8aa29f;
  letter-spacing: 1px;
}

.nav {
  gap: 2px;
}

.nav-link {
  border-radius: 6px;
  padding: 9px 14px;
  letter-spacing: 0;
}

.nav-link::after {
  background: linear-gradient(90deg, #72f2c5, #ff89c2);
}

.menu-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* Hero dream world */
.hero {
  height: calc(100svh - 28px);
  min-height: 680px;
  max-height: 920px;
  justify-content: flex-start;
  padding-top: var(--header-height);
  background:
    linear-gradient(180deg, rgba(3, 7, 12, 0.1), rgba(3, 7, 12, 0.42)),
    radial-gradient(circle at 77% 40%, rgba(114, 242, 197, 0.12), transparent 32%),
    radial-gradient(circle at 24% 50%, rgba(255, 137, 194, 0.08), transparent 30%);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, #071017 92%);
}

.hero-layout {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
}

.hero-content {
  width: 100%;
  max-width: 570px;
  margin: 0;
  padding: 24px 0 58px;
  text-align: left;
}

.hero-badge {
  margin-bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 20, 26, 0.74);
  border-color: rgba(114, 242, 197, 0.26);
  color: #bfffe7;
  letter-spacing: 0;
  box-shadow: inset 0 0 24px rgba(114, 242, 197, 0.04);
}

.badge-star {
  color: #ffe36e;
  filter: drop-shadow(0 0 7px rgba(255, 227, 110, 0.8));
}

.hero-title {
  margin-bottom: 16px;
  font-size: 72px;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-kicker {
  display: block;
  margin-bottom: 10px;
  color: #94acae;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 4px;
}

.hero-brand {
  display: block;
  color: #f8fff9;
  text-shadow:
    0 0 28px rgba(114, 242, 197, 0.15),
    0 0 54px rgba(255, 137, 194, 0.08);
}

.hero-brand::after {
  content: '';
  display: block;
  width: 116px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #72f2c5, #65d9ff, #ff89c2, #ffe36e);
  box-shadow: 0 0 22px rgba(114, 242, 197, 0.45);
}

.hero-slogan {
  max-width: 520px;
  margin-bottom: 14px;
  color: #dff8ed;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-desc {
  max-width: 520px;
  margin: 0 0 28px;
  color: #a8bdc2;
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  justify-content: flex-start;
  margin-bottom: 42px;
}

.btn {
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 22px;
  letter-spacing: 0;
}

.btn-primary {
  color: #032019;
  box-shadow:
    0 9px 32px rgba(87, 233, 190, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-primary:hover {
  box-shadow:
    0 14px 42px rgba(87, 233, 190, 0.34),
    0 0 34px rgba(255, 137, 194, 0.16);
}

.btn-glow {
  color: #e9fff6;
  background: rgba(8, 20, 26, 0.66);
  border-color: rgba(196, 255, 235, 0.18);
}

.btn-glow:hover {
  background: rgba(18, 38, 39, 0.78);
  border-color: rgba(255, 137, 194, 0.48);
  box-shadow: 0 0 32px rgba(255, 137, 194, 0.13);
}

.btn:focus-visible,
.filter-btn:focus-visible,
.lb-tab:focus-visible,
.idea-card-claim:focus-visible,
.menu-btn:focus-visible,
.ai-input:focus-visible {
  outline: 2px solid #ffe36e;
  outline-offset: 3px;
}

.hero-stats {
  width: 100%;
  max-width: 520px;
  justify-content: flex-start;
  gap: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(190, 255, 231, 0.1);
}

.hero-stat {
  align-items: flex-start;
  min-width: 114px;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid rgba(190, 255, 231, 0.09);
}

.hero-stat:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stat-num {
  font-size: 26px;
  line-height: 1.1;
}

.hero-stat-label {
  color: #7f999d;
  font-size: 11px;
}

.hero-scroll-indicator {
  z-index: 5;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #789094;
  font-size: 11px;
  letter-spacing: 1px;
}

.hero-aurora {
  z-index: -1;
}

.aurora-layer {
  filter: blur(76px);
  opacity: 0.52;
}

.aurora-1 {
  background:
    radial-gradient(ellipse 52% 42% at 67% 22%, rgba(114, 242, 197, 0.34), transparent 62%),
    radial-gradient(ellipse 48% 48% at 96% 48%, rgba(255, 137, 194, 0.24), transparent 64%);
}

.aurora-2 {
  background:
    radial-gradient(ellipse 42% 55% at 80% 72%, rgba(101, 217, 255, 0.24), transparent 64%),
    radial-gradient(ellipse 34% 48% at 28% 20%, rgba(255, 227, 110, 0.1), transparent 64%);
}

.aurora-3 {
  background:
    radial-gradient(ellipse 62% 32% at 56% 42%, rgba(255, 137, 194, 0.13), transparent 66%),
    radial-gradient(ellipse 42% 46% at 18% 88%, rgba(114, 242, 197, 0.12), transparent 68%);
}

.hero-stars {
  z-index: 0;
}

.hero-star {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #f7fff9;
  box-shadow: 0 0 12px currentColor;
  animation: twinkle 3s ease-in-out infinite;
}

.hero-star.cross {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-star.cross::before,
.hero-star.cross::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  box-shadow: 0 0 10px currentColor;
}

.hero-star.cross::before {
  width: 1px;
  height: 100%;
}

.hero-star.cross::after {
  width: 100%;
  height: 1px;
}

/* Hero illustration */
.wonder-scene {
  --scene-x: 0px;
  --scene-y: 0px;
  position: absolute;
  z-index: 2;
  top: 76px;
  right: max(2vw, calc((100vw - var(--container-max)) / 2 - 28px));
  width: min(55vw, 700px);
  height: calc(100% - 104px);
  min-height: 560px;
  pointer-events: none;
  transform: translate3d(var(--scene-x), var(--scene-y), 0);
  transition: transform 0.32s ease-out;
}

.wonder-scene::before {
  content: '';
  position: absolute;
  right: 2%;
  top: 9%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(237, 255, 245, 0.08), rgba(114, 242, 197, 0.03) 38%, transparent 68%);
  filter: blur(1px);
}

.aurora-ribbon {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  mix-blend-mode: screen;
  filter: blur(15px);
}

.ribbon-one {
  right: 2%;
  top: 1%;
  width: 76%;
  height: 48%;
  border-top: 22px solid rgba(114, 242, 197, 0.28);
  border-left: 11px solid rgba(101, 217, 255, 0.14);
  transform: rotate(-13deg) skewX(-8deg);
  animation: ribbonBreathe 8s ease-in-out infinite;
}

.ribbon-two {
  right: 8%;
  top: 9%;
  width: 65%;
  height: 38%;
  border-top: 15px solid rgba(255, 137, 194, 0.24);
  border-right: 9px solid rgba(255, 227, 110, 0.12);
  transform: rotate(8deg) skewX(9deg);
  animation: ribbonBreathe 10s ease-in-out -4s infinite reverse;
}

@keyframes ribbonBreathe {
  0%, 100% { opacity: 0.38; transform: rotate(-13deg) skewX(-8deg) scale(0.97); }
  50% { opacity: 0.78; transform: rotate(-7deg) skewX(2deg) scale(1.04); }
}

.dream-planet {
  position: absolute;
  right: 8%;
  top: 24%;
  width: 350px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  background:
    radial-gradient(circle at 31% 25%, rgba(255,255,255,0.94), transparent 4%),
    radial-gradient(circle at 35% 30%, #d7fff0 0, #82edc3 23%, #42b9b0 49%, #2a718c 74%, #263c67 100%);
  box-shadow:
    inset -36px -42px 58px rgba(9, 17, 43, 0.68),
    inset 19px 18px 28px rgba(255,255,255,0.15),
    0 0 22px rgba(114, 242, 197, 0.38),
    0 0 90px rgba(101, 217, 255, 0.18);
  animation: planetFloat 7s ease-in-out infinite;
}

.dream-planet::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -24%;
  top: 42%;
  width: 148%;
  height: 30%;
  border: 13px solid rgba(255, 194, 224, 0.72);
  border-left-color: rgba(114, 242, 197, 0.78);
  border-right-color: rgba(255, 227, 110, 0.7);
  border-radius: 50%;
  transform: rotate(-13deg);
  box-shadow: 0 0 18px rgba(255, 137, 194, 0.28);
}

.dream-planet::after {
  content: '';
  position: absolute;
  z-index: 4;
  left: -22%;
  top: 52%;
  width: 144%;
  height: 10%;
  border-bottom: 12px solid rgba(114, 242, 197, 0.78);
  border-radius: 50%;
  transform: rotate(-13deg);
  filter: drop-shadow(0 0 7px rgba(114, 242, 197, 0.5));
}

.planet-glow {
  position: absolute;
  inset: -30px;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 242, 197, 0.2), transparent 68%);
  animation: planetGlow 4s ease-in-out infinite;
}

.planet-crater {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: rgba(22, 90, 109, 0.28);
  box-shadow: inset 3px 4px 7px rgba(14, 48, 72, 0.28);
}

.crater-one {
  left: 18%;
  top: 43%;
  width: 42px;
  height: 30px;
  transform: rotate(13deg);
}

.crater-two {
  right: 21%;
  top: 23%;
  width: 26px;
  height: 20px;
}

.crater-three {
  right: 28%;
  bottom: 18%;
  width: 54px;
  height: 26px;
  transform: rotate(-18deg);
}

.planet-island {
  position: absolute;
  z-index: 3;
  border-radius: 48% 52% 45% 55%;
  background: #8ef0a9;
  box-shadow: inset -6px -7px 0 rgba(29, 149, 106, 0.35);
}

.island-one {
  left: 26%;
  top: 23%;
  width: 82px;
  height: 52px;
  transform: rotate(-12deg);
}

.island-two {
  right: 13%;
  top: 46%;
  width: 72px;
  height: 48px;
  transform: rotate(18deg);
}

.planet-sprout {
  position: absolute;
  z-index: 7;
  left: 42%;
  top: -45px;
  width: 74px;
  height: 82px;
  transform-origin: 50% 100%;
  animation: sproutSway 5s ease-in-out infinite;
}

.sprout-stem {
  position: absolute;
  left: 34px;
  bottom: 0;
  width: 7px;
  height: 65px;
  border-radius: 999px;
  background: linear-gradient(#d7ff80, #47c986);
  box-shadow: 0 0 10px rgba(114, 242, 197, 0.4);
}

.sprout-leaf {
  position: absolute;
  width: 38px;
  height: 23px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #eeff8d, #61dfa0);
  box-shadow: inset -5px -4px 0 rgba(32, 150, 102, 0.22);
}

.leaf-one {
  left: 0;
  top: 22px;
  transform: rotate(18deg);
}

.leaf-two {
  right: 0;
  top: 8px;
  transform: scaleX(-1) rotate(8deg);
}

.orbit {
  position: absolute;
  z-index: 5;
  right: 2%;
  top: 18%;
  width: 440px;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 255, 241, 0.12);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: orbitSpin 24s linear infinite;
}

.orbit-two {
  right: 11%;
  top: 27%;
  width: 360px;
  border-color: rgba(255, 137, 194, 0.14);
  transform: rotate(23deg);
  animation-duration: 18s;
  animation-direction: reverse;
}

.orbit-spark {
  position: absolute;
  left: 12%;
  top: 9%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff3a8;
  box-shadow: 0 0 12px #ffe36e, 0 0 28px rgba(255, 227, 110, 0.5);
}

.idea-moon {
  position: absolute;
  z-index: 6;
  right: 1%;
  top: 12%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fffcd9, #ffe98b 55%, #ffb45e);
  box-shadow: 0 0 32px rgba(255, 227, 110, 0.3);
  animation: moonFloat 6s ease-in-out -2s infinite;
}

.idea-moon::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 3px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #071017;
}

.idea-moon span {
  position: absolute;
  z-index: 2;
  left: 13px;
  top: 31px;
  color: #fff8c6;
  font-size: 16px;
  filter: drop-shadow(0 0 7px #ffe36e);
}

.paper-rocket {
  position: absolute;
  z-index: 7;
  left: 14%;
  top: 18%;
  width: 94px;
  height: 58px;
  border-radius: 70% 12% 58% 16%;
  background: linear-gradient(145deg, #f8fff9 0 42%, #9fe5df 43% 68%, #ff94c7 69%);
  transform: rotate(-20deg);
  box-shadow: 0 10px 28px rgba(101, 217, 255, 0.18);
  animation: rocketDrift 8s ease-in-out infinite;
}

.paper-rocket::before,
.paper-rocket::after {
  content: '';
  position: absolute;
  left: 26px;
  width: 36px;
  height: 24px;
  background: #70d8ff;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.paper-rocket::before {
  top: -20px;
  transform: rotate(8deg);
}

.paper-rocket::after {
  bottom: -19px;
  background: #ff90c5;
  transform: scaleY(-1) rotate(8deg);
}

.rocket-window {
  position: absolute;
  right: 20px;
  top: 17px;
  width: 20px;
  height: 20px;
  border: 4px solid #c7fff0;
  border-radius: 50%;
  background: #183c61;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,0.25);
}

.rocket-flame {
  position: absolute;
  left: -28px;
  top: 18px;
  width: 36px;
  height: 24px;
  background: linear-gradient(90deg, transparent, #ff8bbc 35%, #ffe36e);
  clip-path: polygon(0 50%, 100% 0, 82% 50%, 100% 100%);
  filter: drop-shadow(0 0 8px rgba(255, 137, 194, 0.7));
  animation: flamePulse 0.5s ease-in-out infinite alternate;
}

.constellation {
  position: absolute;
  left: 4%;
  bottom: 13%;
  width: 190px;
  height: 120px;
  opacity: 0.74;
}

.constellation-star {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4fff9;
  box-shadow: 0 0 12px rgba(114, 242, 197, 0.8);
}

.star-a { left: 4px; top: 74px; }
.star-b { left: 58px; top: 26px; }
.star-c { left: 118px; top: 54px; }
.star-d { right: 4px; top: 8px; }

.constellation-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(114, 242, 197, 0.12), rgba(114, 242, 197, 0.7));
}

.line-a {
  left: 8px;
  top: 76px;
  width: 73px;
  transform: rotate(-41deg);
}

.line-b {
  left: 62px;
  top: 29px;
  width: 67px;
  transform: rotate(25deg);
}

.line-c {
  left: 122px;
  top: 56px;
  width: 76px;
  transform: rotate(-39deg);
}

.floating-symbol {
  position: absolute;
  z-index: 8;
  color: #fff6b4;
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 227, 110, 0.8));
  animation: symbolFloat 5s ease-in-out infinite;
}

.symbol-one { left: 29%; top: 9%; }
.symbol-two { right: 26%; bottom: 6%; color: #ffadd2; animation-delay: -2s; }
.symbol-three { left: 22%; bottom: 27%; color: #9effdd; animation-delay: -3.5s; }

@keyframes planetFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes planetGlow {
  0%, 100% { opacity: 0.42; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

@keyframes sproutSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(7deg); }
}

@keyframes orbitSpin {
  to { transform: rotate(342deg); }
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(13px) rotate(5deg); }
}

@keyframes rocketDrift {
  0%, 100% { transform: translate(0, 0) rotate(-20deg); }
  50% { transform: translate(22px, -18px) rotate(-15deg); }
}

@keyframes flamePulse {
  to { transform: scaleX(1.22); opacity: 0.72; }
}

@keyframes symbolFloat {
  0%, 100% { transform: translateY(0) rotate(0); opacity: 0.5; }
  50% { transform: translateY(-12px) rotate(20deg); opacity: 1; }
}

/* Shared page rhythm */
.feed-section,
.ideas-section,
.lifecycle-section,
.leaderboard-section,
.ai-scoring-section,
.lab-section,
.sites-section {
  padding: 92px 0;
}

.feed-section {
  background:
    radial-gradient(circle at 8% 45%, rgba(255, 137, 194, 0.08), transparent 30%),
    #071017;
}

.ideas-section {
  background:
    radial-gradient(circle at 92% 18%, rgba(114, 242, 197, 0.08), transparent 30%),
    linear-gradient(180deg, #071017, #071218);
}

.lifecycle-section {
  background:
    linear-gradient(120deg, rgba(255, 227, 110, 0.035), transparent 34%),
    #081116;
  border-block: 1px solid rgba(255,255,255,0.035);
}

.leaderboard-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(101, 217, 255, 0.07), transparent 26%),
    #061017;
}

.ai-scoring-section {
  background:
    radial-gradient(circle at 84% 48%, rgba(255, 137, 194, 0.08), transparent 30%),
    #0a1317;
}

.lab-section {
  background:
    radial-gradient(circle at 10% 30%, rgba(255, 227, 110, 0.05), transparent 25%),
    radial-gradient(circle at 90% 65%, rgba(114, 242, 197, 0.07), transparent 28%),
    #071017;
}

.sites-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(101, 217, 255, 0.06), transparent 32%),
    #050b10;
}

.section-header {
  margin-bottom: 44px;
}

.section-badge {
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #9ff8d7;
  background: rgba(114, 242, 197, 0.06);
  border-color: rgba(114, 242, 197, 0.18);
  letter-spacing: 0;
}

.section-title {
  margin-bottom: 12px;
  color: #f3fff8;
  font-size: 38px;
  letter-spacing: 0;
}

.section-desc {
  color: #9fb2b7;
}

.feed-ticker,
.ai-scoring-card,
.lab-profile {
  border-radius: 8px;
  border-color: rgba(190, 255, 231, 0.1);
  background:
    linear-gradient(135deg, rgba(114, 242, 197, 0.035), transparent 42%),
    rgba(7, 17, 23, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.feed-ticker::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(#071017, transparent);
}

.feed-ticker::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  pointer-events: none;
  background: linear-gradient(transparent, #071017);
}

.feed-item,
.idea-card,
.lb-card,
.lab-product-card,
.site-card,
.ai-result-item,
.badge {
  border-radius: 8px;
}

.feed-item {
  background: rgba(13, 29, 32, 0.68);
  border-color: rgba(190, 255, 231, 0.08);
}

.feed-item:nth-child(3n + 1) .feed-item-icon {
  background: rgba(255, 137, 194, 0.11);
}

.feed-item:nth-child(3n + 2) .feed-item-icon {
  background: rgba(114, 242, 197, 0.11);
}

.feed-item:nth-child(3n) .feed-item-icon {
  background: rgba(255, 227, 110, 0.11);
}

.ideas-filter,
.leaderboard-tabs {
  gap: 7px;
}

.filter-btn,
.lb-tab {
  min-height: 38px;
  padding: 8px 17px;
  border-radius: 999px;
  background: rgba(8, 20, 26, 0.7);
  border-color: rgba(190, 255, 231, 0.09);
}

.filter-btn.active,
.lb-tab.active {
  color: #032019;
  box-shadow: 0 8px 24px rgba(87, 233, 190, 0.18);
}

.ideas-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.idea-card {
  min-height: 350px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 36%),
    rgba(7, 18, 24, 0.82);
  border-color: rgba(190, 255, 231, 0.09);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.idea-card::before {
  height: 2px;
  opacity: 0.55;
}

.idea-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent) 44%, transparent);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.28);
}

.idea-card-emoji {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.045);
  font-size: 27px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.idea-card-badge,
.idea-card-status,
.feed-item-status,
.site-card-badge,
.lab-product-tag {
  border-radius: 999px;
}

.idea-card-title {
  font-size: 19px;
}

.idea-card-desc {
  color: #a6b8bd;
}

.idea-card-action {
  min-height: 28px;
}

.idea-card-claim {
  min-height: 34px;
  border-radius: 999px;
  color: #032019;
}

.lifecycle-track {
  display: grid;
  grid-template-columns: repeat(11, auto);
  justify-content: center;
  padding: 32px 0 12px;
}

.lifecycle-icon {
  width: 62px;
  height: 62px;
  background: rgba(10, 24, 29, 0.82);
  border-color: rgba(114, 242, 197, 0.18);
}

.lifecycle-step:nth-of-type(2n) .lifecycle-icon {
  border-color: rgba(255, 137, 194, 0.2);
}

.lifecycle-arrow {
  color: #72f2c5;
}

.leaderboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lb-card {
  min-height: 76px;
  background: rgba(8, 20, 26, 0.76);
  border-color: rgba(190, 255, 231, 0.08);
}

.lb-card:hover {
  border-color: rgba(114, 242, 197, 0.28);
}

.ai-scoring-card {
  max-width: 780px;
}

.ai-scoring-input,
.ai-scoring-result {
  padding: 30px;
}

.ai-input {
  min-height: 50px;
  border-radius: 8px;
  background: rgba(2, 11, 15, 0.72);
}

.ai-result-item {
  background: rgba(255,255,255,0.025);
}

.lab-profile {
  padding: 30px;
}

.lab-avatar-ring {
  background: conic-gradient(from 0deg, #72f2c5, #65d9ff, #ff89c2, #ffe36e, #72f2c5);
}

.lab-avatar::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #071017;
}

.lab-avatar-text {
  z-index: 2;
}

.lab-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-product-card {
  min-height: 205px;
  background: rgba(7, 18, 24, 0.78);
  border-color: rgba(190, 255, 231, 0.08);
}

.lab-product-card:nth-child(4n + 1) {
  border-top-color: rgba(114, 242, 197, 0.45);
}

.lab-product-card:nth-child(4n + 2) {
  border-top-color: rgba(255, 137, 194, 0.45);
}

.lab-product-card:nth-child(4n + 3) {
  border-top-color: rgba(255, 227, 110, 0.45);
}

.lab-product-card:nth-child(4n) {
  border-top-color: rgba(101, 217, 255, 0.45);
}

.sites-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.site-card {
  min-height: 280px;
  background: rgba(7, 17, 23, 0.8);
  border-color: rgba(190, 255, 231, 0.08);
}

.site-card-icon {
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.footer {
  margin-top: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 16, 0.95), #030609),
    #030609;
}

.footer-tagline {
  color: #9ff8d7;
}

/* Spark interaction */
.spark-burst {
  position: fixed;
  z-index: 999;
  left: var(--spark-x);
  top: var(--spark-y);
  width: 7px;
  height: 7px;
  pointer-events: none;
  border-radius: 50%;
  background: var(--spark-color);
  box-shadow: 0 0 13px var(--spark-color);
  animation: sparkBurst 900ms cubic-bezier(.2,.7,.2,1) forwards;
}

.hero.sparked .dream-planet {
  animation: planetPop 850ms cubic-bezier(.2,.8,.2,1), planetFloat 7s ease-in-out 850ms infinite;
}

@keyframes sparkBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--spark-dx)),
      calc(-50% + var(--spark-dy))
    ) scale(1.8);
  }
}

@keyframes planetPop {
  0%, 100% { filter: brightness(1); }
  45% { filter: brightness(1.45) saturate(1.3); transform: scale(1.035); }
}

/* Responsive scene */
@media (max-width: 1100px) {
  .hero-title {
    font-size: 60px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  }

  .wonder-scene {
    right: -24px;
    width: 58vw;
  }

  .dream-planet {
    right: 3%;
    width: 310px;
  }

  .orbit {
    right: -2%;
    width: 390px;
  }

  .orbit-two {
    right: 5%;
    width: 320px;
  }

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

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

@media (max-width: 860px) {
  .container {
    padding-inline: 22px;
  }

  .hero {
    height: auto;
    min-height: 900px;
    max-height: none;
  }

  .hero-layout {
    display: block;
    height: auto;
  }

  .hero-content {
    max-width: 650px;
    padding: 94px 0 450px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-brand::after {
    margin-inline: auto;
  }

  .hero-slogan,
  .hero-desc,
  .hero-stats {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-stat {
    align-items: center;
  }

  .wonder-scene {
    top: auto;
    right: 50%;
    bottom: 38px;
    width: 660px;
    height: 450px;
    min-height: 0;
    transform: translate3d(calc(50% + var(--scene-x)), var(--scene-y), 0) scale(0.78);
    transform-origin: 50% 100%;
  }

  .dream-planet {
    right: 20%;
    top: 19%;
  }

  .idea-moon {
    right: 18%;
  }

  .paper-rocket {
    left: 18%;
    top: 23%;
  }

  .constellation {
    left: 8%;
    bottom: 5%;
  }

  .lifecycle-track {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 24px;
  }

  .lifecycle-arrow {
    display: none;
  }

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

@media (max-width: 768px) {
  .header {
    height: 64px;
  }

  .nav {
    top: 64px;
    background: rgba(4, 10, 14, 0.97);
  }

  .logo-sub {
    display: none;
  }

  .hero {
    min-height: 850px;
    padding-top: 64px;
  }

  .hero-content {
    padding-top: 76px;
    padding-bottom: 420px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-slogan {
    font-size: 20px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .wonder-scene {
    bottom: 12px;
    transform: translate3d(calc(50% + var(--scene-x)), var(--scene-y), 0) scale(0.7);
  }

  .feed-section,
  .ideas-section,
  .lifecycle-section,
  .leaderboard-section,
  .ai-scoring-section,
  .lab-section,
  .sites-section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .ideas-grid,
  .sites-grid {
    grid-template-columns: 1fr;
  }

  .idea-card {
    min-height: 0;
  }

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

  .lab-profile-left {
    align-items: center;
    text-align: center;
  }

  .lab-stats {
    justify-content: center;
  }

  .lab-badges {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 18px;
  }

  .logo-text {
    font-size: 16px;
  }

  .hero {
    min-height: 840px;
  }

  .hero-content {
    padding-top: 60px;
    padding-bottom: 400px;
  }

  .hero-badge {
    font-size: 11px;
  }

  .hero-kicker {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .hero-title {
    font-size: 43px;
  }

  .hero-slogan {
    font-size: 18px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
    margin-bottom: 30px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 0;
  }

  .hero-stat {
    min-width: 0;
    margin: 0;
    padding: 0 12px;
  }

  .hero-stat:nth-child(2) {
    border-right: 0;
  }

  .hero-stat-num {
    font-size: 23px;
  }

  .wonder-scene {
    width: 620px;
    bottom: 4px;
    transform: translate3d(calc(50% + var(--scene-x)), var(--scene-y), 0) scale(0.61);
  }

  .feed-ticker {
    height: 390px;
  }

  .feed-item {
    align-items: flex-start;
    padding: 14px;
  }

  .feed-item-status {
    display: none;
  }

  .idea-card {
    padding: 20px;
  }

  .idea-card-footer {
    align-items: flex-end;
    gap: 10px;
  }

  .idea-card-actions {
    gap: 8px;
  }

  .idea-card-claim {
    padding-inline: 12px;
  }

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

  .lifecycle-step {
    margin: 0;
  }

  .ai-scoring-input,
  .ai-scoring-result,
  .lab-profile {
    padding: 22px 18px;
  }

  .lab-products-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #auroraCanvas {
    display: none;
  }
}

/* =========================================
   Identity, account and authentication
   ========================================= */

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.header-account {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 8px;
}

.auth-entry-btn,
.user-chip {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(114, 242, 197, 0.24);
  border-radius: 8px;
  color: var(--text-primary);
  background: rgba(9, 18, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-entry-btn:hover,
.user-chip:hover {
  border-color: rgba(114, 242, 197, 0.5);
  background: rgba(20, 36, 42, 0.88);
}

.auth-entry-btn svg {
  color: #72f2c5;
}

.user-menu-wrap {
  position: relative;
}

.user-chip {
  padding: 0 10px 0 6px;
}

.user-avatar,
.account-avatar {
  display: inline-grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(114, 242, 197, 0.98), rgba(101, 217, 255, 0.96) 48%, rgba(255, 137, 194, 0.96));
  color: #071014;
  font-weight: 900;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
}

.user-name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 184px;
  padding: 6px;
  border: 1px solid rgba(148, 190, 201, 0.18);
  border-radius: 8px;
  background: rgba(8, 15, 20, 0.98);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  z-index: 80;
}

.user-menu button,
.user-menu a {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.user-menu button:hover,
.user-menu a:hover {
  color: var(--text-primary);
  background: rgba(114, 242, 197, 0.08);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 11, 0.82);
  backdrop-filter: blur(12px);
}

.auth-dialog {
  position: relative;
  width: min(100%, 510px);
  max-height: min(90vh, 780px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(114, 242, 197, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(101, 217, 255, 0.11), transparent 32%),
    radial-gradient(circle at 5% 88%, rgba(255, 137, 194, 0.08), transparent 30%),
    #081116;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 190, 201, 0.16);
  border-radius: 7px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: rgba(114, 242, 197, 0.35);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.auth-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(114, 242, 197, 0.36);
  border-radius: 8px;
  color: #eafff8;
  background: linear-gradient(135deg, rgba(114, 242, 197, 0.16), rgba(101, 217, 255, 0.1), rgba(255, 137, 194, 0.14));
  font-weight: 900;
}

.auth-brand div {
  display: grid;
  gap: 2px;
}

.auth-brand strong {
  font-size: 14px;
}

.auth-brand div span {
  color: var(--text-muted);
  font-size: 11px;
}

.auth-heading {
  margin-bottom: 22px;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #72f2c5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-heading h2,
.account-heading h2 {
  margin: 0;
  color: #f4fbfc;
  font-size: 25px;
  line-height: 1.25;
}

.auth-heading p,
.account-heading p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid rgba(148, 190, 201, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.auth-tabs button {
  height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.auth-tabs button.active {
  color: #071014;
  background: #72f2c5;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form > label:not(.auth-check),
.auth-field-grid label {
  display: grid;
  gap: 7px;
}

.auth-form label > span:first-child,
.auth-field-grid label > span:first-child {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.auth-form input:not([type="checkbox"]),
.auth-form select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(148, 190, 201, 0.16);
  border-radius: 7px;
  outline: 0;
  color: #effafb;
  background: rgba(2, 9, 13, 0.7);
  font: inherit;
  font-size: 14px;
}

.auth-form select {
  appearance: auto;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(114, 242, 197, 0.65);
  box-shadow: 0 0 0 3px rgba(114, 242, 197, 0.09);
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-btn {
  border: 0;
  padding: 0;
  color: #7ddff7;
  background: transparent;
  font-size: 12px;
}

.text-btn:hover {
  color: #a4edff;
}

.auth-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #72f2c5;
}

.auth-check a {
  color: #7ddff7;
}

.auth-check-muted {
  color: var(--text-muted);
}

.form-message {
  min-height: 19px;
  margin: -4px 0 0;
  color: #ff99b8;
  font-size: 12px;
  line-height: 1.6;
}

.form-message[data-type="success"] {
  color: #72f2c5;
}

.auth-submit {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  color: #061116;
  background: linear-gradient(90deg, #72f2c5, #65d9ff 58%, #ff89c2);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(101, 217, 255, 0.16);
}

.auth-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.auth-back-link {
  justify-self: center;
}

.account-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.account-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 22px;
}

.subscription-band {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 227, 110, 0.2);
  border-radius: 8px;
  background: rgba(255, 227, 110, 0.05);
}

.subscription-band div {
  display: grid;
  gap: 4px;
}

.subscription-band div span {
  color: var(--text-muted);
  font-size: 11px;
}

.subscription-band strong {
  color: #fff2a8;
  font-size: 16px;
}

.subscription-status {
  padding: 5px 8px;
  border: 1px solid rgba(114, 242, 197, 0.25);
  border-radius: 6px;
  color: #72f2c5;
  background: rgba(114, 242, 197, 0.06);
  font-size: 11px;
  font-weight: 800;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(114, 242, 197, 0.28);
  border-radius: 7px;
  color: #eafff8;
  background: rgba(7, 18, 22, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 13px;
}

.toast-error {
  border-color: rgba(255, 137, 194, 0.36);
  color: #ffd7e5;
}

.idea-card-action {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.idea-like-btn {
  cursor: pointer;
}

.idea-like-btn.active {
  color: #ff89c2;
}

@media (max-width: 1080px) {
  .user-name {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-account {
    margin-left: auto;
  }

  .auth-entry-btn {
    width: 38px;
    padding: 0;
  }

  .auth-entry-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .user-chip {
    width: 40px;
    padding: 0;
  }

  .user-chip > svg,
  .user-name {
    display: none;
  }

  .auth-dialog {
    padding: 26px 20px;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-modal {
    align-items: end;
    padding: 0;
  }

  .auth-dialog {
    width: 100%;
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .auth-heading h2,
  .account-heading h2 {
    font-size: 22px;
  }

  .account-heading {
    align-items: flex-start;
  }

  .account-avatar {
    width: 48px;
    height: 48px;
  }
}
