:root {
  --navy: #061525;
  --deep-navy: #081f36;
  --petrol: #0b3d3e;
  --teal: #30d6c3;
  --cyan: #8af7ff;
  --amber: #ffb35c;
  --cream: #f5f7ef;
  --muted: #a8bcc9;
  --line: rgba(138, 247, 255, 0.18);
  --panel: rgba(7, 25, 43, 0.82);
  --panel-strong: rgba(4, 18, 31, 0.94);
  --glass: rgba(255, 255, 255, 0.07);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--cream);
  font-family: "Lato", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(48, 214, 195, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(94, 44, 131, 0.22), transparent 28rem),
    linear-gradient(135deg, #06111f 0%, #09233c 44%, #082d33 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(138, 247, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 247, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 92%);
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background:
    radial-gradient(circle at 24% 28%, rgba(48, 214, 195, 0.11) 0 1px, transparent 1px),
    radial-gradient(circle at 74% 42%, rgba(255, 179, 92, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 54% 76%, rgba(138, 247, 255, 0.12) 0 1px, transparent 1px);
  background-size: 42px 42px, 68px 68px, 96px 96px;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 164px;
  height: auto;
  display: block;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions a {
  color: rgba(245, 247, 239, 0.82);
  text-decoration: none;
  border: 1px solid rgba(138, 247, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
}

main {
  position: relative;
  z-index: 1;
}

.hero-section > *,
.content-section > *,
.thank-you-card > *,
.debug-stage,
.hero-copy,
.form-intro {
  min-width: 0;
}

.hero-section,
.content-section,
.thank-you-card {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 58px;
  padding: 38px 0 72px;
}

.series-label,
.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: "SF Mono", "SFNSMono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Poppins", Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
  color: #ffffff;
}

h1 {
  font-size: clamp(42px, 5.9vw, 78px);
  line-height: 0.98;
  max-width: 780px;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

p {
  color: rgba(245, 247, 239, 0.82);
  font-size: 20px;
  line-height: 1.58;
  margin: 20px 0 0;
}

.lead {
  color: #ffffff;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  font: 900 15px/1.1 "Poppins", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--teal), #75f0d7);
  color: #04131f;
  box-shadow: 0 18px 36px rgba(48, 214, 195, 0.26);
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(138, 247, 255, 0.34);
  background: rgba(255, 255, 255, 0.075);
}

.button-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 179, 92, 0.42);
  background: rgba(255, 179, 92, 0.08);
}

.debug-stage {
  position: relative;
  min-height: 620px;
}

.debug-stage::before,
.debug-stage::after,
.notebook-section::before,
.academy-section::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(138, 247, 255, 0.15);
  border-radius: 999px;
  pointer-events: none;
}

.debug-stage::before {
  width: 420px;
  height: 420px;
  right: -80px;
  top: 22px;
}

.debug-stage::after {
  width: 220px;
  height: 220px;
  left: -20px;
  bottom: 28px;
  border-color: rgba(255, 179, 92, 0.16);
}

.editor-window {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid rgba(138, 247, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(5, 19, 33, 0.96), rgba(7, 46, 51, 0.88)),
    var(--panel);
  box-shadow: var(--shadow);
}

.editor-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(138, 247, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 30px;
  pointer-events: none;
}

.window-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: rgba(245, 247, 239, 0.72);
  border-bottom: 1px solid rgba(138, 247, 255, 0.14);
  background: rgba(3, 13, 24, 0.76);
  font: 800 13px/1 "SF Mono", "SFNSMono", Consolas, monospace;
}

.window-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-red { background: #ff6b65; }
.dot-amber { background: var(--amber); }
.dot-green { background: var(--teal); }

pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  color: #d8f7f4;
  font: 700 15px/1.75 "SF Mono", "SFNSMono", Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}

pre code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-editor pre {
  font-size: clamp(14px, 1.22vw, 18px);
}

.line {
  color: rgba(168, 188, 201, 0.55);
  display: inline-block;
  width: 34px;
  user-select: none;
}

