:root {
  --bg: #050507;
  --panel: #0d0e12;
  --panel-2: #12131a;
  --lime: #caff37;
  --violet: #8f6cff;
  --cyan: #20d9ff;
  --text: #f7f7f3;
  --muted: #989aa5;
  --line: #24262d;
  --line-sub: rgba(255,255,255,.08);

  --font-sans: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  --text-xs: .72rem;
  --text-sm: .85rem;
  --text-base: 16px;
  --text-lg: clamp(1rem, 1.15vw, 1.15rem);
  --text-xl: clamp(1.8rem, 3.6vw, 3.2rem);
  --text-hero: clamp(2.6rem, 5.5vw, 5rem);

  --container: 1280px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --nav-height: 74px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(4rem, 8vw, 7rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow-panel: 0 1.5rem 3.5rem rgba(0,0,0,.28);
  --shadow-lime: 0 .5rem 1.2rem rgba(202,255,55,.22);

  --layer-nav: 100;
  --layer-overlay: 200;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(143,108,255,.10), transparent 28rem),
    var(--bg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

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

button, summary, .button, [role="tab"], [data-touch-target] {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

a {
  color: var(--cyan);
  text-underline-offset: .2em;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

p, li, dd, figcaption, code, pre, a, button {
  overflow-wrap: anywhere;
  word-break: normal;
}

h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }

.noise {
  position: fixed;
  inset: 0;
  opacity: .04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 0;
}

.topline {
  height: 5px;
  background: linear-gradient(90deg, var(--lime), var(--violet), var(--cyan));
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--space-8);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(13,14,18,.86);
  box-shadow: var(--shadow-panel);
}

.eyebrow {
  margin-bottom: var(--space-4);
  color: var(--lime);
  font: 700 var(--text-xs)/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 64rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.section-heading h2 span {
  display: block;
  color: var(--muted);
}

.section-heading > p:not(.eyebrow) {
  max-width: 56rem;
  color: var(--muted);
  line-height: 1.8;
}

.lead {
  max-width: 58rem;
  color: #d7e1dc;
  font-size: var(--text-lg);
  line-height: 1.75;
}

.btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: .75rem 1.25rem;
  border: 1px solid var(--lime);
  border-radius: var(--radius-sm);
  color: #070808;
  background: var(--lime);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
  cursor: pointer;
}

.btn:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lime);
}

.btn.alt, .button--secondary {
  color: var(--text);
  background: transparent;
}

/* Header / Nav */
nav {
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  position: relative;
  z-index: var(--layer-nav);
  background: rgba(5,8,7,.92);
  backdrop-filter: blur(1rem);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  gap: .75rem;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-tagline {
  display: inline-flex;
  align-items: center;
  padding-left: .75rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 11px/1.35 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.links a:hover { color: var(--text); }

.join {
  border: 1px solid var(--lime);
  color: var(--lime);
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--radius-sm);
}

.burger { display: none; }
.menu-overlay { display: none; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  color: #9b9ea8;
  font: 13px/1.7 var(--font-sans);
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 56px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 540px;
}

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}

.footer-intro {
  margin: 0;
  color: #a8acbb;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: .01em;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
  align-items: flex-end;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-phone, .footer-address {
  color: #d6d9e2;
  font-size: 13px;
}

.footer-copyright {
  color: #7e8190;
  font-size: 12px;
}

.footer-icp {
  color: #7e8190;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: .02em;
}

.footer-icp:hover { color: var(--text); }

/* Hero */
.hero {
  min-height: 790px;
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--space-8) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pcb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .22;
  z-index: 0;
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 24px 0 30px;
  text-transform: uppercase;
}

.hero h1 i {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px #b6b8c0;
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.page-hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 18px 0 24px;
  line-height: 1.05;
  letter-spacing: -.04em;
  max-width: 920px;
}

.page-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 780px;
  margin: 0;
}

.page-hero .actions { margin-top: 38px; }

