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

:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --accent: #00B894;
  --text: #1a1a2e;
  --text-secondary: #636E72;
  --text-light: #b2bec3;
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --border: #e9ecef;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn.small { padding: 6px 12px; font-size: 0.75rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}
.logo-icon svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

/* Dropdown */
.nav-links li { position: relative; }
.nav-links li .dropdown {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  padding: 8px 0;
  z-index: 100;
  flex-direction: column;
  margin-top: 8px;
}
/* Invisible bridge to keep hover state across the gap */
.nav-links li .dropdown::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-links li .dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.nav-links li:hover .dropdown {
  display: flex !important;
}
.dropdown a {
  padding: 10px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--text-secondary);
}
.dropdown a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.nav-actions { display: flex; gap: 12px; align-items: center; }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* ===== 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: -1;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f8f9fc 0%, #e8e5ff 50%, #d4f5ed 100%);
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ===== Hero Visual ===== */
.hero-visual { position: relative; }
.browser-mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28c940; }
.browser-url {
  flex: 1;
  margin-left: 12px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.browser-body { display: flex; min-height: 320px; }
.mock-sidebar {
  width: 140px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-sidebar-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  padding: 4px 8px;
  margin-bottom: 4px;
}
.mock-comp {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: default;
}
.mock-comp.active {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  font-weight: 600;
}
.mock-canvas { flex: 1; padding: 16px; }
.mock-canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mock-title {
  font-size: 0.9rem;
  font-weight: 700;
}
.mock-actions { display: flex; gap: 8px; }
.mock-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-secondary);
}
.mock-btn.primary {
  background: var(--primary);
  color: #fff;
}
.mock-canvas-body { display: flex; flex-direction: column; gap: 12px; }
.mock-widget {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px;
}
.mock-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.mock-bar-row { display: flex; gap: 8px; }
.mock-bar {
  height: 8px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  width: 80%;
  opacity: 0.3;
}
.mock-chart-placeholder {
  height: 60px;
  display: flex;
  align-items: center;
}
.mock-chart-placeholder svg { width: 100%; height: 100%; }
.mock-row { display: flex; gap: 12px; }
.mock-card {
  flex: 1;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px;
}
.mock-card-label {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.mock-card-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.mock-card-change {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 2px;
}
.mock-card-change.up { color: var(--accent); }

.ai-badge-float {
  position: absolute;
  bottom: -16px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Logos ===== */
.logos-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.logos-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 500;
}
.logos-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.logo-item {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border-radius: 8px;
  transition: var(--transition);
}
.logo-item:hover { color: var(--text); }

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ===== Features ===== */
.features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card.visible:hover {
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Workflow ===== */
.workflow {
  padding: 80px 0;
  background: var(--bg-alt);
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  opacity: 0;
  transform: translateY(20px);
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}
.step:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}
.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-visual {
  display: flex;
  justify-content: center;
}
.chat-bubble {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 260px;
}
.chat-avatar {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}
.chat-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}
.ai-process {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-process-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}
.deploy-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow);
}

/* ===== Scenarios ===== */
.scenarios { padding: 80px 0; }
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.scenario-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.scenario-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.scenario-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.scenario-card.visible:hover {
  transform: translateY(-4px);
}
.scenario-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.scenario-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.scenario-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}
.scenario-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  padding: 3px 10px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===== Pricing ===== */
.pricing {
  padding: 80px 0;
  background: var(--bg-alt);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
}
.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(108, 92, 231, 0.15);
}
.pricing-card.visible.popular {
  transform: translateY(-4px);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.pricing-price {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}
.price-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.pricing-features li.disabled {
  color: var(--text-light);
}
.pricing-features li svg { flex-shrink: 0; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; }
.cta-card {
  text-align: center;
  padding: 64px;
  background: linear-gradient(135deg, var(--primary), #5A4BD1);
  border-radius: var(--radius-lg);
  color: #fff;
}
.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-card p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 32px;
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo .logo-text { color: #fff; }
.footer-desc {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-social a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .hero h1 { font-size: 2.8rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 16px; }
  .stat-value { font-size: 1.2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .step {
    grid-template-columns: 48px 1fr;
  }
  .step-visual {
    grid-column: 2;
    justify-content: flex-start;
  }
  .scenarios-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .cta-card { padding: 40px 24px; }
  .cta-card h2 { font-size: 1.5rem; }
  .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
