/* ═══════════════════════════════════
   Landing Page — 李思奇
   深色科技风格
   ═══════════════════════════════════ */

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

:root {
  --bg: #ffffff;
  --bg-card: #f8fafc;
  --border: rgba(0, 0, 0, 0.08);
  --text: #334155;
  --text-dim: #64748b;
  --text-bright: #0f172a;
  --accent: #0f172a;
  --accent-2: #475569;
  --gradient: linear-gradient(135deg, #0f172a, #475569);
  --green: #10b981;
  --radius: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.3s;
}

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

/* ─── Hero Structure ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

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

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.glow-1 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: -100px; left: -100px;
  animation: float 8s ease-in-out infinite;
}

.glow-2 {
  width: 500px; height: 500px;
  background: var(--accent-2);
  bottom: -200px; right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.glow-3 {
  width: 300px; height: 300px;
  background: #3b82f6;
  top: 40%; left: 50%;
  opacity: 0.2;
  transform: translate(-50%, -50%);
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  text-align: center;
  max-width: 860px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-bright);
  font-weight: 500;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-name {
  display: block;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.hero-subtitle {
  display: inline-block;
  font-size: clamp(18px, 3.2vw, 24px);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  max-width: 760px;
  text-wrap: balance;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 42px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Buttons ─── */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-bright);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid rgba(0,0,0,0.2);
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.4);
}

/* ─── Stats ─── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ─── Common Section ─── */
.section { padding: 120px 0; }

.section-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-tag.center { text-align: center; }

.section-desc {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 64px;
}

.section-desc.center { text-align: center; }

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.photo-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 3/4;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(110%);
}

.photo-decor {
  position: absolute;
  top: 24px;
  left: 24px;
  right: -24px;
  bottom: -24px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: 1;
  opacity: 0.3;
}

.about-headline {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.25;
  margin-bottom: 20px;
  text-wrap: balance;
}

.about-text p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tag {
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-bright);
}

/* ─── AI Projects ─── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 64px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
}

.project-icon {
  font-size: 48px;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  flex-shrink: 0;
}

.project-meta h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 6px;
  text-wrap: balance;
}

.project-tagline {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.project-links {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.link-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  color: var(--text-bright);
  transition: all 0.3s;
}

.link-badge:hover {
  background: rgba(0,0,0,0.1);
}

.demo-badge {
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.05);
}

/* ─── 截图增强 (mock-browser) ─── */
.project-screenshot {
  margin-bottom: 48px;
  position: relative;
}

.mock-browser {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.browser-header {
  height: 44px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  position: relative;
}

.browser-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-url {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--text-dim);
  background: rgba(0,0,0,0.2);
  padding: 4px 16px; border-radius: 6px;
  font-family: monospace; letter-spacing: 0.5px;
}

.screenshot-scroll-area {
  max-height: 550px; /* 限制高度，超出则滚动 */
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff; /* 默认配合浅色部分 */
}

.screenshot-scroll-area.dark-bg {
  background: #000;
}

/* 隐藏细化滚动条 */
.screenshot-scroll-area::-webkit-scrollbar {
  width: 8px;
}
.screenshot-scroll-area::-webkit-scrollbar-track {
  background: var(--bg-card);
}
.screenshot-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}
.screenshot-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}

.screenshot-scroll-area img {
  width: 100%;
  display: block;
}

/* ─── iframe 实时看板演示 ─── */
.demo-video-wrapper {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

.demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0a0a0f;
}

.demo-video-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  pointer-events: none;
}

.demo-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 1px;
  animation: livePulse 2s ease-in-out infinite;
}

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

.iframe-hint {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.6);
}

.screenshot-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ─── 项目内部内容区块 ─── */
.project-problem {
  margin-bottom: 40px;
}

.project-problem h4, .project-solution h4 {
  font-size: 17px; font-weight: 700; color: var(--text-bright);
  margin-bottom: 14px;
}

.project-problem p {
  font-size: 14px; color: var(--text-dim); line-height: 1.75;
  padding: 22px; background: rgba(0,0,0,0.03); border-radius: 16px;
  border-left: 4px solid var(--border);
}