/* Section list utilities */
section {
  padding: 105px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 12px 0 46px;
}

.section-title h2 {
  font-size: 48px;
  margin: 0;
  max-width: 650px;
}

.section-title p {
  color: var(--muted);
  max-width: 450px;
  line-height: 1.7;
}

.section-list h2 {
  font-size: 42px;
  margin: 12px 0 16px;
  max-width: 780px;
  line-height: 1.15;
}

.section-list > .container > p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 0 50px;
}

.section-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.section-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px;
  transition: .3s;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.section-list li:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.section-list li h3 {
  color: var(--lime);
  font-size: 18px;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-list li p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 14px;
}

.grid-flow li {
  position: relative;
  padding-left: 0;
}

.grid-flow li h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  margin-right: 10px;
  color: var(--violet);
  font: 14px var(--font-mono);
  letter-spacing: .05em;
}

.grid-flow { counter-reset: step; }

/* Courses / tracks */
.courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.course {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: .3s;
  border-radius: var(--radius-md);
}

.course:hover {
  border-color: var(--lime);
  transform: translateY(-5px);
}

.course .index {
  color: #676a74;
  font: 13px var(--font-mono);
}

.course h3 {
  font-size: 30px;
  margin: 46px 0 12px;
}

.course p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}

.arrow {
  position: absolute;
  right: 24px;
  top: 24px;
  color: var(--lime);
  font-size: 24px;
}

.course:after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid #2c2e35;
  border-radius: 50%;
  right: -60px;
  bottom: -60px;
}

.track-anim {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 38%;
  height: 32%;
  pointer-events: none;
  overflow: visible;
}

/* Workflow / method */
.workflow {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 65px;
  align-items: stretch;
}

.method-intro {
  display: flex;
  flex-direction: column;
}

.method-stats { margin-top: auto; }

.bigquote {
  font-size: 42px;
  line-height: 1.22;
  margin: 15px 0;
}

.bigquote span { color: var(--lime); }

.workflow p {
  color: var(--muted);
  line-height: 1.8;
}

.stage {
  display: grid;
  grid-template-columns: auto 1fr 160px;
  column-gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 26px 0;
  position: relative;
}

.method-stages {
  display: grid;
  grid-template-columns: max-content 1fr 160px;
  column-gap: 28px;
}

.method-stages .stage {
  grid-template-columns: subgrid;
  grid-column: 1/-1;
  column-gap: inherit;
}

