:root {
  --ink: #0c1222;
  --ink-2: #151c2e;
  --paper: #f4f1ea;
  --muted: #5c6578;
  --line: rgba(15, 23, 42, 0.1);
  --teal: #0f766e;
  --sand: #c4a574;
  --sky: #0369a1;
  --focus: #0ea5a0;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(12, 18, 34, 0.12);
  --font: "Figtree", system-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(1200px 600px at 10% -10%, rgba(15, 118, 110, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 165, 116, 0.18), transparent 50%),
    linear-gradient(180deg, #f7f4ee 0%, #eef2f4 48%, #e8eef2 100%);
  min-height: 100vh;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-glyph {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #134e4a, #0f766e);
  color: #ecfdf5; font-family: var(--display); font-weight: 700; font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.mark-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.mark-course { font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.mark-level { font-size: 12px; color: var(--muted); font-weight: 600; }
.header-nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.header-nav a { text-decoration: none; color: var(--muted); }
.header-nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 56px 0 28px; overflow: clip; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(12,18,34,.04), transparent 40%),
    repeating-linear-gradient(-12deg, transparent, transparent 22px, rgba(15,118,110,.035) 22px, rgba(15,118,110,.035) 23px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
}
.brand-title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.02em;
  color: var(--ink);
}
.hero-lead {
  margin: 18px 0 0; max-width: 34rem; font-size: 18px; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn.primary {
  background: var(--ink); color: #f8fafc;
  box-shadow: 0 10px 24px rgba(12,18,34,.22);
}
.btn.primary:hover { transform: translateY(-1px); background: #172033; }
.btn.ghost {
  background: rgba(255,255,255,.55); border-color: var(--line); color: var(--ink);
}
.btn.ghost:hover { background: #fff; }

.hero-panel { display: grid; place-items: center; }
.panel-card {
  width: min(100%, 360px);
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #e2e8f0; border-radius: 24px; padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  animation: rise .8s ease both;
}
.panel-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(148,163,184,.18);
  font-size: 14px; font-weight: 600;
}
.panel-row:last-of-type { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.cyan { background: #2dd4bf; }
.dot.sand { background: #e7c28a; }
.dot.teal { background: #38bdf8; }
.dot.ink { background: #60a5fa; }
.panel-meter {
  margin-top: 16px; display: grid; gap: 8px;
}
.panel-meter span {
  display: block; height: 7px; border-radius: 999px;
  background: rgba(148,163,184,.2); position: relative; overflow: hidden;
}
.panel-meter span::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #0d9488, #fbbf24);
  animation: fill .9s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fill {
  from { transform: scaleX(.2); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

/* Modules */
.modules { padding: 28px 0 48px; }
.section-head { max-width: 40rem; margin-bottom: 18px; }
.section-head h2 {
  margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em;
}
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.module-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.module {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
  min-height: 0;
}
.module::before {
  content: ""; position: absolute; inset: auto -30% -50% auto; width: 110px; height: 110px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  opacity: .45; pointer-events: none;
}
.module:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, white);
  box-shadow: 0 10px 24px rgba(12,18,34,.08);
}
.module-num {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; color: var(--accent);
}
.module-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
}
.module-icon svg { width: 16px; height: 16px; }
.module h3 {
  margin: 2px 0 0; font-size: 14px; line-height: 1.3; letter-spacing: -.01em;
}
.module p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; flex: 1; }
.module-cta {
  margin-top: 4px; font-weight: 750; font-size: 12px; color: var(--accent);
}

/* About */
.about {
  padding: 28px 0 72px;
}
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px;
  padding: 28px; border-radius: 24px;
  background: linear-gradient(145deg, #102033, #163247);
  color: #e2e8f0;
  box-shadow: var(--shadow);
}
.about h2 {
  margin: 0; font-family: var(--display); font-size: clamp(26px, 3vw, 36px);
}
.about-grid > div > p { margin: 12px 0 0; color: #94a3b8; font-size: 16px; max-width: 36rem; }
.about-points {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: center;
}
.about-points li {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(148,163,184,.18);
  font-size: 15px; color: #cbd5e1;
}
.about-points strong { color: #f8fafc; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  padding: 28px 0 36px;
}
.footer-inner { text-align: center; }
.footer-badge {
  display: inline-flex; flex-direction: column; gap: 2px;
  font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.footer-badge span:last-child { font-size: 12px; color: var(--muted); font-weight: 600; }
.footer-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 1000px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .panel-card { width: min(100%, 420px); }
  .header-nav { display: none; }
  .mark-course { max-width: 220px; }
}
@media (max-width: 560px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .hero { padding-top: 36px; }
  .hero-lead { font-size: 16px; }
  .module-grid { grid-template-columns: 1fr; }
  .module { padding: 14px; }
}
