:root {
  color-scheme: dark;
  --bg: #06080b;
  --panel: #0d1117;
  --panel-soft: #121923;
  --text: #f2f5f7;
  --muted: #9aa7b5;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #20d9ff;
  --green: #42f59b;
  --amber: #ffb020;
  --red: #ff5c7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body.bot-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 11, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  min-width: max-content;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 28px;
  border: 1px solid rgba(32, 217, 255, 0.6);
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  background: rgba(32, 217, 255, 0.09);
}

.site-header nav {
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a {
  transition: color 160ms ease, border-color 160ms ease;
}

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

.nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(66, 245, 155, 0.5);
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 72px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center right;
  opacity: 0.72;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 8, 11, 0.98) 0%, rgba(6, 8, 11, 0.82) 34%, rgba(6, 8, 11, 0.38) 72%),
    linear-gradient(180deg, rgba(6, 8, 11, 0.52) 0%, rgba(6, 8, 11, 0.2) 48%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker,
.module-meta {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(54px, 10vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 30px;
  color: #d6dde5;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(66, 245, 155, 0.72);
  background: var(--green);
  color: #04110b;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats div {
  padding: 18px 20px 18px 0;
}

.hero-stats dt {
  color: var(--cyan);
  font-size: 28px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.intro-grid,
.split,
.terminal-section,
.project {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 92px);
}

.intro-copy {
  color: #c7d0da;
  font-size: 19px;
}

.intro-copy p:last-child,
.project p:last-child {
  margin-bottom: 0;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
}

.value-strip article,
.module,
.format-grid article,
.terminal-window,
.faq details {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 25, 35, 0.86), rgba(10, 14, 20, 0.86));
  box-shadow: var(--shadow);
}

.value-strip article {
  min-height: 220px;
  padding: 28px;
}

.value-strip span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.value-strip p,
.module p,
.format-grid p,
.terminal-copy p,
.project p,
.faq p,
.final-cta p {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
}

.module-list {
  display: grid;
  gap: 14px;
}

.module {
  padding: 24px;
}

.module.accent {
  border-color: rgba(255, 176, 32, 0.45);
}

.module h3,
.format-grid h3 {
  margin-bottom: 10px;
}

.module p,
.format-grid p,
.faq p {
  margin-bottom: 0;
}

.format {
  background: #080c11;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.format-grid article {
  padding: 24px;
}

.terminal-section {
  align-items: center;
}

.terminal-window {
  overflow: hidden;
  background: #05070a;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #0c1117;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #d8f6ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.7;
}

.project {
  background:
    linear-gradient(90deg, rgba(32, 217, 255, 0.08), transparent),
    #080c11;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.06);
  color: #d8e0e8;
}

.instructors {
  background:
    linear-gradient(180deg, rgba(66, 245, 155, 0.05), transparent 42%),
    var(--bg);
}

.instructors .section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.instructor-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(32, 217, 255, 0.12), rgba(66, 245, 155, 0.06) 46%, rgba(255, 176, 32, 0.07)),
    #0b1016;
  box-shadow: var(--shadow);
}

.instructor-avatar {
  position: relative;
  min-height: 264px;
  overflow: hidden;
  border: 1px solid rgba(32, 217, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(32, 217, 255, 0.2), transparent 48%),
    radial-gradient(circle at 70% 18%, rgba(66, 245, 155, 0.28), transparent 32%),
    #080c11;
}

.instructor-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 44%, rgba(6, 8, 11, 0.28)),
    linear-gradient(135deg, rgba(32, 217, 255, 0.14), transparent 38%);
  pointer-events: none;
}

.instructor-avatar.gumiero {
  border-color: rgba(255, 176, 32, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 176, 32, 0.2), transparent 48%),
    radial-gradient(circle at 70% 18%, rgba(32, 217, 255, 0.24), transparent 32%),
    #080c11;
}

.instructor-avatar.gumiero::after {
  background:
    linear-gradient(180deg, transparent 44%, rgba(6, 8, 11, 0.28)),
    linear-gradient(135deg, rgba(255, 176, 32, 0.14), transparent 38%);
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  min-height: 264px;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.98) contrast(1.04);
}

.instructor-avatar.gumiero img {
  object-position: center center;
}

.instructor-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 8px 8px 0;
}

.instructor-body h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 42px);
}

.instructor-body p:not(.module-meta) {
  color: var(--muted);
  font-size: 17px;
}

.profile-link {
  align-self: flex-start;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(32, 217, 255, 0.42);
  color: var(--cyan);
  font-weight: 750;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.faq details {
  padding: 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 780;
}

.faq summary::marker {
  color: var(--cyan);
}

.faq p {
  padding-top: 16px;
}

.final-cta {
  margin: 0 clamp(20px, 5vw, 72px) 72px;
  padding: clamp(38px, 7vw, 72px);
  border: 1px solid rgba(66, 245, 155, 0.36);
  background:
    linear-gradient(135deg, rgba(66, 245, 155, 0.16), rgba(32, 217, 255, 0.08) 42%, rgba(255, 176, 32, 0.1)),
    #0b1016;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 900px;
}

.final-cta p {
  max-width: 680px;
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

.waitlist-bot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.waitlist-bot[aria-hidden="false"] {
  display: block;
}

.bot-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(12px);
}

.bot-panel {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  width: min(520px, calc(100vw - 32px));
  max-height: min(780px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(66, 245, 155, 0.32);
  background:
    linear-gradient(135deg, rgba(32, 217, 255, 0.1), transparent 44%),
    #080c11;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
}

.bot-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.bot-header h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.bot-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.bot-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 22px;
}

.bot-message {
  max-width: 86%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: #dce6ef;
  font-size: 15px;
}

.bot-message.bot {
  align-self: flex-start;
  border-color: rgba(32, 217, 255, 0.22);
}

.bot-message.user {
  align-self: flex-end;
  border-color: rgba(66, 245, 155, 0.34);
  background: rgba(66, 245, 155, 0.12);
  color: var(--text);
}

.bot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 11, 0.92);
}

.bot-form.is-complete {
  display: none;
}

.bot-form textarea {
  width: 100%;
  min-height: 48px;
  max-height: 160px;
  resize: none;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  outline: 0;
}

.bot-form textarea:focus {
  border-color: rgba(32, 217, 255, 0.62);
}

.bot-form button:disabled,
.bot-form textarea:disabled {
  cursor: progress;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 172px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 8, 11, 0.98) 0%, rgba(6, 8, 11, 0.78) 100%),
      linear-gradient(180deg, rgba(6, 8, 11, 0.15), var(--bg));
  }

  .intro-grid,
  .split,
  .terminal-section,
  .project,
  .value-strip,
  .instructor-grid,
  .format-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .instructor-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    padding-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 70px 18px;
  }

  .final-cta {
    margin: 0 18px 48px;
  }

  .instructor-card {
    grid-template-columns: 1fr;
  }

  .instructor-avatar {
    min-height: 180px;
  }

  .site-footer {
    flex-direction: column;
  }

  .bot-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .bot-form {
    grid-template-columns: 1fr;
  }
}
