:root {
  --primary: #357ebd;
  --primary-dark: #1f5f97;
  --primary-deep: #102a45;
  --accent: #c89b63;
  --accent-soft: #f0d7b4;
  --aqua: #73b7bc;
  --secondary: #f5f5f8;
  --ink: #172033;
  --muted: #657184;
  --line: #dde5ef;
  --white: #ffffff;
  --navy: #0f2338;
  --sage: #6d8b87;
  --silver: #eef1f5;
  --glass: rgba(255, 255, 255, 0.74);
  --surface-white: #ffffff;
  --surface-cool: #f2f6f9;
  --surface-blue: #eaf3f8;
  --surface-warm: #f8f5f0;
  --section-edge: rgba(198, 211, 224, 0.72);
  --shadow: 0 22px 70px rgba(23, 32, 51, 0.14);
  --shadow-premium: 0 24px 80px rgba(15, 35, 56, 0.16), 0 8px 26px rgba(15, 35, 56, 0.09);
  --page-max: 1180px;
  --page-gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(245, 247, 251, 0.92) 0%, rgba(255, 255, 255, 0.96) 38%, rgba(239, 246, 250, 0.88) 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  border-bottom: 1px solid rgba(221, 229, 239, 0.58);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 34px rgba(15, 35, 56, 0.06);
  backdrop-filter: blur(22px) saturate(150%);
}

.site-header::after {
  position: absolute;
  right: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  bottom: -1px;
  left: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 155, 99, 0.74), rgba(115, 183, 188, 0.45), transparent);
  content: "";
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 290px;
  transition: transform 180ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo {
  width: 96px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  border-radius: 999px;
  color: #314057;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 10px 14px;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
  background: rgba(53, 126, 189, 0.09);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.main-nav .nav-auth {
  border: 1px solid var(--line);
  margin-left: 8px;
}

.main-nav .nav-auth-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 58%, #14385a 100%);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(53, 126, 189, 0.24);
}

.main-nav .nav-auth-primary:hover {
  background: linear-gradient(135deg, #4a92cc 0%, var(--primary-dark) 64%, #102a45 100%);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 84px));
  display: grid;
  align-items: center;
  padding: 104px max(var(--page-gutter), calc((100vw - var(--page-max)) / 2)) 72px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0b1d31 0%, #123454 54%, #0d2738 100%);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(200, 155, 99, 0.22) 0%, transparent 31%),
    linear-gradient(290deg, rgba(115, 183, 188, 0.18) 0%, transparent 42%);
  mix-blend-mode: screen;
}

.hero::after {
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-position: center;
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 78%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.8;
  transform: scale(1.02);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 24, 42, 0.98) 0%, rgba(13, 37, 61, 0.86) 42%, rgba(15, 35, 56, 0.22) 76%, rgba(15, 35, 56, 0.08) 100%),
    linear-gradient(180deg, rgba(15, 35, 56, 0.2) 0%, rgba(15, 35, 56, 0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--page-max));
}

.hero-content {
  position: relative;
  max-width: 650px;
  color: var(--white);
  animation: heroContentIn 850ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--accent), var(--aqua));
  content: "";
}

.hero .eyebrow {
  color: #9ed0fb;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  max-width: 780px;
  font-size: clamp(4.3rem, 6.4vw, 6.5rem);
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  text-wrap: balance;
}

h3 {
  font-size: 1.18rem;
}

.hero-lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  padding: 13px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  will-change: transform;
}

.btn::after {
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  content: "";
  transform: skewX(-20deg);
  transition: left 520ms ease;
}