.method-stats {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.method-stats .stat-item { padding: 18px 16px; }
.method-stats .stat-value { font-size: 32px; }
.method-stats .stat-label {
  font-size: 10px;
  margin-top: 6px;
}

.stage:last-child { border-bottom: 1px solid var(--line); }

.stage-anim {
  width: 160px;
  height: 80px;
  pointer-events: none;
  opacity: 0;
  justify-self: end;
}

.stage i {
  color: var(--violet);
  font-style: normal;
  font: 14px var(--font-mono);
}

.stage h4 {
  font-size: 22px;
  margin: 0 0 8px;
}

.stage p { margin: 0; }

.section-list ul[data-variant="stats"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.section-list .stat-item { padding: 30px 26px; }

.section-list .stat-value {
  font-size: 54px;
  font-weight: 900;
  color: var(--lime);
  letter-spacing: -.03em;
  line-height: 1;
}

.section-list .stat-label {
  margin-top: 12px;
  font: 12px var(--font-mono);
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-list ul[data-variant="features"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.section-list .feature-item {
  padding: 26px 26px 26px 30px;
  position: relative;
  overflow: hidden;
}

.section-list .feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--lime);
  transition: height .4s;
}

.section-list .feature-item:hover::before { height: 100%; }

.section-list .feature-icon {
  font: 12px var(--font-mono);
  color: var(--lime);
  letter-spacing: .1em;
}

.section-list .feature-item h3 {
  color: var(--text);
  font-size: 20px;
  margin: 14px 0 10px;
  font-weight: 800;
}

.section-list .feature-body {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.marquee div {
  display: flex;
  width: max-content;
  gap: 50px;
  animation: move 18s linear infinite;
  color: #4b4e57;
  font-size: 42px;
  font-weight: 900;
  white-space: nowrap;
}

.marquee b {
  color: var(--lime);
  display: inline-flex;
  align-items: center;
}

.marquee b .marquee-pulse {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 6px rgba(202,255,55,.8)) drop-shadow(0 0 12px rgba(202,255,55,.4));
}

/* CTA */
.cta {
  padding: 90px 0;
  text-align: center;
}

.cta h2 {
  font-size: 64px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.cta p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* FAQ */
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 32px;
  border-radius: var(--radius-md);
}

.faq-item h3 {
  color: var(--lime);
  font-size: 18px;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.4;
}

.faq-item p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  font-size: 15px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: start;
}

.contact-info li {
  list-style: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info li h3 {
  color: var(--lime);
  font: 13px var(--font-mono);
  margin: 0 0 6px;
}

.contact-info li p {
  color: var(--text);
  font-size: 18px;
  margin: 0;
  line-height: 1.6;
}

.contact-cta {
  background: var(--panel);
  border: 1px solid var(--lime);
  padding: 32px;
  border-radius: var(--radius-md);
}

.contact-cta h3 {
  color: var(--lime);
  margin: 0 0 12px;
  font-size: 22px;
}

.contact-cta p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 22px;
  font-size: 14px;
}

.contact-cta .btn { display: inline-block; }

/* Legal notice / loader */
.legal-notice {
  margin: 80px 0 0;
  padding: 24px;
  background: #0e0f15;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.legal-notice h3 {
  margin: 0 0 10px;
  color: #9b9ea8;
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.legal-notice p {
  margin: 0;
  color: #7e8190;
  font: 12px/1.75 var(--font-sans);
}

.form-privacy {
  margin: 10px 0 0;
  padding: 0;
  color: #7e8190;
  font: 11px/1.7 var(--font-sans);
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity .5s var(--ease-out), visibility .5s var(--ease-out);
}

body.loaded #loader,
body.load-failed #loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-rings {
  position: relative;
  width: 72px;
  height: 72px;
}

.loader-core,
.loader-ring,
.loader-ring::before,
.loader-ring::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.loader-core {
  width: 14px;
  height: 14px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(202, 255, 55, .55);
  animation: loaderCorePulse 1.6s ease-in-out infinite;
}

.loader-ring {
  width: 38px;
  height: 38px;
  border: 2px solid var(--violet);
  opacity: .75;
  animation: loaderRingPulse 1.6s ease-out infinite;
}

.loader-ring::before {
  content: '';
  width: 62px;
  height: 62px;
  border: 2px solid var(--cyan);
  opacity: .45;
  animation: loaderRingPulse 1.6s ease-out .35s infinite;
}

.loader-ring::after {
  content: '';
  width: 86px;
  height: 86px;
  border: 1px solid rgba(202, 255, 55, .25);
  opacity: .25;
  animation: loaderRingPulse 1.6s ease-out .7s infinite;
}

.loader-brand {
  font: 700 12px var(--font-mono);
  letter-spacing: .28em;
  color: var(--muted);
  text-transform: uppercase;
  animation: loaderBrandFade 1s var(--ease-out) .2s both;
}

@keyframes loaderCorePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.25); opacity: .85; }
}

