/*
Theme Name: Course Landing Pro
Theme URI: https://usmandigitalstore.com
Author: Metazun
Author URI: https://metazun.com
Description: A sleek, modern dark course landing page theme for WordPress. Built for WordPress & Elementor course promotion.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: course-landing-pro
Tags: dark, one-page, education, landing-page
*/

/* ============================================================
   CSS VARIABLES (Design System)
   ============================================================ */
:root {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #111111;
  --card-foreground: #fafafa;
  --primary: hsl(160, 84%, 39%);
  --primary-rgb: 16, 185, 129;
  --primary-foreground: #ffffff;
  --border: rgba(255,255,255,0.12);
  --muted: #1e1e1e;
  --muted-foreground: #a3a3a3;
  --accent: hsl(160, 84%, 39%);
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --radius: 1rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; height: auto; }
ul { list-style: none; }

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   GRADIENT GLOW
   ============================================================ */
.gradient-glow {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}
.btn-primary:hover {
  background: hsl(160, 84%, 33%);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--muted);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}
.navbar-logo span { color: var(--primary); }

.navbar-nav {
  display: none;
  gap: 2rem;
}
@media (min-width: 768px) {
  .navbar-nav { display: flex; }
}

.navbar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.navbar-nav a:hover { color: var(--foreground); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-section { padding: 14rem 0 9rem; }
}

.hero-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner { max-width: 56rem; margin: 0 auto; position: relative; z-index: 10; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
}
.hero-title .text-primary { color: var(--primary); }

.hero-video-wrap {
  margin-bottom: 2.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  background: var(--card);
}

.video-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: rgba(255,255,255,0.05);
}

.video-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted-foreground);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}
.hero-desc strong {
  color: var(--foreground);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}
@media (min-width: 576px) {
  .hero-buttons { flex-direction: row; }
}

.hero-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.avatar-stack {
  display: flex;
}
.avatar-stack img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--background);
  margin-left: -12px;
  object-fit: cover;
}
.avatar-stack img:first-child { margin-left: 0; }

.hero-avatars p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits-section {
  padding: 6rem 0;
  background: rgba(17,17,17,0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-desc {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto 4rem;
}

.section-header { text-align: center; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.benefit-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.benefit-card:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.benefit-card:hover .benefit-icon { transform: scale(1.1); }
.benefit-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.benefit-card p { color: var(--muted-foreground); line-height: 1.6; }

.benefits-cta-box {
  margin-top: 5rem;
  max-width: 56rem;
  margin-left: auto; margin-right: auto;
  text-align: center;
  background: var(--card);
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.benefits-cta-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 256px; height: 256px;
  background: rgba(var(--primary-rgb), 0.1);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}
.benefits-cta-box h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; position: relative; z-index: 1; }
.benefits-cta-box p { font-size: 1.1rem; color: var(--muted-foreground); max-width: 36rem; margin: 0 auto; position: relative; z-index: 1; }

/* ============================================================
   MODULES / CURRICULUM
   ============================================================ */
.modules-section {
  padding: 6rem 0;
}

.modules-inner { max-width: 56rem; margin: 0 auto; }

.modules-list { display: flex; flex-direction: column; gap: 1.5rem; }

.module-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}
.module-card:hover { border-color: rgba(var(--primary-rgb), 0.3); }

.module-card-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .module-card-inner { flex-direction: row; gap: 3rem; }
}

.module-meta { flex-shrink: 0; }
@media (min-width: 768px) { .module-meta { width: 33.333%; } }

.module-part-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 0.4rem;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.module-meta h3 { font-size: 1.4rem; font-weight: 700; }

.module-lessons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.module-lesson {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.module-lesson svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-lesson span { color: rgba(250,250,250,0.9); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 6rem 0;
  background: rgba(17,17,17,0.3);
  border-top: 1px solid var(--border);
}

.faq-inner { max-width: 48rem; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.2s ease;
  gap: 1rem;
  font-family: var(--font-sans);
}
.faq-trigger:hover { color: var(--primary); }

.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-icon::before { width: 12px; height: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 12px; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s ease, opacity 0.3s ease; }

.faq-item.open .faq-trigger { color: var(--primary); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
}
.faq-item.open .faq-content { max-height: 300px; }

.faq-content p {
  color: var(--muted-foreground);
  line-height: 1.8;
  padding-bottom: 1.5rem;
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: rgba(17,17,17,0.5);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--primary); }

.footer-copy {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
