/* ========================================
   DIGITORIUM — Design System
   Wine + Blue + White
   ======================================== */

:root {
  /* Brand Colors */
  --wine:       #3D0C11;
  --wine-mid:   #5A1A20;
  --wine-light: #722F37;
  --blue:       #4A90D9;
  --blue-light: #6B9FFF;
  --blue-pale:  #EEF4FF;
  --white:      #FFFFFF;
  --off-white:  #F8F9FC;
  
  /* Neutrals */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Semantic */
  --green:  #10B981;
  --orange: #F59E0B;
  --red:    #EF4444;
  
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.06);
  
  /* Radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-light); }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ---- SECTION ---- */
.section {
  padding: var(--section-pad) 0;
}
.section--alt {
  background: var(--off-white);
}
.section--cta {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 50%, var(--blue) 100%);
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
  background: var(--blue-pale);
  padding: .35rem 1rem;
  border-radius: 999px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar__logo .logo-icon {
  color: var(--blue);
  font-size: 1.4rem;
}
.navbar__links {
  display: flex;
  gap: 2rem;
}
.navbar__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .2s;
}
.navbar__links a:hover { color: var(--blue); }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .navbar__links.open { display: flex; }
  .navbar__toggle { display: block; }
  .navbar__actions .btn--nav { display: none; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover {
  background: #3a7fd4;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,144,217,.3);
}
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn--outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--wine);
}
.btn--white:hover {
  background: var(--off-white);
  color: var(--wine);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.btn--nav {
  background: transparent;
  color: var(--gray-600);
  padding: .5rem 1rem;
  font-size: .85rem;
}
.btn--nav:hover { color: var(--blue); }
.btn--lg {
  padding: .85rem 2rem;
  font-size: 1rem;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-light) 40%, var(--blue) 100%);
  padding-top: 64px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .3;
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: var(--blue);
  top: -10%; left: -10%;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: var(--wine-light);
  bottom: -10%; right: -5%;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: var(--blue-light);
  top: 40%; right: 20%;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}
.hero__label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(107,159,255,.15);
  padding: .4rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero__title .highlight {
  background: linear-gradient(135deg, var(--blue-light), #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.hero__stat {
  text-align: center;
}
.hero__stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.hero__stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---- PILLARS ---- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .grid-4 { grid-template-columns: 1fr; } }

.pillar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .3s;
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pillar-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pillar-card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--gray-900); }
.pillar-card p { font-size: .9rem; color: var(--gray-500); margin-bottom: 1rem; }
.pillar-card__features { list-style: none; }
.pillar-card__features li {
  font-size: .85rem;
  color: var(--gray-600);
  padding: .3rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.pillar-card__features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}

/* ---- ACADEMY GRID ---- */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) { .academy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .academy-grid { grid-template-columns: 1fr; } }

.academy-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all .3s;
}
.academy-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.academy-card__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.academy-card__level {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.level--beginner { background: #ECFDF3; color: var(--green); }
.level--intermediate { background: #FEF3F2; color: var(--orange); }
.level--advanced { background: #EEF4FF; color: var(--blue); }
.academy-card h3 { font-size: 1.05rem; margin-bottom: .5rem; color: var(--gray-900); }
.academy-card p { font-size: .85rem; color: var(--gray-500); margin-bottom: 1rem; }
.academy-card__meta {
  font-size: .8rem;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-100);
  padding-top: .75rem;
}
.price-tag {
  font-weight: 600;
  color: var(--blue);
}
.price-tag.free { color: var(--green); }
.price-tag.premium { color: var(--wine-light); }

/* ---- JOURNEY ---- */
.journey-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.journey-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.journey-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}
.journey-step:last-child { margin-bottom: 0; }
.journey-step__num {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--off-white);
}
.journey-step__content h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  color: var(--gray-900);
}
.journey-step__content p {
  font-size: .95rem;
  color: var(--gray-500);
}

/* ---- MENTORSHIP ---- */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .mentor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mentor-grid { grid-template-columns: 1fr; } }

.mentor-card { text-align: center; padding: 1rem; }
.mentor-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.mentor-card h4 { font-size: .95rem; margin-bottom: .25rem; color: var(--gray-900); }
.mentor-card p { font-size: .85rem; color: var(--gray-500); }

/* ---- CERTIFICATIONS ---- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .cert-grid { grid-template-columns: 1fr; } }

.cert-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all .3s;
  text-align: center;
}
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cert-card--featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  position: relative;
}
.cert-card--featured::after {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cert-card__badge {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cert-card h3 { font-size: 1.1rem; margin-bottom: .75rem; color: var(--gray-900); }
.cert-card p { font-size: .85rem; color: var(--gray-500); margin-bottom: 1rem; }
.cert-card__reqs {
  text-align: left;
  margin-bottom: 1rem;
}
.cert-card__reqs li {
  font-size: .8rem;
  color: var(--gray-600);
  padding: .25rem 0 .25rem 1.25rem;
  position: relative;
}
.cert-card__reqs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.cert-card__duration {
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-pale);
  padding: .3rem .75rem;
  border-radius: 999px;
}

/* ---- TESTIMONIALS ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-card__stars {
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.testimonial-card p {
  font-size: .95rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.testimonial-card__author strong {
  display: block;
  font-size: .9rem;
  color: var(--gray-900);
}
.testimonial-card__author span {
  font-size: .8rem;
  color: var(--gray-400);
}

/* ---- LOGOS ---- */
.logos-wrapper {
  overflow: hidden;
  padding: .5rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logos-row {
  display: flex;
  animation: scroll-logos 20s linear infinite;
  white-space: nowrap;
}
.logos-row span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-400);
  white-space: nowrap;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- CTA ---- */
.cta-section {
  text-align: center;
  padding: var(--section-pad) 0;
}
.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--gray-900);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer__logo .logo-icon { color: var(--blue); }
.footer h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer__links li { margin-bottom: .5rem; }
.footer__links a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer__links a:hover { color: var(--blue-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom span {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer__compliance {
  display: flex;
  gap: .5rem;
}
.footer__compliance span {
  font-size: .7rem;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  padding: .25rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---- ANIMATIONS ---- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section { animation: fade-in-up .6s ease both; }

/* ---- UTILITIES ---- */
.highlight { color: var(--blue-light); }