@keyframes loaderRingPulse {
  0% { transform: translate(-50%, -50%) scale(.85); opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

@keyframes loaderBrandFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-core,
  .loader-ring,
  .loader-ring::before,
  .loader-ring::after { animation: none; }
  .loader-brand { animation: none; }
}

.load-failed::before {
  content: "内容加载失败,请刷新页面";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ff3b3b;
  color: #fff;
  padding: 14px;
  text-align: center;
  font: 14px var(--font-mono);
  z-index: 9999;
}

/* Reveal animations */
.reveal, [data-reveal] {
  opacity: 1;
  transform: none;
}

.js.enhanced-motion .reveal:not(.on):not(.is-revealed),
.js.enhanced-motion [data-reveal]:not(.on):not(.is-revealed) {
  opacity: 0.01;
  transform: translateY(1.2rem);
}

.js.enhanced-motion .reveal,
.js.enhanced-motion [data-reveal] {
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

/* Decorative prefix system */
.section-list li h3[data-h3-prefix]::before,
.faq .faq-item h3[data-h3-prefix]::before {
  content: attr(data-h3-prefix) " ";
  color: var(--lime);
}

.section-list li h3[data-h3-accent="violet"]::before,
.faq .faq-item h3[data-h3-accent="violet"]::before { color: var(--violet); }

.section-list li h3[data-h3-mono]::before,
.faq .faq-item h3[data-h3-mono]::before { font-family: var(--font-mono); font-size: .8em; }

.section-list li[data-li-prefix]::before {
  content: attr(data-li-prefix) " ";
  color: var(--lime);
}

.section-list li[data-li-accent="violet"]::before { color: var(--violet); }
.section-list li[data-li-bold]::before { font-weight: 800; }

/* Keyframes */
@keyframes scan { to { background-position: 0 90px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes move { to { transform: translateX(-50%); } }

/* Grid helpers from preview */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.grid > * { min-width: 0; }
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }

/* Mobile nav / tabbar */
.tabbar { display: none; }

body.menu-open { overflow: hidden; }

@media (min-width: 901px) and (max-width: 1100px) {
  .logo-tagline { display: none; }
  .links { gap: 14px; }
  .links a { letter-spacing: .04em; }
}

@media (max-width: 900px) {
  .burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
  }

  .burger span,
  .burger span::before,
  .burger span::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform .3s, opacity .3s;
  }

  .burger span { position: relative; }
  .burger span::before { position: absolute; top: -7px; left: 0; }
  .burger span::after { position: absolute; top: 7px; left: 0; }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    height: 100%;
    height: 100dvh;
    background: var(--bg);
    z-index: var(--layer-overlay);
    transform: translateY(-100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    padding: 60px 28px 40px;
    overflow-y: auto;
  }

  .menu-overlay.open { transform: translateY(0); }

  .menu-close {
    position: absolute;
    top: 48px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .menu-close::before,
  .menu-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 28px;
    height: 2px;
    background: #fff;
    transform-origin: center;
  }

  .menu-close::before { transform: rotate(45deg); }
  .menu-close::after { transform: rotate(-45deg); }

  .menu-label {
    font: 600 11px var(--font-mono);
    color: var(--lime);
    letter-spacing: .1em;
    margin-top: 24px;
    margin-bottom: 8px;
  }

  .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-list a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
  }

  .menu-cta {
    display: block;
    margin-top: 28px;
    padding: 18px;
    background: var(--lime);
    color: #0a0a0a;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
  }

  .links { display: none !important; }
  .join { display: none !important; }

}

