.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-blob-1 {
  top: 5rem;
  left: 25%;
  width: 18rem;
  height: 18rem;
  background-color: hsla(217, 91%, 60%, 0.05);
}

.hero-blob-2 {
  bottom: 5rem;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background-color: hsla(217, 91%, 60%, 0.1);
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.how-it-works-features,
.hero-features {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 2rem;
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 38rem;
}

.how-it-works-features span,
.hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-illustration {
  margin-top: 4rem;
}

.editor-mockup {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  background-color: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.editor-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--background));
  z-index: 10;
  pointer-events: none;
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: hsla(220, 14%, 96%, 0.5);
  border-bottom: 1px solid var(--border);
}

.editor-dots {
  display: flex;
  gap: 0.375rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.dot-red {
  background-color: hsla(0, 84%, 60%, 0.6);
}

.dot-yellow {
  background-color: hsla(45, 93%, 58%, 0.6);
}

.dot-green {
  background-color: hsla(142, 69%, 58%, 0.6);
}

.editor-url {
  flex: 1;
  display: flex;
  justify-content: center;
}

.url-bar {
  background-color: var(--background);
  border-radius: 0.375rem;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.editor-content {
  padding: 1.5rem;
}

.editor-layout {
  display: flex;
  gap: 0;
  height: 400px;
  background-color: var(--background);
  overflow: hidden;
}

.elements-sidebar-left {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  background-color: var(--card);
}

.elements-sidebar-right {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-left: 1px solid var(--border);
  background-color: var(--card);
  overflow-y: auto;
}

.editor-canvas-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsla(220, 14%, 96%, 0.5);
  padding: 2rem;
  position: relative;
}

.sidebar-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
  transition: all 0.2s ease;
}

.sidebar-item:hover {
  border-color: var(--primary);
  transform: translateX(2px);
}

.sidebar-item svg {
  color: var(--primary);
}

.editor-label-overlay {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-color: var(--background);
  padding: 0.5rem 1rem;
  border-top-left-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  z-index: 20;
}

.canvas-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.canvas-frame {
  width: 200px;
  aspect-ratio: 16 / 9;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.canvas-frame-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background-color: hsla(0, 0%, 100%, 0.9);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  backdrop-filter: blur(2px);
  z-index: 10;
}

.canvas-element-static {
  position: absolute;
  padding: 0.25rem 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

.flow-connection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.flow-line {
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  opacity: 0.3;
}

.flow-badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  background-color: hsla(217, 91%, 60%, 0.1);
  color: var(--primary);
  border-radius: 99px;
  font-weight: 600;
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  white-space: nowrap;
}

.prop-group {
  margin-bottom: 1.5rem;
}

.prop-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  display: block;
}

