/* ================================================================
   TokenToki Business Site – Shared Styles
   Design language: newapi-inspired, dark mode
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;600;700;900&display=swap');

/* ── Design Tokens (newapi dark mode) ─────────────────── */
:root {
  --background: #1e1e1e;
  --foreground: #f3f3f3;
  --card: #2a2a2a;
  --primary: #e8e2f8;
  --primary-foreground: #fff;
  --muted-foreground: #a1a1aa;
  --accent: #8b5cf6;
  --border: rgba(255,255,255,.08);
  --ring: #7c3aed;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d1;
  --cta-start: #6366f1;
  --cta-end: #8b5cf6;
  --radius: 1rem;
  --shadow: 0 1px 3px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.3);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --font-brand: "Public Sans", sans-serif;
  --max-w: 1200px;
  --nav-h: 4rem;
  --bg-subtle: #252525;
  --accent-start: #6366f1;
  --accent-end: #8b5cf6;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ── NAV ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(20,20,24,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700; color: var(--foreground);
  text-decoration: none; display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-brand);
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: .875rem; color: var(--muted-foreground); font-weight: 500;
  transition: color .2s; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--foreground); }
.nav-cta {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end)); color: #fff;
  padding: .5rem 1.25rem; border-radius: .5rem;
  font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; color: #fff; }

/* mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--foreground); margin: 4px 0; transition: .3s; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-subtle); flex-direction: column; padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border); gap: .75rem;
  }
  .nav-links.open { display: flex; }
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
  color: #fff; padding: 5rem 1.5rem 4rem; text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; opacity: .9; max-width: 640px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── HERO-FX: 点阵 + 粒子 + 文字入场 ─────────────────── */