.btn:hover::after {
  left: 115%;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 56%, var(--primary-deep) 100%);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(53, 126, 189, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5195cc 0%, var(--primary-dark) 56%, #102a45 100%);
  box-shadow: 0 22px 52px rgba(31, 95, 151, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

section {
  padding: clamp(74px, 8vw, 108px) max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
}

.section-band {
  background:
    linear-gradient(135deg, rgba(245, 245, 248, 0.98) 0%, rgba(255, 255, 255, 0.9) 54%, rgba(234, 242, 250, 0.82) 100%);
}

.intro.section-band {
  border-bottom: 1px solid var(--section-edge);
  background:
    radial-gradient(circle at 12% 18%, rgba(115, 183, 188, 0.16), transparent 34%),
    linear-gradient(135deg, #f4f8fb 0%, #edf4f8 48%, #f8fbfd 100%);
}

.courses {
  border-bottom: 1px solid var(--section-edge);
  background:
    linear-gradient(180deg, var(--surface-white) 0%, #fbfcfd 100%);
}

.platform.section-band {
  border-top: 1px solid var(--section-edge);
  border-bottom: 1px solid rgba(18, 52, 84, 0.22);
  background:
    radial-gradient(circle at 78% 18%, rgba(200, 155, 99, 0.12), transparent 34%),
    linear-gradient(135deg, #eef5f8 0%, #dfeaf0 100%);
}

.section-heading {
  max-width: 940px;
  margin-bottom: 40px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 34px;
  max-width: 1180px;
  align-items: end;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(221, 229, 239, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.9));
  box-shadow: 0 14px 44px rgba(23, 32, 51, 0.06);
  padding: 28px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.intro-grid article::after {
  position: absolute;
  inset: 0;
  border-top: 2px solid rgba(200, 155, 99, 0.48);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.intro-grid article:hover {
  border-color: rgba(200, 155, 99, 0.45);
  box-shadow: var(--shadow-premium);
  transform: translateY(-6px);
}

.intro-grid article:hover::after {
  opacity: 1;
}

.intro-grid span {
  display: inline-block;
  margin-bottom: 56px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.intro-grid p,
.platform-copy p,
.about p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #40506a;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.filter.active,
.filter:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(53, 126, 189, 0.22);
  transform: translateY(-1px);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.course-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(221, 229, 239, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(23, 32, 51, 0.06);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  will-change: transform;
}

.course-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 32%, rgba(200, 155, 99, 0.08));
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.course-card:hover {
  border-color: rgba(200, 155, 99, 0.42);
  box-shadow: var(--shadow-premium);
  transform: translateY(-8px);
}

.course-card:hover::before {
  opacity: 1;
}

.course-card.featured {
  border-color: rgba(53, 126, 189, 0.38);
  box-shadow: var(--shadow-premium);
}

.course-card.is-hidden {
  display: none;
}

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--silver);
  transition: transform 520ms ease, filter 520ms ease;
}

.course-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
  position: relative;
  z-index: 2;
}

.course-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pill {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(53, 126, 189, 0.14), rgba(115, 183, 188, 0.14));
  color: var(--primary-dark);
  padding: 5px 10px;
}

.pill.free {
  background: rgba(109, 139, 135, 0.18);
  color: #486965;
}

.course-body p {
  color: var(--muted);
}

dl {
  display: grid;
  gap: 10px;
  margin: auto 0 22px;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

dt {
  color: var(--muted);
  font-size: 0.86rem;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.course-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.course-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(53, 126, 189, 0.22);
  transform: translateY(-1px);
}

.brand-story {
  display: grid;
  grid-template-columns: minmax(285px, 0.48fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  border-top: 1px solid rgba(18, 52, 84, 0.16);
  border-bottom: 1px solid var(--section-edge);
  background:
    linear-gradient(135deg, #ffffff 0%, #fbfaf7 46%, var(--surface-warm) 100%);
  padding-top: clamp(46px, 6vw, 74px);
  padding-bottom: clamp(46px, 6vw, 74px);
}

.brand-story-image {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: var(--white);
}

.brand-story-photo {
  width: min(100%, 370px);
  max-height: 420px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  background: var(--white);
}

.brand-story-photo img {
  transition: transform 700ms ease, filter 700ms ease;
}

.brand-story-photo:hover img {
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.025);
}

.brand-story-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
}

.brand-story-copy {
  max-width: 760px;
}

.brand-story-copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.brand-story-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
}

.signature {
  width: min(150px, 46vw);
  margin-top: 10px;
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  grid-template-areas: "copy image";
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.platform-image img {
  width: 100%;
  min-height: 520px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-premium);
  transition: transform 650ms ease, filter 650ms ease;
}

.platform-image:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.015);
}

