/* ================================================
   智译 - AI 智能文档翻译官网
   Design Tokens from internal system
   ================================================ */

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand */
  --brand-400: #8B5CF6;
  --brand-500: #9333EA;
  --brand-600: #7C3AED;
  --brand-700: #6D28D9;
  --brand-tint: #F5F3FF;
  --brand-border: #E9D5FF;

  /* Surface */
  --surface-base: #FFFFFF;
  --surface-subtle: #F8FAFC;

  /* Text */
  --text-strong: #111827;
  --text-body: #334155;
  --text-muted: #64748B;

  /* Line */
  --line-default: #E2E8F0;

  /* Semantic */
  --success-500: #10B981;
  --danger-500: #D32F2F;

  /* Radius */
  --radius-sm: 2px;
  --radius-base: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-medium: 300ms;
  --duration-slow: 500ms;
  --easing-standard: ease-out;
  --easing-emphasized: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--surface-base);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ================================================
   Navbar — transparent on hero, white on scroll
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-medium) var(--easing-emphasized),
              border-color var(--duration-medium) var(--easing-emphasized),
              box-shadow var(--duration-medium) var(--easing-emphasized);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line-default);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo — white on hero, dark on scroll */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--duration-medium) var(--easing-emphasized);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  box-shadow:
    0 0 8px rgba(139, 92, 246, 0.25),
    0 0 16px rgba(139, 92, 246, 0.1);
}

.navbar.scrolled .logo {
  color: var(--text-strong);
}

/* Nav links — light on hero, dark on scroll */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--duration-medium) var(--easing-emphasized);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--text-muted);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-400);
  border-radius: var(--radius-full);
  transition: width var(--duration-medium) var(--easing-emphasized);
}

.nav-links a:hover { color: #C4B5FD; }
.navbar.scrolled .nav-links a:hover { color: var(--brand-500); }
.nav-links a:hover::after { width: 100%; }

/* Nav action buttons — adapt to bg */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn-ghost {
  color: rgba(255,255,255,0.8);
}

.navbar.scrolled .nav-actions .btn-ghost {
  color: var(--text-body);
}

.nav-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.navbar.scrolled .nav-actions .btn-ghost:hover {
  background: var(--surface-subtle);
  color: var(--brand-600);
}

.nav-actions .btn-primary {
  background: rgba(255,255,255,0.15);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.navbar.scrolled .nav-actions .btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  border: none;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

/* Mobile toggle — white on hero */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: var(--radius-full);
  transition: background var(--duration-medium) var(--easing-emphasized),
              transform var(--duration-medium) var(--easing-emphasized);
}

.navbar.scrolled .menu-toggle span {
  background: var(--text-strong);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(15, 7, 32, 0.95);
  backdrop-filter: blur(16px);
  padding: 16px 24px;
}

.navbar.scrolled .mobile-menu {
  background: rgba(255,255,255,0.96);
}

.mobile-menu.open { display: block; }

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 8px 0;
}

.navbar.scrolled .mobile-links a {
  color: var(--text-body);
}

.mobile-links .btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)) !important;
  border: none !important;
  color: #fff !important;
}

/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--easing-emphasized);
  white-space: nowrap;
  padding: 10px 22px;
  text-decoration: none;
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
}

.btn-outline {
  background: var(--surface-base);
  color: var(--brand-600);
  border: 1.5px solid var(--brand-border);
}

.btn-outline:hover {
  background: var(--brand-tint);
  border-color: var(--brand-400);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
}

.btn-ghost:hover {
  background: var(--surface-subtle);
  color: var(--brand-600);
}

.btn-white {
  background: #fff;
  color: var(--brand-700);
  font-weight: 700;
}

.btn-white:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ================================================
   Hero
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #0F0720 0%, #1A0A3E 40%, #2D1B69 70%, #1A0A3E 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--brand-500);
  top: -200px;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--brand-400);
  bottom: -100px;
  left: 5%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #E9D5FF 0%, #A78BFA 40%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-actions .btn-ghost {
  color: rgba(255,255,255,0.7);
}