.hero-fx {
  position: relative;
  overflow: hidden;
}
/* 点阵网格 */
.hero-fx::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: heroDotPulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroDotPulse {
  0%, 100% { opacity: .3; }
  50% { opacity: .6; }
}
/* 浮动粒子 */
.hero-fx .hero-particles {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-fx .hero-particles span {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  animation: particleFloat 10s ease-in-out infinite;
}
.hero-fx .hero-particles span:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; animation-duration: 12s; }
.hero-fx .hero-particles span:nth-child(2) { top: 30%; left: 75%; animation-delay: -2s; animation-duration: 10s; }
.hero-fx .hero-particles span:nth-child(3) { top: 65%; left: 25%; animation-delay: -4s; animation-duration: 14s; }
.hero-fx .hero-particles span:nth-child(4) { top: 70%; left: 65%; animation-delay: -1s; animation-duration: 11s; }
.hero-fx .hero-particles span:nth-child(5) { top: 45%; left: 50%; animation-delay: -3s; animation-duration: 13s; }
.hero-fx .hero-particles span:nth-child(6) { top: 80%; left: 40%; animation-delay: -5s; animation-duration: 9s; }
@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .3; }
  25% { transform: translate(25px, -35px) scale(1.4); opacity: .7; }
  50% { transform: translate(-15px, -60px) scale(1); opacity: .2; }
  75% { transform: translate(30px, -20px) scale(1.2); opacity: .6; }
}
/* 文字入场动画 */
.hero-fx h1,
.hero-fx .hero-tfdb-badge,
.hero-fx p,
.hero-fx .hero-buttons {
  position: relative; z-index: 1;
  animation: heroTextIn .8s cubic-bezier(.23,1,.32,1) both;
}
.hero-fx h1 { animation-delay: .1s; }
.hero-fx p { animation-delay: .25s; }
.hero-fx .hero-buttons { animation-delay: .4s; }
@keyframes heroTextIn {
  0% { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero-tfdb-badge {
  display: inline-block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: .15em;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  padding: .5rem 2rem;
  border-radius: 1rem;
  border: 2px solid rgba(255,255,255,.25);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: .5rem;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-white { background: #fff; color: var(--accent-start); }
.btn-white:hover { color: var(--accent-start); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-primary { background: linear-gradient(135deg, var(--cta-start), var(--cta-end)); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--ring), var(--cta-start)); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: rgba(139,92,246,.15); color: #fff; }

/* ── SECTIONS ─────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-subtle); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; margin-bottom: .75rem; }
.section-header p { color: var(--muted-foreground); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); margin-bottom: .5rem;
}

/* ── CARDS ────────────────────────────────────────────── */
.cards { display: grid; gap: 1.5rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards-2-fixed { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .cards-2-fixed { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: box-shadow .2s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 3rem; height: 3rem; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  background: rgba(139,92,246,.12); color: var(--accent);
}
.card-icon svg, .card-icon i[data-lucide] { width: 1.25rem; height: 1.25rem; }
.card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; }
.card .card-subtitle { font-size: .8125rem; color: var(--primary); font-weight: 500; margin-bottom: .5rem; }
.card p { color: var(--muted-foreground); font-size: .9375rem; line-height: 1.6; }

/* ── TFDB FLOW ────────────────────────────────────────── */
.tfdb-flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; position: relative;
}
.tfdb-flow::before {
  content: ''; position: absolute; top: 2.5rem; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  z-index: 0;
}
.tfdb-step { text-align: center; position: relative; z-index: 1; }
.tfdb-badge {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 900;
  margin: 0 auto 1rem; border: 3px solid var(--background); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.tfdb-step:hover .tfdb-badge { transform: scale(1.1); box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.tfdb-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .375rem; }
.tfdb-step p { font-size: .8125rem; color: var(--muted-foreground); }
@media (max-width: 768px) {
  .tfdb-flow { grid-template-columns: 1fr 1fr; }
  .tfdb-flow::before { display: none; }
}

/* ── PAIN / SOLUTION GRID ─────────────────────────────── */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 800px; margin: 0 auto; }
.pain-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem; border-radius: .75rem;
  background: var(--card); border: 1px solid var(--border);
}
.pain-icon { flex-shrink: 0; margin-top: .125rem; display: flex; align-items: center; color: var(--accent); }
.pain-icon svg { width: 1.25rem; height: 1.25rem; }
.pain-icon.cross { color: #ff6568; }
.pain-icon.check { color: #00bb7f; }
.pain-item h4 { font-size: .9375rem; font-weight: 700; margin-bottom: .25rem; }
.pain-item p { font-size: .8125rem; color: var(--muted-foreground); }
@media (max-width: 640px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-grid-compact { grid-template-columns: 1fr 1fr; max-width: 720px; }
.pain-grid-compact .pain-item { padding: 1.25rem; }
@media (max-width: 640px) { .pain-grid-compact { grid-template-columns: 1fr; } }

/* ── KEYWORD GRID (6 keywords) ────────────────────────── */
.keyword-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.keyword-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: .75rem; padding: 1.5rem; text-align: center;
}
.keyword-card .kw { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: .5rem; }
.keyword-card p { font-size: .8125rem; color: var(--muted-foreground); }

/* ── MODEL TABLE ──────────────────────────────────────── */
.model-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.model-table th {
  text-align: left; padding: .75rem 1rem;
  background: var(--bg-subtle); color: var(--muted-foreground);
  font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}
.model-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.model-table tr:hover td { background: rgba(139,92,246,.08); }
.model-cat {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  padding: .125rem .5rem; border-radius: .25rem;
  background: rgba(139,92,246,.12); color: var(--primary);
}
.model-cat.video { background: rgba(245,158,11,.15); color: var(--warning); }
.model-cat.image { background: rgba(224,136,229,.15); color: #e088e5; }
.model-cat.voice { background: rgba(6,182,212,.15); color: var(--info); }
.model-cat.vision { background: rgba(139,92,246,.15); color: var(--accent); }

/* ── TIMELINE (FDE) ───────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: .75rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-start), var(--accent-end));
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.625rem; top: .25rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--background);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .375rem; }
.timeline-item .phase-tag {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  background: rgba(139,92,246,.12); color: var(--primary);
  padding: .125rem .5rem; border-radius: .25rem; margin-bottom: .5rem;
}
.timeline-item p { color: var(--muted-foreground); font-size: .9375rem; }

/* ── CASE CARD ────────────────────────────────────────── */
.case-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s;
}
.case-card:hover { box-shadow: var(--shadow-lg); }
.case-header {
  padding: 2rem; position: relative;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
}
.case-num { font-size: .75rem; font-weight: 700; opacity: .7; text-transform: uppercase; letter-spacing: .1em; }
.case-header h3 { font-size: 1.25rem; font-weight: 700; margin-top: .25rem; }
.case-body { padding: 2rem; }
.case-body p { color: var(--muted-foreground); font-size: .9375rem; margin-bottom: 1rem; }
.case-body h3 i[data-lucide] { width: 1rem; height: 1rem; color: var(--success); vertical-align: middle; margin-right: .25rem; }
.case-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.case-tag {
  font-size: .75rem; font-weight: 600; padding: .25rem .625rem; border-radius: .375rem;
  background: rgba(139,92,246,.12); color: var(--primary);
}

/* ── PLAN CARD (cooperation) ──────────────────────────── */
.plan-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  text-align: center; position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}
.plan-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end)); color: #fff;
  font-size: .6875rem; font-weight: 700;
  padding: .25rem 1rem; border-radius: 0 0 .5rem .5rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.plan-card h3 { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 .5rem; }
.plan-card .plan-desc { font-size: .875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.plan-card ul { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.plan-card li {
  padding: .375rem 0; font-size: .875rem;
  display: flex; align-items: flex-start; gap: .5rem;
}
.plan-card li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── CTA BANNER ───────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff; text-align: center;
  padding: 4rem 1.5rem; border-radius: var(--radius);
  max-width: var(--max-w); margin: 0 auto;
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-banner p { opacity: .9; margin-bottom: 2rem; font-size: 1.05rem; }

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem; text-align: center;
  color: var(--muted-foreground); font-size: .8125rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted-foreground); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* ── STATS ────────────────────────────────────────────── */
.stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .875rem; color: var(--muted-foreground); margin-top: .25rem; }

/* ── FEATURE ROW ──────────────────────────────────────── */
.feature-row {
  display: flex; align-items: center; gap: 3rem;
  max-width: var(--max-w); margin: 0 auto;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.feature-text p { color: var(--muted-foreground); margin-bottom: 1rem; }
.feature-visual { flex: 1; }
@media (max-width: 768px) {
  .feature-row, .feature-row.reverse { flex-direction: column; }
}

/* ── CONTACT CARD ─────────────────────────────────────── */
.contact-card .icon i[data-lucide] { width: 2rem; height: 2rem; color: var(--primary); }
.step-num i[data-lucide] { width: 1.25rem; height: 1.25rem; }

/* ── Lucide in headings ───────────────────────────────── */
h3 i[data-lucide] {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: middle;
  margin-right: .25rem; color: var(--accent);
}

/* ── UTILITIES ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ================================================================
   HERO-TECH: 科技网格 + TFDB 光晕 (新首页专用)
   ================================================================ */

.hero-tech {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a10;
}

/* ── 点阵网格 ────────────────────────────────────────── */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(139,92,246,.3) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPulse 4s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .5; }
}

/* ── 扫描线 ──────────────────────────────────────────── */
.hero-scanline {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(139,92,246,.03) 50%,
    transparent 100%
  );
  background-size: 100% 4px;
  animation: scanMove 8s linear infinite;
  pointer-events: none;
}
@keyframes scanMove {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── 浮动粒子 ────────────────────────────────────────── */
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(139,92,246,.6);
  border-radius: 50%;
  animation: particleFloat 10s ease-in-out infinite;
}
.hero-particles span:nth-child(1)  { top: 15%; left: 10%; animation-delay: 0s; animation-duration: 12s; }
.hero-particles span:nth-child(2)  { top: 25%; left: 80%; animation-delay: -2s; animation-duration: 10s; }
.hero-particles span:nth-child(3)  { top: 60%; left: 20%; animation-delay: -4s; animation-duration: 14s; }
.hero-particles span:nth-child(4)  { top: 70%; left: 70%; animation-delay: -1s; animation-duration: 11s; }
.hero-particles span:nth-child(5)  { top: 40%; left: 50%; animation-delay: -3s; animation-duration: 13s; }
.hero-particles span:nth-child(6)  { top: 80%; left: 35%; animation-delay: -5s; animation-duration: 9s; }
.hero-particles span:nth-child(7)  { top: 10%; left: 60%; animation-delay: -6s; animation-duration: 15s; }
.hero-particles span:nth-child(8)  { top: 50%; left: 90%; animation-delay: -7s; animation-duration: 10s; }
.hero-particles span:nth-child(9)  { top: 90%; left: 55%; animation-delay: -2.5s; animation-duration: 12s; }
.hero-particles span:nth-child(10) { top: 35%; left: 5%;  animation-delay: -8s; animation-duration: 11s; }
@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .4; }
  25% { transform: translate(30px, -40px) scale(1.5); opacity: .8; }
  50% { transform: translate(-20px, -80px) scale(1); opacity: .3; }
  75% { transform: translate(40px, -30px) scale(1.3); opacity: .7; }
}

