* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0052cc;
  --primary-dark: #003d99;
  --secondary: #00b8d9;
  --accent: #36b37e;
  --dark: #172b4d;
  --gray: #5e6c84;
  --light: #f4f5f7;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

/* Animated Background */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-shapes span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite;
}

.bg-shapes span:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.bg-shapes span:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  top: 50%;
  right: -50px;
  animation-delay: -5s;
}

.bg-shapes span:nth-child(3) {
  width: 150px;
  height: 150px;
  background: var(--accent);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

.bg-shapes span:nth-child(4) {
  width: 250px;
  height: 250px;
  background: var(--primary);
  bottom: -80px;
  right: 20%;
  animation-delay: -15s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(5deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(30px) rotate(-5deg);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 82, 204, 0.15);
  animation: slideDown 0.8s ease-out;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: slideUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: slideUp 0.8s ease-out 0.6s backwards;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

.btn-secondary {
  background: var(--dark);
  color: white;
  box-shadow: 0 4px 15px rgba(23, 43, 77, 0.3);
}

.btn-secondary:hover {
  background: #2d3a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 43, 77, 0.4);
}

/* Features Section */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.feature-icon.blue {
  background: rgba(0, 82, 204, 0.1);
  color: var(--primary);
}

.feature-icon.cyan {
  background: rgba(0, 184, 217, 0.1);
  color: var(--secondary);
}

.feature-icon.green {
  background: rgba(54, 179, 126, 0.1);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  text-align: center;
}

.step {
  padding: 30px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 82, 204, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(0, 82, 204, 0.2);
  }
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  color: var(--gray);
  line-height: 1.6;
}

/* Getting Started Guide Section */
.getting-started {
  padding: 100px 0;
}

.guide-step {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.guide-step-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.guide-step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-step-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
}

.guide-step-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.guide-step-text {
  flex: 1;
}

.guide-step-text p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 1rem;
}

.guide-step-tips {
  list-style: none;
  padding: 0;
}

.guide-step-tips li {
  position: relative;
  padding-left: 24px;
  color: var(--gray);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.guide-step-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.guide-command {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  padding: 12px 16px;
  border-radius: 8px;
  width: fit-content;
}

.guide-command code {
  color: white;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.95rem;
  font-weight: 500;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.icon-check {
  display: none;
  color: var(--accent);
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: block;
}

.copy-btn svg {
  pointer-events: none;
}

.guide-step-images {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

.guide-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: visible;
}

.guide-image-wrapper img {
  max-width: 280px;
  border-radius: 12px;
  border: 3px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)) border-box;
  box-shadow: 0 8px 30px rgba(0, 82, 204, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-image-wrapper img:hover {
  transform: scale(1.3);
  box-shadow: 0 12px 40px rgba(0, 82, 204, 0.35);
  z-index: 10;
  position: relative;
}

.guide-image-wrapper.guide-image-single img {
  max-width: 400px;
}

.guide-image-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

@media (max-width: 992px) {
  .guide-image-wrapper img:hover {
    transform: scale(1.2);
  }
}

/* All Commands Section */
.all-commands {
  padding: 100px 0;
  background: var(--light);
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.command-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.command-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.command-card.loading {
  text-align: center;
  color: var(--gray);
  padding: 40px;
}

.command-card-header {
  background: var(--dark);
  padding: 10px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.command-card-code {
  color: white;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
}

.command-card .copy-btn {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 4px;
}

.command-card .copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.command-card-description {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
  margin-top: 12px;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta-content {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 40px;
  border-radius: 24px;
  color: white;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.cta-content .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.cta-content .btn-primary:hover {
  background: var(--light);
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .features,
  .how-it-works,
  .getting-started,
  .cta {
    padding: 60px 0;
  }

  .guide-step {
    padding: 24px;
  }

  .guide-step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .guide-step-content {
    flex-direction: column;
    gap: 24px;
  }

  .guide-step-images {
    flex-direction: column;
    width: 100%;
    justify-content: flex-start;
  }

  .guide-image-wrapper img,
  .guide-image-wrapper.guide-image-single img {
    max-width: 100%;
    width: 100%;
  }

  .all-commands,
  .cta-content {
    padding: 50px 30px;
  }
}