.project-problem b { color: var(--text-bright); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.feature {
  display: flex; gap: 16px;
  padding: 24px;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.feature-icon { font-size: 24px; flex-shrink: 0; }

.feature-text strong {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--text-bright); margin-bottom: 4px;
}

.feature-text span {
  font-size: 14px; color: var(--text-dim);
}

/* ─── Workflow Timeline (Walkthrough 组件) ─── */
.workflow-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
  margin-bottom: 48px;
  margin-top: 16px;
}

.workflow-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 2px;
}

.workflow-step {
  position: relative;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 28px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.workflow-step:last-child {
  margin-bottom: 0;
}

.workflow-step:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateX(4px);
}

.workflow-step::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 36px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  z-index: 2;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
  transition: all 0.3s ease;
}

.workflow-step:hover::before {
  background: var(--accent);
  transform: scale(1.3);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-number {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.step-icon {
  font-size: 18px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
}

.step-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  padding-left: 2px;
}

.project-tech {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.tech-tag {
  font-family: monospace; font-size: 13px;
  color: var(--accent); background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 6px 12px; border-radius: 8px;
}

.project-result {
  text-align: center;
  padding: 34px;
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
  border-radius: 24px;
  border: 1px solid var(--border);
}

.result-metric {
  display: flex; align-items: center; justify-content: center; gap: 24px;
}

.metric-before {
  font-size: 32px; font-weight: 700; color: var(--text-dim);
  text-decoration: line-through; opacity: 0.5;
}

.metric-arrow {
  color: var(--accent); font-weight: 800; font-size: 24px;
}

.metric-after {
  font-size: 48px; font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label { font-size: 15px; color: var(--text-dim); margin-top: 8px; }

/* ─── AI Video Section ─── */
.video-card {
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(0,0,0,0.05)"/></svg>');
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 64px;
}

.video-card-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.video-text h3 {
  font-size: 32px; font-weight: 800; color: var(--text-bright); margin-bottom: 16px;
}

.video-text p {
  font-size: 16px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.8;
}

.video-text ul { list-style: none; }
.video-text li {
  font-size: 15px; color: var(--text-dim); padding: 8px 0; padding-left: 24px; position: relative;
}
.video-text li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent);
}

.video-tools {
  display: flex; flex-direction: column; gap: 16px; min-width: 200px;
}

.tool-badge {
  padding: 16px 24px; border-radius: 12px; font-size: 15px; font-weight: 700; text-align: center; border: 1px solid;
}

.tool-badge.sora { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.3); color: #a78bfa; }
.tool-badge.seedance { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.tool-badge.prompt { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }

/* ─── Skills ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,0,0,0.2);
}

.skill-icon { font-size: 40px; margin-bottom: 24px; }
.skill-card h4 { font-size: 18px; font-weight: 700; color: var(--text-bright); margin-bottom: 24px; }
.skill-items { display: flex; flex-direction: column; gap: 12px; }
.skill-items span { font-size: 14px; color: var(--text-dim); }

/* ─── Contact ─── */
.contact-card {
  text-align: center;
  padding: 100px 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
}

.contact-card h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-bright);
  margin: 0 auto 16px;
  max-width: 820px;
  line-height: 1.25;
  text-wrap: balance;
}
.contact-card > p {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 auto 48px;
  max-width: 700px;
  line-height: 1.75;
}

.contact-info { display: flex; gap: 24px; justify-content: center; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 16px; font-weight: 600;
  transition: all 0.3s;
}
.contact-item:hover { border-color: var(--text-bright); background: rgba(0,0,0,0.05); }

/* ─── Footer ─── */
.footer {
  text-align: center; padding: 40px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-dim);
}

/* ─── Animations Helper ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; margin: 0 auto; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .video-card-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { flex-wrap: wrap; }
  .stat { width: 40%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-name { font-size: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .project-card { padding: 32px 24px; }
  .project-header { flex-wrap: wrap; }
  .contact-info { flex-direction: column; }
}

/* ─── 互动 Demo 增强 (Tabs and Terminal) ─── */
.interactive-demo { margin-top: 24px; }

