:root {
  --navy: #143a66;
  --navy-deep: #0c2344;
  --ink: #172033;
  --muted: #526075;
  --paper: #f4efe6;
  --white: #fffdf9;
  --line: #e5dccf;
  --amber: #e39a2d;
  --teal: #1c7c74;
  --shadow: 0 22px 50px rgba(20, 58, 102, 0.1);
  --radius: 24px;
  --header: 76px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(227, 154, 45, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(20, 58, 102, 0.08), transparent 55%),
    var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--navy-deep);
  font-weight: 560;
  font-size: 0.95rem;
}

.nav-links a.is-active {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.nav-links a.btn {
  color: white;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
}

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

.btn-primary:hover { background: var(--navy-deep); }

.btn-amber {
  background: var(--amber);
  color: var(--navy-deep);
}

.btn-amber:hover { background: #f0ad45; }

.btn-ghost {
  background: transparent;
  border-color: rgba(20, 58, 102, 0.25);
  color: var(--navy);
}

.btn-ghost:hover { background: rgba(255, 253, 249, 0.7); }

.btn-light {
  background: white;
  color: var(--navy-deep);
}

.hero {
  padding: 42px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  color: var(--navy-deep);
  font-weight: 680;
}

h1 em {
  font-style: italic;
  color: #9a6412;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
}

.hero-visual {
  background: linear-gradient(160deg, var(--navy) 0%, #1d5c8a 72%, #1c7c74 140%);
  color: white;
  border-radius: 32px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  right: -60px;
  bottom: -40px;
}

.code-card,
.float-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 253, 249, 0.96);
  color: var(--ink);
  border-radius: 18px;
}

.code-card {
  padding: 18px 18px 16px;
}

.code-top {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.code-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e7c9a2;
  display: block;
}

.code-card p {
  margin: 0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
}

.code-card .muted { color: #7d6a52; }
.code-card .good { color: var(--teal); }

.float-card {
  width: auto;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.float-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
}

.float-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.code-card { grid-row: span 2; }
.hero-side {
  display: grid;
  gap: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 10px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--navy);
}

.stat span { color: var(--muted); font-size: 0.92rem; }

.note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 8px 0 0;
}

section { padding: 72px 0; }

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-head h2,
.band h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: var(--navy-deep);
}

.band h2,
.contact-copy h2 { color: white; }

.contact .kicker { color: #f3d7a2; }

section[id] { scroll-margin-top: 88px; }

.section-head p { color: var(--muted); font-size: 1.05rem; }

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

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checklist li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0;
  top: 16px;
}

.portrait {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}

.portrait img {
  width: 92px;
  height: auto;
  margin-bottom: 12px;
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 16px;
}

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

.card, .course, .step, .faq details, .info-card, .form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.card, .course {
  padding: 20px;
}

.card h3, .course h3, .step h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.card p, .course p, .step p { margin: 0; color: var(--muted); }

.card:hover, .course:hover { transform: translateY(-3px); transition: transform 0.2s ease; }

.curriculum {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.curriculum th {
  background: var(--navy);
  color: white;
  font-weight: 600;
}

.curriculum td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 90px;
}

.course {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.course b {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--amber);
}

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

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step { padding: 20px; }

.step span {
  display: inline-block;
  color: #9a6412;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.band {
  background: var(--navy-deep);
  color: white;
  border-radius: 32px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}

.band p { color: rgba(255, 253, 249, 0.78); }

.faq details { padding: 6px 18px; }

.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
}

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

.contact {
  background: var(--navy-deep);
  color: white;
  border-radius: 36px 36px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.contact-copy p { color: rgba(255, 253, 249, 0.78); }

.info-stack { display: grid; gap: 12px; margin-top: 22px; }

.info-card {
  background: rgba(255, 253, 249, 0.06);
  border-color: rgba(255, 253, 249, 0.12);
  padding: 16px 18px;
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: var(--font);
  letter-spacing: 0;
  color: var(--amber);
}

.info-card a, .info-card p {
  color: white;
  text-decoration: none;
}

.info-card a { display: inline-block; margin-right: 10px; font-weight: 650; }
.info-card a:hover { text-decoration: underline; }

.form-card { padding: 22px; color: var(--ink); }

.form-card h3 { font-size: 1.8rem; margin-bottom: 4px; }
.form-card > p { margin-top: 0; color: var(--muted); }

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  margin: 12px 0 6px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
  color: var(--ink);
}

textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(227, 154, 45, 0.85);
  outline-offset: 2px;
}

input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #a33b24;
}

.form-card .btn { width: 100%; margin-top: 16px; }

#form-status {
  background: #e7f4f1;
  color: #0e4f49;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}

.site-footer {
  background: #08182e;
  color: rgba(255, 253, 249, 0.8);
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer h2, .site-footer h3 {
  color: white;
  font-family: var(--font);
  letter-spacing: 0;
  font-size: 1rem;
}

.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 26px;
  padding-top: 16px;
  font-size: 0.9rem;
}

.callbar {
  display: none;
}

@media (max-width: 980px) {
  .split, .contact-grid, .band, .footer-grid, .course {
    grid-template-columns: 1fr;
  }

  .stats, .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .course a { justify-self: start; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 18px;
    gap: 4px;
  }

  .nav-links.is-open { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; }
  .stats, .grid-3, .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .hero-visual, .hero-side { grid-template-columns: 1fr; }
  .code-card { grid-row: auto; }
  .band { padding: 24px; }
  body { padding-bottom: 74px; }

  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 24, 46, 0.96);
    z-index: 12;
  }

  .callbar a {
    text-align: center;
    text-decoration: none;
    color: var(--navy-deep);
    background: var(--amber);
    border-radius: 999px;
    padding: 12px 8px;
    font-weight: 750;
  }

  .callbar a.secondary { background: white; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .course:hover { transform: none; }
}
