:root {
  --ink: #1b3a4b;
  --ink-soft: #3a5566;
  --muted: #6b7f8c;
  --line: #d7e0e6;
  --paper: #f4f7f8;
  --white: #ffffff;
  --accent: #2f6f7e;
  --accent-deep: #1e4f5c;
  --sand: #e8eef1;
  --success: #2d6a4f;
  --error: #9b2c2c;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(27, 58, 75, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(123, 163, 181, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 20%, rgba(47, 111, 126, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 40%, var(--sand) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 248, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 450;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(27, 58, 75, 0.88) 18%, rgba(27, 58, 75, 0.45) 55%, rgba(27, 58, 75, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
  color: var(--white);
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.hero-content .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  margin: 0 0 0.35em;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 400;
  max-width: 22ch;
}

.hero-content p {
  color: rgba(244, 247, 248, 0.9);
  font-size: 1.05rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--ink);
}

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

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.media-plane {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.media-plane img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.benefit-list li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.benefit-list h3 {
  margin-bottom: 0.35rem;
}

.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.75rem;
}

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

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

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

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
}

.tile-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sand);
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile:hover .tile-media img {
  transform: scale(1.04);
}

.tile h3 {
  margin: 0;
  color: var(--ink);
}

.tile p {
  margin: 0;
  font-size: 0.98rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-block: 1px solid var(--line);
}

.proof-bar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
}

.proof-bar span {
  color: var(--muted);
  font-size: 0.95rem;
}

.quote-block {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink);
}

.quote-block cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.tier {
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.tier.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.4rem 0 1rem;
}

.tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.tier li + li {
  margin-top: 0.45rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero p {
  max-width: 42ch;
  font-size: 1.08rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--sand);
  color: var(--ink);
  font-weight: 560;
}

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

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

.form .error-msg,
.form .form-status,
.inline-error {
  color: var(--error);
  font-size: 0.9rem;
  margin: 0;
}

.form .form-status.success {
  color: var(--success);
}

.contact-aside {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.contact-aside p {
  margin-bottom: 0.5rem;
}

.modules {
  display: grid;
  gap: 1rem;
}

.module {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 560;
  color: var(--ink);
}

.faq p {
  margin-top: 0.75rem;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  background: var(--ink);
  color: rgba(244, 247, 248, 0.82);
}

.site-footer a {
  color: rgba(244, 247, 248, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  max-width: 420px;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.45s ease both;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

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

.reveal {
  animation: rise 0.8s ease both;
}

.reveal-delay {
  animation-delay: 0.15s;
}

@media (max-width: 900px) {
  .course-grid,
  .blog-grid,
  .tier-grid,
  .review-grid,
  .split,
  .footer-grid,
  .proof-bar {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(244, 247, 248, 0.98);
    border-bottom: 1px solid var(--line);
    gap: 0.85rem;
  }

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

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

  .hero {
    min-height: 78vh;
  }
}
