:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #080d16;
  --panel: rgba(12, 18, 30, 0.82);
  --panel-strong: rgba(18, 27, 44, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(125, 211, 252, 0.28);
  --text: #f8fafc;
  --muted: #9aa8bb;
  --subtle: #64748b;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --violet: #8b5cf6;
  --purple: #c084fc;
  --green: #34d399;
  --amber: #f59e0b;
  --red: #f87171;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(34, 211, 238, 0.12), transparent 26rem),
    radial-gradient(circle at 80% 4%, rgba(139, 92, 246, 0.16), transparent 30rem),
    linear-gradient(180deg, #05070d 0%, #07101b 46%, #05070d 100%);
  color: var(--text);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  overflow: hidden;
  position: relative;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.9);
  border-color: rgba(148, 163, 184, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 800;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 50%;
  background:
    conic-gradient(from 40deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.64), rgba(52, 211, 153, 0.22), rgba(34, 211, 238, 0.2)),
    rgba(8, 13, 22, 0.92);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.24);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(248, 250, 252, 0.22);
  border-radius: 50%;
}

.brand-mark::before {
  inset: 7px 3px;
  transform: rotate(-28deg);
}

.brand-mark::after {
  inset: 3px 7px;
  transform: rotate(28deg);
}

.brand-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.09);
}

.header-cta {
  justify-self: end;
  padding: 10px 16px;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #7c3aed 55%, #c026d3);
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.32);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.58);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
}

.hero-section {
  position: relative;
  min-height: 690px;
  padding: 110px clamp(18px, 4vw, 56px) 42px;
}

.blueprint-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
}

.blueprint-field svg {
  position: absolute;
  inset: 7% 4% auto;
  width: 92%;
  height: 64%;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.18));
}

.blueprint-field path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 2;
}

.node {
  position: absolute;
  opacity: 0.72;
  min-width: 168px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(11, 18, 31, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  transform: rotate(var(--rotate, 0deg));
}

.node span,
.node i {
  display: block;
}

.node span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.node i {
  margin-top: 8px;
  color: rgba(203, 213, 225, 0.62);
  font-size: 11px;
  font-style: normal;
}

.node-red {
  top: 13%;
  left: 8%;
  border-color: rgba(248, 113, 113, 0.28);
}

.node-red::before {
  background: rgba(248, 113, 113, 0.72);
}

.node-cyan {
  top: 35%;
  left: 24%;
  --rotate: -2deg;
  border-color: rgba(34, 211, 238, 0.34);
}

.node-violet {
  top: 24%;
  right: 7%;
  --rotate: 2deg;
  border-color: rgba(139, 92, 246, 0.34);
}

.node-green {
  top: 57%;
  right: 14%;
  border-color: rgba(52, 211, 153, 0.32);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1220px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 750px;
}

.brand-line {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(48px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #b9c4d3;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.68;
}

.hero-actions,
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1 48%, #a855f7);
  box-shadow: 0 18px 44px rgba(59, 130, 246, 0.28);
}

.button-secondary {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.52);
  color: #dbeafe;
}

.button-secondary:hover {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(15, 23, 42, 0.74);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

.hero-facts span {
  position: relative;
  padding-left: 15px;
}

.hero-facts span::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.72);
}

.hero-console {
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.12), transparent 34%),
    rgba(7, 12, 22, 0.86);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

.console-top div {
  display: flex;
  gap: 7px;
}

.console-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.console-top i:nth-child(2) {
  background: var(--violet);
}

.console-top i:nth-child(3) {
  background: var(--green);
}

.console-grid {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.task-panel,
.skill-stack,
.graph-preview {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.task-panel {
  padding: 18px;
}

.panel-label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.task-panel p {
  margin: 10px 0 0;
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.72;
}

.skill-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.skill-stack span {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 700;
}

.graph-preview {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    rgba(3, 7, 18, 0.72);
  background-size: 34px 34px;
}

.graph-preview::before,
.graph-preview::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.66), rgba(139, 92, 246, 0));
  transform-origin: left center;
}

.graph-preview::before {
  top: 88px;
  left: 72px;
  transform: rotate(18deg);
}

.graph-preview::after {
  top: 150px;
  left: 92px;
  transform: rotate(-14deg);
}

.graph-card {
  position: absolute;
  z-index: 1;
  min-width: 138px;
  padding: 13px 14px;
  border-radius: 14px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.graph-card-a {
  top: 36px;
  left: 32px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(37, 99, 235, 0.82));
}

