:root {
  --bg: #f2efff;
  --bg-soft: #faf8ff;
  --paper: rgba(255,255,255,.72);
  --paper-solid: #ffffff;
  --line: rgba(111, 91, 214, .15);
  --line-strong: rgba(111, 91, 214, .24);
  --text: #1f2031;
  --muted: #5f627c;
  --dark: #181427;
  --dark-soft: #251f38;
  --accent: #b58cff;
  --accent-strong: #8a5cff;
  --teal: #70e1d0;
  --lime: #dff6a7;
  --shadow: 0 18px 50px rgba(56, 32, 125, .12);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shell: min(1180px, calc(100% - 42px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(181,140,255,.26), transparent 30%),
    radial-gradient(circle at top right, rgba(112,225,208,.16), transparent 22%),
    linear-gradient(180deg, #f5f2ff 0%, #f8f7ff 36%, #f3f8ff 100%);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.58;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
code, pre, .brand-mark, .section-kicker, .eyebrow, .module-number, .tool-list span, .contact-label, .login-link, .button, .language-switch button { font-family: "JetBrains Mono", monospace; }
.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; }
.skip-link { position: fixed; top: -70px; left: 18px; z-index: 999; padding: 12px 16px; border-radius: 12px; background: var(--accent-strong); color: #fff; font-weight: 800; }
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250,248,255,.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(111, 91, 214, .08);
}
.nav-shell {
  width: var(--shell);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #111426, #443171);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.06em;
  box-shadow: 0 10px 24px rgba(24, 20, 39, .16);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 20px; color: var(--text); letter-spacing: -.05em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.primary-nav a { position: relative; color: #3c3f58; font-size: 14px; font-weight: 600; }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 0; height: 2px; background: var(--accent-strong); transition: width .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.language-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.62); }
.language-switch button { width: 42px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 800; }
.language-switch button.active { background: var(--dark); color: #fff; }
.login-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #201a34, #443171);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 24px rgba(55, 40, 116, .16);
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.login-link:hover { transform: translateY(-2px); }
.login-link.login-teacher {
  color: #251a00;
  background: linear-gradient(135deg, #e0ffb4, #b2ef7b);
}
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.66); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 999px; background: var(--text); }

.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(188,148,255,.34), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(112,225,208,.22), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,.34), rgba(122,99,255,.04));
  opacity: .95;
}
.hero-shell {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  padding: 52px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  gap: 26px;
  align-items: center;
}
.card-dark {
  padding: 44px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(31,24,49,.96) 0%, rgba(20,17,35,.94) 100%);
  color: #fff;
  box-shadow: 0 32px 80px rgba(41, 29, 88, .22);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #cdb8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow > span:first-child { width: 34px; height: 2px; border-radius: 999px; background: var(--teal); }
.hero h1 {
  margin: 0;
  max-width: 650px;
  color: #ffffff;
  font-size: clamp(46px, 6vw, 84px);
  line-height: .95;
  letter-spacing: -.08em;
}
.hero h1 em { color: #cab5ff; font-style: normal; }
.hero-lead { max-width: 720px; margin: 26px 0 0; color: rgba(255,255,255,.84); font-size: clamp(17px, 2vw, 22px); }
.domain-note { margin: 18px 0 0; color: rgba(255,255,255,.56); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #1b1730; background: linear-gradient(135deg, #d8b4ff, #b889ff); }
.button-secondary { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }

.hero-panel { position: relative; display: grid; gap: 16px; }
.stack-card {
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.58));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.profile-card { padding: 26px; transform: rotate(-5deg); }
.stack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.stack-body { display: grid; gap: 18px; }
.identity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.identity-row strong { display: block; color: var(--text); font-size: clamp(34px, 4vw, 52px); line-height: .96; letter-spacing: -.06em; }
.identity-row span { display: block; color: var(--muted); }
.identity-badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: #dff6a7;
  color: #284108 !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}
.stack-cta {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #111426, #2e2552);
  box-shadow: 0 10px 20px rgba(24, 20, 39, .18);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}
.mini-terminal {
  padding: 20px;
  margin-left: 26px;
  transform: rotate(-2deg);
}
.terminal-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cdb8ff; }
.terminal-bar span:nth-child(2) { background: #a7eff6; }
.terminal-bar span:nth-child(3) { background: #dff6a7; }
.mini-terminal pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: 20px;
  background: linear-gradient(180deg, #161224 0%, #1f1a32 100%);
  color: #d4d2e7;
  font-size: 13px;
  line-height: 1.7;
}
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-card {
  min-height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.46);
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow);
}
.metric-card strong { font-size: 22px; color: var(--text); }
.metric-card span { color: var(--muted); font-size: 12px; font-family: "JetBrains Mono", monospace; text-transform: uppercase; }
.metric-card.accent { background: linear-gradient(135deg, #dff6a7, #ecffd1); }
.metric-card.soft { background: linear-gradient(135deg, #efe7ff, #ffffff); }

.section-shell { width: var(--shell); margin: 0 auto; padding: 92px 0; }
.section-heading { max-width: 920px; margin-bottom: 34px; }
.section-kicker { margin: 0 0 12px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--text); font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.06em; }
.section-heading p:not(.section-kicker) { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }

.curriculum-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.module-card {
  min-height: 278px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.66) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.module-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 26px 54px rgba(56, 32, 125, .14); }
.module-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2d224d, #5a3d91);
  font-size: 12px;
  font-weight: 700;
}
.module-card h3 { margin: 4px 0 0; color: var(--text); font-size: 26px; line-height: 1.08; letter-spacing: -.05em; }
.module-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tools-label { margin-top: auto; color: var(--accent-strong); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(111, 91, 214, .08);
  color: #483f6a;
  font-size: 11px;
  font-weight: 700;
}

.faq-section { background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.46) 100%); }
.faq-tools { margin-bottom: 24px; }
.search-box {
  max-width: 650px;
  height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.search-box span { color: var(--accent-strong); font-size: 20px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  min-height: 76px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.faq-question strong { color: var(--text); font-size: 17px; line-height: 1.35; }
.faq-plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 23px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq-question[aria-expanded="true"] .faq-plus { transform: rotate(45deg); color: #fff; background: var(--dark); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.faq-answer > div { overflow: hidden; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-content { padding: 0 22px 22px; color: var(--muted); font-size: 15px; }
.faq-answer-content p { margin: 0 0 12px; }
.faq-answer-content code { padding: 3px 7px; border-radius: 7px; color: var(--text); background: rgba(111, 91, 214, .08); font-family: "JetBrains Mono", monospace; font-weight: 700; }
.share-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.copy-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.78);
  color: var(--accent-strong);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}
.copy-link.copied { color: #fff; background: var(--accent-strong); }
.no-results { padding: 22px; text-align: center; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}
.contact-label { color: var(--accent-strong); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-card h3 { margin: 12px 0 14px; color: var(--text); font-size: 26px; letter-spacing: -.045em; }
.contact-card p { margin: 10px 0; color: var(--muted); }
.contact-card a { color: #4d3fb5; font-weight: 700; }

.site-footer {
  background: linear-gradient(135deg, #151126, #221b38);
  color: rgba(255,255,255,.78);
}
.footer-inner {
  width: var(--shell);
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand .brand-mark { background: linear-gradient(135deg, #d8b4ff, #b889ff); color: #1c1530; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: rgba(255,255,255,.56); }
.footer-inner p { margin: 0; font-size: 13px; }
.developed-by {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.copyright { margin-left: auto; white-space: nowrap; }

@media (max-width: 1060px) {
  .curriculum-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  :root { --shell: min(100% - 30px, 760px); }
  .hero-shell { grid-template-columns: 1fr; }
  .profile-card, .mini-terminal { transform: none; margin-left: 0; }
  .metric-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-shell { min-height: 74px; gap: 12px; }
  .menu-toggle { display: block; margin-left: auto; }
  .primary-nav {
    position: absolute;
    top: 78px;
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px; border-radius: 12px; }
  .primary-nav a:hover { background: rgba(111, 91, 214, .06); }
}

@media (max-width: 720px) {
  .metric-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .copyright { margin-left: 0; }
}

@media (max-width: 620px) {
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 9px; }
  .brand-mark { width: 42px; height: 42px; }
  .language-switch button { width: 34px; height: 30px; }
  .hero-shell { padding: 38px 0 48px; }
  .card-dark { padding: 28px; }
  .hero h1 { font-size: 42px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .module-card h3 { font-size: 22px; }
  .faq-question { grid-template-columns: 1fr 34px; padding: 16px; }
  .faq-question strong { font-size: 15px; }
  .faq-answer-content { padding: 0 16px 16px; }
}

@media (max-width: 420px) {
  .brand-copy { display: none; }
  .login-link span:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