@media (max-width: 768px) {
  body { padding-bottom: 72px; }

  .tabbar {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 1fr 1fr;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding-bottom: 12px;
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    z-index: calc(var(--layer-nav) - 1);
  }

  .tabbar .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #888;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
  }

  .tabbar .tab svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body[data-page="home"] .tab[data-tab="home"],
  body[data-page="teaching"] .tab[data-tab="teaching"],
  body[data-page="career"] .tab[data-tab="career"],
  body[data-page="about"] .tab[data-tab="about"],
  body[data-page="partners"] .tab[data-tab="partners"],
  body[data-page="faq"] .tab[data-tab="faq"],
  body[data-page="contact"] .tab[data-tab="contact"] { color: var(--lime); }

  .tabbar .tab-cta {
    background: var(--lime);
    color: #0a0a0a;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    margin-top: -22px;
    box-shadow: 0 6px 16px rgba(202,255,55,.4);
    text-decoration: none;
  }

  .tabbar .tab-cta svg {
    width: 24px;
    height: 24px;
    stroke: #0a0a0a;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .hero { padding: 32px 0 40px; }
  .hero-grid, .workflow { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; line-height: 1.18; letter-spacing: -.02em; }
  .hero h1 i {
    -webkit-text-stroke: 1.2px var(--lime);
    color: transparent;
    font-style: normal;
  }
  .hero p { font-size: 14px; line-height: 1.65; }
  .hero .actions { flex-direction: column; gap: 10px; }
  .hero .actions .btn { display: block; text-align: center; padding: 16px; }

  .section-title { display: block; }
  .section-list h2, .section-title h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
  .section-list > .container > p, .section-title p { font-size: 13px; line-height: 1.6; }
  .section-list li { padding: 16px; }
  .section-list li h3 { font-size: 15px; }
  .section-list .feature-body { font-size: 13px; }

  .grid-2, .grid-3, .grid-flow, .courses,
  .section-list ul[data-variant="stats"],
  .section-list ul[data-variant="features"],
  .method-stats, .method-stages { grid-template-columns: 1fr !important; }

  .cta { padding: 48px 0 80px; }
  .cta h2 { font-size: 22px; }
  .cta p { font-size: 13px; }

  .bigquote { font-size: 20px; padding: 20px 0; }

  .stage { grid-template-columns: 28px 1fr !important; gap: 12px; }
  .stage i { font-size: 12px; }
  .stage h4 { font-size: 14px; }

  .page-hero { padding: 48px 0 32px; }
  .page-hero h1 { font-size: 30px; letter-spacing: -.02em; line-height: 1.18; }
  .page-hero p { font-size: 14px; line-height: 1.65; }
  .page-hero .actions { margin-top: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info li p { font-size: 15px; }
  .contact-cta { padding: 20px; }
  .contact-cta h3 { font-size: 18px; }

  .faq-item { padding: 18px 20px; }
  .faq-item h3 { font-size: 15px; }
  .faq-item p { font-size: 13px; }

  .footer { flex-direction: column; gap: 24px; }
  .footer-brand { max-width: 100%; }
  .footer-info { text-align: left; align-items: flex-start; }
  .footer-intro { font-size: 12px; line-height: 1.7; }
  .footer-logo { height: 28px; }

  .marquee { padding: 12px 0; }
  .marquee div { font-size: 22px; gap: 24px; }

  .legal-notice { margin: 40px 0 0; padding: 18px; }
  .legal-notice p { font-size: 11px; line-height: 1.7; }
}

@media (max-width: 900px) {
  .links { display: none; }
  .hero-grid, .workflow { grid-template-columns: 1fr; }
  .hero { padding: 70px 0; }
  .section-title { display: block; }
  .courses { grid-template-columns: 1fr; }
  .cta h2 { font-size: 45px; }
  .stage-anim { display: none; }
  .stage { grid-template-columns: auto 1fr; }
  .method-stages { grid-template-columns: none; }
  .grid-3, .grid-flow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-list ul[data-variant="stats"] { grid-template-columns: repeat(2, 1fr); }
  .section-list ul[data-variant="features"] { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 58px; }
  .section-title h2 { font-size: 38px; }
  .grid-2, .grid-3, .grid-flow { grid-template-columns: 1fr; }
  .section-list h2 { font-size: 32px; }
}

@media (max-width: 414px) {
  .hero h1 { font-size: 38px; }
  .section-title h2 { font-size: 28px; }
  .cta h2 { font-size: 30px; }
  .bigquote { font-size: 24px; }
  .section-list li { padding: 18px; }
  .courses { grid-template-columns: 1fr; }
  .page-hero { padding: 80px 0 50px; }
  .method-stats { grid-template-columns: 1fr; }
  .section-list ul[data-variant="stats"], .section-list ul[data-variant="features"] { grid-template-columns: 1fr; }
}

@media (min-width: 1440px) {
  .container { width: min(1320px, calc(100% - 60px)); }
  .hero h1 { font-size: 114px; }
  .section-list h2 { font-size: 48px; }
  .section-title h2 { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; }
  .loader-spinner { animation-duration: 3s; }
}

@media (forced-colors: active) {
  nav { backdrop-filter: none; }
  .btn, .button { forced-color-adjust: auto; }
}

@media (hover: none), (pointer: coarse) {
  .course:hover, .section-list li:hover { border-color: var(--line); transform: none; }
  .section-list .feature-item:hover::before { height: 0; }
}

/* Shared component enhancements (temp_html_10 landing) */
:root {
  --layer-loader: 9998;
  --layer-back-to-top: 90;
  --nav-scroll-bg: rgba(5, 8, 7, .98);
  --nav-scroll-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

nav {
  transition: background .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

nav.is-scrolled {
  background: var(--nav-scroll-bg);
  box-shadow: var(--nav-scroll-shadow);
}

.links a {
  position: relative;
  transition: color .2s var(--ease-out);
}

.links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}

.links a:hover { color: var(--text); }
.links a:hover::after,
.links a.is-current::after { transform: scaleX(1); }

.links a.is-current { color: var(--text); }

.join {
  transition: background .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}

.join:hover {
  background: var(--lime);
  color: #070808;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lime);
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
}

.burger span,
.burger span::before,
.burger span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out);
}