.platform-image {
  grid-area: image;
}

.platform-copy {
  grid-area: copy;
  max-width: 720px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: #33435c;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--aqua));
  color: var(--white);
  content: "";
  font-size: 0.78rem;
}

.check-list li::after {
  position: absolute;
  left: 8px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats-row div {
  min-height: 170px;
  background: var(--secondary);
  padding: 28px;
}

.stats-row strong {
  display: block;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.stats-row span {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: clamp(26px, 6vw, 70px);
  background:
    linear-gradient(135deg, rgba(10, 29, 48, 0.98) 0%, rgba(16, 51, 79, 0.98) 58%, rgba(13, 39, 56, 0.98) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 5vw, 64px) max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
}

.contact::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(200, 155, 99, 0.17), transparent 36%),
    linear-gradient(275deg, rgba(115, 183, 188, 0.16), transparent 45%);
  content: "";
  pointer-events: none;
}

.contact .eyebrow {
  color: #9ed0fb;
}

.contact-copy {
  max-width: 720px;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  padding: 20px;
}

.contact-form label {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
  grid-column: span 2;
}

.contact-form label:nth-child(1),
.contact-form label:nth-child(2) {
  grid-column: span 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 10px 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(200, 155, 99, 0.8);
  box-shadow: 0 0 0 4px rgba(200, 155, 99, 0.16);
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
  height: 80px;
  min-height: 80px;
}

.contact-form button,
.contact-form .form-note,
.contact-form .form-success-message {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form label {
    grid-column: span 1 !important;
  }
  .contact-form button,
  .contact-form .form-note,
  .contact-form .form-success-message {
    grid-column: span 1 !important;
  }
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: #c9e7ff;
  font-weight: 700;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 54px max(var(--page-gutter), calc((100vw - var(--page-max)) / 2)) 48px;
  border-top: 1px solid rgba(18, 52, 84, 0.14);
  background:
    linear-gradient(135deg, #eef3f6, #f8fafb);
}

.course-page {
  background: var(--white);
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, var(--secondary) 0%, #ffffff 48%, #e7f2f7 100%);
}

.legal-page {
  background: var(--white);
}

.legal-hero {
  background:
    linear-gradient(135deg, var(--secondary) 0%, #ffffff 52%, #e7f2f7 100%);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(42px, 6vw, 72px);
}

.legal-hero h1 {
  color: var(--ink);
  font-size: clamp(2.25rem, 4.2vw, 4.25rem);
}

.legal-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-content {
  padding-top: clamp(48px, 7vw, 82px);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.legal-content article {
  max-width: 860px;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.22rem;
  line-height: 1.25;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--primary-dark);
  font-weight: 800;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 84px);
  place-items: center;
  padding: clamp(56px, 8vw, 92px) max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
}

.auth-card {
  width: min(100%, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(18px) saturate(145%);
  padding: clamp(24px, 4vw, 42px);
}

.auth-card-wide {
  width: min(100%, 820px);
}

.auth-copy {
  margin-bottom: 28px;
}

.auth-copy h1 {
  color: var(--ink);
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.auth-copy p:not(.eyebrow),
.auth-switch,
.auth-note {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #33435c;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-options a,
.auth-switch a {
  color: var(--primary-dark);
  font-weight: 800;
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
}

.checkbox-label input {
  width: auto;
}

.auth-full {
  grid-column: 1 / -1;
}

.auth-note {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
}

.course-detail-hero {
  display: grid;
  grid-template-columns: minmax(500px, 1.28fr) minmax(320px, 0.72fr);
  grid-template-areas:
    "image copy"
    "details copy";
  column-gap: clamp(28px, 4.2vw, 56px);
  row-gap: 16px;
  align-items: center;
  padding-top: clamp(54px, 6vw, 78px);
  padding-bottom: clamp(54px, 6vw, 78px);
  border-bottom: 1px solid var(--section-edge);
  background:
    radial-gradient(circle at 18% 14%, rgba(115, 183, 188, 0.18), transparent 30%),
    linear-gradient(135deg, #f7fafc 0%, #edf5f9 52%, #f9fbfd 100%);
}

.course-detail-copy {
  grid-area: copy;
  max-width: none;
  align-self: center;
  border: 1px solid rgba(221, 229, 239, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.94));
  box-shadow: 0 22px 62px rgba(23, 32, 51, 0.09);
  padding: clamp(28px, 4vw, 46px) clamp(22px, 3.4vw, 38px);
}

.course-detail-copy h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.02;
}

.course-detail-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
}

.course-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.course-detail-actions .btn-ghost {
  border-color: var(--line);
  color: var(--primary-dark);
}

.course-detail-actions .btn-ghost:hover {
  background: var(--secondary);
}

.course-summary-card {
  display: contents;
}

.course-summary-card img {
  grid-area: image;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(221, 229, 239, 0.85);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-premium);
}

.course-summary-body {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  align-self: start;
  border: 1px solid rgba(221, 229, 239, 0.82);
  border-radius: 8px;
  background: rgba(221, 229, 239, 0.95);
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.07);
  overflow: hidden;
  padding: 0;
}

