/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0b;
  --bg-card: #131315;
  --bg-card-hover: #1a1a1d;
  --bg-alt: #0e0e10;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.logo-icon-sm {
  width: 30px;
  height: 30px;
  font-size: 15px;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), #5b21b6);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 14px;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  position: relative;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* V2 grid (Seedance 2.0 section) */
.v2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.v2-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
}

.v2-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.v2-card-main {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(109, 40, 217, 0.06));
  border-color: rgba(139, 92, 246, 0.15);
}

.v2-card-main:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.v2-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v2-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.v2-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.v2-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all 0.2s;
}

.about-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.about-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Steps */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.step-number {
  font-size: 56px;
  font-weight: 800;
  color: rgba(139, 92, 246, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 28px;
  color: var(--text-dim);
}

.steps-cta {
  text-align: center;
  margin-top: 48px;
}

/* Styles grid */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.style-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
}

.style-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--bg-card-hover);
}

.style-preview {
  font-size: 36px;
  margin-bottom: 14px;
}

.style-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.style-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--border-hover);
}

.faq-question {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 60px 0 80px;
}

.cta-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(109, 40, 217, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  position: relative;
}

.cta-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
  position: relative;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.6;
  margin-top: 6px;
  max-width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 110px 0 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 22px;
  }

  .section {
    padding: 56px 0;
  }

  .about-grid,
  .features-grid,
  .styles-grid,
  .v2-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .v2-card-main {
    grid-column: 1;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-disclaimer {
    max-width: none;
  }

  .cta-card {
    padding: 40px 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-grid,
  .features-grid,
  .styles-grid,
  .v2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