.burger span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.burger span::before {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
}

.burger span::after {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.burger[aria-expanded="true"] span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

.menu-overlay {
  display: block;
  position: fixed;
  inset: 0;
  height: 100%;
  height: 100dvh;
  background: rgba(5, 8, 7, .98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--layer-overlay);
  transform: translateY(-100%);
  transition: transform .45s var(--ease-out), opacity .35s var(--ease-out);
  opacity: 0;
  padding: 76px var(--gutter) 40px;
  overflow-y: auto;
}

.menu-overlay.open {
  transform: translateY(0);
  opacity: 1;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-close::before,
.menu-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transform-origin: center;
  transition: background .2s var(--ease-out);
}

.menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}

.menu-overlay.open .menu-list li {
  transform: translateY(0);
  opacity: 1;
}

.menu-overlay.open .menu-list li:nth-child(1) { transition-delay: .06s; }
.menu-overlay.open .menu-list li:nth-child(2) { transition-delay: .12s; }
.menu-overlay.open .menu-list li:nth-child(3) { transition-delay: .18s; }
.menu-overlay.open .menu-list li:nth-child(4) { transition-delay: .24s; }
.menu-overlay.open .menu-list li:nth-child(5) { transition-delay: .3s; }
.menu-overlay.open .menu-list li:nth-child(6) { transition-delay: .36s; }
.menu-overlay.open .menu-list li:nth-child(7) { transition-delay: .42s; }

.menu-list a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color .2s var(--ease-out), padding-left .2s var(--ease-out);
}

.menu-list a:hover,
.menu-list a.is-current {
  color: var(--lime);
  padding-left: 12px;
}

.menu-cta {
  display: block;
  margin-top: 28px;
  padding: 18px;
  background: var(--lime);
  color: #0a0a0a;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
  transform: translateY(12px);
  opacity: 0;
}

.menu-overlay.open .menu-cta {
  transform: translateY(0);
  opacity: 1;
  transition-delay: .48s;
}

.menu-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lime);
}

footer {
  padding: 64px 0 32px;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr;
  gap: 48px 56px;
  align-items: start;
}