.token-key { color: #9ee7ff; }
.token-string { color: #d4f6ad; }
.token-warning { color: var(--amber); }
.token-flow { color: #c7a8ff; }
.token-fn { color: var(--teal); }

.floating-card {
  position: absolute;
  border: 1px solid rgba(138, 247, 255, 0.22);
  background: rgba(3, 17, 29, 0.88);
  box-shadow: var(--shadow);
  border-radius: 16px;
  backdrop-filter: blur(18px);
}

.lab-note {
  right: 24px;
  bottom: 30px;
  width: 260px;
  padding: 22px;
}

.terminal-card {
  left: 10px;
  top: 78px;
  width: 245px;
  padding: 18px;
}

.floating-card span,
.floating-card small {
  display: block;
  color: var(--muted);
  font: 800 12px/1.2 "SF Mono", "SFNSMono", Consolas, monospace;
}

.floating-card strong {
  display: block;
  margin: 10px 0;
  color: var(--amber);
  font-family: "Poppins", Arial, sans-serif;
}

.floating-card code {
  display: block;
  color: #d8f7f4;
  font: 700 12px/1.7 "SF Mono", "SFNSMono", Consolas, monospace;
}

.content-section {
  position: relative;
  padding: 90px 0;
}

.split-section,
.timeline-section,
.form-section,
.closing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.note-grid,
.feature-grid,
.support-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.note-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-grid article,
.teaser-stack article,
.support-grid article,
.debug-list {
  border: 1px solid rgba(138, 247, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  color: rgba(245, 247, 239, 0.88);
  font-weight: 900;
}

.note-grid article {
  padding: 18px;
}

.compact-editor,
.mini-editor,
.tiny-editor {
  border-radius: 16px;
}

.notebook-section {
  border-top: 1px solid rgba(138, 247, 255, 0.14);
  border-bottom: 1px solid rgba(138, 247, 255, 0.14);
}

.notebook-section::before {
  width: 320px;
  height: 320px;
  right: 2%;
  top: 70px;
}

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

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.debug-list {
  list-style: none;
  padding: 22px;
  margin: 0;
}

.debug-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(138, 247, 255, 0.11);
}

.debug-list li:last-child {
  border-bottom: 0;
}

.mini-editor pre,
.tiny-editor pre {
  font-size: 13px;
}

.teaser-stack {
  display: grid;
  gap: 14px;
}

.teaser-stack article {
  padding: 20px 22px;
  font-size: 20px;
}

.form-section {
  align-items: start;
}

.google-form-shell {
  width: 100%;
  max-width: 820px;
  justify-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(138, 247, 255, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(5, 19, 33, 0.96), rgba(7, 46, 51, 0.86)),
    rgba(3, 17, 29, 0.76);
  box-shadow: var(--shadow);
}

.google-form-inner {
  width: 100%;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(48, 214, 195, 0.12), transparent 22rem),
    rgba(255, 255, 255, 0.035);
}

.google-form-frame {
  display: block;
  width: 100%;
  min-height: 2270px;
  height: 2270px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
}

.google-form-shell .form-footnote,
.form-fallback {
  margin: 0;
  padding: 0 22px 18px;
  color: rgba(245, 247, 239, 0.68);
  font-size: 15px;
}

.form-fallback {
  padding-top: 0;
}

.form-fallback a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration-color: rgba(138, 247, 255, 0.45);
}

.debug-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(138, 247, 255, 0.2);
  border-radius: 22px;
  background: rgba(3, 17, 29, 0.74);
  box-shadow: var(--shadow);
}

.form-note,
.form-footnote,
.wide-field {
  grid-column: 1 / -1;
}

.form-note,
.form-footnote {
  margin: 0;
  color: rgba(245, 247, 239, 0.68);
  font-size: 15px;
}

label {
  display: grid;
  gap: 8px;
  color: #ffffff;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(138, 247, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: 700 15px/1.35 "Lato", Arial, sans-serif;
  padding: 12px 14px;
  outline: none;
}

select {
  color: #ffffff;
}

select option {
  color: #061525;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(48, 214, 195, 0.15);
}

::placeholder {
  color: rgba(245, 247, 239, 0.42);
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 700;
  color: rgba(245, 247, 239, 0.82);
}

.consent input {
  min-height: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.academy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
}

.academy-section::after {
  width: 260px;
  height: 260px;
  right: 0;
  bottom: 36px;
  border-color: rgba(48, 214, 195, 0.14);
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid article {
  padding: 18px;
  min-height: 74px;
  display: flex;
  align-items: center;
}

.closing-section {
  padding-bottom: 120px;
}

.site-footer {
  min-height: 86px;
  border-top: 1px solid rgba(138, 247, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245, 247, 239, 0.58);
  font-weight: 800;
}

.thank-you-main {
  min-height: calc(100vh - 174px);
  display: grid;
  place-items: center;
  padding: 60px 0 90px;
}

.thank-you-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 44px;
  align-items: center;
  padding: 44px;
  border: 1px solid rgba(138, 247, 255, 0.18);
  border-radius: 28px;
  background: rgba(3, 17, 29, 0.62);
  box-shadow: var(--shadow);
}

.thank-you-copy h1 {
  font-size: clamp(46px, 6vw, 82px);
}

.small-copy {
  font-size: 17px;
  color: rgba(245, 247, 239, 0.62);
}

@media (max-width: 980px) {
  .hero-section,
  .split-section,
  .timeline-section,
  .form-section,
  .academy-section,
  .closing-section,
  .thank-you-card {
    grid-template-columns: 1fr;
  }

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

  .debug-stage {
    min-height: 520px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .thank-you-card {
    padding: 26px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer,
  .hero-section,
  .content-section,
  .thank-you-card {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .brand img {
    width: 138px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  p,
  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-left: 16px;
    padding-right: 16px;
  }

  .debug-stage {
    min-height: auto;
  }

  .debug-stage::before,
  .debug-stage::after,
  .notebook-section::before,
  .academy-section::after {
    display: none;
  }

  .floating-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 14px;
  }

  pre {
    padding: 20px;
    font-size: 12px;
    line-height: 1.65;
  }

  .line {
    width: 28px;
  }

  .note-grid,
  .support-grid,
  .debug-form {
    grid-template-columns: 1fr;
  }

  .google-form-inner {
    padding: 10px;
  }

  .google-form-frame {
    min-height: 2270px;
    height: 2270px;
    border-radius: 10px;
  }

  .google-form-shell .form-footnote,
  .form-fallback {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-section {
    padding: 58px 0;
  }

  .closing-section {
    padding-bottom: 78px;
  }
}