.prop-pill {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: hsla(217, 91%, 60%, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .editor-layout {
    flex-direction: column;
    height: auto;
  }
  
  .elements-sidebar-left,
  .elements-sidebar-right {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-item {
    min-width: 100px;
  }

  .editor-canvas-container {
    padding: 1rem;
    min-height: 250px;
  }
}

.canvas {
  aspect-ratio: 16 / 9;
  background-color: var(--background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.canvas-element {
  position: absolute;
}

.text-element {
  top: 25%;
  left: 25%;
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.circle-element {
  top: 33%;
  right: 25%;
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.8;
}

.square-element {
  bottom: 33%;
  left: 33%;
  width: 5rem;
  height: 5rem;
  background-color: var(--secondary);
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  transform: rotate(12deg);
}

.media-element {
  bottom: 25%;
  right: 33%;
  width: 6rem;
  height: 4rem;
  background-color: var(--muted);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.timeline {
  margin-top: 1.5rem;
  background-color: var(--secondary);
  border-radius: 0.5rem;
  padding: 1rem;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.timeline-divider {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.timeline-tracks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.track-label {
  width: 5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.track-bar {
  flex: 1;
  height: 1.5rem;
  border-radius: 0.25rem;
}

.track-bar-text {
  background-color: hsla(217, 91%, 60%, 0.2);
  border: 1px solid hsla(217, 91%, 60%, 0.3);
}

.track-bar-shape {
  background-color: hsla(217, 91%, 60%, 0.1);
  border: 1px solid hsla(217, 91%, 60%, 0.2);
  max-width: 70%;
  margin-left: 2rem;
}

.track-bar-media {
  background-color: var(--muted);
  border: 1px solid var(--border);
  max-width: 50%;
  margin-left: 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 10rem 0 8rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .hero-illustration {
    margin-top: 6rem;
  }

  .editor-content {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* ==========================================
   Section Styles
   ========================================== */
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* ==========================================
   Features Section
   ========================================== */
.features {
  padding: 5rem 0;
  background-color: hsla(220, 14%, 96%, 0.5);
}

.features-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  align-items: flex-start;
}

.feature-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  flex: 1 1 0;
  min-width: 250px;
  align-self: flex-start;
}

.feature-card:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: hsla(217, 91%, 60%, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: hsla(217, 91%, 60%, 0.2);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.feature-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--foreground);
  line-height: 1.75;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .features {
    padding: 8rem 0;
  }

  .features-grid {
    gap: 2rem;
  }
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
  padding: 5rem 0;
  background-color: hsla(220, 14%, 96%, 0.5);
}

.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

.step-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-card:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.step-number {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  background-color: hsla(217, 91%, 60%, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.step-card:hover .step-icon {
  background-color: hsla(217, 91%, 60%, 0.2);
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.step-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.how-it-works .feature-card {
  max-width: 64rem;
  width: 100%;
  margin: 2.5rem auto 0;
}

@media (min-width: 768px) {
  .how-it-works {
    padding: 8rem 0;
  }

  .steps-grid {
    flex-direction: row;
    gap: 2rem;
  }

  .step-card {
    flex: 1;
  }
}

/* ==========================================
   Use Cases Section
   ========================================== */
.use-cases {
  padding: 5rem 0;
}

.use-cases-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  align-items: flex-start;
}

.use-case-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  flex: 1 1 0;
  min-width: 250px;
  align-self: flex-start;
}

.use-case-card:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.use-case-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: hsla(217, 91%, 60%, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: background-color 0.3s ease;
}

.use-case-card:hover .use-case-icon {
  background-color: hsla(217, 91%, 60%, 0.2);
}

.use-case-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.use-case-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .use-cases {
    padding: 8rem 0;
  }

  .use-cases-grid {
    gap: 2rem;
  }
}

/* ==========================================
   What You Can Create Section
   ========================================== */
.what-you-can-create {
  padding: 5rem 0;
}

.create-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  align-items: flex-start;
}

.create-card {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  flex: 1 1 0;
  min-width: 200px;
  align-self: flex-start;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.create-card:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.create-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: hsla(217, 91%, 60%, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.create-card:hover .create-icon {
  background-color: hsla(217, 91%, 60%, 0.2);
}

.create-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

@media (min-width: 768px) {
  .what-you-can-create {
    padding: 8rem 0;
  }

  .create-grid {
    gap: 2rem;
  }

  .create-card {
    min-width: 250px;
  }
}

/* ==========================================
   Built for Creators Section
   ========================================== */
.built-for-creators {
  padding: 5rem 0;
  background-color: hsla(220, 14%, 96%, 0.5);
}

.creators-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  align-items: flex-start;
}

.creator-quote {
  background-color: var(--card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex: 1 1 0;
  min-width: 250px;
  align-self: flex-start;
  text-align: center;
}

.creator-quote:hover {
  border-color: hsla(217, 91%, 60%, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.quote-icon {
  width: 3rem;
  height: 3rem;
  background-color: hsla(217, 91%, 60%, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.quote-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.creator-quote:hover .quote-icon {
  background-color: hsla(217, 91%, 60%, 0.2);
}

.quote-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .built-for-creators {
    padding: 8rem 0;
  }

  .creators-grid {
    gap: 2rem;
  }

  .quote-text {
    font-size: 1.25rem;
  }

  .creator-quote {
    min-width: 300px;
  }
}