.footer-brand,
.footer-sitemap,
.footer-contact-block {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

footer.is-revealed .footer-brand,
footer.is-revealed .footer-sitemap,
footer.is-revealed .footer-contact-block {
  opacity: 1;
  transform: translateY(0);
}

footer.is-revealed .footer-sitemap { transition-delay: .1s; }
footer.is-revealed .footer-contact-block { transition-delay: .2s; }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo {
  height: 38px;
  width: auto;
}

.footer-intro {
  margin: 0;
  color: #a8acbb;
  font-size: 13px;
  line-height: 1.75;
  max-width: 360px;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 18px;
}

.footer-contact-block .footer-title {
  padding-left: 26px;
}

.footer-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.footer-sitemap-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s var(--ease-out), transform .2s var(--ease-out);
  display: inline-block;
}

.footer-sitemap-list a:hover {
  color: var(--lime);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  position: relative;
  padding-left: 26px;
  color: #a8acbb;
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact-list svg {
  position: absolute;
  left: 0;
  top: .15rem;
  width: 16px;
  height: 16px;
  color: var(--lime);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-copyright,
.footer-icp {
  color: #7e8190;
  font-size: 12px;
  text-decoration: none;
}

.footer-icp:hover { color: var(--text); }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--lime);
  background: var(--panel);
  color: var(--lime);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: var(--layer-back-to-top);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--lime);
  color: #070808;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lime);
}

.tabbar {
  display: none;
}

@media (max-width: 768px) {
  .logo-tagline { display: none; }
  .burger {
    display: grid;
    place-items: center;
  }

  .tabbar {
    display: grid;
    grid-template-columns: 1fr 1fr 80px 1fr 1fr;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding-bottom: 12px;
    background: rgba(10, 10, 10, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    z-index: calc(var(--layer-nav) - 1);
  }

  .tabbar .tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #888;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: color .2s var(--ease-out);
  }

  .tabbar .tab svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tabbar .tab::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--lime);
    opacity: 0;
    box-shadow: 0 0 8px var(--lime);
    transition: opacity .2s var(--ease-out);
  }

  body[data-page="home"] .tab[data-tab="home"],
  body[data-page="teaching"] .tab[data-tab="teaching"],
  body[data-page="career"] .tab[data-tab="career"],
  body[data-page="about"] .tab[data-tab="about"],
  body[data-page="partners"] .tab[data-tab="partners"],
  body[data-page="faq"] .tab[data-tab="faq"],
  body[data-page="contact"] .tab[data-tab="contact"] { color: var(--lime); }

  body[data-page="home"] .tab[data-tab="home"]::after,
  body[data-page="teaching"] .tab[data-tab="teaching"]::after,
  body[data-page="career"] .tab[data-tab="career"]::after,
  body[data-page="about"] .tab[data-tab="about"]::after,
  body[data-page="partners"] .tab[data-tab="partners"]::after,
  body[data-page="faq"] .tab[data-tab="faq"]::after,
  body[data-page="contact"] .tab[data-tab="contact"]::after { opacity: 1; }

  .tabbar .tab-cta {
    background: var(--lime);
    color: #0a0a0a;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    margin-top: -22px;
    box-shadow: 0 6px 16px rgba(202, 255, 55, .4);
    transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
  }

  .tabbar .tab-cta svg {
    width: 24px;
    height: 24px;
    stroke: #0a0a0a;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tabbar .tab-cta:hover,
  .tabbar .tab-cta:active {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(202, 255, 55, .55);
  }

  .back-to-top {
    right: 16px;
    bottom: 96px;
  }
}

@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-sitemap-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .footer-sitemap-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity .15s ease;
    transform: none;
  }

  .back-to-top:hover { transform: none; }

  .footer-brand,
  .footer-sitemap,
  .footer-contact-block {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Ensure menu overlay is removed from a11y tree when closed */
.menu-overlay { display: none; }
.menu-overlay.open { display: block; }

/* Keep the menu trigger available at the same breakpoint as hidden desktop links. */
@media (max-width: 900px) {
  .burger { display: grid; place-items: center; }
  .logo-tagline { display: none; }
}
