/* ============================================================
   PDE Performance — Layout (glass-effect2 system)
   ============================================================ */

/* ── Section spacing ── */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;          /* anchor content to bottom — nothing clips top */
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(70%) contrast(1.1);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #000 0%,
    rgba(0,0,0,0.80) 25%,
    rgba(0,0,0,0.20) 60%,
    #000 100%                      /* also fades to black at top */
  );
  z-index: 1;
}

/* No colored glow — removed hero-overlay-2 */
.hero-overlay-2 { display: none; }

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  max-width: 960px;
  padding: 0 clamp(20px, 5vw, 48px) clamp(80px, 12vh, 140px);
}

/* ── Stats row (below hero) ── */
.stats-section {
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-b);
  position: relative;
  z-index: 1;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 100%;
}

.stat-item {
  padding: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 20px;
  border-right: 1px solid var(--border-b);
  transition: background 0.4s var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.02); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  transition: background 0.3s, transform 0.3s var(--spring);
}
.stat-item:hover .stat-icon {
  background: rgba(255,255,255,0.07);
  transform: scale(1.1);
}

.stat-text { flex: 1; }
.stat-num {
  font-family: var(--ff-h);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--t1);
  letter-spacing: -0.03em;
}
.stat-num i { font-style: normal; color: var(--t1); }
.stat-label {
  font-size: var(--text-xs);
  font-family: var(--ff-h);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--t3);
  margin-top: 4px;
}

/* ── Marquee strip ── */
.marquee-strip {
  border-top: 1px solid var(--border-b);
  border-bottom: 1px solid var(--border-b);
  padding: 18px 0;
  background: rgba(255,255,255,0.01);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee-item {
  font-family: var(--ff-h);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--t2);
  white-space: nowrap;
}
.marquee-sep {
  margin: 0 28px;
  color: var(--red);
  font-weight: 700;
}

/* ── Courses intro (header only) ── */
.courses-intro {
  padding: clamp(80px, 10vw, 128px) 0 48px;
  background: var(--bg);
  position: relative;
}

/* ── Course Folds (fullscreen) ── */
.course-fold {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* no border — organic bleed via gradients */
  margin-top: clamp(60px, 8vw, 120px);
}

/* Top black fade — blends fold into black background above */
.course-fold::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* Bottom black fade — blends into black below */
.course-fold::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(to top, #000 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.course-fold-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(55%) contrast(1.1) brightness(0.85);
  transition: filter 1s var(--ease);
  will-change: transform;
  top: -5%;
}
.course-fold:hover .course-fold-img {
  filter: grayscale(0%) contrast(1.05) brightness(0.9);
}

/* Left gradient overlay (default) */
.course-fold-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.70) 35%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}
/* Right gradient overlay (alternate folds) */
.course-fold-r .course-fold-overlay {
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.70) 35%,
    rgba(0,0,0,0.15) 100%
  );
}

.course-fold-content {
  position: relative;
  z-index: 4;                      /* above both overlay and black fades */
  width: 100%;
  padding: 0 clamp(24px, 7vw, 96px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.course-fold-r .course-fold-content {
  justify-content: flex-end;
}

.course-fold-card {
  position: relative;
  overflow: hidden;
  max-width: 520px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border-t);
  border-left: 1px solid var(--border-s);
  border-right: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-b);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.course-fold:hover .course-fold-card {
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  transform: translateY(-4px);
}
/* Shimmer sweep on card hover */
.course-fold-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: 0.6s;
  pointer-events: none;
  border-radius: 24px;
  z-index: 20;
}
.course-fold:hover .course-fold-card::before {
  left: 100%;
  transition: 0.8s ease-in-out;
}

.course-fold-title {
  font-family: var(--ff-h);
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--t1);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.course-fold-desc {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.7;
}

/* Large ghost number behind card */
.course-fold-num {
  position: absolute;
  right: clamp(24px, 7vw, 96px);
  font-family: var(--ff-h);
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.05em;
  transition: color 0.5s var(--ease);
}
.course-fold-r .course-fold-num {
  right: auto;
  left: clamp(24px, 7vw, 96px);
}
.course-fold:hover .course-fold-num {
  color: rgba(200,42,42,0.06);
}

