.hero { position: relative; padding: clamp(64px, 7vw, 108px) 0 72px; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  right: -160px;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 66, 255, .18), transparent 64%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .98fr) minmax(560px, 1.1fr); gap: clamp(44px, 5vw, 80px); align-items: start; }
.hero-copy { padding-top: 12px; }
.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; color: var(--text); letter-spacing: -.035em; }
h1 {
  margin: 22px 0 24px;
  max-width: 850px;
  font-size: clamp(44px, 5.35vw, 82px);
  line-height: .98;
  font-weight: 850;
}
h1 .gradient-text, .gradient-text { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 0; max-width: 700px; color: var(--text-secondary); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.hero-fact {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 20, 34, .7);
}
.hero-fact b { display: block; margin-bottom: 4px; font-size: 15px; }
.hero-fact span { display: block; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.hero-fact-icon { display: block; color: var(--cyan); font-size: 18px; margin-bottom: 10px; }

.memory-map {
  position: relative;
  padding: 24px 28px 20px;
  border: 1px solid rgba(37, 133, 255, .55);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(6, 20, 35, .94), rgba(5, 12, 24, .86));
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 165, 255, .035);
}
.memory-map::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 28% 36%, rgba(0, 215, 245, .06), transparent 35%); }
.timeline-kicker { position: relative; z-index: 1; color: var(--cyan); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px; }
.hero-timeline { position: relative; z-index: 1; }
.workflow-step { position: relative; display: grid; grid-template-columns: 52px 64px minmax(0, 1fr) 160px; gap: 16px; align-items: center; min-height: 82px; border-top: 1px solid rgba(105, 155, 205, .17); }
.workflow-step:first-child { border-top: 0; }
.workflow-step::before { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--cyan), var(--violet)); opacity: .75; }
.workflow-step:first-child::before { top: 41px; }
.workflow-step:last-child::before { bottom: 41px; }
.workflow-no { position: relative; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--cyan); border-radius: 50%; background: var(--bg-elevated); color: var(--text); font-size: 15px; font-weight: 800; box-shadow: 0 0 22px rgba(0, 215, 245, .13); }
.workflow-step:nth-child(even) .workflow-no { border-color: var(--violet); box-shadow: 0 0 22px rgba(138, 82, 255, .17); }
.workflow-icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: #93dcff; font-size: 22px; background: rgba(7, 26, 44, .7); }
.workflow-copy b { display: block; font-size: 16px; letter-spacing: -.015em; }
.workflow-copy span { display: block; color: var(--text-secondary); font-size: 14px; line-height: 1.42; }
.workflow-outcome { padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 11px; color: #a8c4df; font-size: 13px; line-height: 1.35; background: rgba(6, 18, 32, .7); }
.timeline-note { position: relative; z-index: 1; margin-top: 10px; padding: 12px 16px; border: 1px solid var(--cyan); border-radius: 12px; color: #8eeaff; font-size: 14px; background: rgba(0, 215, 245, .04); }
.timeline-note strong { color: var(--text); }

.section { padding: clamp(76px, 8vw, 116px) 0; border-top: 1px solid rgba(105, 155, 205, .09); }
.section--soft { background: linear-gradient(180deg, rgba(8, 19, 33, .44), rgba(5, 11, 20, .1)); }
.section-intro { max-width: 850px; margin-bottom: 48px; }
.section-intro--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr); gap: 48px; align-items: end; }
.section-intro p, .section-lead { color: var(--text-secondary); font-size: 18px; }
.section-title { margin: 14px 0 0; font-size: clamp(36px, 4.1vw, 58px); line-height: 1.06; font-weight: 830; }
.section-title--sm { font-size: clamp(30px, 3.2vw, 44px); }

