/* ============================================================
   MyProgress Digital - Main Stylesheet
   Line Art Minimal concept | 2026
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f3f1ed;
  --color-bg-dark: #1c1a17;
  --color-bg-dark-alt: #242219;
  --color-surface: #ffffff;
  --color-text: #2a2720;
  --color-text-muted: #6b6660;
  --color-text-light: #f0ede8;
  --color-text-light-muted: #b8b3ab;
  --color-border: #dedad4;
  --color-border-dark: #3a3830;
  --color-accent: #b8860b;
  --color-accent-hover: #9a7009;
  --color-accent-light: #f5edd8;
  --color-accent-gradient: linear-gradient(135deg, #c9960f 0%, #8a6008 100%);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(28,26,23,0.06), 0 1px 2px rgba(28,26,23,0.04);
  --shadow-md: 0 4px 12px rgba(28,26,23,0.08), 0 2px 6px rgba(28,26,23,0.05);
  --shadow-lg: 0 12px 32px rgba(28,26,23,0.10), 0 4px 12px rgba(28,26,23,0.07);
  --shadow-accent: 0 4px 20px rgba(184,134,11,0.20), 0 1px 4px rgba(184,134,11,0.12);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --nav-height: 72px;
  --container-max: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: var(--font-body); }

/* ---- Pace Progress Bar ---- */
.pace .pace-progress { background: var(--color-accent); }
.pace .pace-progress-inner { box-shadow: 0 0 10px var(--color-accent), 0 0 5px var(--color-accent); }
.pace .pace-activity { border-top-color: var(--color-accent); border-left-color: var(--color-accent); }

/* ---- Utilities ---- */
.u-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.u-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.u-text-center { text-align: center; }
.u-hidden { display: none !important; }
.u-mt-md { margin-top: var(--space-md); }

.u-section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 3px;
  margin-bottom: var(--space-md);
}

.u-section-label--light {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.u-heading-2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.u-heading-2--light {
  color: var(--color-text-light);
}

.u-gradient-transition {
  height: 120px;
  background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-dark) 100%);
  pointer-events: none;
}

/* ---- Scroll Reveal ---- */
.js-reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.c-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background-color var(--transition-slow), box-shadow var(--transition-slow);
  background-color: transparent;
}

.c-nav.is-light {
  background-color: rgba(250,249,247,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.c-nav.is-dark {
  background-color: rgba(28,26,23,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border-dark);
}

.c-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.c-nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.c-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.c-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.c-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-base);
}

.c-nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.c-nav__link:hover::after,
.c-nav__link.is-active::after { width: 100%; }
.c-nav__link:hover { color: var(--color-accent); }

.c-nav.is-dark .c-nav__link { color: var(--color-text-light); }
.c-nav.is-dark .c-nav__link:hover { color: var(--color-accent); }

.c-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.c-nav__toggle-bar {
  display: block;
  width: 100%; height: 1.5px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
  transform-origin: center;
}

.c-nav.is-dark .c-nav__toggle-bar { background-color: var(--color-text-light); }

.c-nav__toggle[aria-expanded="true"] .c-nav__toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.c-nav__toggle[aria-expanded="true"] .c-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.c-nav__toggle[aria-expanded="true"] .c-nav__toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Dropdown Panel */
@media (max-width: 768px) {
  .c-nav__toggle { display: flex; }

  .c-nav__menu {
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: var(--shadow-md);
  }

  .c-nav__menu.is-open {
    max-height: 420px;
  }

  .c-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: var(--space-sm) 0;
  }

  .c-nav__list li { width: 100%; }

  .c-nav__link {
    display: block;
    padding: 0.85rem var(--space-md);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .c-nav__link::after { display: none; }
  .c-nav__link:hover { background-color: var(--color-bg-alt); color: var(--color-accent); }

  .c-nav__cta {
    margin: var(--space-sm) var(--space-md) var(--space-md);
    align-self: flex-start;
  }

  .c-nav.is-dark .c-nav__menu {
    background-color: var(--color-bg-dark);
    border-bottom-color: var(--color-border-dark);
  }

  .c-nav.is-dark .c-nav__link {
    color: var(--color-text-light);
    border-bottom-color: var(--color-border-dark);
  }

  .c-nav.is-dark .c-nav__link:hover {
    background-color: var(--color-bg-dark-alt);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
  text-decoration: none;
}

.c-btn--primary {
  background: var(--color-accent-gradient);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: var(--shadow-accent);
}

.c-btn--primary:hover {
  background: linear-gradient(135deg, #d4a020 0%, #9a7009 100%);
  box-shadow: 0 6px 24px rgba(184,134,11,0.30);
  transform: translateY(-1px);
  color: #fff;
}

.c-btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.c-btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.c-nav.is-dark .c-btn--outline {
  color: var(--color-text-light);
  border-color: var(--color-border-dark);
}

.c-btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.c-btn--ghost:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.s-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.s-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.s-hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.s-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,26,23,0.82) 0%,
    rgba(28,26,23,0.60) 50%,
    rgba(28,26,23,0.40) 100%
  );
}

