@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600&display=swap');

:root {
  --ink: #07111f;
  --navy: #0b182b;
  --navy-2: #102139;
  --paper: #f6f3eb;
  --muted: #9aa8b9;
  --line: rgba(255, 255, 255, .12);
  --lime: #c9ff22;
  --cyan: #51dbd2;
  --danger: #ff6b5f;
  --radius-xl: 32px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: #fff;
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }

.demo-shell {
  position: relative;
  min-height: 100vh;
  padding: 28px clamp(22px, 5vw, 80px) 70px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(circle at 76% 20%, rgba(81,219,210,.19), transparent 30%),
    radial-gradient(circle at 15% 86%, rgba(201,255,34,.1), transparent 28%),
    var(--ink);
}

.demo-shell::after {
  content: "";
  position: absolute;
  right: -11vw;
  bottom: -32vw;
  width: 72vw;
  aspect-ratio: 1;
  border: 1px solid rgba(81,219,210,.3);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(81,219,210,.03), 0 0 0 14vw rgba(81,219,210,.025);
  pointer-events: none;
}

.demo-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .08em;
}

.demo-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-intro {
  position: relative;
  z-index: 1;
  max-width: 890px;
  padding-top: clamp(60px, 11vh, 130px);
}

.eyebrow, .sm-kicker {
  margin: 0 0 21px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.demo-intro h1 {
  max-width: 900px;
  margin: 0;
  font: 600 clamp(46px, 7.7vw, 108px)/.93 Unbounded, sans-serif;
  letter-spacing: -.07em;
}

.demo-copy {
  max-width: 620px;
  margin: 36px 0 0;
  color: #afbac8;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
}

.demo-actions {
  display: flex;
  align-items: end;
  gap: 20px;
  margin-top: 42px;
}

.demo-primary {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 18px 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--lime);
  box-shadow: 0 18px 46px rgba(201,255,34,.12);
  color: var(--ink);
  font-weight: 800;
}

.demo-primary svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; }

.course-picker { display: grid; gap: 7px; }
.course-picker span { color: #7f8da0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.course-picker select {
  width: min(330px, 44vw);
  min-height: 62px;
  padding: 0 44px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy-2);
  color: #fff;
}

.demo-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 62px 0 0;
  padding: 0;
  list-style: none;
  color: #8d9bad;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.demo-facts li { display: flex; align-items: center; gap: 10px; }
.demo-facts span { color: var(--lime); }

.sm-dialog[hidden] { display: none; }
.sm-dialog { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.sm-dialog__backdrop { position: absolute; inset: 0; background: rgba(1,7,15,.8); backdrop-filter: blur(15px); }

.sm-dialog__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(430px, 1.22fr);
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-xl);
  outline: none;
  background: var(--navy);
  box-shadow: 0 42px 120px rgba(0,0,0,.55);
  animation: dialog-in .4s var(--ease) both;
}

@keyframes dialog-in { from { opacity: 0; transform: translateY(22px) scale(.98); } }

