/* ========================================
   Affiliate Marketing Masterclass
   Style Sheet
   ======================================== */

/* ----- Custom Properties ----- */
:root {
  --clr-ash: #f3f4f6;
  --clr-white: #ffffff;
  --clr-primary: #2563eb;
  --clr-primary-hover: #1d4ed8;
  --clr-primary-light: #dbeafe;
  --clr-dark: #111827;
  --clr-gray-600: #4b5563;
  --clr-gray-400: #9ca3af;
  --clr-gray-200: #e5e7eb;
  --clr-gray-100: #f3f4f6;
  --clr-success: #10b981;
  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1140px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff);
  color: var(--clr-gray-600);
  line-height: 1.7;
  background: var(--clr-white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Section Shared ----- */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  padding: 4px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-label.light {
  background: rgba(255,255,255,.15);
  color: var(--clr-white);
}

.section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

.section > .container > p {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 48px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.btn-primary:hover {
  background: var(--clr-primary-hover);
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.125rem;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--clr-gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--clr-dark);
  letter-spacing: -.02em;
}

.logo span {
  color: var(--clr-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: .925rem;
  font-weight: 500;
  color: var(--clr-gray-600);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--clr-dark);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../Images/Hero (1).jpg') center / cover no-repeat;
  filter: brightness(.3);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-block;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--clr-white);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.15);
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  background: var(--clr-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-video video {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--clr-dark);
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-highlights {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--clr-dark);
}

.about-highlights li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--clr-primary);
  border-radius: 50%;
}

/* ========================================
   REGISTRATION
   ======================================== */
.register {
  background: var(--clr-ash);
}

.register-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.register-inner h2 {
  color: var(--clr-dark);
}

.register-inner > p {
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.register-form {
  text-align: left;
  background: var(--clr-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ff);
  font-size: 1rem;
  color: var(--clr-dark);
  background: var(--clr-white);
  border: 2px solid var(--clr-gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder {
  color: var(--clr-gray-400);
}

.form-group input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-group input.error {
  border-color: #ef4444;
}

.form-group input.error:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.form-error {
  display: none;
  font-size: .8125rem;
  color: #ef4444;
  margin-top: 4px;
}

.form-error.visible {
  display: block;
}

.form-submit {
  position: relative;
}

.form-footnote {
  font-size: .8125rem;
  color: var(--clr-gray-400);
  text-align: center;
  margin-top: 16px;
}

/* Button loader */
.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   BENEFITS
   ======================================== */
.benefits {
  background: var(--clr-white);
}

.benefits h2,
.testimonials h2 {
  text-align: center;
}

.benefits .section-label,
.testimonials .section-label {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.benefits > .container > p,
.testimonials > .container > p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.benefit-card {
  background: var(--clr-white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-gray-200);
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: .95rem;
  color: var(--clr-gray-600);
  line-height: 1.7;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  background: var(--clr-ash);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background: var(--clr-dark);
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #0f172a;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--clr-white);
  padding: 48px 40px 40px;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(.92) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-check {
  margin-bottom: 16px;
}

.modal h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 8px;
}

.modal p {
  font-size: .95rem;
  color: var(--clr-gray-600);
  line-height: 1.6;
}

.modal-redirect {
  margin-top: 20px;
  font-size: .875rem !important;
  color: var(--clr-gray-400) !important;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    background: var(--clr-white);
    box-shadow: -4px 0 24px rgba(0,0,0,.08);
    transition: right .35s ease;
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    display: block;
    padding: 16px 40px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--clr-gray-100);
  }

  .hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-video {
    order: -1;
  }

  .register-form {
    padding: 24px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: .75rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .modal {
    padding: 32px 24px;
  }
}