.hero-actions .btn-ghost:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 20px 40px;
  border-radius: var(--radius-2xl);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  margin-bottom: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.12);
}

/* Hero Mockup Carousel — Fan Layout */
.hero-mockup {
  max-width: 900px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  height: 500px;
  perspective: 1200px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 720px;
  transform: translateX(-50%) scale(0.82) rotateY(0deg);
  opacity: 0;
  pointer-events: none;
  transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left card */
.carousel-slide.prev {
  transform: translateX(calc(-50% - 130px)) scale(0.72) rotateY(12deg);
  opacity: 0.45;
  z-index: 1;
}

/* Center card — active */
.carousel-slide.active {
  transform: translateX(-50%) scale(1.06) rotateY(0deg);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

/* Right card */
.carousel-slide.next {
  transform: translateX(calc(-50% + 130px)) scale(0.72) rotateY(-12deg);
  opacity: 0.45;
  z-index: 1;
}

.mockup-window {
  background: var(--surface-base);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(124, 58, 237, 0.15);
  overflow: hidden;
  height: 460px;
}

.product-window {
  display: block;
  height: 460px;
  overflow: hidden;
  background: var(--surface-base);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(124, 58, 237, 0.18);
}

.product-shot-wrap {
  position: relative;
  height: calc(100% - 43px);
  overflow: hidden;
  background: #FFFFFF;
}

.product-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

/* Carousel indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
  transition: all var(--duration-medium) var(--easing-emphasized);
}

.carousel-dot.active {
  background: var(--brand-400);
  width: 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.45);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line-default);
}

.toolbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.toolbar-dot.red { background: #EF4444; }
.toolbar-dot.yellow { background: #F59E0B; }
.toolbar-dot.green { background: var(--success-500); }

.toolbar-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-body {
  padding: 32px;
  min-height: 200px;
}

.mockup-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mockup-line {
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--line-default);
}

.mockup-line.purple {
  background: var(--brand-border);
}

.mockup-line.w40 { width: 40%; }
.mockup-line.w50 { width: 50%; }
.mockup-line.w60 { width: 60%; }
.mockup-line.w70 { width: 70%; }
.mockup-line.w85 { width: 85%; }
.mockup-line.w90 { width: 90%; }
.mockup-line.w100 { width: 100%; }

.mockup-spacer {
  width: 100%;
  height: 12px;
}

.mockup-block {
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--line-default);
}

/* ================================================
   Section Shared
   ================================================ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 12px;
  letter-spacing: 0;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ================================================
   Features — 3×2 Grid
   ================================================ */
.features { background: var(--surface-subtle); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--surface-base);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-2xl);
  padding: 32px 28px;
  overflow: hidden;
  transition: box-shadow var(--duration-medium) var(--easing-emphasized),
              transform var(--duration-medium) var(--easing-emphasized),
              border-color var(--duration-medium) var(--easing-emphasized);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  opacity: 0;
  transition: opacity var(--duration-medium) var(--easing-emphasized);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand-border);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--brand-tint);
  margin-bottom: 18px;
  color: var(--brand-700);
  font-size: 0.95rem;
  font-weight: 800;
  transition: background var(--duration-medium) var(--easing-emphasized);
}

.feature-card:hover .feature-icon-wrap {
  background: var(--brand-border);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.feature-card-wide .feature-icon-wrap {
  flex-shrink: 0;
  margin-bottom: 0;
}

.feature-card-wide .feature-card-body {
  flex: 1;
}

.feature-card-wide h3 {
  font-size: 1.15rem;
}

.feature-card-wide p {
  font-size: 0.925rem;
}

/* ================================================
   Product Showcase
   ================================================ */
.product-showcase {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface-base);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.showcase-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  align-items: stretch;
}

