:root {
  --pearl: #f5f7fb;
  --silver: #c8d0dc;
  --navy: #1a2744;
  --navy-deep: #121b30;
  --cyan: #7eb8c9;
  --cyan-soft: #b7d9e4;
  --lavender: #c9b8e0;
  --lavender-faint: rgba(201, 184, 224, 0.35);
  --text: #1e2a40;
  --muted: #5a6880;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(244, 247, 251, 0.92);
  --line: rgba(26, 39, 68, 0.12);
  --shadow: 0 18px 50px rgba(18, 27, 48, 0.12);
  --radius: 1.25rem;
  --font-display: "Comfortaa", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(126, 184, 201, 0.28), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(201, 184, 224, 0.22), transparent 55%),
    linear-gradient(180deg, #eef3f8 0%, var(--pearl) 40%, #e7eef6 100%);
  min-height: 100vh;
}

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

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

a:hover {
  color: #2a4a6e;
}

h1,
h2,
h3,
.brand,
.brand-mark,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--navy-deep);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

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

.muted,
.lede {
  color: var(--muted);
}

.lede {
  font-size: 1.08rem;
  font-weight: 300;
  max-width: 38rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--navy-deep);
}

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

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

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

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-soft), var(--lavender));
  color: var(--navy-deep) !important;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
}

/* Buttons — moonlight rings */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(126, 184, 201, 0.15) 55%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: moonlight-ring 0.9s ease-out;
}

@keyframes moonlight-ring {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

.btn-primary {
  background: linear-gradient(135deg, #d7e8f0 0%, #9ec9d9 45%, #b9a8d4 100%);
  color: var(--navy-deep);
  box-shadow: 0 10px 30px rgba(126, 184, 201, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--navy-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--navy);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
}

/* Hero — full-bleed with brand plane */
.hero-tide {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy-deep);
}

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

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

.hero-tide__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(18, 27, 48, 0.82) 8%, rgba(18, 27, 48, 0.35) 48%, rgba(126, 184, 201, 0.18) 100%),
    radial-gradient(600px 320px at 80% 20%, rgba(201, 184, 224, 0.35), transparent 70%);
  animation: tide-shift 14s ease-in-out infinite alternate;
}

@keyframes tide-shift {
  from {
    opacity: 0.92;
  }
  to {
    opacity: 1;
  }
}

.hero-tide__content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
  color: var(--pearl);
}

.brand-mark {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 500;
  color: #f4f7fb;
  margin: 0 0 0.85rem;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  animation: rise-in 0.9s ease both;
}

.hero-tide__content h1 {
  color: #e8f0f7;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 400;
  max-width: 28rem;
  margin: 0 0 1rem;
  animation: rise-in 0.9s ease 0.12s both;
}

.hero-tide__content .lede {
  color: rgba(232, 240, 247, 0.88);
  margin-bottom: 1.5rem;
  animation: rise-in 0.9s ease 0.22s both;
}

.hero-tide__content .btn {
  animation: rise-in 0.9s ease 0.32s both;
}

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

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-tide {
  background:
    linear-gradient(180deg, rgba(183, 217, 228, 0.22), rgba(201, 184, 224, 0.12));
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

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

.page-hero .lede {
  margin-top: 0.75rem;
}

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

.moon-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.moon-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(180deg, transparent 55%, rgba(126, 184, 201, 0.12));
  pointer-events: none;
}

.moon-panel > * {
  position: relative;
}

.feature-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

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

.offer-card {
  display: grid;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.offer-card__body {
  padding: 0 1.15rem 1.25rem;
}

.offer-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.evidence {
  display: grid;
  gap: 1.25rem;
}

.evidence blockquote {
  margin: 0;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.evidence footer {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(126, 184, 201, 0.35), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(201, 184, 224, 0.22));
  border: 1px solid var(--line);
}

.cta-band p {
  margin-inline: auto;
  max-width: 34rem;
  color: var(--muted);
}

.team-grid,
.blog-grid,
.cohort-list,
.pricing-list {
  display: grid;
  gap: 1.25rem;
}

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

.team-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.team-card__body {
  padding: 1.1rem 1.2rem 1.35rem;
}

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

.blog-card {
  display: grid;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.blog-card__body {
  padding: 0 1.15rem 1.25rem;
}

.cohort-item,
.pricing-list article,
.service-detail,
.legal-block {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
}

.cohort-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: start;
}

.price {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 44rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.cover-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.cover-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

.form-status,
.island-error,
[data-form-error] {
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #1f5c4a;
}

.form-status.is-error,
.island-error,
[data-form-error] {
  color: #8a2f3b;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(26, 39, 68, 0.06));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.75rem;
}

.footer-brand {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.footer-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.footer-text {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.cookie-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(245, 247, 251, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cookie-inner p {
  margin: 0;
  color: var(--muted);
}

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

/* 404 */
.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

@media (max-width: 900px) {
  .split,
  .offer-grid,
  .blog-grid,
  .team-grid,
  .footer-grid,
  .cohort-item {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(245, 247, 251, 0.97);
    border-bottom: 1px solid var(--line);
    gap: 0.75rem;
  }

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

  .header-inner {
    position: relative;
  }
}
