/* ===========================================
   Ethos Empire — Free Course Landing Page
   Same dark gold theme as main site
   =========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 149, 42, 0.08), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(255, 215, 0, 0.04), transparent 18%),
    linear-gradient(180deg, #040404 0%, #000000 100%);
  background-attachment: fixed;
}

/* --- Matrix Background --- */

.page-matrix-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-matrix-canvas,
.page-matrix-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-matrix-canvas {
  z-index: 0;
  filter: hue-rotate(235deg) saturate(1.4) brightness(1.05);
  opacity: 0.9;
}

.page-matrix-vignette {
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 40%, rgba(18, 2, 32, 0.42) 100%),
    linear-gradient(180deg, rgba(88, 28, 135, 0.08), rgba(20, 1, 39, 0.192));
}

.matrix-page-shell,
.page-matrix-content,
header,
main,
footer {
  position: relative;
  z-index: 2;
}

.matrix-page-shell {
  min-height: 100vh;
}

/* --- Logo --- */

.course-logo {
  border-radius: 22px;
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.2),
    0 0 80px rgba(255, 215, 0, 0.08),
    0 14px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.course-logo:hover {
  transform: scale(1.04);
}

/* --- Header Typography --- */

.course-kicker {
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #f4d88d;
  font-size: 0.72rem;
  font-weight: 700;
}

.course-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fff8dc, #ffd966, #d4a837, #fff0b1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.course-subtitle {
  max-width: 32ch;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  color: #d4af37;
  font-weight: 500;
}

.course-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, #FFD700, transparent);
  opacity: 0.7;
}

/* --- Course Cards --- */

.course-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid rgba(117, 103, 22, 0.658);
  background:
    linear-gradient(180deg, rgba(14, 10, 20, 0.94), rgba(8, 6, 14, 0.9)),
    radial-gradient(circle at 20% 0%, rgba(168, 85, 247, 0.1), transparent 42%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.75, 0.2, 1),
    border-color 0.24s ease,
    box-shadow 0.24s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 30%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.28);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

.course-card:hover::before {
  opacity: 1;
}

.course-card:hover .card-arrow {
  transform: translateX(4px);
  color: #FFD700;
}

.course-card:hover .card-title {
  color: #ffe082;
}

.course-card-full {
  grid-column: 1 / -1;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

/* --- Card Inner Elements --- */

.card-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.24);
  color: #ffe082;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.card-title {
  color: #fff1b8;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
  transition: color 0.2s ease;
}

.card-desc {
  color: #f3df9a;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  opacity: 1;
}

.card-arrow {
  flex-shrink: 0;
  margin-left: auto;
  margin-top: 4px;
  font-size: 1.3rem;
  color: rgba(255, 215, 0, 0.35);
  transition: transform 0.24s ease, color 0.24s ease;
  align-self: center;
}

/* --- Back Link --- */

.back-link {
  display: inline-block;
  color: #a07828;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #FFD700;
}

/* --- Mobile --- */

@media (max-width: 767px) {
  .course-card {
    padding: 20px 18px;
    gap: 14px;
  }

  .card-number {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .card-desc {
    font-size: 0.82rem;
  }

  .card-arrow {
    display: none;
  }

  .course-card-full {
    max-width: 100%;
  }
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  .course-card,
  .course-logo,
  .card-arrow,
  .card-title {
    transition: none;
    transform: none !important;
  }
}