.showcase-card-reverse {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.showcase-card-reverse .showcase-copy {
  order: 2;
}

.showcase-card-reverse .showcase-media {
  order: 1;
}

.showcase-card-full {
  grid-column: 1 / -1;
}

.showcase-copy {
  padding: 28px;
}

.showcase-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  margin-bottom: 14px;
  color: var(--brand-700);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
}

.showcase-copy h3 {
  color: var(--text-strong);
  font-size: 1.25rem;
  line-height: 1.45;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.showcase-copy p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.showcase-points {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.showcase-points li {
  position: relative;
  padding-left: 16px;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.65;
}

.showcase-points li::before {
  content: '';
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
}

.showcase-media {
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid var(--line-default);
  background: #FFFFFF;
}

.showcase-card-featured .showcase-media {
  border-top: 0;
  border-left: 1px solid var(--line-default);
}

.showcase-card-reverse .showcase-media {
  border-left: 0;
  border-right: 1px solid var(--line-default);
}

.showcase-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 430px;
  object-fit: contain;
  object-position: center top;
}

.showcase-card-full .showcase-media img {
  max-height: 520px;
}

.showcase-card:not(.showcase-card-featured) .showcase-media img {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

/* ================================================
   Formats
   ================================================ */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-default);
  background: var(--surface-base);
  transition: all var(--duration-medium) var(--easing-emphasized);
}

.format-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.format-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 800;
}

.format-icon.pdf { background: #FEF2F2; }
.format-icon.docx { background: #EFF6FF; }
.format-icon.pptx { background: #FFFBEB; }
.format-icon.xlsx { background: #F0FDF4; }
.format-icon.epub { background: var(--brand-tint); }

.format-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.format-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.format-card.more {
  border-style: dashed;
  background: var(--surface-subtle);
}

/* ================================================
   How It Works
   ================================================ */
.how-it-works { background: var(--surface-subtle); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-border);
  margin-bottom: 20px;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
}

.step-visual {
  margin-top: 24px;
}

.step-connector {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  flex-shrink: 0;
}

.step-connector::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-border), var(--brand-400));
  border-radius: var(--radius-full);
}

.upload-demo, .download-demo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--surface-base);
  border: 1px solid var(--line-default);
  box-shadow: var(--shadow-md);
}

.ai-demo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  position: relative;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.ai-pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--brand-400);
  animation: ai-pulse-anim 2s ease-out infinite;
}

@keyframes ai-pulse-anim {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ================================================
   Use Cases
   ================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-default);
  background: var(--surface-base);
  transition: all var(--duration-medium) var(--easing-emphasized);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-border);
}

.case-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
  margin-bottom: 16px;
  color: var(--brand-700);
  font-weight: 800;
}

.case-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ================================================
   Pricing
   ================================================ */
.pricing { background: var(--surface-subtle); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--surface-base);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-2xl);
  padding: 36px 32px;
  transition: box-shadow var(--duration-medium) var(--easing-emphasized);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--brand-500);
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.12);
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-strong);
}

.period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  color: var(--text-body);
}

/* ================================================
   FAQ
   ================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line-default);
}

.faq-item:first-child {
  border-top: 1px solid var(--line-default);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  text-align: left;
  gap: 16px;
  transition: color var(--duration-fast) var(--easing-standard);
}

.faq-question:hover {
  color: var(--brand-600);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--duration-medium) var(--easing-emphasized);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-medium) var(--easing-emphasized),
              padding var(--duration-medium) var(--easing-emphasized);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ================================================
   CTA
   ================================================ */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A0A3E, #2D1B69, #1A0A3E);
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--brand-500);
  filter: blur(150px);
  opacity: 0.25;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.cta-list {
  max-width: 720px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cta-list li:last-child {
  grid-column: 1 / -1;
}

.cta-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  transition: background var(--duration-base) var(--easing-emphasized);
}

.cta-list li:hover {
  background: rgba(255,255,255,0.1);
}

.cta-list strong {
  color: #E9D5FF;
  font-size: 0.95rem;
  font-weight: 700;
}

