*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* GRID & LAYOUT */
.container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #2d3748 0%, #1a202c 55%, #0f1419 100%);
}

.section-dark {
  background: #0f1419;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 20, 25, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo img {
  height: 40px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #22c55e;
  border-color: #22c55e;
}

.btn-header {
  font-size: 0.95rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
  text-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
  color: #ffffff;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-ghost {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 2px solid #22c55e;
  color: #22c55e;
}

.btn-ghost:hover {
  background: #22c55e;
  color: #ffffff;
  transform: translateY(-1px);
}

/* HERO */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.2) 0%, transparent 50%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0f1419 0%, #1a1a2e 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero p {
  color: #e2e8f0;
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-highlights li::before {
  content: '🐔';
  margin-right: 0.5rem;
}

/* CAROUSEL */
.carousel {
  background: rgba(26, 32, 44, 0.95);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.carousel-title {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #f1f5f9;
  font-weight: 700;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 1rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.carousel-control.prev {
  left: -0.5rem;
}

.carousel-control.next {
  right: -0.5rem;
}

.carousel-control:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.5);
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
  font-weight: 700;
}

.section-header p {
  color: #cbd5e1;
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(26, 32, 44, 0.9);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: #22c55e;
  box-shadow: 0 25px 50px rgba(34, 197, 94, 0.2);
  background: rgba(26, 32, 44, 0.95);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #f1f5f9;
}

/* SOCIAL & VIDEO */
.social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.card {
  background: rgba(26, 32, 44, 0.95);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card h2 {
  color: #f1f5f9;
  margin-bottom: 1rem;
}

.card-image {
  border-radius: 1rem;
  margin: 1rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

/* GUIDES GRID */
.article-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.article-preview {
  background: rgba(26, 32, 44, 0.95);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.article-preview:hover {
  transform: translateY(-10px);
  border-color: #22c55e;
  box-shadow: 0 25px 50px rgba(34, 197, 94, 0.25);
}

.article-preview img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.article-preview h3 {
  margin: 1.2rem 1.2rem 0.6rem;
  font-size: 1.1rem;
  color: #f1f5f9;
}

.article-preview p {
  padding: 0 1.2rem 1.2rem;
  margin: 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f1419;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #22c55e;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner,
  .social-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-media {
    order: -1;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .features-grid,
  .article-previews-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}