.s-hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.s-hero__grid-lines span {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.04);
}

.s-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.s-hero__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(184,134,11,0.4);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  background: rgba(184,134,11,0.08);
}

.s-hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.s-hero__heading-accent {
  color: var(--color-accent);
  display: block;
}

.s-hero__subtext {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-light-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.s-hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.c-btn--ghost.s-hero__actions > * {
  color: var(--color-text-light);
  border-color: rgba(255,255,255,0.3);
}

.s-hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.s-hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(240,237,232,0.5));
  animation: scrollPulse 2s ease-in-out infinite;
}

.s-hero__scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.4);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.s-about {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg);
}

.s-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.s-about__visual {
  position: relative;
}

.s-about__img-frame {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.s-about__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.s-about__img-frame:hover .s-about__img {
  transform: scale(1.03);
}

.s-about__accent-block {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: transparent;
  z-index: -1;
}

.s-about__text p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.s-about__text p:last-of-type {
  margin-bottom: var(--space-md);
}

/* ============================================================
   COURSES SECTION
   ============================================================ */
.s-courses {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-alt);
}

.s-courses__header {
  max-width: 560px;
  margin-bottom: var(--space-xl);
}

.s-courses__intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.s-courses__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Cards */
.c-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.c-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.c-card:has(.c-card__icon-wrap) {
  padding-top: var(--space-lg);
}

.c-card__icon-wrap {
  width: 48px; height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.c-card:hover .c-card__icon-wrap {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.c-card__icon {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.c-card:hover .c-card__icon {
  color: var(--color-accent);
}

.c-card__body { flex: 1; }

.c-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.c-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.c-card__list {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.c-card__list li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-bg-alt);
  padding-left: 1.1rem;
  position: relative;
}

.c-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 1px;
  background: var(--color-accent);
}

.c-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--transition-base), gap var(--transition-base);
  margin-top: auto;
}

.c-card__link:hover {
  border-bottom-color: var(--color-accent);
  gap: 0.7rem;
  color: var(--color-accent);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.s-how {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-dark);
}

.s-how__header {
  max-width: 540px;
  margin-bottom: var(--space-xl);
}

.s-how__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.c-step {
  padding: var(--space-lg);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.c-step:hover {
  border-color: var(--color-accent);
  background: rgba(184,134,11,0.05);
}

.c-step__connector {
  width: 40px;
  height: 1px;
  background: var(--color-border-dark);
  align-self: center;
  flex-shrink: 0;
  position: relative;
  top: -8px;
}

.c-step__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

.c-step__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}

.c-step__text {
  font-size: 0.875rem;
  color: var(--color-text-light-muted);
  line-height: 1.7;
}

/* ============================================================
   TOPICS SECTION
   ============================================================ */
.s-topics {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg);
}

.s-topics__header {
  margin-bottom: var(--space-xl);
}

.s-topics__visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.s-topics__img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.s-topics__lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-sm);
}

.s-topics__topic-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.c-topic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.c-topic-item:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.c-topic-item__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.c-topic-item__label {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* ============================================================
   AUDIENCE SECTION
   ============================================================ */
.s-audience {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-alt);
}

.s-audience__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.s-audience__text-col p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.s-audience__img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.s-audience__img-caption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.6rem;
  font-style: italic;
}

/* ============================================================
   PLATFORM SECTION
   ============================================================ */
.s-platform {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg);
}

.s-platform__header {
  max-width: 540px;
  margin-bottom: var(--space-xl);
}