.problem-grid, .feature-grid, .docs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.problem-card, .feature-card, .doc-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(11, 23, 38, .84), rgba(6, 14, 25, .82));
}
.problem-card h3, .feature-card h3, .doc-card h3 { margin: 14px 0 8px; font-size: 21px; }
.problem-card p, .feature-card p, .doc-card p { margin: 0; color: var(--text-secondary); font-size: 15.5px; }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(0, 215, 245, .4); border-radius: 12px; background: rgba(0, 215, 245, .06); color: var(--cyan); }
.icon--violet { color: #b991ff; border-color: rgba(138, 82, 255, .45); background: rgba(138, 82, 255, .07); }
.icon--warn { color: var(--warning); border-color: rgba(255, 184, 74, .35); background: rgba(255, 184, 74, .06); }

.process-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.process-step { position: relative; padding: 24px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 19, 33, .7); }
.process-step::after { content: "→"; position: absolute; right: -12px; top: 50%; z-index: 2; color: var(--blue); background: var(--bg); padding: 2px; }
.process-step:last-child::after { display: none; }
.step-no { color: var(--text-muted); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.step-icon { position: relative; width: 24px; height: 24px; margin: 18px 0 14px; color: var(--cyan); font-size: 0; }
.step-icon::before, .step-icon::after { content: ""; position: absolute; box-sizing: border-box; }
.process-step:nth-child(1) .step-icon::before { left: 3px; top: 1px; width: 18px; height: 22px; border: 2px solid currentColor; border-radius: 2px; }
.process-step:nth-child(1) .step-icon::after { left: 7px; top: 7px; width: 10px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor; }
.process-step:nth-child(2) .step-icon::before { left: 6px; top: 4px; width: 15px; height: 2px; background: currentColor; box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor; }
.process-step:nth-child(2) .step-icon::after { left: 1px; top: 4px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor; }
.process-step:nth-child(3) .step-icon::before { left: 5px; top: 3px; width: 16px; height: 18px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.process-step:nth-child(4) .step-icon::before { left: 2px; top: 2px; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; }
.process-step:nth-child(4) .step-icon::after { left: 15px; top: 16px; width: 9px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.process-step:nth-child(5) .step-icon::before { inset: 0; background: radial-gradient(circle at 6px 4px, currentColor 0 2.5px, transparent 3px), radial-gradient(circle at 18px 10px, currentColor 0 2.5px, transparent 3px), radial-gradient(circle at 6px 20px, currentColor 0 2.5px, transparent 3px), linear-gradient(currentColor, currentColor) 5px 4px / 2px 16px no-repeat, linear-gradient(135deg, transparent 43%, currentColor 44% 56%, transparent 57%) 6px 4px / 12px 8px no-repeat; }
.process-step h3 { margin-bottom: 8px; font-size: 19px; }
.process-step p { margin: 0; color: var(--text-secondary); font-size: 14px; }

.trace-layout { display: grid; grid-template-columns: minmax(0, .68fr) minmax(560px, 1.2fr); gap: 72px; align-items: center; }
.trace-copy p { color: var(--text-secondary); }
.traceability-flow { padding: 24px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: rgba(5, 15, 27, .74); box-shadow: var(--shadow); }
.flow-kicker { margin-bottom: 18px; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .15em; }
.context-layers { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.55fr) minmax(0, .92fr); gap: 14px; align-items: stretch; }
.context-layer { position: relative; min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); }
.context-layer:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -12px; top: 50%; width: 10px; color: #78baff; transform: translateY(-50%); text-align: center; font-weight: 800; }
.context-layer-no { display: inline-flex; margin-bottom: 12px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.context-layer b { display: block; margin-bottom: 6px; color: var(--text); font-size: 17px; }
.context-layer p { margin: 0 0 12px; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.context-layer small { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.context-layer--knowledge { border-color: rgba(138,82,255,.42); background: radial-gradient(circle at 50% 0%, rgba(138,82,255,.08), transparent 55%), var(--surface-soft); }
.knowledge-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.knowledge-parts > div { min-width: 0; padding: 12px; border: 1px solid rgba(138,82,255,.24); border-radius: 10px; background: rgba(15,23,42,.38); }
.knowledge-parts strong { display: block; margin-bottom: 4px; color: #d9c8ff; font-size: 12px; }
.flow-footer { margin-top: 16px; color: var(--cyan); font-size: 14px; line-height: 1.45; }

.example-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(560px, 1.2fr); gap: 64px; align-items: center; }
.example-copy p { color: var(--text-secondary); }
.terminal-panel, .repo-panel { overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius); background: #07101d; box-shadow: var(--shadow); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.dots { letter-spacing: 3px; color: #ff6473; }
.terminal-panel pre { box-sizing: border-box; min-height: 240px; margin: 0; padding: 24px; overflow-x: auto; color: #c8d6e7; font-size: 14px; line-height: 1.7; }
.terminal-line { display: block; min-height: 1.7em; white-space: pre-wrap; }
.terminal-line--gap { margin-top: 1.1em; }
.terminal-cursor { display: inline-block; width: .58em; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: currentColor; animation: terminal-cursor-blink .82s steps(1, end) infinite; }
.terminal-panel.is-running { border-color: rgba(0, 215, 245, .62); box-shadow: var(--shadow), 0 0 30px rgba(0, 215, 245, .04); }
.prompt { color: var(--cyan); }
.muted { color: var(--text-muted); }
.pass { color: var(--success); }
.command { color: #b895ff; }

@keyframes terminal-cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-cursor { animation: none; }
}

.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.callout { padding: 24px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: rgba(7, 23, 39, .72); }
.callout strong { display: block; margin-bottom: 7px; font-size: 18px; }
.callout p { margin: 0; color: var(--text-secondary); }
.callout--success { border-color: rgba(48, 216, 144, .4); background: rgba(48, 216, 144, .04); }
.callout--warning { border-color: rgba(255, 184, 74, .38); background: rgba(255, 184, 74, .04); }

.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience-card { min-height: 220px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 19, 33, .7); }
.audience-card h3 { margin: 16px 0 10px; font-size: 24px; }
.audience-card p { margin: 0; color: var(--text-secondary); }
.docs-grid { grid-template-columns: repeat(3, 1fr); }
.doc-card { display: block; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.doc-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-hover); color: var(--text); }
.doc-card .meta { color: var(--cyan); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }

.cta-section { padding: 0 0 96px; }
.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  padding: clamp(34px, 4.5vw, 56px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(8, 30, 50, .93), rgba(23, 12, 48, .84));
}
.cta-box::after { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(138, 82, 255, .3), transparent 65%); pointer-events: none; }
.cta-copy, .cta-quickstart { position: relative; z-index: 1; }
.cta-title { margin: 0 0 12px; max-width: 760px; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.06; }
.cta-copy p { max-width: 720px; margin: 0 0 24px; color: var(--text-secondary); }
.cta-copy .button { position: relative; z-index: 1; }
.cta-quickstart {
  padding: 22px 24px;
  border: 1px solid rgba(126, 167, 214, .24);
  border-radius: 16px;
  background: rgba(4, 13, 27, .5);
  box-shadow: inset 0 0 42px rgba(0, 215, 245, .025);
  backdrop-filter: blur(8px);
}
.cta-quickstart-kicker { margin-bottom: 6px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cta-steps { margin: 0; padding: 0; list-style: none; }
.cta-steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; padding: 15px 0; border-top: 1px solid rgba(126, 167, 214, .16); }
.cta-steps li:first-child { border-top: 0; }
.cta-step-no { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(0, 215, 245, .5); border-radius: 50%; color: #a8f2ff; font-size: 11px; font-weight: 800; background: rgba(0, 215, 245, .05); }
.cta-steps strong { display: block; margin: 1px 0 3px; color: var(--text); font-size: 15px; }
.cta-steps small { display: block; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.cta-steps code { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 940px) {
  .cta-box { grid-template-columns: 1fr; gap: 28px; }
  .cta-quickstart { max-width: 680px; }
}

@media (max-width: 460px) {
  .cta-box { padding: 28px 22px; }
  .cta-quickstart { padding: 18px; }
}

.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--text-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-brand { color: var(--text); font-weight: 760; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px 28px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; text-decoration: none; }
.footer-note { margin-top: 10px; font-size: 13px; }

@media (max-width: 760px) {
  .context-layers { grid-template-columns: 1fr; }
  .context-layer:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -13px; width: 20px; transform: translateX(-50%); }
  .knowledge-parts { grid-template-columns: 1fr; }
}