.demo-tabs {
  display: flex; gap: 12px;
  margin-bottom: -1px; /* 沉浸式压住下方的边框 */
  position: relative; z-index: 10;
  padding-left: 24px;
}

.demo-tab {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 10px 24px;
  border-radius: 12px 12px 0 0;
  color: var(--text-dim);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  outline: none;
}

.demo-tab:hover {
  background: rgba(0, 0, 0, 0.05); color: var(--text);
}

.demo-tab.active {
  background: #f1f5f9; /* 匹配 mock-browser 背景 */
  color: var(--accent);
  border-bottom: 2px solid #111118; /* 彻底盖盖住底部的线 */
  box-shadow: 0 -8px 20px rgba(0,0,0,0.3);
}

.demo-view { display: none; }
.demo-view.active {
  display: block; animation: fadeIn 0.4s ease;
}

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

/* 终端界面特效 */
.terminal-container {
  padding: 32px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 14px;
  color: #a9b7c6;
  line-height: 1.8;
  height: 100%;
}

.term-line { margin-bottom: 8px; font-family: 'JetBrains Mono', Consolas, monospace; }
.term-time { color: #5c6370; margin-right: 12px; font-size: 12px;}
.term-info { color: #4aa366; font-weight: bold;}
.term-warn { color: #d0b03c; font-weight: bold;}
.term-ai { color: #875afb; font-weight: bold;}
.term-error { color: #e06c75; font-weight: bold;}
.term-notice { color: #56b6c2; font-weight: bold;}

.terminal-container .cursor {
  display: inline-block; color: #fff;
  animation: blink 1s step-end infinite;
}

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

/* 代码块界面高亮 */
.code-block {
  padding: 32px; margin: 0;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 14px; line-height: 1.6; color: #e4e4e7;
  overflow-x: auto;
}
.code-block .keyword { color: #ff7b72; font-weight: 600; }
.code-block .method { color: #d2a8ff; font-weight: 600; }
.code-block .string { color: #a5d6ff; }
.code-block .comment { color: #8b949e; font-style: italic; }

/* ─── Story View ─── */
.review-story-container {
  padding: 36px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(180deg, #0c1220 0%, #090f1a 100%);
  color: #d8e1ef;
  min-height: 100%;
}

.story-intro {
  margin-bottom: 28px;
  padding: 24px 24px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
}

.story-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.12);
  margin-bottom: 14px;
}

.story-headline {
  font-size: 24px;
  line-height: 1.25;
  color: #f8fafc;
  margin-bottom: 12px;
  text-wrap: balance;
}

.story-lead {
  font-size: 15px;
  line-height: 1.75;
  color: #b9c6da;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.story-node {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 16px;
  align-items: start;
}

.node-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 8px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.node-marker.problem { background: #f59e0b; }
.node-marker.analysis { background: #60a5fa; }
.node-marker.solution { background: #34d399; }

.node-content {
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
}

.node-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #c9d6ea;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.node-content h5 {
  font-size: 20px;
  line-height: 1.3;
  color: #f8fafc;
  margin-bottom: 10px;
}

.node-content p {
  font-size: 14px;
  line-height: 1.75;
  color: #b8c4d8;
}

.node-content strong {
  color: #f8fafc;
}

.story-outcome {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.outcome-item {
  padding: 20px 16px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.outcome-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  margin-bottom: 6px;
}

.outcome-label {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #9fb0c8;
}

.story-moral {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.18);
  color: #f6e7a4;
  font-size: 14px;
  line-height: 1.7;
}

/* ─── Business Showcases ─── */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.showcase-icon {
  font-size: 40px;
  margin-bottom: 24px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.showcase-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.showcase-brief {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.6;
}

.showcase-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.showcase-metric {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.metric-value {
  font-size: 32px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 4px;
  display: inline-block;
}

.metric-title {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}

@media (max-width: 768px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .review-story-container { padding: 24px 18px; }
  .story-headline { font-size: 22px; }
  .story-node { grid-template-columns: 1fr; }
  .node-marker { display: none; }
  .story-outcome { grid-template-columns: 1fr; }
}
