/* Shared stylesheet for all Codemowers sites, derived from codemowers.cloud */

:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #5d6b68;
  --line: #e2e7e5;
  --line-strong: #d2dad7;
  --panel: #f6f8f7;
  --accent: #1f7a64;
  --accent-strong: #205c4e;
  --accent-dark: #143b33;
  --accent-tint: #e8f2ee;
  --on-dark: #d7e2de;
  --on-dark-muted: #c4d2ce;

  --width: 1120px;
  --gutter: max(20px, calc((100% - var(--width)) / 2));

  --radius: 14px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(20, 32, 30, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 32, 30, 0.06), 0 1px 2px rgba(20, 32, 30, 0.04);
  --shadow-md: 0 12px 30px -12px rgba(20, 32, 30, 0.18), 0 2px 6px rgba(20, 32, 30, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(20, 32, 30, 0.28);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #ffffff;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent-tint);
  color: var(--accent-dark);
}

h1,
h2,
h3,
.brand,
.nav-links,
.button {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

h2,
h3 {
  letter-spacing: -0.015em;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  color: #ffffff;
  background: rgba(18, 26, 24, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav .brand {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 22px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-links .nav-cta:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- Sections ----------
   Every top level fenced div in the Markdown is a full-bleed section,
   content is kept within --width by the side padding. */
main > * {
  padding: 72px var(--gutter) 88px;
}

main h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

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

.lead {
  max-width: 760px;
  margin: 0 auto 52px;
  color: var(--muted);
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.65;
}

.lead p {
  margin: 0 0 1em;
}

.center {
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(38% 58% at 14% 6%, rgba(123, 196, 114, 0.12) 0%, rgba(123, 196, 114, 0) 70%),
    radial-gradient(42% 55% at 86% 0%, rgba(50, 108, 229, 0.08) 0%, rgba(50, 108, 229, 0) 70%),
    radial-gradient(55% 65% at 50% 108%, rgba(0, 201, 246, 0.08) 0%, rgba(0, 201, 246, 0) 70%),
    radial-gradient(40% 50% at 78% 92%, rgba(109, 65, 255, 0.05) 0%, rgba(109, 65, 255, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, #fafdfb 100%);
}

.hero img {
  width: min(340px, 78vw);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 24px rgba(20, 32, 30, 0.1));
}

.hero h1 {
  max-width: 880px;
  margin: 0 auto 22px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.22rem;
}

.hero p + p {
  margin-top: 1em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.actions p {
  display: contents;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-strong);
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(31, 122, 100, 0.55);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Dark bands ---------- */
.dark {
  color: #ffffff;
  background:
    radial-gradient(48% 80% at 10% 0%, rgba(123, 196, 114, 0.16) 0%, rgba(123, 196, 114, 0) 62%),
    radial-gradient(46% 95% at 92% 8%, rgba(109, 65, 255, 0.14) 0%, rgba(109, 65, 255, 0) 60%),
    radial-gradient(60% 100% at 50% 112%, rgba(0, 201, 246, 0.12) 0%, rgba(0, 201, 246, 0) 60%),
    linear-gradient(180deg, #172220 0%, #111b19 100%);
}

/* Cooler, AI-leaning tint */
.dark.cool {
  background:
    radial-gradient(50% 85% at 12% 0%, rgba(0, 201, 246, 0.16) 0%, rgba(0, 201, 246, 0) 62%),
    radial-gradient(46% 95% at 90% 6%, rgba(109, 65, 255, 0.16) 0%, rgba(109, 65, 255, 0) 60%),
    radial-gradient(60% 100% at 50% 112%, rgba(50, 108, 229, 0.13) 0%, rgba(50, 108, 229, 0) 60%),
    linear-gradient(180deg, #141d21 0%, #101a1d 100%);
}

.dark .lead {
  color: var(--on-dark-muted);
}

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

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

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

.dark .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  backdrop-filter: blur(2px);
}

.dark .card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.dark .card p,
.dark .card li {
  color: var(--on-dark);
}

.card strong {
  color: var(--ink);
}

.dark .card strong {
  color: #ffffff;
}

/* Bulleted lists with accent dots */
.card ul,
.media ul,
.panel ul {
  margin: 18px 0;
  padding-left: 0;
  list-style: none;
  line-height: 1.5;
}

.card li,
.media li,
.panel li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
}

.card li::before,
.media li::before,
.panel li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.dark li::before {
  box-shadow: 0 0 0 3px rgba(31, 122, 100, 0.25) !important;
}

/* ---------- Panel: course schedule, price and links ---------- */
.panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: 40px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.dark .panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.panel ul {
  margin: 8px 0 0;
}

.panel p {
  margin: 0;
}

.panel .actions {
  margin-top: 16px;
  justify-content: flex-start;
}

.price {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.price small {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.dark .price small {
  color: var(--on-dark-muted);
}

/* ---------- Pill link ---------- */
.pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin: 44px auto 0;
  padding: 18px 26px;
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}

.pill p {
  margin: 0;
}

.pill a {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--accent-strong);
  text-decoration: none;
  margin-left: 12px;
  white-space: nowrap;
}

.pill a:hover {
  text-decoration: underline;
}

/* ---------- Logo strip ---------- */
.logos h3 {
  margin: 56px 0 18px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.logos p {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  align-items: center;
  justify-content: center;
  margin: 0 calc(-1 * var(--gutter));
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logos img {
  max-width: 150px;
  max-height: 46px;
  object-fit: contain;
  opacity: 0.92;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.logos img:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* ---------- Media rows: image next to text ---------- */
.media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}

.media > p img {
  width: 100%;
  height: auto;
  display: block;
}

.media.reverse > p:first-child {
  order: 2;
}

.media h3 {
  margin: 0 0 14px;
  font-size: 1.7rem;
}

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

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.founder > p img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.founder h2 {
  text-align: left;
}

.founder p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.quote {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 18px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.quote:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.quote p {
  margin: 0;
  color: var(--on-dark-muted);
}

.quote img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.quote a {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  text-decoration: none;
}

.quote blockquote {
  grid-column: 1 / -1;
  margin: 14px 0 0;
}

.quote blockquote p {
  color: #e2ebe8;
  font-style: italic;
}

/* ---------- Forms ---------- */
form {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
}

form label {
  margin-bottom: 6px;
  font-weight: 700;
}

form input {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  background: #ffffff;
}

form input[type=submit] {
  align-self: center;
  margin: 8px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 16px;
  color: rgba(255, 255, 255, 0.72);
  background: #0d1211;
  text-align: center;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .family {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .family a {
  text-decoration: none;
}

.site-footer .family strong {
  color: #ffffff;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  main > * {
    padding-top: 52px;
    padding-bottom: 64px;
  }

  .site-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    backdrop-filter: none;
    background: var(--ink);
  }

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

  .cards,
  .media,
  .quotes,
  .founder {
    grid-template-columns: 1fr;
  }

  .media.reverse > p:first-child {
    order: 0;
  }
}