/* ── Hero 内容 ───────────────────────────────────────── */
.hero-tech-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}

/* ── TFDB 四字母 ─────────────────────────────────────── */
.hero-letters {
  display: flex;
  gap: clamp(1rem, 4%, 4rem);
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-letter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: .75rem;
  animation: letterEntry .8s cubic-bezier(.23,1,.32,1) both;
}
.hero-letter:nth-child(1) { animation-delay: .2s; }
.hero-letter:nth-child(2) { animation-delay: .4s; }
.hero-letter:nth-child(3) { animation-delay: .6s; }
.hero-letter:nth-child(4) { animation-delay: .8s; }

@keyframes letterEntry {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(.7);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.letter-char {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: .05em;
  color: #fff;
  text-shadow:
    0 0 20px rgba(139,92,246,.6),
    0 0 60px rgba(139,92,246,.3),
    0 0 100px rgba(99,102,241,.2);
  position: relative;
  z-index: 1;
}

.letter-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(139,92,246,.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 0;
}
.hero-letter:nth-child(2) .letter-glow { animation-delay: -.75s; }
.hero-letter:nth-child(3) .letter-glow { animation-delay: -1.5s; }
.hero-letter:nth-child(4) .letter-glow { animation-delay: -2.25s; }

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: .6; }
  50% { transform: translate(-50%, -55%) scale(1.3); opacity: 1; }
}

