/* ═══════════════════════════════════════════════
   VoiceWeave Landing — Japanese pastel aesthetic
   Soft, warm, alive
   ═══════════════════════════════════════════════ */

:root {
  --bg: #faf8f5;
  --bg2: #ffffff;
  --text: #2d2b3d;
  --text-soft: #5c5a6e;
  --hint: #9694a8;
  --accent: #b8679e;
  --accent-light: #e8c8df;
  --accent-glow: rgba(184, 103, 158, 0.15);
  --sakura: #f4b4c6;
  --sakura-light: #fce4ec;
  --sakura-glow: rgba(244, 180, 198, 0.3);
  --warm: #f0e6d8;
  --card-border: rgba(0,0,0,0.04);
  --shadow: 0 2px 16px rgba(0,0,0,0.04);
  --radius: 20px;
  --max-w: 640px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ═══ Sakura petals (CSS-only) ═══ */
.sakura-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 12px;
  background: var(--sakura);
  border-radius: 50% 0 50% 50%;
  opacity: 0.35;
  animation: fall linear infinite;
}

.petal:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 10px; height: 10px; }
.petal:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; opacity: 0.25; }
.petal:nth-child(3) { left: 45%; animation-duration: 11s; animation-delay: 4s; width: 8px; height: 8px; }
.petal:nth-child(4) { left: 60%; animation-duration: 14s; animation-delay: 1s; opacity: 0.3; }
.petal:nth-child(5) { left: 78%; animation-duration: 13s; animation-delay: 3s; width: 10px; height: 10px; }
.petal:nth-child(6) { left: 90%; animation-duration: 16s; animation-delay: 5s; opacity: 0.2; width: 9px; height: 9px; }
.petal:nth-child(7) { left: 35%; animation-duration: 17s; animation-delay: 7s; opacity: 0.2; }
.petal:nth-child(8) { left: 70%; animation-duration: 12s; animation-delay: 6s; width: 11px; height: 11px; opacity: 0.3; }

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0; }
  10% { opacity: 0.35; }
  90% { opacity: 0.35; }
  100% { transform: translateY(100vh) rotate(360deg) translateX(40px); opacity: 0; }
}

/* ═══ Top navigation bar with neko ═══ */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 8px 0;
}

.top-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s;
  white-space: nowrap;
}

.top-link:hover {
  color: var(--accent);
  background: rgba(184, 103, 158, 0.06);
  transform: translateY(-1px);
}

.top-neko {
  flex-shrink: 0;
  line-height: 1;
  animation: nekoBreathe 4s ease-in-out infinite;
  filter: drop-shadow(0 1px 2px var(--sakura-glow));
}

.top-neko svg {
  display: block;
}

/* ═══ Language switcher (footer) ═══ */
.lang-sw-btn {
  padding: 5px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--hint);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.lang-sw-btn:hover {
  color: var(--text-soft);
  background: rgba(0,0,0,0.03);
}

.lang-sw-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ═══ Hero ═══ */
.hero {
  text-align: center;
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}

.hero-pulse {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
}

.pulse-heart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  z-index: 2;
  animation: heartbeat 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px var(--sakura-glow));
}

.pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--sakura);
  opacity: 0;
  animation: pulse-expand 2.5s ease-out infinite;
}

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

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.12); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
}

@keyframes pulse-expand {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.accent {
  background: linear-gradient(135deg, var(--accent), var(--sakura));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 3.5vw, 20px);
  color: var(--text-soft);
  margin-top: 8px;
  font-weight: 400;
}

/* ═══ Stats ═══ */
.stats {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: clamp(26px, 5.5vw, 36px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.3s;
}

.stat-num.counting { color: var(--accent); }

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--hint);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.stat-dot {
  font-size: 20px;
  color: var(--sakura);
  opacity: 0.5;
  align-self: center;
}

.hero-heartbeat {
  margin-top: 20px;
  font-size: 14px;
  color: var(--hint);
}

/* ═══ How it works ═══ */
.how {
  padding: 40px 0 24px;
  position: relative;
  z-index: 1;
}

.how h2 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  flex: 0 1 130px;
  padding: 20px 12px;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.step:hover { transform: translateY(-3px); }

.step-icon {
  margin-bottom: 8px;
  color: var(--accent);
  display: flex;
  justify-content: center;
}

.step-text {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
}

.step-arrow {
  color: var(--sakura);
  opacity: 0.6;
  display: flex;
  align-items: center;
}

