/* ========================================
   Autimiz - Pure CSS
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #030712;
  color: #e5e7eb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Utilities --- */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #6366f1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* --- Fade in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(3, 7, 18, 0.8);
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-desktop a {
  color: #9ca3af;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: #818cf8;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.social-icons a {
  color: #9ca3af;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-icons a[aria-label="YouTube"]:hover { color: #ef4444; }
.social-icons a[aria-label="X"]:hover { color: #fff; }
.social-icons a[aria-label="Telegram"]:hover { color: #3b82f6; }

.social-icons-header {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: #e5e7eb;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(55, 65, 81, 0.5);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu > a {
  color: #9ca3af;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu > a:hover {
  color: #818cf8;
}

.mobile-menu .social-icons {
  padding-top: 0.5rem;
  gap: 1rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(99,102,241,0.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(167,139,250,0.12) 0%, transparent 50%),
    linear-gradient(135deg, #030712, #0f172a, #1e1b4b);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 56rem;
}

.hero-logo {
  height: 6rem;
  margin: 0 auto 2rem;
  object-fit: contain;
}

.hero-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #818cf8;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.125rem;
  color: #9ca3af;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #6b7280;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-secondary {
  background: #1f2937;
  color: #e5e7eb;
}

.btn-secondary:hover {
  background: #374151;
}

.btn-youtube {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
}

.btn-youtube:hover {
  background: #b91c1c;
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: rgba(17, 24, 39, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #818cf8;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f3f4f6;
}

.section-description {
  color: #9ca3af;
  margin-top: 0.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Tool Cards --- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.tool-card {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(55, 65, 81, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.tool-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.tool-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tool-card:hover .tool-card-img img {
  transform: scale(1.05);
}

.tool-card-body {
  padding: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.tool-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f3f4f6;
  transition: color 0.2s;
}

.tool-card:hover .tool-card-body h3 {
  color: #818cf8;
}

.tool-card-body p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* --- Videos --- */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.video-frame {
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  background: #1f2937;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(55, 65, 81, 0.5);
  background: rgba(17, 24, 39, 0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem 0;
  text-align: center;
}

.footer-brand .logo {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-bottom {
  margin-top: 2rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .social-icons-header {
    display: flex;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

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

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