@media (max-width: 768px) {
  /* Fixed full-screen height so 70/30 split is predictable */
  .course-fold { height: 100svh; min-height: unset; }

  /* Hide top black fade — let 70% of image breathe */
  .course-fold::before { display: none; }

  /* Keep bottom bleed for organic fold-to-fold transition */
  .course-fold::after { height: 32%; }

  /* Brighter, less desaturated image on mobile */
  .course-fold-img {
    filter: grayscale(25%) contrast(1.05) brightness(0.78);
  }
  .course-fold:hover .course-fold-img {
    filter: grayscale(0%) contrast(1.0) brightness(0.82);
  }

  /* Bottom-only gradient: transparent at top, dark at bottom 35% */
  .course-fold-overlay,
  .course-fold-r .course-fold-overlay {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.97) 0%,
      rgba(0,0,0,0.88) 28%,
      rgba(0,0,0,0.30) 55%,
      transparent 72%
    );
  }

  /* Card ancorado no canto inferior direito */
  .course-fold-content,
  .course-fold-r .course-fold-content {
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0 clamp(16px, 4vw, 24px) clamp(16px, 3vh, 28px);
  }

  /* Compact card — description hidden so image dominates */
  .course-fold-card {
    max-width: 100%;
    padding: 18px 20px 20px;
    gap: 10px;
  }
  .course-fold-desc { display: none; }
  .course-fold-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.0;
  }

  .course-fold-num  { display: none; }
}

/* ── Touch devices (Android / iOS): remove course category badge ── */
@media (hover: none) and (pointer: coarse) {
  .course-fold-card .course-cat { display: none; }
}

/* ── Legacy (kept for reference, not used) ── */
.courses-section {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Full-width featured course image */
.course-featured-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  margin-bottom: 40px;
}
.course-featured-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(50%) contrast(1.05);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
  transform: scale(1.03);
}
.course-featured-wrap:hover img {
  filter: grayscale(0%) contrast(1.0);
  transform: scale(1.0);
}
.course-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0, 0.85) 0%,
    rgba(0,0,0, 0.50) 50%,
    transparent 100%
  );
  z-index: 1;
}
.course-featured-overlay-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0, 0.90) 0%,
    transparent 50%
  );
  z-index: 1;
}
.course-featured-card {
  position: absolute;
  bottom: 32px;
  left: clamp(20px, 5vw, 64px);
  z-index: 2;
  max-width: 480px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-t);
  border-left: 1px solid var(--border-s);
  border-right: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-b);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* Course grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 64px);
}
@media (min-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .courses-grid { grid-template-columns: 1fr; }
}

/* Course card */
.course-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-t);
  border-left: 1px solid var(--border-s);
  border-right: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-b);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: 0.5s;
  pointer-events: none;
  z-index: 20;
}
.course-card:hover {
  background: var(--glass-hover);
  border-top-color: rgba(255,255,255,0.30);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--red-a10);
}
.course-card:hover::before { left: 100%; transition: 0.7s ease-in-out; }

.course-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(60%);
  transition: filter 0.6s var(--ease);
  display: block;
}
.course-card:hover .course-card-img { filter: grayscale(0%); }

.course-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ── Software section ── */
.sw-section {
  padding: clamp(80px, 10vw, 128px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0,0,0,0.95) 50%, var(--bg) 100%);
  position: relative;
}

.sw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 0 clamp(20px, 5vw, 64px);
}
@media (min-width: 768px) {
  .sw-grid { grid-template-columns: 1fr 1fr; }
}

.sw-card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-t);
  border-left: 1px solid var(--border-s);
  border-right: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-b);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.sw-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: 0.5s;
  pointer-events: none;
  z-index: 20;
}
.sw-card:hover {
  background: var(--glass-hover);
  border-top-color: rgba(255,255,255,0.30);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--red-a10);
}
.sw-card:hover::before { left: 100%; transition: 0.7s ease-in-out; }

/* Screenshot at top of sw-card — FULL WIDTH */
.sw-card-screenshot {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--border-b);
  transition: filter 0.5s var(--ease);
  filter: saturate(0.8);
}
.sw-card:hover .sw-card-screenshot { filter: saturate(1.1); }

