:root {
  --navy-950: #071329;
  --navy-900: #0d1c38;
  --navy-800: #142a50;
  --navy-700: #1c3b6e;
  --gold-500: #d5a52e;
  --gold-400: #e5bb50;
  --gold-200: #f5df9a;
  --cream: #fbf8f0;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #5e6878;
  --line: #dde2e9;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(7, 19, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 16px;
  color: #fff;
  background: var(--navy-950);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(13, 28, 56, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.08rem;
  letter-spacing: 0.14em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #33415a;
  font-size: 0.94rem;
  font-weight: 650;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--navy-700);
}

.main-nav .nav-login {
  padding: 10px 16px;
  color: var(--navy-900);
  border: 1px solid #c8ced8;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 82px;
  background:
    radial-gradient(circle at 85% 10%, rgba(229, 187, 80, 0.2), transparent 32%),
    linear-gradient(145deg, #f8f3e8 0%, #fff 52%, #eef2f8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: -220px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(13, 28, 56, 0.1);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8a6712;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.legal-page h1,
.not-found h1 {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 6vw, 5.15rem);
}

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: #46536a;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #0c1830;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 12px 28px rgba(174, 127, 14, 0.25);
}

.button-primary:hover {
  box-shadow: 0 15px 35px rgba(174, 127, 14, 0.34);
}

.button-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: transparent;
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  color: var(--navy-800);
  font-weight: 800;
  text-underline-offset: 5px;
}

.microcopy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-mark {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(13, 28, 56, 0.12);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-mark::after {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  z-index: -1;
  border-radius: 34px;
  background: var(--navy-900);
}

.hero-mark-inner {
  padding: 38px 30px 28px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.hero-mark img {
  width: min(100%, 390px);
  margin-inline: auto;
}

.hero-mark p {
  margin: 16px 0 0;
  color: var(--navy-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promise {
  background: var(--navy-900);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.promise p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 28px 36px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.promise p:last-child {
  border-right: 0;
}

.promise strong {
  color: var(--gold-400);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.promise span {
  color: #cbd4e4;
  font-size: 0.9rem;
}

.section {
  padding: 100px 0;
}

.section-heading {
  max-width: 680px;
}

.section h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.65rem);
}

.section-heading > p:last-child,
.method-grid > div > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.feature-card {
  position: relative;
  min-height: 245px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 14px 36px rgba(13, 28, 56, 0.06);
}

.feature-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  border-radius: 50%;
  background: var(--gold-200);
  font-weight: 900;
}

.feature-card h3 {
  margin: 26px 0 10px;
  color: var(--navy-900);
  font-size: 1.36rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.section-dark {
  color: #e8edf6;
  background:
    radial-gradient(circle at 82% 12%, rgba(213, 165, 46, 0.16), transparent 28%),
    var(--navy-950);
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-dark h2 {
  color: #fff;
}

.section-dark .method-grid > div > p:last-child {
  color: #bdc8da;
}

.eyebrow-light {
  color: var(--gold-400);
}

.method-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  min-height: 145px;
  align-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.method-steps span {
  color: var(--gold-400);
  font-size: 0.8rem;
  font-weight: 900;
}

.method-steps strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.testimonial-section {
  background: var(--cream);
}

.testimonial-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

blockquote {
  margin: 0;
}

blockquote p {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.25;
}

blockquote footer {
  margin-top: 24px;
  color: var(--muted);
  font-weight: 750;
}

.testimonial-cta {
  padding: 32px;
  border-left: 3px solid var(--gold-500);
}

.testimonial-cta p {
  margin: 0 0 24px;
  color: #445169;
  font-size: 1.07rem;
}

.course-access {
  padding-top: 42px;
  padding-bottom: 42px;
}

.access-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  padding: 48px;
  color: #fff;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow);
}

.access-card h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.access-card p:last-child {
  max-width: 700px;
  margin: 14px 0 0;
  color: #cbd5e5;
}

.newsletter {
  background: #f4f6f9;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.newsletter h2 {
  margin-bottom: 22px;
}

.newsletter-grid > div:first-child > p:not(.eyebrow) {
  color: var(--muted);
}

.privacy-note {
  margin-top: 24px;
  font-size: 0.88rem;
}

.privacy-note a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.form-shell {
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-placeholder {
  min-height: 292px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 36px;
  border: 1px dashed #bbc4d1;
  border-radius: 15px;
  text-align: center;
}

.form-placeholder strong {
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.form-placeholder p {
  max-width: 420px;
  margin: 8px 0 22px;
  color: var(--muted);
}

.newsletter-frame {
  width: 100%;
  min-height: 680px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy-900);
  font-weight: 800;
}

.faq-list details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 54px 0 36px;
  color: #c7d0df;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px 60px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 72px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
}

.footer-brand p {
  margin: 0;
  color: #fff;
  font-weight: 750;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 26px;
}

.footer-links a {
  color: #d5ddec;
  text-underline-offset: 4px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  color: #8794a9;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

/* Legal and error pages */
.subpage-header {
  position: static;
}

.legal-page,
.not-found {
  min-height: 70vh;
  padding: 72px 0 100px;
  background: linear-gradient(180deg, #f5f1e8, #fff 250px);
}

.legal-content {
  max-width: 850px;
}

.legal-page h1,
.not-found h1 {
  font-size: clamp(2.45rem, 5vw, 4.25rem);
}

.legal-date {
  margin: 18px 0 50px;
  color: var(--muted);
}

.legal-page h2 {
  margin: 42px 0 12px;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.legal-page h3 {
  margin: 24px 0 8px;
  color: var(--navy-800);
}

.legal-page p,
.legal-page li {
  color: #4b5668;
}

.legal-page a {
  color: var(--navy-700);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.legal-page th,
.legal-page td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  color: var(--navy-900);
  background: #f5f7fa;
}

.not-found .container {
  max-width: 760px;
  text-align: center;
}

.not-found p {
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.center-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .header-inner {
    padding: 12px 0;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .main-nav a:not(.nav-login) {
    display: none;
  }

  .hero-grid,
  .method-grid,
  .testimonial-wrap,
  .newsletter-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 64px;
  }

  .hero-mark {
    width: min(520px, 92%);
    margin-inline: auto;
  }

  .method-grid,
  .testimonial-wrap,
  .newsletter-grid,
  .faq-grid {
    gap: 44px;
  }

  .access-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .access-card .button {
    justify-self: start;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand small {
    display: none;
  }

  .main-nav .nav-login {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .hero {
    padding: 62px 0 66px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

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

  .text-link {
    text-align: center;
  }

  .hero-mark-inner {
    padding: 26px 20px 22px;
  }

  .promise-grid,
  .feature-grid,
  .method-steps {
    grid-template-columns: 1fr;
  }

  .promise p {
    padding: 22px 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .promise p:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 74px 0;
  }

  .feature-card,
  .testimonial-cta,
  .access-card,
  .form-placeholder {
    padding: 26px;
  }

  .access-card .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-page table,
  .legal-page tbody,
  .legal-page tr,
  .legal-page th,
  .legal-page td {
    display: block;
  }

  .legal-page th {
    border-bottom: 0;
  }

  .legal-page td {
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
