/* === RESET & FOUNDATIONS === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --lavender-50: #faf8ff;
  --lavender-100: #f3efff;
  --lavender-200: #e8dfff;
  --lavender-300: #d4c4ff;
  --lavender-400: #b99aff;
  --lavender-500: #9b6dff;
  --lavender-600: #8b5cf6;
  --lavender-700: #7c3aed;
  --lavender-800: #6d28d9;
  --lavender-900: #5b21b6;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --mint-400: #34d399;
  --bg: #faf8ff;
  --bg-card: rgba(255, 255, 255, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(183, 148, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(139, 92, 246, 0.08);
  --text-primary: #2d1b69;
  --text-secondary: #6b5b8d;
  --text-muted: #a99dc0;
  --glow: 0 4px 24px rgba(139, 92, 246, 0.12);
  --glow-strong: 0 8px 40px rgba(139, 92, 246, 0.18);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(233, 213, 255, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 90%, rgba(249, 168, 212, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(196, 181, 253, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* === GLASS UTILITY === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.gradient-text {
  background: linear-gradient(135deg, var(--lavender-600), var(--lavender-800), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 32px;
}

.hero-text { text-align: left; flex: 1; }

.hero-rabbit {
  position: relative;
  flex-shrink: 0;
  width: 260px;
  height: 260px;
}

.rabbit-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(139, 92, 246, 0.2));
  animation: float 5s ease-in-out infinite;
}

.rabbit-glow {
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 30px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15), transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--lavender-600);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--lavender-600), var(--lavender-800));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.scroll-hint {
  font-size: 14px;
  color: var(--text-muted);
  animation: pulse 2s ease-in-out infinite;
}

/* === SCHEDULE TABLE === */
.pipeline-section {
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.schedule-table-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule-table thead {
  background: linear-gradient(135deg, var(--lavender-100), var(--lavender-200));
}

.schedule-table th {
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--lavender-800);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.schedule-table th:first-child { text-align: left; }

.schedule-table td {
  padding: 10px 16px;
  text-align: center;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(183, 148, 255, 0.08);
}

.schedule-table td:first-child { text-align: left; }

.schedule-table td strong {
  color: var(--lavender-700);
  font-weight: 700;
}

.schedule-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.04);
}

.platform-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.platform-dot.yt { background: #ff0000; }
.platform-dot.bili { background: #00a1d6; }
.platform-dot.xhs { background: #ff2442; }
.platform-dot.sph { background: #07c160; }
.platform-dot.dy { background: #000000; border: 1px solid #ddd; }
.platform-dot.tt { background: #69c9d0; }
.platform-dot.wx { background: #07c160; }
.platform-dot.ss { background: #ff6719; }
.platform-dot.x { background: #1da1f2; }
.platform-dot.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }

.row-divider td {
  border-top: 2px solid rgba(183, 148, 255, 0.15);
}

.schedule-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* === WORKFLOW CARDS === */
.workflows-section {
  padding: 40px 24px 60px;
  position: relative;
  z-index: 1;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.workflow-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--glow-strong);
}

.workflow-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(233, 213, 255, 0.5), rgba(249, 168, 212, 0.15));
  border-color: rgba(139, 92, 246, 0.3);
}

.card-rabbit {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.card-rabbit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.1));
  transition: transform 0.3s ease;
}

.workflow-card:hover .card-rabbit img {
  transform: scale(1.1) rotate(-3deg);
}

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

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--lavender-600);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 100px;
  padding: 2px 8px;
  letter-spacing: 0.3px;
}

.card-hint {
  font-size: 12px;
  color: var(--lavender-500);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
  margin-top: 6px;
}

.workflow-card:hover .card-hint { opacity: 1; }

/* === DASHBOARD === */
.dashboard-section {
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto 28px;
}

.dash-card {
  padding: 20px 16px;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.dash-platform { font-size: 14px; font-weight: 700; color: var(--lavender-700); margin-bottom: 6px; }
.dash-metric {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.dash-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.dash-trend {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 6px;
}
.dash-trend.up {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.15);
}
.dash-trend.neutral {
  color: var(--lavender-600);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
}
.dash-detail { font-size: 11px; color: var(--text-muted); }

/* Insight Card */
.insight-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.insight-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.insight-item {
  padding: 14px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.08);
}

.insight-platform {
  font-size: 13px;
  font-weight: 700;
  color: var(--lavender-600);
  margin-bottom: 4px;
}

.insight-rule {
  font-size: 14px;
  margin-bottom: 4px;
}

.insight-example {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.insight-example strong { color: #16a34a; }

/* === FLYWHEEL === */
.flywheel-section {
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.flywheel-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.flywheel-ring {
  position: relative;
  width: 380px;
  height: 380px;
}

.fly-node {
  position: absolute;
  text-align: center;
  width: 110px;
  transform: translate(-50%, -50%);
}

.fly-node[data-pos="top"]    { top: 8%; left: 50%; }
.fly-node[data-pos="right"]  { top: 50%; left: 93%; }
.fly-node[data-pos="bottom"] { top: 92%; left: 50%; }
.fly-node[data-pos="left"]   { top: 50%; left: 7%; }

.fly-emoji {
  font-size: 34px;
  margin-bottom: 4px;
  animation: float 4s ease-in-out infinite;
}

.fly-node[data-pos="right"] .fly-emoji  { animation-delay: 1s; }
.fly-node[data-pos="bottom"] .fly-emoji { animation-delay: 2s; }
.fly-node[data-pos="left"] .fly-emoji   { animation-delay: 3s; }

.fly-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.fly-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-200), var(--lavender-100));
  border: 2px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
  z-index: 2;
  overflow: hidden;
}

.fly-center-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.fly-center-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--lavender-700);
}

