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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #2563eb; }

/* Carousel */
.carousel-section {
  position: relative;
  overflow: hidden;
}

.carousel {
  position: relative;
  height: 480px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide:nth-child(1) { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.carousel-slide:nth-child(2) { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.carousel-slide:nth-child(3) { background: linear-gradient(135deg, #059669 0%, #047857 100%); }

.slide-content {
  max-width: 680px;
  color: #fff;
}

.slide-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
}

.slide-content h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.slide-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover { border-color: #fff; }

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel-btn:hover { background: rgba(255,255,255,0.25); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: #fff; }

/* Section titles */
.section-title {
  text-align: center;
  padding: 80px 24px 48px;
  max-width: 700px;
  margin: 0 auto;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-title p {
  color: #64748b;
  font-size: 17px;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.card-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 16px;
}

.card-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.card-link:hover { text-decoration: underline; }

/* Featured section on homepage */
.featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-box {
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.feature-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 10px;
}

.feature-box p {
  color: #64748b;
  font-size: 15px;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Product grid for affiliate page */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.product-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.product-body {
  padding: 24px;
}

.product-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-body p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
}

.product-body .price {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 16px;
}

.btn-buy {
  display: inline-block;
  padding: 12px 28px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-buy:hover { background: #1d4ed8; }

/* Tool cards for AI tools */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.tool-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e2e8f0;
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tool-card textarea,
.tool-card input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  resize: vertical;
}

.tool-card textarea:focus,
.tool-card input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.tool-btn {
  padding: 10px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tool-btn:hover { background: #1d4ed8; }

.tool-output {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  min-height: 40px;
}

/* Gallery page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.gallery-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.gallery-info {
  padding: 24px;
}

.gallery-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery-info p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 12px;
}

.gallery-price {
  font-size: 22px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 12px;
}

/* Footer */
footer {
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
}

footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .carousel { height: 380px; }
  .slide-content h2 { font-size: 28px; }
  .slide-content p { font-size: 16px; }
  .featured { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 480px) {
  .carousel { height: 340px; }
  .slide-content h2 { font-size: 24px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 16px; }
}
