/* ============================================
   AI 3D Generator - Global Stylesheet
   Reference design inspired by meshy.ai
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a24;
  --bg-card-hover: #22222e;
  --border-color: #2a2a38;
  --border-light: #3a3a4a;

  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;

  --accent-primary: #8b5cf6;
  --accent-secondary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  --accent-glow: rgba(139, 92, 246, 0.3);

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1280px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-user-chip:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.6);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-ratings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rating-stars {
  color: var(--warning);
  letter-spacing: 2px;
}

/* --- Hero Demo / Tabs --- */
.hero-demo {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 80px auto 0;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.demo-tab {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  transition: all 0.25s ease;
}

.demo-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.demo-tab.active {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.demo-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: none;
}

.demo-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.demo-input:focus {
  border-color: var(--accent-primary);
}

.demo-input::placeholder {
  color: var(--text-muted);
}

.demo-upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 24px;
}

.demo-upload-zone:hover {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.05);
}

.demo-upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.demo-upload-zone p {
  font-size: 0.95rem;
}

.demo-upload-zone .upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.demo-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.demo-preview-side h4 {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-placeholder {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.preview-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(139, 92, 246, 0.1) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Showcase Section --- */
.showcase {
  background: var(--bg-secondary);
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.showcase-item {
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.showcase-item:hover {
  transform: scale(1.02);
}

.showcase-item .showcase-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.showcase-item .showcase-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 0.8rem;
  color: #fff;
}

/* --- Stats Section --- */
.stats {
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.stat-item h3 {
  font-size: 3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-left p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--accent-gradient);
  color: #fff;
}

.legal-body h4 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}

.legal-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* --- Pricing Page --- */
.pricing-hero {
  padding: calc(var(--nav-height) + 80px) 0 60px;
  text-align: center;
}

.pricing-hero h1 {
  margin-bottom: 16px;
}

.pricing-hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
}

.pricing-toggle span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-toggle span.active {
  color: var(--text-primary);
  font-weight: 600;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: var(--accent-gradient);
  border-color: transparent;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.save-badge {
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: var(--accent-primary);
  box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent-gradient);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.pricing-card.best-value {
  border-color: var(--success);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

.pricing-card.best-value::before {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: 24px;
}

.pricing-card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.pricing-card-header .plan-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-price {
  margin-bottom: 24px;
}

.pricing-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-features ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-features ul li .check {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features ul li .cross {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn {
  width: 100%;
}

/* --- Comparison Table --- */
.comparison-section {
  padding: 100px 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-primary);
  position: sticky;
  top: 0;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: var(--bg-card);
}

.comparison-table .category-row td {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table .yes { color: var(--success); font-weight: 700; }
.comparison-table .no { color: var(--text-muted); }

/* --- FAQ Section --- */
.faq-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-card);
}

.faq-question .faq-icon {
  font-size: 1.25rem;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-height) + 48px) 0 64px;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .demo-preview {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .demo-input-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Showcase Tabs Section (Image/Text to 3D)
   ============================================ */
.showcase-tabs {
  padding: 60px 0 100px;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.showcase-tab {
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 100px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.showcase-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.showcase-tab.active {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.showcase-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.showcase-panel.active {
  display: block;
}

.showcase-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.showcase-text p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.showcase-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.visual-compare {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.visual-side {
  flex: 1;
  text-align: center;
}

.visual-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.visual-placeholder {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.visual-placeholder img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-placeholder.text-input img {
  width: 72%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.visual-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
}

.visual-arrow {
  font-size: 1.5rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ============================================
   AI Agent Section
   ============================================ */
.agent-section {
  background: var(--bg-secondary);
  position: relative;
}

.agent-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.agent-models-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.agent-model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.agent-model-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.agent-model-thumb {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.agent-model-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ============================================
   3D Printing Section
   ============================================ */
.printing-section {
  position: relative;
}

.printability-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px auto;
  max-width: 800px;
  position: relative;
}

.printability-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.printability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.printability-item {
  text-align: center;
}

.printability-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.printability-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.printability-value.success {
  color: var(--success);
}

.printability-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-gradient);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.print-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 80px 0;
}

.print-feature-row.reverse {
  direction: rtl;
}

.print-feature-row.reverse > * {
  direction: ltr;
}

.print-feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.print-feature-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-visual-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-visual-label {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.check-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 3px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--success);
}

.split-visual {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.split-part {
  width: 60px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  opacity: 0.8;
}

.split-part.part-2 {
  height: 100px;
  opacity: 1;
}

.split-part.part-3 {
  height: 70px;
  opacity: 0.6;
}

.slicer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.slicer-tag {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.slicer-tag:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.format-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.format-row {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.format-label {
  color: var(--text-muted);
  min-width: 80px;
  font-weight: 600;
}

.format-value {
  color: var(--text-secondary);
}

.slicer-visual {
  width: 100%;
}

.slicer-window {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.slicer-toolbar {
  height: 32px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.slicer-toolbar::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--error);
}

.slicer-toolbar::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  margin-left: -2px;
  box-shadow: 16px 0 0 var(--success);
}

.slicer-viewport {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.creative-labs-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.creative-labs-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.creative-labs-content {
  position: relative;
  z-index: 1;
}

.creative-labs-content h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.creative-labs-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* ============================================
   Game Assets Section
   ============================================ */
.gaming-section {
  background: var(--bg-secondary);
  position: relative;
}

.gaming-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.game-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin: 80px 0;
}

.game-feature-row.reverse {
  direction: rtl;
}

.game-feature-row.reverse > * {
  direction: ltr;
}

.game-feature-text h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.game-feature-text p {
  font-size: 1rem;
  line-height: 1.7;
}

.pbr-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pbr-channel {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.pbr-channel.albedo {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.pbr-channel.normal {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.pbr-channel.metallic {
  background: linear-gradient(135deg, #64748b, #334155);
}

.pbr-channel.roughness {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.animation-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.skeleton-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.animation-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.animation-timeline {
  position: relative;
  height: 40px;
}

.timeline-bar {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  transform: translateY(-50%);
}

.timeline-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.timeline-markers {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.timeline-markers span {
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
}

.lowpoly-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.lowpoly-model {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  position: relative;
}

.poly-face {
  position: absolute;
  background: var(--accent-gradient);
  opacity: 0.7;
}

.poly-face.p1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 50px solid rgba(139, 92, 246, 0.6);
  background: transparent;
}

.poly-face.p2 {
  top: 50px;
  left: 20px;
  width: 80px;
  height: 50px;
  background: rgba(99, 102, 241, 0.5);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.poly-face.p3 {
  top: 30px;
  left: 10px;
  width: 50px;
  height: 60px;
  background: rgba(59, 130, 246, 0.4);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.poly-face.p4 {
  top: 30px;
  right: 10px;
  width: 50px;
  height: 60px;
  background: rgba(139, 92, 246, 0.5);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.poly-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.compatible-section {
  text-align: center;
  margin: 80px 0 48px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.compatible-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.compatible-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.compatible-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.compatible-logo:hover {
  color: var(--accent-primary);
}

.export-formats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.export-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.format-tags {
  display: flex;
  gap: 8px;
}

.format-tag {
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.other-use-cases {
  margin-top: 64px;
}

.other-use-cases h4 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.use-case-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.use-case-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.use-case-card:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.use-case-icon {
  font-size: 1.1rem;
}

/* ============================================
   Stats / 技术底座 Section
   ============================================ */
.stats-section {
  position: relative;
}

.stats-section .section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
  margin: 12px auto 0;
}


/* ============================================
   Community Showcase Section
   ============================================ */
.community-section {
  background: var(--bg-secondary);
  position: relative;
}

.community-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.community-item {
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.community-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.community-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.community-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.community-item:hover .community-overlay {
  opacity: 1;
  transform: translateY(0);
}

.community-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.community-avatar {
  width: 24px;
  height: 24px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.community-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-stats {
  display: flex;
  gap: 12px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Responsive Additions
   ============================================ */
@media (max-width: 1024px) {
  .showcase-grid-2col,
  .print-feature-row,
  .game-feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .print-feature-row.reverse,
  .game-feature-row.reverse {
    direction: ltr;
  }

  .agent-models-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .printability-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .community-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .showcase-text h2 {
    font-size: 1.75rem;
  }

  .tabs-header {
    flex-direction: column;
    align-items: center;
  }

  .showcase-tab {
    width: 100%;
    max-width: 280px;
  }

  .agent-models-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-compare {
    flex-direction: column;
  }

  .visual-arrow {
    transform: rotate(90deg);
  }

  .creative-labs-banner {
    padding: 32px 20px;
  }

  .creative-labs-banner h3 {
    font-size: 1.25rem;
  }

  .compatible-logos {
    gap: 20px;
  }

  .export-formats {
    flex-direction: column;
    gap: 12px;
  }

  .pbr-visual {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* --- Hero 背书徽标 --- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* --- 业务场景应用区 --- */
.usecase-section {
  position: relative;
}

.usecase-section .section-header p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.usecase-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.usecase-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.usecase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.usecase-card:hover .usecase-img img {
  transform: scale(1.05);
}

.usecase-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.usecase-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.usecase-body h3 {
  font-size: 1.25rem;
  margin: 0;
}

.usecase-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  min-height: 6.5rem; /* 统一文字区最小高度(约4行), 保证两面板卡片等高 */
}

.usecase-body .btn {
  align-self: flex-start;
}

/* --- 页脚标注 --- */
.footer-tagline {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #a78bfa;
  font-weight: 500;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 响应式 */
@media (max-width: 900px) {
  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 业务场景 Tab 应用矩阵 --- */
.usecase-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.usecase-tab {
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.usecase-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.usecase-tab.active {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.usecase-panel {
  display: none;
  margin-top: 40px;
}

.usecase-panel.active {
  display: block;
}

/* 覆盖为 4 列布局（工业家居 4 场景） */
.usecase-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* 卫浴五金图标卡 */
.usecase-card-icon {
  display: flex;
  flex-direction: column;
}

.usecase-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(59, 130, 246, 0.16));
}

/* 创意与消费紧凑卡 */
.use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.use-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.use-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.use-card-icon {
  font-size: 2.5rem;
}

.use-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0;
}

.use-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .use-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .usecase-grid {
    grid-template-columns: 1fr;
  }
  .use-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   3D 打印成果展示 (Output showcase)
   ============================================ */
.output-section {
  position: relative;
}

.output-section .section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
  margin: 12px auto 0;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 48px auto 0;
}

.output-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.output-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.output-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-secondary);
}

.output-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.output-info {
  padding: 16px 20px;
}

.output-info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.output-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.output-actions {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 768px) {
  .output-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}


/* ============================================
   AI Agent 左右布局（左文案 + 右视频）
   ============================================ */
.agent-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.agent-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.agent-points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.agent-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.agent-video {
  position: relative;
}

.agent-video video {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: block;
  background: #000;
}

@media (max-width: 900px) {
  .agent-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ============================================
   AI Agent 对话模式（工作台左侧面板）
   ============================================ */
.ws-mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.ws-mode-tab {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 8px 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ws-mode-tab:hover {
  color: #fff;
  border-color: var(--border-light);
}

.ws-mode-tab.active {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
}

#mode-agent {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  height: calc(100vh - 220px);
}

.ws-agent-chat {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px;
}

.ws-agent-msg {
  max-width: 94%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.ws-agent-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ws-agent-msg.agent {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.ws-agent-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.ws-agent-quick-btn {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-agent-quick-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
}

.ws-agent-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.ws-agent-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  outline: none;
}

.ws-agent-input:focus {
  border-color: #8b5cf6;
}

.ws-agent-send {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ws-agent-send:hover {
  filter: brightness(1.12);
}


.ws-agent-imgbtn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-agent-imgbtn:hover {
  color: #fff;
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
}


/* ===== 科技感生成加载动画 ===== */
.ws-gen-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 42%, rgba(139, 92, 246, 0.14), transparent 62%);
  overflow: hidden;
}
.ws-gen-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 78%);
  animation: wsGridPulse 3s ease-in-out infinite;
}
.ws-gen-stage::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #60a5fa, transparent);
  filter: drop-shadow(0 0 8px #8b5cf6);
  opacity: 0.6;
  animation: wsScan 2.4s linear infinite;
}
@keyframes wsGridPulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes wsScan { 0% { top: 12%; opacity: 0; } 15% { opacity: .7; } 50% { top: 88%; opacity: .7; } 85% { opacity: .7; } 100% { top: 12%; opacity: 0; } }
.ws-gen-cube {
  position: relative;
  width: 96px;
  height: 96px;
  transform-style: preserve-3d;
  animation: wsCubeSpin 4.5s linear infinite;
  filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.6));
}
.ws-gen-cube .f {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(167, 139, 250, 0.95);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.06));
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.4) inset;
}
.ws-gen-cube .f1 { transform: translateZ(48px); }
.ws-gen-cube .f2 { transform: rotateY(180deg) translateZ(48px); }
.ws-gen-cube .f3 { transform: rotateY(90deg) translateZ(48px); }
.ws-gen-cube .f4 { transform: rotateY(-90deg) translateZ(48px); }
.ws-gen-cube .f5 { transform: rotateX(90deg) translateZ(48px); }
.ws-gen-cube .f6 { transform: rotateX(-90deg) translateZ(48px); }
.ws-gen-cube::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #c4b5fd, #8b5cf6 45%, transparent 72%);
  box-shadow: 0 0 30px 8px rgba(139, 92, 246, 0.6);
  animation: wsCorePulse 1.8s ease-in-out infinite;
}
@keyframes wsCorePulse { 0%, 100% { opacity: .55; transform: translate(-50%,-50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.12); } }
@keyframes wsCubeSpin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to { transform: rotateX(-22deg) rotateY(360deg); }
}
.ws-gen-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-top-color: rgba(167, 139, 250, 0.9);
  animation: wsRingSpin 2.6s linear infinite;
  pointer-events: none;
}
.ws-gen-ring.r2 {
  width: 186px;
  height: 186px;
  border-color: rgba(96, 165, 250, 0.25);
  border-bottom-color: rgba(147, 197, 253, 0.9);
  animation-direction: reverse;
  animation-duration: 3.6s;
}
@keyframes wsRingSpin { to { transform: rotate(360deg); } }
.ws-gen-label {
  font-size: 0.84rem;
  color: #c4b5fd;
  letter-spacing: 0.5px;
  animation: wsFadeUp 1.8s ease-in-out infinite;
  text-align: center;
  padding: 0 16px;
}
@keyframes wsFadeUp { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.ws-gen-pct {
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