.graph-card-b {
  top: 102px;
  right: 28px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(168, 85, 247, 0.78));
}

.graph-card-c {
  bottom: 24px;
  left: 70px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.9), rgba(34, 197, 94, 0.72));
}

.pin {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
}

.pin-a {
  top: 83px;
  left: 171px;
}

.pin-b {
  top: 116px;
  right: 171px;
  background: var(--violet);
}

.pin-c {
  bottom: 69px;
  left: 190px;
  background: var(--green);
}

section {
  position: relative;
}

.capability-section,
.skills-section,
.workflow-section,
.source-section {
  padding: 110px clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p,
.source-label {
  margin: 0 0 13px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
}

.section-heading h2,
.source-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.capability-grid article {
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(10, 16, 28, 0.72);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
}

.icon-cyan {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
}

.icon-violet {
  background: rgba(139, 92, 246, 0.16);
  color: var(--purple);
}

.icon-emerald {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber);
}

.capability-grid h3,
.workflow-track h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.capability-grid p,
.workflow-track p,
.skills-copy p,
.source-panel p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.skills-copy {
  max-width: 560px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #d8e2ef;
  font-size: 15px;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, white 0 22%, var(--green) 24% 100%);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.58);
}

.skill-terminal {
  padding: 28px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 44%),
    rgba(3, 7, 18, 0.84);
  box-shadow: var(--shadow);
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

.terminal-line {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.5;
}

.terminal-line::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.terminal-line:last-child {
  border-bottom: 0;
}

.terminal-line.muted {
  color: var(--subtle);
}

.terminal-line.success {
  color: #bbf7d0;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1220px;
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(10, 16, 28, 0.66);
  overflow: hidden;
}

.workflow-track article {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.workflow-track article:last-child {
  border-right: 0;
}

.workflow-track span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 900;
}

.source-section {
  padding-bottom: 80px;
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  gap: 34px;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(168, 85, 247, 0.24), transparent 22rem),
    radial-gradient(circle at 10% 80%, rgba(34, 211, 238, 0.15), transparent 24rem),
    rgba(8, 13, 22, 0.86);
  box-shadow: var(--shadow);
}

.source-panel p {
  max-width: 720px;
  margin-top: 22px;
}

.edition-list {
  display: grid;
  gap: 14px;
  align-self: center;
}

.edition-list div {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
}

.edition-list strong,
.edition-list span {
  display: block;
}

.edition-list strong {
  margin-bottom: 7px;
  font-size: 17px;
}

.edition-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.source-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(160px, 0.5fr) minmax(260px, 0.7fr);
  gap: 34px;
  padding: 54px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(3, 7, 18, 0.76);
}

.footer-brand {
  margin-bottom: 20px;
}

.site-footer p {
  max-width: 480px;
}

.footer-links {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

.contact-card {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.56);
}

.contact-card strong,
.contact-card span {
  display: block;
}

.contact-card strong {
  margin-bottom: 9px;
}

.contact-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .hero-content,
  .skills-layout,
  .source-panel {
    grid-template-columns: 1fr;
  }

  .hero-console,
  .skills-copy {
    max-width: 720px;
  }

  .capability-grid,
  .workflow-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-track article:nth-child(2) {
    border-right: 0;
  }

  .workflow-track article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .header-cta {
    order: 3;
    padding: 9px 12px;
    font-size: 13px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(5, 7, 13, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 116px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(42px, 11.2vw, 58px);
    line-height: 1.07;
  }

  .hero-lead {
    font-size: 17px;
  }

  .node {
    opacity: 0.18;
  }

  .skill-stack {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero-section,
  .capability-section,
  .skills-section,
  .workflow-section,
  .source-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .source-actions {
    display: grid;
  }

  .blueprint-field {
    opacity: 0.32;
  }

  .blueprint-field .node {
    display: none;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    gap: 12px;
  }

  .capability-grid,
  .workflow-track {
    grid-template-columns: 1fr;
  }

  .workflow-track article {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .workflow-track article:last-child {
    border-bottom: 0;
  }

  .console-grid,
  .skill-terminal,
  .source-panel {
    padding: 18px;
  }

  .graph-preview {
    min-height: 190px;
  }

  .graph-card {
    min-width: 118px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