.s-platform__feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.c-feature {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.c-feature:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.c-feature__icon-wrap {
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  transition: all var(--transition-base);
}

.c-feature:hover .c-feature__icon-wrap {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.c-feature__icon {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.c-feature:hover .c-feature__icon {
  color: var(--color-accent);
}

.c-feature__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.c-feature__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.s-platform__img-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.s-platform__preview-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/6;
  display: block;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.s-contact {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-alt);
}

.s-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.s-contact__info p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.s-contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.s-contact__detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.s-contact__detail-icon {
  color: var(--color-accent);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.s-contact__detail-item a {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.s-contact__detail-item a:hover {
  color: var(--color-accent);
}

.s-contact__map {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-md);
}

/* ---- Form ---- */
.c-form__wrap,
.s-contact__form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.c-form__steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-lg);
}

.c-form__step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.c-form__step-dot.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.c-form__step-dot.is-done {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.c-form__step-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  max-width: 60px;
}

.c-form__step {
  display: none;
}

.c-form__step.is-active {
  display: block;
  animation: fadeSlideIn 0.3s ease forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.c-form__step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.c-form__field {
  margin-bottom: var(--space-md);
}

.c-form__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.c-form__input,
.c-form__select,
.c-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  min-height: 44px;
  appearance: none;
}

.c-form__input:focus,
.c-form__select:focus,
.c-form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
}

.c-form:has(.c-form__input:focus) {
  box-shadow: var(--shadow-md);
}

.c-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6660' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.c-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.c-form__field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.c-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.c-form__checkbox {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.c-form__checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  min-width: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: all var(--transition-base);
  margin-top: 1px;
}

.c-form__checkbox:checked + .c-form__checkbox-custom {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.c-form__checkbox:checked + .c-form__checkbox-custom::after {
  content: '';
  display: block;
  width: 5px; height: 9px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.c-form__link {
  color: var(--color-accent);
  text-decoration: underline;
}

.c-form__actions {
  display: flex;
  margin-top: var(--space-md);
}

.c-form__actions--right { justify-content: flex-end; }
.c-form__actions--between { justify-content: space-between; }

/* ============================================================
   FOOTER
   ============================================================ */
.c-footer {
  background-color: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-dark);
}

.c-footer__newsletter {
  border-bottom: 1px solid var(--color-border-dark);
  padding: var(--space-xl) 0;
}

.c-footer__newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.c-footer__newsletter-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
}

.c-footer__newsletter-text p {
  font-size: 0.875rem;
  color: var(--color-text-light-muted);
}

.c-footer__newsletter-form {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.c-footer__newsletter-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: var(--color-text-light);
  font-size: 0.875rem;
  min-width: 240px;
  min-height: 44px;
  transition: border-color var(--transition-base);
}

.c-footer__newsletter-input::placeholder { color: var(--color-text-light-muted); }
.c-footer__newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.c-footer__main {
  padding: var(--space-2xl) 0;
}

.c-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
}

.c-footer__logo {
  height: 34px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1) opacity(0.9);
}

.c-footer__about-text {
  font-size: 0.875rem;
  color: var(--color-text-light-muted);
  line-height: 1.7;
}

.c-footer__col-heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.c-footer__link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-footer__link {
  font-size: 0.875rem;
  color: var(--color-text-light-muted);
  transition: color var(--transition-base);
}

.c-footer__link:hover { color: var(--color-accent); }

.c-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--color-text-light-muted);
  line-height: 1.5;
}

.c-footer__contact-icon {
  color: var(--color-accent);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* Recently Viewed */
.c-footer__recently-viewed {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-dark);
}

.c-footer__recent-heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light-muted);
  margin-bottom: 0.4rem;
}

.c-footer__recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.c-footer__recent-list a {
  font-size: 0.82rem;
  color: var(--color-text-light-muted);
  transition: color var(--transition-base);
}

.c-footer__recent-list a:hover { color: var(--color-accent); }

.c-footer__bar {
  border-top: 1px solid var(--color-border-dark);
  padding: var(--space-md) 0;
}

.c-footer__bar .u-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.c-footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-light-muted);
}

.c-footer__legal-links {
  display: flex;
  gap: var(--space-md);
}

.c-footer__legal-link {
  font-size: 0.8rem;
  color: var(--color-text-light-muted);
  transition: color var(--transition-base);
}

.c-footer__legal-link:hover { color: var(--color-accent); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.c-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-dark);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.c-cookie-banner.is-visible {
  transform: translateY(0);
}

.c-cookie-banner__left {
  padding: var(--space-lg) var(--space-xl);
  border-right: 1px solid var(--color-border-dark);
}

.c-cookie-banner__logo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.c-cookie-banner__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.c-cookie-banner__text {
  font-size: 0.82rem;
  color: var(--color-text-light-muted);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.c-cookie-banner__policy-link {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-decoration: underline;
  transition: opacity var(--transition-fast);
}

.c-cookie-banner__policy-link:hover { opacity: 0.8; }

.c-cookie-banner__right {
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
}

.c-cookie-banner__toggles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.c-cookie-toggle__info { flex: 1; }

.c-cookie-toggle__name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.c-cookie-toggle__desc {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light-muted);
}

.c-cookie-toggle__switch {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}