.sm-dialog__close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(5,14,27,.6);
  color: #fff;
  transition: transform .2s var(--ease), background .2s;
}
.sm-dialog__close:hover { transform: rotate(5deg); background: #17263a; }
.sm-dialog__close svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.sm-course-art {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 1px) 0 0 calc(var(--radius-xl) - 1px);
  background: #16243a;
}
.sm-course-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,10,20,.08), rgba(3,10,20,.3) 45%, rgba(3,10,20,.98));
}
.sm-course-art img { width: 100%; height: 100%; min-height: 630px; object-fit: cover; filter: saturate(.78) contrast(1.05); }
.sm-course-art__shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(135deg, rgba(81,219,210,.13), transparent 45%); mix-blend-mode: screen; }
.sm-course-art__meta { position: absolute; z-index: 2; inset: 28px 24px auto; display: flex; align-items: start; justify-content: space-between; }
.sm-course-art__type { padding: 8px 11px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sm-course-art__caption { position: absolute; z-index: 2; right: 26px; bottom: 30px; left: 26px; }
.sm-course-art__caption span { display: block; margin-bottom: 8px; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.sm-course-art__caption strong {
  display: block;
  width: 100%;
  max-width: 100%;
  font: 500 clamp(24px,2.35vw,36px)/1.04 Unbounded,sans-serif;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

.sm-dialog__content { display: flex; min-height: 630px; padding: clamp(42px,5vw,68px); align-items: center; }
.sm-form-state, .sm-result { width: 100%; }
.sm-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.sm-kicker span { width: 24px; height: 1px; background: currentColor; }
.sm-dialog h2 { margin: 0; font: 500 clamp(38px,5vw,62px)/.98 Unbounded,sans-serif; letter-spacing: -.065em; }
.sm-lead, .sm-result > p:not(.sm-kicker) { margin: 23px 0 28px; color: #aab5c4; font-size: 15px; line-height: 1.65; }
.sm-lead strong { color: #e8edf3; font-weight: 600; }

.sm-form { display: grid; gap: 16px; }
.sm-field { display: grid; gap: 8px; }
.sm-field > span { color: #a7b2c1; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sm-field b { color: var(--lime); }
.sm-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  outline: none;
  background: #112139;
  color: #fff;
  transition: border .2s, box-shadow .2s, background .2s;
}
.sm-field input::placeholder { color: #69788b; }
.sm-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(81,219,210,.12); background: #132641; }
.sm-field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,107,95,.1); }
.sm-field__error { min-height: 0; color: #ff978e; font-size: 12px; }
.sm-field__error:empty { display: none; }

.sm-consent { position: relative; display: grid; grid-template-columns: 19px 1fr; gap: 10px; color: #8997a9; font-size: 11px; line-height: 1.5; cursor: pointer; }
.sm-consent input { position: absolute; opacity: 0; pointer-events: none; }
.sm-consent__box { display: grid; width: 18px; height: 18px; margin-top: 1px; place-items: center; border: 1px solid #536176; border-radius: 4px; transition: .2s; }
.sm-consent__box svg { width: 13px; fill: none; stroke: var(--ink); stroke-width: 2.2; opacity: 0; }
.sm-consent input:checked + .sm-consent__box { border-color: var(--lime); background: var(--lime); }
.sm-consent input:checked + .sm-consent__box svg { opacity: 1; }
.sm-consent input:focus-visible + .sm-consent__box { box-shadow: 0 0 0 3px rgba(81,219,210,.22); }
.sm-consent a { color: #bdc8d4; text-underline-offset: 2px; }
.sm-consent--optional { padding-top: 2px; }

.sm-submit, .sm-secondary {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 20px;
  border: 0;
  border-radius: 7px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  transition: transform .2s var(--ease), filter .2s;
}
.sm-submit:hover, .sm-secondary:hover { transform: translateY(-2px); filter: brightness(1.04); }
.sm-submit:disabled { cursor: wait; transform: none; filter: saturate(.65); }
.sm-submit__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 5px; background: rgba(7,17,31,.1); }
.sm-submit svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sm-submit__spinner { display: none; animation: spin .75s linear infinite; }
.sm-submit__spinner circle { stroke-dasharray: 38 20; }
.sm-form.is-loading .sm-submit__arrow { display: none; }
.sm-form.is-loading .sm-submit__spinner { display: block; }
@keyframes spin { to { transform: rotate(1turn); } }

.sm-assurance { display: flex; gap: 8px; margin: -1px 0 0; color: #748397; font-size: 10px; line-height: 1.4; }
.sm-assurance svg { flex: 0 0 auto; width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.sm-result__mark { display: grid; width: 64px; height: 64px; margin-bottom: 32px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); }
.sm-result__mark svg { width: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.sm-result__mark--error { background: var(--danger); font: 700 30px Unbounded,sans-serif; }
.sm-result a { color: var(--cyan); }
.sm-secondary { justify-content: center; margin-top: 30px; }

.state-tools {
  position: fixed;
  z-index: 1100;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(8,18,32,.9);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}
.state-tools span { padding: 0 8px; color: #78879a; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.state-tools button { padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #9aa8b9; font-size: 11px; }
.state-tools button.is-active { background: #203047; color: #fff; }

body.has-dialog { overflow: hidden; }

@media (max-width: 760px) {
  .demo-label { display: none; }
  .demo-intro h1 { font-size: clamp(42px, 13.7vw, 68px); }
  .demo-actions { align-items: stretch; flex-direction: column; }
  .course-picker select { width: 100%; }
  .demo-facts { display: grid; gap: 13px; }
  .sm-dialog { align-items: end; padding: 0; }
  .sm-dialog__panel { grid-template-columns: 1fr; width: 100%; max-height: 94dvh; border-width: 1px 0 0; border-radius: 26px 26px 0 0; }
  .sm-course-art { min-height: 136px; max-height: 136px; border-radius: 25px 25px 0 0; }
  .sm-course-art img { min-height: 136px; }
  .sm-course-art__meta { inset: 18px 70px auto 18px; }
  .sm-course-art__caption { right: 18px; bottom: 17px; left: 18px; }
  .sm-course-art__caption strong { max-width: 100%; font-size: 20px; line-height: 1.08; overflow-wrap: normal; hyphens: none; }
  .sm-dialog__close { top: 14px; right: 14px; }
  .sm-dialog__content { min-height: 0; padding: 23px 22px max(24px, env(safe-area-inset-bottom)); }
  .sm-dialog h2 { font-size: clamp(34px,9.8vw,43px); }
  .sm-lead { margin: 13px 0 18px; }
  .sm-form { gap: 12px; }
  .sm-field input { height: 50px; }
  .state-tools { display: none; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .sm-dialog__panel { max-height: calc(100vh - 24px); }
  .sm-course-art, .sm-course-art img, .sm-dialog__content { min-height: 600px; }
  .sm-dialog__content { padding-top: 36px; padding-bottom: 36px; }
  .sm-dialog h2 { font-size: 48px; }
  .sm-lead { margin: 15px 0 20px; }
  .sm-form { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