.sw-card-body {
  padding: clamp(20px, 3vw, 32px);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Real software screenshots */
.sw-screenshot-wrap {
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-b);
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw-screenshot {
  width: 100%;
  height: auto;            /* let image breathe at natural ratio */
  display: block;
  filter: saturate(0.8) brightness(0.85);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
  transform: scale(1.01);
}
.sw-card:hover .sw-screenshot {
  filter: saturate(1.05) brightness(1.0);
  transform: scale(1.0);
}
.sw-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  object-position: left;
  display: block;
  margin-bottom: 4px;
}

/* ── Software placeholders (image mockups) ── */
.sw-placeholder {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-b);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.sw-ph-ecu {
  background: linear-gradient(135deg, rgba(32,217,160,0.07) 0%, rgba(0,0,0,0.97) 100%);
}
.sw-ph-modx {
  background: linear-gradient(135deg, rgba(245,158,11,0.07) 0%, rgba(0,0,0,0.97) 100%);
}
/* Grid lines */
.sw-ph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
}
/* Fake UI rows */
.sw-ph-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
}
.sw-ph-bar {
  height: 28px;
  background: rgba(32,217,160,0.12);
  border-radius: 6px;
  border: 1px solid rgba(32,217,160,0.2);
  flex-shrink: 0;
}
.sw-ph-bar-amber {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.2);
}
.sw-ph-row {
  height: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  flex-shrink: 0;
}
.sw-ph-row-short { width: 60%; }
/* Software name label */
.sw-ph-name {
  position: relative;
  z-index: 2;
  font-family: var(--ff-h);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 14px 36px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ── Ebooks section ── */
.ebooks-section {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vw, 128px) 0;
}
.ebooks-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.ebooks-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    rgba(0,0,0,0.90) 30%,
    rgba(0,0,0,0.60) 60%,
    rgba(0,0,0,0.85) 100%
  );
}
.ebooks-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-left: clamp(20px, 8vw, 120px);
}

/* ── Support plans ── */
.support-section {
  padding: clamp(80px, 10vw, 128px) 0;
  position: relative;
  overflow: hidden;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ── Instructor section ── */
.instructor-section {
  padding: clamp(80px, 10vw, 128px) 0;
  position: relative;
  overflow: hidden;
}
.instructor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 600px;
}
@media (max-width: 900px) {
  .instructor-grid { grid-template-columns: 1fr; }
}

.instructor-photo-wrap {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.instructor-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(30%);
  transition: filter 0.6s var(--ease);
}
.instructor-photo-wrap:hover img { filter: grayscale(0%); }
.instructor-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 60%,
    var(--bg) 100%
  );
}
@media (max-width: 900px) {
  .instructor-photo-overlay {
    background: linear-gradient(to top, var(--bg) 0%, transparent 50%);
  }
}

.instructor-text {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-left: 1px solid var(--border-s);
  padding: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* ── FAQ section ── */
.faq-section {
  padding: clamp(80px, 10vw, 128px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0,0,0,0.95) 100%);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  padding: 0 clamp(20px, 5vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ── CTA final ── */
.cta-section {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* ── Mobile: Stats row ── */
@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-b);
  }
  .stat-item:last-child { border-bottom: none; }
}

/* ── Mobile: Plans grid ── */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ── Mobile: Ebooks ── */
@media (max-width: 768px) {
  .ebooks-section { min-height: unset; }
  .ebooks-bg::after {
    background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.5) 100%);
  }
  .ebooks-content {
    max-width: 100%;
    margin-left: 0;
    padding: 0 clamp(20px, 5vw, 40px);
  }
}

/* ── Mobile: Hero content ── */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 clamp(20px, 5vw, 32px) clamp(60px, 10vh, 100px);
  }
}

/* ── Mobile: Courses intro ── */
@media (max-width: 768px) {
  .courses-intro {
    padding: clamp(60px, 8vw, 80px) 0 32px;
  }
}

/* ── Mobile: CTA section ── */
@media (max-width: 768px) {
  .cta-section { padding: clamp(60px, 10vw, 80px) clamp(20px, 5vw, 40px); }
}

/* ── Footer ── */
.site-footer {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-t);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 64px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
