:root {
  --ink: #0b1f3a;
  --ink-soft: #243447;
  --mist: #e7eef5;
  --paper: #f4f7fb;
  --copper: #c4842d;
  --copper-deep: #9a6420;
  --sea: #2f6f7a;
  --line: rgba(11, 31, 58, 0.12);
  --shadow: 0 18px 40px rgba(11, 31, 58, 0.08);
  --radius: 4px;
  --font-display: "Syne", sans-serif;
  --font-body: "Literata", Georgia, serif;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 111, 122, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(196, 132, 45, 0.14), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--paper) 40%, #e9f0f4 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

.inline-error {
  background: #f8e6e6;
  color: #6b1d1d;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2b4b4;
}

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 30%, var(--copper), transparent 45%),
    linear-gradient(145deg, var(--ink), var(--sea));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

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

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--copper-deep);
}

.nav-cta {
  background: var(--ink);
  color: #f4f7fb !important;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--sea);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-immersive {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #f4f7fb;
  overflow: hidden;
}

.hero-immersive::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.28) 0%, rgba(11, 31, 58, 0.72) 70%, rgba(11, 31, 58, 0.9) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-immersive .hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  margin: 0 0 0.35em;
  letter-spacing: -0.03em;
  animation: riseIn 0.9s ease both;
}

.hero-line {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  max-width: 34rem;
  margin-bottom: 1.5rem;
  color: rgba(244, 247, 251, 0.92);
  animation: riseIn 1s ease 0.12s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--copper);
  color: #111;
}

.btn-primary:hover {
  background: #d29742;
  color: #111;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(244, 247, 251, 0.55);
  color: #f4f7fb;
}

.btn-secondary:hover {
  background: rgba(244, 247, 251, 0.1);
  color: #fff;
}

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

.btn-ink {
  background: var(--ink);
  color: #f4f7fb;
}

.btn-ink:hover {
  background: var(--sea);
  color: #fff;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--sea);
  margin-bottom: 0.6rem;
}

.proof-strip {
  background: var(--ink);
  color: #e8eef5;
  padding: 1.75rem 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--copper);
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.feature-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}

.feature-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--copper);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.course-preview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.course-preview img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.course-preview-body {
  padding: 2rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.panel h3 {
  font-size: 1.2rem;
}

.quote {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.quote-meta {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: rgba(11, 31, 58, 0.7);
}

.cta-band {
  margin: 2rem 0 4rem;
  padding: 2.5rem;
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.94), rgba(47, 111, 122, 0.9)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1400&q=80") center / cover;
  color: #f4f7fb;
}

.cta-band a {
  color: #fff;
}

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

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 40rem;
  font-size: 1.1rem;
}

.course-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-card .body {
  padding: 1.2rem;
}

.price-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.price-tier {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  border-color: var(--copper);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

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

.price span {
  font-size: 0.95rem;
  color: rgba(11, 31, 58, 0.65);
}

.price-tier ul {
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
  flex: 1;
}

.blog-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-list img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

.prose {
  max-width: 680px;
}

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

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

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b23b3b;
}

.field-error {
  min-height: 1.2em;
  color: #9a2b2b;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: #e5f3ea;
  color: #1f5b34;
}

.form-status.is-error {
  background: #f8e6e6;
  color: #6b1d1d;
}

.address-block {
  font-style: normal;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.4rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

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

th {
  font-family: var(--font-display);
  background: rgba(11, 31, 58, 0.04);
}

.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: #d7e0ea;
  padding: 3rem 1.25rem 1.5rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-display);
  color: var(--copper);
  margin-bottom: 0.6rem;
}

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

.footer-links a,
.site-footer a {
  color: #d7e0ea;
  text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
  color: #fff;
}

.footer-address {
  font-style: normal;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: riseIn 0.45s ease both;
}

.cookie-banner-inner {
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.module {
  background: #fff;
  border-left: 3px solid var(--copper);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--copper);
  padding: 1rem 1.1rem;
}

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

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

.rating {
  font-family: var(--font-display);
  color: var(--copper-deep);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.2em;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 920px) {
  .proof-grid,
  .grid-3,
  .price-tiers,
  .footer-grid,
  .feature-row,
  .course-preview,
  .contact-layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .price-tier.featured {
    transform: none;
  }

  .blog-list article {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f4f7fb;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.1rem;
    display: none;
  }

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

  .nav-cta {
    text-align: center;
  }
}