.course-summary-row {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 96px;
  border-bottom: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.94));
  padding: 18px;
}

.course-summary-row:last-child {
  border-bottom: 0;
}

.course-summary-row span:first-child {
  color: var(--muted);
}

.course-summary-row span:last-child {
  font-weight: 800;
  text-align: left;
}

.course-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-top: clamp(58px, 7vw, 86px);
  border-bottom: 1px solid var(--section-edge);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 74%, #fbfcfd 100%);
}

.course-main {
  max-width: 780px;
}

.course-main h2,
.course-main h3 {
  margin-top: 34px;
}

.course-main h2:first-child {
  margin-top: 0;
}

.course-main p,
.course-main li {
  color: var(--muted);
}

.course-main ul,
.course-main ol {
  padding-left: 22px;
}

.checkout-panel {
  position: sticky;
  top: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(245, 245, 248, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: 0 18px 52px rgba(23, 32, 51, 0.09);
  padding: 24px;
}

.author-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  border-top: 1px solid rgba(221, 229, 239, 0.86);
  border-bottom: 1px solid var(--section-edge);
  background:
    radial-gradient(circle at 88% 18%, rgba(53, 126, 189, 0.1), transparent 32%),
    linear-gradient(135deg, #f3f7fa 0%, #e8f1f6 100%);
  padding-top: clamp(54px, 7vw, 86px);
  padding-bottom: clamp(54px, 7vw, 86px);
}

.author-photo {
  overflow: hidden;
  border: 1px solid rgba(221, 229, 239, 0.86);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-premium);
}

.author-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
}

.author-copy {
  max-width: 780px;
}

.author-copy h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.85rem);
}

.author-copy p:not(.eyebrow) {
  color: var(--muted);
}

.author-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.author-highlights span {
  min-height: 92px;
  border: 1px solid rgba(221, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #33435c;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 16px;
}

.checkout-panel h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.25rem;
}

