:root {
  --ink: #14203a;
  --muted: #69758d;
  --line: #e1e6f0;
  --paper: #f7f8fc;
  --purple: #6558ef;
  --purple-deep: #4c3fd1;
  --cyan: #38c6e5;
  --navy: #0a1020;
  --navy-soft: #111a31;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); }
a { color: inherit; }
button { font: inherit; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(1240px, calc(100% - 40px));
  height: 82px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 28px #0004; }
.site-header nav { display: flex; align-items: center; gap: 25px; }
.site-header nav a { color: #aeb8cd; text-decoration: none; font-size: 13px; transition: color .2s ease; }
.site-header nav a:hover { color: #fff; }
.site-header .github-link { padding: 9px 14px; border: 1px solid #ffffff26; border-radius: 10px; color: #eef2ff; background: #ffffff08; }
.release-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; background: #ffffff0d; }
.release-link span { width: 7px; height: 7px; border-radius: 50%; background: #65e7ad; box-shadow: 0 0 0 5px #65e7ad18; }
.release-link b { color: #fff; font-size: 12px; }

.hero {
  position: relative;
  min-height: 820px;
  padding: 145px max(24px, calc((100vw - 1200px) / 2)) 118px;
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  align-items: center;
  gap: 74px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 22%, #5e4ee83b, transparent 31%),
    radial-gradient(circle at 92% 68%, #1bc2dd26, transparent 28%),
    linear-gradient(150deg, #080d1b 0%, #0c1428 52%, #0b1222 100%);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .19;
  background-image: linear-gradient(#fff1 1px, transparent 1px), linear-gradient(90deg, #fff1 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
  pointer-events: none;
}

.hero:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: 900px;
  height: 430px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #5b4ee8;
  filter: blur(160px);
  opacity: .13;
  pointer-events: none;
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow.one { width: 330px; height: 330px; left: -180px; top: 150px; background: #6a58f0; opacity: .2; }
.hero-glow.two { width: 300px; height: 300px; right: -140px; bottom: 50px; background: #2bc5e2; opacity: .16; }
.hero-copy, .hero-visual { position: relative; z-index: 2; }

.eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #ffffff18;
  border-radius: 999px;
  color: #c7d0e2;
  background: #ffffff08;
  text-decoration: none;
  font-size: 12px;
}
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #65e7ad; box-shadow: 0 0 15px #65e7ad; }
.eyebrow b { color: #fff; }
.eyebrow i { color: #7ae5f2; font-style: normal; }

.hero h1 {
  max-width: 680px;
  margin: 27px 0 24px;
  font-size: clamp(46px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 820;
}
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, #b5aaff 0%, #72e4f1 92%); background-clip: text; }
.hero-copy > p { max-width: 620px; margin: 0; color: #aeb8cc; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin: 34px 0 27px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 21px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 760; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: linear-gradient(135deg, #7567fa, #5849df); box-shadow: 0 16px 36px #594ad84f; }
.button.primary:hover { box-shadow: 0 19px 44px #594ad866; }
.button.ghost { color: #edf2ff; border: 1px solid #ffffff24; background: #ffffff09; }
.button.ghost:hover { border-color: #ffffff45; }
.platforms { display: flex; flex-wrap: wrap; gap: 14px; color: #7f8ca6; font-size: 11px; }
.platforms span + span:before { content: "·"; margin-right: 14px; color: #46536b; }

.hero-visual {
  padding-top: 37px;
  border: 1px solid #ffffff18;
  border-radius: 19px;
  background: #e9edf5;
  box-shadow: 0 46px 100px #0008, 0 0 0 1px #7584aa0d inset;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}
.window-bar { position: absolute; inset: 0 0 auto 0; height: 37px; display: flex; align-items: center; gap: 6px; padding: 0 13px; color: #8090aa; border-bottom: 1px solid #dfe4ee; font-size: 9px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #f06b66; }
.window-bar i:nth-child(2) { background: #efbb42; }
.window-bar i:nth-child(3) { background: #55be6c; }
.window-bar span { margin: auto; transform: translateX(-17px); }

.product-shot { height: 433px; display: grid; grid-template-columns: 148px 1fr; overflow: hidden; border-radius: 0 0 18px 18px; color: #18233c; background: #f4f6fb; }
.shot-sidebar { position: relative; padding: 20px 12px; color: #9aa8c1; background: #121c36; }
.shot-brand { display: flex; align-items: center; gap: 9px; padding: 0 7px 20px; }
.shot-brand img { width: 31px; height: 31px; border-radius: 9px; }
.shot-brand span { min-width: 0; display: grid; gap: 2px; }
.shot-brand b { color: #fff; font-size: 9px; }
.shot-brand small { color: #74819a; font-size: 7px; }
.shot-nav { display: flex; align-items: center; gap: 9px; margin: 3px 0; padding: 10px; border-radius: 8px; font-size: 8px; }
.shot-nav span { width: 13px; color: #7f8da7; text-align: center; }
.shot-nav.active { color: #fff; background: #243250; }
.shot-nav.active span { color: #8ddce9; }
.shot-online { position: absolute; left: 18px; right: 18px; bottom: 18px; padding-top: 14px; border-top: 1px solid #26334f; font-size: 7px; }
.shot-online i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #52d693; box-shadow: 0 0 0 4px #52d69317; }
.shot-main { min-width: 0; padding: 24px 23px; }
.shot-heading { display: flex; align-items: center; justify-content: space-between; }
.shot-heading h3, .shot-heading p { margin: 0; }
.shot-heading h3 { font-size: 15px; }
.shot-heading p { margin-top: 5px; color: #8893a6; font-size: 8px; }
.shot-heading button { padding: 8px 11px; color: #fff; border: 0; border-radius: 7px; background: #6153e7; font-size: 8px; font-weight: 700; }
.shot-stats { margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.shot-stats article { min-width: 0; display: grid; gap: 6px; padding: 13px 14px; border: 1px solid #e2e6ee; border-radius: 11px; background: #fff; box-shadow: 0 5px 18px #18243c08; }
.shot-stats small { color: #7d899d; font-size: 8px; }
.shot-stats b { font-size: 20px; }
.shot-stats em { color: #9ba5b5; font-size: 7px; font-style: normal; }
.shot-list { padding: 15px 14px 10px; border: 1px solid #e2e6ee; border-radius: 12px; background: #fff; }
.shot-list-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 9px; }
.shot-list-title span { color: #6558e8; font-size: 7px; }
.shot-list article { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; margin-top: 6px; padding: 10px; border: 1px solid #e8ebf1; border-radius: 9px; }
.shot-list article.selected { border-color: #b9b2f8; background: #faf9ff; }
.shot-list article > i { padding: 7px 5px; color: #5a4de0; border-radius: 6px; background: #efedff; text-align: center; font-size: 7px; font-style: normal; font-weight: 750; }
.shot-list article > div { min-width: 0; display: grid; gap: 4px; }
.shot-list article b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.shot-list article small { color: #8a95a7; font-size: 6px; }
.shot-list article strong { color: #26976e; font-size: 7px; font-weight: 650; }

.floating-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: #20304a; border: 1px solid #ffffff88; border-radius: 13px; background: #fffc; box-shadow: 0 18px 46px #0003; backdrop-filter: blur(14px); }
.floating-card b { color: var(--purple); font-size: 22px; }
.floating-card span { color: #5e6a7e; font-size: 10px; }
.floating-card.week { left: -34px; bottom: 50px; }
.floating-card.lan { right: -25px; top: 68px; }
.floating-card.lan b { color: #24b976; font-size: 13px; }

.proof-strip { position: relative; z-index: 4; max-width: 1160px; margin: -45px auto 65px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dfe4ee; border-radius: 18px; background: #fff; box-shadow: 0 24px 65px #14213b17; }
.proof-strip div { padding: 25px 27px; }
.proof-strip div + div { border-left: 1px solid #eaedf3; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { font-size: 14px; }
.proof-strip span { margin-top: 7px; color: #8792a4; font-size: 10px; }

.section { max-width: 1190px; margin: 0 auto; padding: 92px 24px; }
.section-heading { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading > span, .local-copy > span { color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.section-heading h2, .local-copy h2 { margin: 14px 0 17px; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: -.045em; }
.section-heading p, .local-copy p { color: var(--muted); font-size: 15px; line-height: 1.8; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.role-card { position: relative; min-height: 415px; padding: 37px; overflow: hidden; border: 1px solid #dfe4ed; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px #17213a0a; }
.role-card:after { content: ""; position: absolute; right: -130px; bottom: -170px; width: 280px; height: 280px; border-radius: 50%; background: #6558ef12; }
.role-card.student:after { background: #32bfdc15; }
.role-icon { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; border-radius: 15px; background: linear-gradient(135deg, #776afb, #5143d2); font-size: 19px; font-weight: 850; box-shadow: 0 12px 28px #584ad734; }
.student .role-icon { background: linear-gradient(135deg, #3dc9e5, #1689aa); box-shadow: 0 12px 28px #1b9cba2c; }
.role-label { display: block; margin-top: 19px; color: #808ba0; font-size: 11px; }
.role-card h3 { margin: 8px 0 22px; font-size: 25px; letter-spacing: -.025em; }
.role-card ul { display: grid; gap: 14px; margin: 0; padding: 0; color: #5f6b80; list-style: none; font-size: 13px; }
.role-card li:before { content: "✓"; margin-right: 10px; color: var(--purple); font-weight: 850; }
.student li:before { color: #159cbe; }

.insight-section { padding-top: 82px; }
.insight-section .section-heading { max-width: 820px; }
.insight-dashboard { padding: 13px; border: 1px solid #dce2ed; border-radius: 24px; background: #edf1f7; box-shadow: 0 30px 90px #17213a1b; }
.insight-topbar { min-height: 49px; padding: 0 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #66728a; font-size: 10px; }
.insight-topbar > div { display: flex; gap: 6px; }
.insight-topbar i { width: 8px; height: 8px; border-radius: 50%; background: #f16864; }
.insight-topbar i:nth-child(2) { background: #efb83d; }
.insight-topbar i:nth-child(3) { background: #54bd67; }
.insight-topbar strong { color: #26324a; }
.insight-topbar > span { justify-self: end; padding: 7px 10px; color: #fff; border-radius: 8px; background: #5d50e8; font-weight: 700; }
.insight-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.insight-metrics article { display: grid; gap: 6px; padding: 18px; border: 1px solid #e2e6ee; border-radius: 14px; background: #fff; }
.insight-metrics small { color: #7a879c; }
.insight-metrics b { font-size: 26px; }
.insight-metrics em { color: #99a2b2; font-size: 9px; font-style: normal; }
.insight-panels { display: grid; grid-template-columns: 1.25fr .75fr; gap: 9px; margin-top: 9px; }
.insight-panels > article { min-height: 278px; padding: 22px; border: 1px solid #e2e6ee; border-radius: 14px; background: #fff; }
.trend-demo > div { display: flex; justify-content: space-between; color: #778399; font-size: 9px; }
.trend-demo > div strong, .mastery-demo > strong { color: #202c44; font-size: 12px; }
.trend-demo svg { width: 100%; margin-top: 17px; }
.trend-demo line { stroke: #e7ebf2; stroke-dasharray: 4 5; }
.trend-demo polyline { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.demo-attendance { stroke: #5d50e8; }
.demo-completion { stroke: #20a97d; }
.demo-accuracy { stroke: #f2a33c; }
.mastery-demo { display: grid; align-content: start; gap: 17px; }
.mastery-demo > div { display: grid; grid-template-columns: 92px 1fr 33px; align-items: center; gap: 8px; font-size: 9px; }
.mastery-demo i { height: 8px; overflow: hidden; border-radius: 8px; background: #edf1f6; }
.mastery-demo i b { display: block; height: 100%; border-radius: inherit; background: #ed6b74; }
.mastery-demo > div:nth-of-type(2) i b { background: #f1a33d; }
.mastery-demo > div:nth-of-type(3) i b { background: #24a97f; }
.mastery-demo em { font-style: normal; text-align: right; }
.mastery-demo p { margin: 4px 0 0; padding: 13px; color: #626e84; border-left: 3px solid #6254ea; border-radius: 5px; background: #f1efff; font-size: 9px; line-height: 1.6; }
.mastery-demo p b { display: block; margin-bottom: 3px; color: #5146c8; }
.metric-note { margin: 20px auto 0; color: #7c879b; text-align: center; font-size: 10px; }

.workflow-section { max-width: none; margin-top: 70px; padding-left: max(24px, calc((100vw - 1142px) / 2)); padding-right: max(24px, calc((100vw - 1142px) / 2)); color: #fff; background: linear-gradient(145deg, #0b1224, #111d37); }
.workflow-section .section-heading span { color: #7ce3ee; }
.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid #33405a; border-radius: 18px; background: #33405a; list-style: none; }
.workflow li { min-height: 225px; padding: 29px; background: #121e38; transition: background .2s ease; }
.workflow li:hover { background: #172641; }
.workflow li b { color: #7ce3ee; font-size: 10px; letter-spacing: .12em; }
.workflow h3 { margin: 50px 0 12px; font-size: 18px; }
.workflow p { color: #a9b4c9; font-size: 12px; line-height: 1.75; }

.local-section { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.local-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.local-pills i { padding: 8px 10px; color: #5548d5; border-radius: 8px; background: #eceafa; font: 10px ui-monospace, monospace; font-style: normal; }
.network-map { position: relative; min-height: 410px; display: grid; place-items: center; }
.center-node { position: relative; z-index: 2; width: 138px; height: 138px; display: grid; place-items: center; color: #25304a; border: 1px solid #e0e5ee; border-radius: 35px; background: #fff; box-shadow: 0 22px 60px #18243f25; font-size: 11px; font-weight: 700; }
.center-node img { width: 65px; }
.orbit { position: absolute; border: 1px solid #ccd5e5; border-radius: 50%; }
.orbit i { position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 6px #6558ef15; }
.orbit.o1 { width: 265px; height: 265px; }
.orbit.o2 { width: 395px; height: 395px; }
.orbit.o2 i { top: 20px; right: 42px; left: auto; background: var(--cyan); box-shadow: 0 0 0 6px #38c6e515; }
.device { position: absolute; padding: 9px 12px; border: 1px solid #dbe1eb; border-radius: 10px; background: #fff; box-shadow: 0 10px 25px #17213a12; font-size: 10px; }
.device.d1 { top: 62px; left: 36px; }
.device.d2 { top: 128px; right: 22px; }
.device.d3 { bottom: 32px; left: 116px; }

.download-section { padding-bottom: 125px; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.download-card { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 15px; padding: 20px; border: 1px solid #dde3ec; border-radius: 15px; background: #fff; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.download-card:hover { transform: translateY(-3px); border-color: #9188ed; box-shadow: 0 16px 38px #17213a12; }
.os-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: #eff1f6; font-size: 22px; }
.os-mark.windows { color: #1687d0; }
.os-mark.ubuntu { color: #dd4e23; }
.os-mark.rpm { color: #3c6eb4; }
.download-card h3, .download-card p { margin: 0; }
.download-card h3 { font-size: 14px; }
.download-card p { margin-top: 5px; color: #8590a3; font-size: 10px; }
.download-card > b { color: var(--purple); }
.open-source { margin-top: 27px; color: #7c879b; text-align: center; font-size: 11px; }
.open-source a { color: var(--purple); }

footer { max-width: 1190px; margin: auto; padding: 34px 24px; display: flex; align-items: center; justify-content: space-between; color: #7f8a9d; border-top: 1px solid #dfe4ec; font-size: 10px; }
footer .brand img { width: 30px; height: 30px; box-shadow: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 135px; gap: 64px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 820px; transform: none; }
  .proof-strip { margin-left: 18px; margin-right: 18px; }
}

@media (max-width: 900px) {
  .site-header nav a:not(.github-link):not(.release-link) { display: none; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(3) { border-top: 1px solid #eaedf3; border-left: 0; }
  .proof-strip div:nth-child(4) { border-top: 1px solid #eaedf3; }
  .role-grid, .local-section { grid-template-columns: 1fr; }
  .insight-metrics { grid-template-columns: 1fr 1fr; }
  .insight-panels { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow li { min-height: 195px; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .site-header { width: calc(100% - 30px); height: 68px; }
  .site-header nav { gap: 7px; }
  .site-header .github-link { display: none; }
  .brand span { font-size: 13px; }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: auto; padding: 112px 18px 84px; gap: 48px; }
  .hero h1 { font-size: 41px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .platforms span + span:before { display: none; }
  .hero-visual { margin: 0 -8px; }
  .product-shot { height: 340px; grid-template-columns: 1fr; }
  .shot-sidebar { display: none; }
  .shot-main { padding: 18px 14px; }
  .shot-stats article { padding: 11px; }
  .shot-list article { grid-template-columns: 44px 1fr; }
  .shot-list article strong { display: none; }
  .floating-card { display: none; }
  .proof-strip { grid-template-columns: 1fr; margin-top: -30px; }
  .proof-strip div + div { border-top: 1px solid #eaedf3; border-left: 0; }
  .section { padding: 72px 18px; }
  .role-card { min-height: 0; padding: 28px; }
  .insight-dashboard { padding: 8px; }
  .insight-topbar { grid-template-columns: 1fr auto; }
  .insight-topbar strong { display: none; }
  .insight-metrics { grid-template-columns: 1fr 1fr; }
  .insight-metrics article { padding: 14px; }
  .insight-panels > article { min-height: 250px; padding: 15px; }
  .mastery-demo > div { grid-template-columns: 80px 1fr 30px; }
  .workflow-section { padding-right: 18px; padding-left: 18px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow li { min-height: auto; }
  .workflow h3 { margin-top: 24px; }
  .network-map { margin: -35px; transform: scale(.78); }
  .download-card { grid-template-columns: 46px 1fr auto; }
  footer { align-items: flex-start; flex-direction: column; gap: 14px; }
}

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