.fly-arrows {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.arrow-anim {
  stroke-dasharray: 8 6;
  animation: dash 3s linear infinite;
}

.flywheel-explain {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.explain-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.explain-step + .explain-step {
  border-top: 1px solid rgba(183, 148, 255, 0.1);
}

.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-500), var(--lavender-700));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* === TOOLS === */
.tools-section {
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.tool-item {
  padding: 18px 12px;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.tool-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
  border-color: rgba(139, 92, 246, 0.35);
}

.tool-emoji { font-size: 28px; margin-bottom: 6px; }
.tool-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.tool-role { font-size: 11px; color: var(--text-muted); }

/* === QUOTE === */
.quote-section {
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
  z-index: 1;
}

.big-quote {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  font-style: italic;
  margin-bottom: 8px;
}

.quote-attr {
  font-size: 14px;
  color: var(--text-muted);
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  border-top: 1px solid rgba(183, 148, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--lavender-600);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--lavender-800); }

.footer-small {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* === TERMINAL MODAL === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45, 27, 105, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal {
  width: min(720px, 92vw);
  max-height: 75vh;
  overflow: hidden;
  background: #1a1032;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  animation: modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 60px rgba(139,92,246,0.1);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  background: rgba(20, 12, 40, 0.5);
}

.terminal-dots { display: flex; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(240, 236, 255, 0.5);
}

.terminal-close {
  background: none;
  border: none;
  color: rgba(240, 236, 255, 0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.terminal-close:hover { color: #f0ecff; background: rgba(255,255,255,0.05); }

.terminal-body {
  padding: 20px 24px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 200px;
  max-height: 55vh;
  overflow-y: auto;
  color: rgba(240, 236, 255, 0.6);
}

.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.2); border-radius: 3px; }

.term-line { margin-bottom: 4px; white-space: pre-wrap; }
.term-prompt { color: #a78bfa; }
.term-command { color: #e2e8f0; font-weight: 500; }
.term-output { color: rgba(240, 236, 255, 0.55); }
.term-success { color: #4ade80; }
.term-highlight { color: #c084fc; font-weight: 600; }
.term-comment { color: rgba(240, 236, 255, 0.3); font-style: italic; }

.cursor-blink {
  display: inline-block;
  width: 8px; height: 16px;
  background: #a78bfa;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

@keyframes modal-in {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes dash {
  to { stroke-dashoffset: -28; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-top { flex-direction: column; gap: 24px; }
  .hero-text { text-align: center; }
  .hero-stats { justify-content: center; gap: 20px; flex-wrap: wrap; }
  .hero-rabbit { width: 180px; height: 180px; }
  .stat-number { font-size: 2rem; }
  .workflow-card.featured { grid-column: span 1; }
  .flywheel-ring { width: 300px; height: 300px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .schedule-table { font-size: 12px; }
  .schedule-table th, .schedule-table td { padding: 8px 10px; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 50px 16px 30px; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.8rem; }
  .insight-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