/* ═══ Languages ═══ */
.langs {
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.lang-chip {
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.3s;
}

.lang-chip:hover {
  transform: translateY(-2px);
  border-color: var(--sakura);
}

/* ═══ Features ═══ */
.features {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.feature {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.3s;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--accent-light);
}

.feature-icon {
  margin-bottom: 10px;
  color: var(--accent);
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.feature p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ═══ CTA ═══ */
.cta {
  padding: 36px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: linear-gradient(135deg, var(--accent), #c87bb0);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.3s;
  box-shadow: 0 6px 24px var(--accent-glow);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}

.cta-btn:active { transform: scale(0.97); }

.tg-icon { flex-shrink: 0; }

/* ═══ Footer ═══ */
.footer {
  text-align: center;
  padding: 24px 0 80px;
  font-size: 12px;
  color: var(--hint);
  position: relative;
  z-index: 1;
}

.footer-lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-bottom: 16px;
  padding: 0 8px;
}

/* ═══ Quick Start Guide ═══ */
.guide {
  padding: 32px 0 16px;
  position: relative;
  z-index: 1;
}

.guide h2 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.guide-intro {
  text-align: center;
  font-size: 14px;
  color: var(--hint);
  margin-bottom: 20px;
}

/* Tabs */
.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.guide-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--bg2);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.guide-tab:hover {
  border-color: var(--sakura);
  transform: translateY(-1px);
}

.guide-tab.active {
  background: linear-gradient(135deg, var(--accent), #c87bb0);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.guide-tab-neko {
  font-size: 11px;
  line-height: 1;
  font-family: monospace;
  opacity: 0.7;
  letter-spacing: -0.5px;
}

.guide-tab.active .guide-tab-neko {
  opacity: 1;
}

/* Scenario panels */
.guide-scenario {
  display: none;
}

.guide-scenario.active {
  display: block;
  animation: fadeInGuide 0.3s ease;
}

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

/* Cards */
.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  transition: transform 0.2s, border-color 0.3s;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-light);
}

.guide-card:last-child {
  margin-bottom: 0;
}

.guide-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--sakura));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.neko {
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  animation: nekoBreathe 4s ease-in-out infinite;
  filter: drop-shadow(0 1px 3px var(--sakura-glow));
}

.neko:hover {
  animation: nekoTilt 0.5s ease;
}

.neko svg {
  display: block;
}

@keyframes nekoBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.03); }
}

@keyframes nekoTilt {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

.guide-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.guide-body p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted var(--accent-light);
  transition: border-color 0.2s, color 0.2s;
}

.inline-link:hover {
  color: #a05088;
  border-bottom-color: var(--accent);
}

/* ═══ Floating CTA ═══ */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--accent), #c87bb0);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 28px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.3s;
  animation: floatPulse 3s ease-in-out infinite;
}

.floating-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 36px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.12);
}

.floating-cta:active {
  transform: scale(0.97);
}

.floating-cta svg {
  flex-shrink: 0;
}

.floating-cta-neko {
  font-size: 11px;
  font-family: monospace;
  line-height: 1;
  letter-spacing: -0.5px;
  opacity: 0.9;
}

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

/* (removed catWave — replaced by nekoBreathe) */

/* ═══ Responsive ═══ */
@media (min-width: 480px) {
  .features { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 479px) {
  .step-arrow { display: none; }
  .steps { gap: 12px; }
  .step { flex: 0 1 calc(50% - 8px); }
  .stat-dot { display: none; }
  .stats { gap: 20px; }
  .top-bar-inner { gap: 2px; padding: 0 8px; }
  .top-link { padding: 5px 10px; font-size: 11px; gap: 3px; }
  .top-neko svg { width: 16px; height: 16px; }
  .guide-tab { padding: 8px 14px; font-size: 12px; }
  .guide-card { padding: 14px 16px; gap: 10px; }
  .floating-cta { bottom: 16px; right: 16px; padding: 10px 18px; font-size: 13px; }
  .floating-cta-text, .floating-cta-neko { display: none; }
  .floating-cta { padding: 14px; border-radius: 50%; }
  .guide-tab-neko { display: none; }
  .footer-lang { gap: 0; }
  .lang-sw-btn { padding: 4px 8px; font-size: 11px; }
}

/* ═══ Soft top gradient ═══ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, var(--sakura-light) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}