.price {
  margin: 18px 0;
  color: var(--primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.stripe-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.course-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.course-navigation a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 10px 14px;
}

.course-navigation a:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 0;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-links a:hover,
.footer-legal a:hover {
  color: var(--primary-dark);
}

.social-links a:hover {
  border-color: rgba(53, 126, 189, 0.35);
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.1);
  transform: translateY(-2px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.72, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateX(0);
  }
  to {
    transform: scale(1.07) translateX(1.4%);
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.footer-legal a {
  border-right: 1px solid #cdd6e2;
  color: #40506a;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 12px;
}

.footer-legal a:last-child {
  border-right: 0;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 980px) {
  .section-heading.split,
  .platform,
  .contact,
  .course-detail-hero,
  .course-content,
  .author-section {
    grid-template-columns: 1fr;
  }

  .platform {
    grid-template-areas: "image" "copy";
  }

  .course-detail-hero {
    grid-template-areas:
      "image"
      "details"
      "copy";
  }

  .course-detail-copy {
    align-self: start;
  }

  .course-summary-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-summary-card img {
    aspect-ratio: 16 / 9;
  }

  .author-photo {
    width: min(100%, 360px);
  }

  .course-grid,
  .intro-grid,
  .author-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-image img {
    min-height: 360px;
  }

  .checkout-panel {
    position: static;
  }

}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav .nav-auth {
    margin-left: 0;
  }

  .hero {
    min-height: 700px;
    padding-top: 92px;
    padding-bottom: 62px;
  }

  .course-grid,
  .intro-grid,
  .stats-row,
  .site-footer,
  .author-highlights {
    grid-template-columns: 1fr;
  }

  .course-summary-body {
    grid-template-columns: 1fr;
  }

  .intro-grid span {
    margin-bottom: 30px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand-story {
    grid-template-columns: 1fr;
  }

  .brand-story-image {
    justify-content: flex-start;
  }

  .brand-story-photo {
    width: min(100%, 310px);
    max-height: 350px;
  }

  .brand-story-image img {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 78px;
    height: 36px;
  }

  .brand small {
    font-size: 0.66rem;
  }

  h1 {
    font-size: 3.45rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Premium Motion Graphics & SVG Animations */

/* Hero background floating SVG overlay */
.hero-svg-overlay {
  position: absolute;
  top: 5%;
  right: -5%;
  width: 800px;
  height: 800px;
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
  transform-origin: center;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinFast {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.hero-svg-overlay .circle-slow {
  transform-origin: 400px 400px;
  animation: spinSlow 45s linear infinite;
}

.hero-svg-overlay .circle-fast {
  transform-origin: 400px 400px;
  animation: spinFast 25s linear infinite;
}

.hero-svg-overlay .node-pulse {
  transform-origin: 400px 100px;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-svg-overlay .node-pulse-2 {
  transform-origin: 700px 400px;
  animation: pulseGlow 5s ease-in-out infinite 1.5s;
}

/* Feature Cards Icon Styling */
.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.feature-svg {
  width: 48px;
  height: 48px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.intro-grid article:hover .feature-svg {
  transform: scale(1.16) translateY(-2px);
}

/* Feature 1: Clock rotation */
@keyframes clockRotateHour {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes clockRotateMinute {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.clock-hand-hour {
  transform-origin: 32px 32px;
  animation: clockRotateHour 20s linear infinite;
}
.clock-hand-minute {
  transform-origin: 32px 32px;
  animation: clockRotateMinute 4s linear infinite;
}

/* Feature 2: Line Drawing & Blinking */
.intro-grid article .line-draw-1,
.intro-grid article .line-draw-2,
.intro-grid article .line-draw-3 {
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-grid article:hover .line-draw-1 {
  stroke-dasharray: 40;
  animation: drawLineAnim 0.6s ease forwards;
}
.intro-grid article:hover .line-draw-2 {
  stroke-dasharray: 40;
  animation: drawLineAnim 0.6s ease forwards 0.15s;
}
.intro-grid article:hover .line-draw-3 {
  stroke-dasharray: 40;
  animation: drawLineAnim 0.6s ease forwards 0.3s;
}

@keyframes drawLineAnim {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}

@keyframes blinkNode {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}
.node-blink {
  transform-origin: 44px 32px;
  animation: blinkNode 2s infinite ease-in-out;
}

/* Feature 3: Pulse & float */
.node-pulse {
  transform-origin: 32px 20px;
  animation: pulseGlow 3s ease-in-out infinite;
}

@media (max-width: 980px) {
  .hero-svg-overlay {
    width: 600px;
    height: 600px;
    right: -10%;
  }
}

@media (max-width: 760px) {
  .hero-svg-overlay {
    display: none; /* Hide on smaller mobiles to keep page clean */
  }
}

/* Animated Success Checkmark */
@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}
@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}
@keyframes scaleCheckmark {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

.success-checkmark-svg .checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  transform-origin: center;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-svg .checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.success-icon-wrapper {
  animation: scaleCheckmark 0.3s ease-in-out 0.9s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