.c-cookie-toggle__switch input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}

.c-cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-border-dark);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.c-cookie-toggle__slider::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition-base);
}

.c-cookie-toggle__switch input:checked + .c-cookie-toggle__slider {
  background: var(--color-accent);
}

.c-cookie-toggle__switch input:checked + .c-cookie-toggle__slider::before {
  transform: translateX(20px);
}

.c-cookie-toggle__switch.is-locked .c-cookie-toggle__slider {
  background: var(--color-accent);
  cursor: not-allowed;
  opacity: 0.7;
}

.c-cookie-toggle__switch.is-locked .c-cookie-toggle__slider::before {
  transform: translateX(20px);
}

.c-cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* ============================================================
   LEGAL PAGES SHARED WRAPPER
   ============================================================ */
.s-legal-hero {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
  background-color: var(--color-bg-dark);
}

.s-legal-hero__inner {
  max-width: 760px;
}

.s-legal-hero__label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 3px;
  margin-bottom: var(--space-sm);
}

.s-legal-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}

.s-legal-hero__meta {
  font-size: 0.875rem;
  color: var(--color-text-light-muted);
}

.s-legal-content {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background-color: var(--color-bg);
}

.s-legal-content__inner {
  max-width: 760px;
}

.s-legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-xl);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.s-legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-md);
  margin-bottom: 0.4rem;
}

.s-legal-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.s-legal-content ul, .s-legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-sm);
}

.s-legal-content ul li, .s-legal-content ol li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.s-legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

.s-legal-content table th {
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
}

.s-legal-content table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: top;
}

.s-legal-content dl dt {
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-sm);
  font-size: 0.9rem;
}

.s-legal-content dl dd {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-left: var(--space-md);
  line-height: 1.7;
}

/* ============================================================
   THANKS PAGE
   ============================================================ */
.s-thanks {
  min-height: calc(100vh - var(--nav-height) - 200px);
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg);
}

.s-thanks__inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.s-thanks__checkmark {
  width: 80px; height: 80px;
  margin: 0 auto var(--space-lg);
}

.s-thanks__circle {
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawCircle 0.7s ease forwards;
}

.s-thanks__check {
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.4s ease 0.7s forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.s-thanks__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.5s ease 1.1s forwards;
}

.s-thanks__text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.5s ease 1.3s forwards;
}

.s-thanks__btn {
  opacity: 0;
  animation: fadeInUp 0.5s ease 1.5s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .s-how__steps {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .c-step__connector {
    width: 1px;
    height: 24px;
    align-self: center;
    margin: 0 auto;
    top: 0;
  }

  .s-platform__feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .c-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
  }

  .s-about__grid,
  .s-topics__visual-row,
  .s-audience__inner,
  .s-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .s-about__accent-block { display: none; }

  .s-courses__grid {
    grid-template-columns: 1fr;
  }

  .s-platform__feature-grid {
    grid-template-columns: 1fr;
  }

  .s-platform__preview-img {
    aspect-ratio: 16/9;
  }

  .c-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .c-footer__newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .c-footer__newsletter-form {
    width: 100%;
    flex-direction: column;
  }

  .c-footer__newsletter-input {
    min-width: 0;
    width: 100%;
  }

  .c-cookie-banner {
    grid-template-columns: 1fr;
  }

  .c-cookie-banner__left {
    border-right: none;
    border-bottom: 1px solid var(--color-border-dark);
    padding: var(--space-md);
  }

  .c-cookie-banner__right {
    padding: var(--space-md);
  }

  .s-hero__content {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .s-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .s-contact__form-wrap {
    padding: var(--space-lg);
  }

  .c-footer__bar .u-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .s-audience__img {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 480px) {
  .c-cookie-banner__actions {
    flex-direction: column;
  }

  .c-cookie-banner__actions .c-btn {
    width: 100%;
    justify-content: center;
  }

  .s-hero__heading {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}

/* ============================================================
   :has() SELECTORS - Relational Styling
   ============================================================ */
.s-contact__form-wrap:has(.c-form__input:focus),
.s-contact__form-wrap:has(.c-form__textarea:focus),
.s-contact__form-wrap:has(.c-form__select:focus) {
  border-color: rgba(184,134,11,0.3);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(184,134,11,0.06);
}

.c-card--course:has(.c-card__icon-wrap) .c-card__title {
  font-size: 1.15rem;
}

.c-feature:has(.c-feature__icon-wrap:hover) .c-feature__title {
  color: var(--color-accent);
}

.s-contact__grid:has(.c-form__step.is-active[id="form-step-3"]) .s-contact__info {
  opacity: 0.85;
}