.cta-list span {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ================================================
   Footer
   ================================================ */
.footer {
  padding: 60px 0 32px;
  background: var(--surface-subtle);
  border-top: 1px solid var(--line-default);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 12px;
  color: var(--text-strong);
}

.footer-brand .logo-img {
  width: 28px;
  height: 28px;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.15);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--duration-fast) var(--easing-standard);
}

.footer-col a:hover { color: var(--brand-600); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-default);
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--easing-standard);
}

.footer-bottom a:hover {
  color: var(--brand-600);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--easing-standard);
}

.footer-social a:hover { color: var(--brand-600); }

/* ================================================
   Contact Modal
   ================================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--easing-emphasized),
              visibility var(--duration-medium) var(--easing-emphasized);
}

.contact-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 760px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform var(--duration-medium) var(--easing-emphasized);
}

.contact-modal.open .contact-modal-dialog {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-default);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.92);
  color: var(--text-strong);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-fast) var(--easing-standard),
              transform var(--duration-fast) var(--easing-standard);
}

.contact-modal-close:hover {
  background: var(--brand-tint);
  transform: scale(1.04);
}

.contact-modal-image {
  display: block;
  width: 100%;
  max-height: min(86vh, 760px);
  object-fit: contain;
  background: #F3F6FB;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-card-featured,
  .showcase-card-reverse {
    grid-template-columns: 1fr;
  }
  .showcase-card-reverse .showcase-copy,
  .showcase-card-reverse .showcase-media {
    order: initial;
  }
  .showcase-card-featured .showcase-media,
  .showcase-card-reverse .showcase-media {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line-default);
  }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pricing-card.popular { transform: scale(1); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: flex; }

  /* Always transparent navbar for mobile hero */
  .navbar { background: transparent !important; backdrop-filter: none !important; border-bottom-color: transparent !important; box-shadow: none !important; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero h1 { font-size: 2.25rem; }
  .hero-desc { font-size: 1rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px; padding: 16px 24px; }
  .stat-divider { display: none; }

  .carousel { height: 354px; }
  .carousel-slide { width: 480px; }
  .carousel-slide.prev { transform: translateX(calc(-50% - 90px)) scale(0.7) rotateY(10deg); }
  .carousel-slide.next { transform: translateX(calc(-50% + 90px)) scale(0.7) rotateY(-10deg); }
  .mockup-window,
  .product-window { height: 320px; }

  .features-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-copy { padding: 24px; }
  .showcase-media img { max-height: 340px; }

  .formats-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { flex-direction: column; }
  .step-connector {
    width: auto;
    height: 40px;
    padding: 0;
  }
  .step-connector::after {
    width: 2px;
    height: 100%;
  }

  .cases-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .section { padding: 72px 0; }
  .section-header h2 { font-size: 1.75rem; }

  .cta h2 { font-size: 1.75rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-list { grid-template-columns: 1fr; }
  .cta-list li:last-child { grid-column: auto; }

  .feature-card-wide { flex-direction: column; gap: 0; }
  .feature-card-wide .feature-icon-wrap { margin-bottom: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }

  .carousel-slide.prev,
  .carousel-slide.next { opacity: 0; }
  .carousel-slide { width: 92vw; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .stat-num { font-size: 1.15rem; }
  .carousel { height: 284px; }
  .mockup-window,
  .product-window { height: 250px; }
  .product-shot-wrap { height: calc(100% - 39px); }
  .toolbar-title { font-size: 0.72rem; }
  .showcase-copy h3 { font-size: 1.1rem; }
  .showcase-media img { max-height: 260px; }
  .contact-modal { padding: 14px; }
  .contact-modal-close {
    width: 34px;
    height: 34px;
    top: 10px;
    right: 10px;
    font-size: 1.35rem;
  }
}

/* ================================================
   Scroll Animations
   ================================================ */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--easing-emphasized),
              transform var(--duration-slow) var(--easing-emphasized);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