.letter-label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Tagline ─────────────────────────────────────────── */
.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── 滚动指示 ────────────────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 2;
}
.hero-scroll span {
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,.3);
  border-bottom: 2px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .3; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: .7; }
}

/* ── TFDB Reveal Section ─────────────────────────────── */
.tfdb-reveal-section {
  background: var(--background);
}

.tfdb-reveal {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.tfdb-reveal-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}
.tfdb-reveal-item:hover {
  border-color: rgba(139,92,246,.3);
  box-shadow: 0 0 30px rgba(139,92,246,.08);
}

.tfdb-reveal-letter {
  flex-shrink: 0;
  width: 5rem; height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 4px 20px rgba(99,102,241,.3);
}

.tfdb-reveal-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.tfdb-reveal-body p {
  color: var(--muted-foreground);
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: .75rem;
}
.tfdb-reveal-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
}
.tfdb-reveal-link:hover { color: #fff; }

@media (max-width: 640px) {
  .tfdb-reveal-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Scroll fade-in-up ───────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s cubic-bezier(.23,1,.32,1),
              transform .6s cubic-bezier(.23,1,.32,1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger: nth-child delay */
.stats .fade-in-up:nth-child(1) { transition-delay: 0s; }
.stats .fade-in-up:nth-child(2) { transition-delay: .08s; }
.stats .fade-in-up:nth-child(3) { transition-delay: .16s; }
.stats .fade-in-up:nth-child(4) { transition-delay: .24s; }
.stats .fade-in-up:nth-child(5) { transition-delay: .32s; }
.stats .fade-in-up:nth-child(6) { transition-delay: .4s; }
.cards .fade-in-up:nth-child(1) { transition-delay: 0s; }
.cards .fade-in-up:nth-child(2) { transition-delay: .1s; }
.cards .fade-in-up:nth-child(3) { transition-delay: .2s; }
.tfdb-reveal .fade-in-up:nth-child(1) { transition-delay: 0s; }
.tfdb-reveal .fade-in-up:nth-child(2) { transition-delay: .1s; }
.tfdb-reveal .fade-in-up:nth-child(3) { transition-delay: .2s; }
.tfdb-reveal .fade-in-up:nth-child(4) { transition-delay: .3s; }
.timeline .fade-in-up:nth-child(1) { transition-delay: 0s; }
.timeline .fade-in-up:nth-child(2) { transition-delay: .1s; }
.timeline .fade-in-up:nth-child(3) { transition-delay: .2s; }
.timeline .fade-in-up:nth-child(4) { transition-delay: .3s; }
.pain-grid .fade-in-up:nth-child(1) { transition-delay: 0s; }
.pain-grid .fade-in-up:nth-child(2) { transition-delay: .1s; }
.pain-grid .fade-in-up:nth-child(3) { transition-delay: .15s; }
.pain-grid .fade-in-up:nth-child(4) { transition-delay: .2s; }
.keyword-grid .fade-in-up:nth-child(1) { transition-delay: 0s; }
.keyword-grid .fade-in-up:nth-child(2) { transition-delay: .08s; }
.keyword-grid .fade-in-up:nth-child(3) { transition-delay: .16s; }
.keyword-grid .fade-in-up:nth-child(4) { transition-delay: .24s; }
.keyword-grid .fade-in-up:nth-child(5) { transition-delay: .32s; }
.keyword-grid .fade-in-up:nth-child(6) { transition-delay: .4s; }
.contact-grid .fade-in-up:nth-child(1) { transition-delay: 0s; }
.contact-grid .fade-in-up:nth-child(2) { transition-delay: .15s; }
.steps-grid .fade-in-up:nth-child(1) { transition-delay: 0s; }
.steps-grid .fade-in-up:nth-child(2) { transition-delay: .12s; }
.steps-grid .fade-in-up:nth-child(3) { transition-delay: .24s; }

/* ── CTA Minimal (新首页) ─────────────────────────────── */
.cta-minimal-section {
  background: var(--bg-subtle);
}

.cta-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  position: relative;
  overflow: hidden;
}
/* 右上角装饰光晕 */
.cta-minimal::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-minimal-left h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  margin: .75rem 0 .5rem;
}
.cta-minimal-left p {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.cta-minimal-right {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cta-minimal-btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 2rem;
  border-radius: .5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
}
.cta-minimal-btn i[data-lucide] { width: 1.125rem; height: 1.125rem; }
.cta-minimal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,.3);
  color: #fff;
}
.cta-minimal-btn.secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.cta-minimal-btn.secondary:hover {
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

@media (max-width: 768px) {
  .cta-minimal {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .cta-minimal-right {
    flex-direction: column;
    width: 100%;
  }
  .cta-minimal-btn { justify-content: center; }
}