:root {
  --bg: #0f1010;
  --bg-soft: #1f2121;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #d9d8d2;
  --text-strong: #fbfaf4;
  --muted: #96958d;
  --brand: #32f08c;
  --brand-soft: rgba(50, 240, 140, 0.22);
  --warm: #d7b58a;
  --danger: #ff8f70;
  --max-width: 1160px;
  --radius: 8px;
  --space: clamp(86px, 11vw, 148px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #0f1010 0%, var(--bg) 42%, #111212 100%);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.45;
  background:
    radial-gradient(circle at 50% 12%, rgba(50, 240, 140, 0.09), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(215, 181, 138, 0.08), transparent 34%);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

.cursor-glow {
  position: fixed;
  z-index: 50;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(50, 240, 140, 0.14), transparent 68%);
  transition: opacity 0.2s ease;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max-width));
  padding: 11px 14px 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(18, 19, 19, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 800;
}

.brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(50, 240, 140, 0.95), rgba(215, 181, 138, 0.82));
  box-shadow: 0 0 22px rgba(50, 240, 140, 0.34);
}

.site-nav {
  display: flex;
  gap: 2px;
}

.site-nav a {
  min-width: 54px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  transition: color 0.22s ease, background 0.22s ease;
}

.site-nav a:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 108px 20px 44px;
  background:
    linear-gradient(180deg, rgba(16, 17, 18, 0.25), var(--bg)),
    url("assets/hero-bg.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(10, 11, 11, 0.72);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 0 48%, transparent 76%);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(850px, 100%);
  margin: clamp(120px, 16svh, 165px) auto 0;
  text-align: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--text-strong);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.hero-subtitle {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: clamp(1.35rem, 2.6vw, 2.35rem);
  font-weight: 800;
}

.hero-copy {
  width: min(650px, 100%);
  margin-bottom: 24px;
  color: rgba(217, 216, 210, 0.84);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.hero-actions {
  position: relative;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 850;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-130%);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::before {
  animation: btn-stream 0.9s ease;
}

.btn-primary {
  color: #07130d;
  background: var(--brand);
  box-shadow: 0 20px 54px rgba(50, 240, 140, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.cane-showcase {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: none;
}

#hero-cane-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.44));
}

.cane-aura {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 46%;
  height: 78%;
  border: 1px solid rgba(50, 240, 140, 0.16);
  transform: translate(-50%, -50%) rotate(-7deg);
  background:
    linear-gradient(90deg, transparent, rgba(50, 240, 140, 0.08), transparent),
    repeating-linear-gradient(0deg, rgba(50, 240, 140, 0.12) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(50, 240, 140, 0.08) 0 1px, transparent 1px 28px);
  filter: blur(0.1px);
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.scan-plane {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  z-index: 4;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(50, 240, 140, 0.34), transparent);
  filter: blur(10px);
  opacity: 0.9;
  animation: scan-down 4.8s ease-in-out infinite;
}

.cane-device {
  position: absolute;
  left: 50%;
  top: 7%;
  width: 310px;
  height: 84%;
  transform: translateX(-50%) rotate(-5deg);
  filter:
    drop-shadow(0 0 34px rgba(50, 240, 140, 0.22))
    drop-shadow(0 34px 70px rgba(0, 0, 0, 0.42));
}

.cane-device::before {
  content: "";
  position: absolute;
  left: 29%;
  top: 88px;
  z-index: 7;
  width: 54px;
  height: calc(100% - 165px);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(50, 240, 140, 0.28), transparent);
  background-size: 100% 170px;
  mix-blend-mode: screen;
  animation: cane-scan 2.8s linear infinite;
}

.cane-handle {
  position: absolute;
  left: 0;
  top: 28px;
  z-index: 4;
  width: 100%;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px 26px 26px 34px;
  background:
    repeating-linear-gradient(90deg, rgba(50, 240, 140, 0.11) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #f3f7f0, #83958c 58%, #202926);
  box-shadow:
    inset 0 0 22px rgba(50, 240, 140, 0.18),
    0 16px 48px rgba(0, 0, 0, 0.36);
}

.cane-corner {
  position: absolute;
  left: calc(30% - 30px);
  top: 48px;
  z-index: 8;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(50, 240, 140, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 46%, rgba(50, 240, 140, 0.92), transparent 16%),
    linear-gradient(135deg, #e9f2ec, #60766a 62%, #17201c);
  box-shadow: 0 0 34px rgba(50, 240, 140, 0.2);
}

.cane-shaft,
.cane-button,
.cane-light,
.cane-tip,
.cane-foot {
  position: absolute;
  display: block;
}

.cane-shaft {
  left: 29%;
  top: 90px;
  z-index: 5;
  width: 54px;
  height: calc(100% - 165px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.23), transparent 24% 68%, rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(0deg, rgba(50, 240, 140, 0.12) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #eef5ef, #8ea499 27%, #2b3a34 76%, #111715);
}

.cane-button {
  z-index: 9;
  width: 34px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #28302d, #0d1110);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.12);
}

.button-main {
  left: 55%;
  top: 51px;
}

.button-sub {
  left: 69%;
  top: 51px;
  width: 24px;
}

.cane-light {
  z-index: 10;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 22px rgba(50, 240, 140, 0.9);
  animation: light-pulse 2.5s ease-in-out infinite;
}

.light-a {
  left: 39%;
  top: 54px;
}

.light-b {
  left: 45%;
  top: 54px;
  animation-delay: 0.28s;
}

.light-c {
  left: 51%;
  top: 54px;
  background: var(--warm);
  box-shadow: 0 0 18px rgba(215, 181, 138, 0.82);
  animation-delay: 0.56s;
}

.cane-tip {
  left: calc(29% - 1px);
  bottom: 62px;
  z-index: 5;
  width: 56px;
  height: 84px;
  border-radius: 20px 20px 10px 10px;
  background: linear-gradient(180deg, #cfd9d1, #1b2722);
}

.cane-foot {
  left: calc(29% - 38px);
  bottom: 34px;
  z-index: 6;
  width: 132px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(50, 240, 140, 0.78), #f2f8f0, #6f8178);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.44);
}

.section {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: var(--space) 0;
}

.section > * {
  position: relative;
  z-index: 2;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: clamp(2rem, 4.8vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(360px, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.image-panel {
  position: relative;
  margin: 0;
  overflow: visible;
  background: transparent;
  display: grid;
  place-items: center;
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(15, 16, 16, 0.12) 78%, rgba(15, 16, 16, 0.34) 100%);
}

.image-panel img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.98;
}

.image-panel figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.overview-visual {
  width: min(460px, 100%);
  min-height: 0;
  aspect-ratio: auto;
}

.overview-visual::after {
  background:
    radial-gradient(ellipse at center, transparent 62%, rgba(15, 16, 16, 0.12) 82%, rgba(15, 16, 16, 0.28) 100%);
}

.overview-visual img {
  opacity: 1;
}

.section-visual {
  margin: -8px auto 34px;
}

.scenario-visual {
  width: min(620px, 100%);
  min-height: 0;
  aspect-ratio: auto;
}

.architecture-visual {
  width: min(840px, 100%);
  min-height: 0;
  aspect-ratio: auto;
}

.principle-grid,
.user-grid,
.scenario-grid,
.architecture-layers,
.value-grid {
  display: grid;
  gap: 16px;
}

.principle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  padding-left: clamp(34px, 5vw, 58px);
  border-left: 0;
}

.principle-grid::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(50, 240, 140, 0.72), rgba(215, 181, 138, 0.36), transparent);
  box-shadow: 0 0 18px rgba(50, 240, 140, 0.28);
}

.user-grid {
  grid-template-columns: repeat(3, 1fr);
}

.scenario-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.architecture-layers {
  grid-template-columns: repeat(4, 1fr);
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.principle-card,
.user-card,
.scenario-card,
.layer-card,
.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.principle-card:hover,
.user-card:hover,
.scenario-card:hover,
.layer-card:hover,
.value-card:hover {
  border-color: rgba(50, 240, 140, 0.34);
  box-shadow: 0 28px 76px rgba(50, 240, 140, 0.09);
  transform: translateY(-5px);
}

.principle-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 22px;
  min-height: auto;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: color 0.24s ease, border-color 0.24s ease;
}

.principle-card::before {
  content: "";
  position: absolute;
  left: calc(clamp(-44px, -5vw, -28px));
  top: 36px;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(50, 240, 140, 0.72);
  border-radius: 50%;
  background: #0f1010;
  box-shadow:
    0 0 0 5px rgba(50, 240, 140, 0.07),
    0 0 22px rgba(50, 240, 140, 0.36);
}

.principle-card::after {
  content: "";
  position: absolute;
  left: 92px;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(50, 240, 140, 0.62), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.principle-card:first-child {
  padding-top: 0;
}

.principle-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.principle-card:hover {
  border-color: rgba(50, 240, 140, 0.32);
  box-shadow: none;
  transform: none;
}

.principle-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.principle-card span,
.scenario-index,
.loop-track span,
.layer-card span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.principle-card h3,
.user-card h3,
.scenario-card h3,
.loop-track h3,
.layer-card h3,
.value-card h3 {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 1.13rem;
  line-height: 1.35;
}

.principle-card h3,
.principle-card p {
  grid-column: 2;
}

.principle-card span {
  grid-row: 1 / span 2;
  margin-bottom: 0;
  padding-top: 0;
  color: transparent;
  background: linear-gradient(180deg, rgba(50, 240, 140, 0.95), rgba(217, 216, 210, 0.18));
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.88;
}

.principle-card p,
.user-card p,
.scenario-card p,
.loop-track p,
.layer-card p,
.value-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.user-card {
  min-height: 230px;
  padding: 30px;
}

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

.pain-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 14%, rgba(50, 240, 140, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.pain-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50, 240, 140, 0.76), transparent);
  box-shadow: 0 0 22px rgba(50, 240, 140, 0.34);
}

.pain-icon,
.scenario-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 48px;
  border: 1px solid rgba(50, 240, 140, 0.34);
  border-radius: 50%;
  color: var(--brand);
  background: rgba(50, 240, 140, 0.075);
  box-shadow: 0 0 28px rgba(50, 240, 140, 0.12);
}

.pain-icon svg,
.scenario-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-label {
  display: block;
  margin-bottom: 14px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
}

.pain-card h3 {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.22;
}

.pain-card p {
  margin-bottom: 28px;
  color: var(--muted);
}

.pain-card strong {
  display: block;
  color: rgba(217, 216, 210, 0.92);
  font-size: 0.96rem;
  line-height: 1.62;
}

.pain-card strong::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--brand);
}

.scenario-card {
  min-height: 300px;
  padding: 26px;
}

.scenario-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 38px;
}

.scenario-icon svg {
  width: 23px;
  height: 23px;
}

.scenario-card:nth-child(1),
.scenario-card:nth-child(3) {
  border-color: rgba(50, 240, 140, 0.2);
}

.tracking-section {
  width: min(calc(100% - 40px), 1240px);
}

.tracking-console {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.live-map-panel,
.history-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.032));
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.28);
}

.live-map-panel {
  padding: 18px;
}

.map-topbar,
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.map-topbar {
  margin-bottom: 14px;
}

.map-topbar div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
}

.map-topbar span,
.history-header > span,
.replay-label,
.replay-item span,
.replay-item em,
.live-status-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow:
    0 0 0 0 rgba(50, 240, 140, 0.45),
    0 0 20px rgba(50, 240, 140, 0.52);
  animation: live-pulse 1.8s ease-out infinite;
}

.route-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(50, 240, 140, 0.12), transparent 24%),
    radial-gradient(circle at 18% 76%, rgba(215, 181, 138, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(25, 30, 28, 0.96), rgba(13, 16, 15, 0.98));
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 0 58%, transparent 86%);
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}

.route-shadow,
.route-line {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-shadow {
  stroke: rgba(50, 240, 140, 0.16);
  stroke-width: 18;
  filter: blur(5px);
}

.route-line {
  stroke: var(--brand);
  stroke-width: 5;
  stroke-dasharray: 14 12;
  animation: route-flow 1.6s linear infinite;
}

.map-road {
  position: absolute;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  transform-origin: left center;
}

.road-a {
  left: 4%;
  top: 28%;
  width: 76%;
  transform: rotate(-12deg);
}

.road-b {
  left: 10%;
  top: 66%;
  width: 88%;
  transform: rotate(8deg);
}

.road-c {
  left: 52%;
  top: 6%;
  width: 1px;
  height: 88%;
  background: rgba(255, 255, 255, 0.11);
  transform: rotate(16deg);
}

.route-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 3px solid #0f1010;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 5px rgba(215, 181, 138, 0.16), 0 14px 34px rgba(0, 0, 0, 0.3);
}

.route-pin span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  min-width: max-content;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text-strong);
  background: rgba(14, 16, 15, 0.82);
  font-size: 0.78rem;
  transform: translateX(-50%);
}

.pin-home {
  left: 8%;
  top: 76%;
}

.pin-park {
  left: 53%;
  top: 70%;
}

.pin-current {
  left: 90%;
  top: 18%;
  background: var(--brand);
  box-shadow: 0 0 0 8px rgba(50, 240, 140, 0.13), 0 0 26px rgba(50, 240, 140, 0.42);
  animation: pin-breathe 2.2s ease-in-out infinite;
}

.live-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.live-status-grid article {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.live-status-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 1.05rem;
  line-height: 1.28;
}

.history-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
}

.history-header {
  margin-bottom: 20px;
}

.history-header .eyebrow {
  margin-bottom: 6px;
}

.history-header h3 {
  margin-bottom: 0;
  color: var(--text-strong);
  font-size: 1.52rem;
}

.replay-card {
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(50, 240, 140, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 20%, rgba(50, 240, 140, 0.18), transparent 30%),
    rgba(50, 240, 140, 0.055);
}

.replay-card strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--text-strong);
  font-size: 1.22rem;
}

.replay-card p {
  margin-bottom: 0;
  color: rgba(217, 216, 210, 0.82);
}

.replay-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.replay-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 3px 12px;
  width: 100%;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.replay-item:hover,
.replay-item.is-active {
  border-color: rgba(50, 240, 140, 0.34);
  background: rgba(50, 240, 140, 0.075);
  transform: translateY(-1px);
}

.replay-item span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--warm);
  font-weight: 850;
}

.replay-item strong {
  color: var(--text-strong);
  font-size: 0.98rem;
}

.tracking-alert {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
}

.tracking-alert span {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 18px rgba(255, 143, 112, 0.36);
}

.tracking-alert p {
  margin-bottom: 0;
}

.ai-section {
  width: min(calc(100% - 40px), 1240px);
}

.ai-dashboard {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.2fr);
  grid-template-areas:
    "query chart"
    "metrics chart";
  gap: 18px;
}

.ai-query-panel,
.ai-chart-panel,
.ai-metric-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.032));
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.26);
}

.ai-query-panel {
  grid-area: query;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.query-bubble,
.ai-answer-card,
.ai-suggestion-list article {
  border-radius: var(--radius);
}

.query-bubble {
  padding: 18px;
  border: 1px solid rgba(215, 181, 138, 0.22);
  background: rgba(215, 181, 138, 0.055);
}

.query-bubble span,
.ai-status,
.ai-suggestion-list span,
.chart-header span,
.chart-header em,
.ai-metric-panel span {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.query-bubble strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 1.16rem;
  line-height: 1.38;
}

.ai-answer-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(50, 240, 140, 0.24);
  background:
    radial-gradient(circle at 92% 12%, rgba(50, 240, 140, 0.2), transparent 28%),
    rgba(50, 240, 140, 0.058);
}

.ai-answer-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50, 240, 140, 0.8), transparent);
}

.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--brand);
  font-weight: 850;
}

.ai-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(50, 240, 140, 0.52);
}

.ai-answer-card h3 {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 1.32rem;
  line-height: 1.32;
}

.ai-answer-card p,
.ai-suggestion-list p {
  margin-bottom: 0;
  color: rgba(217, 216, 210, 0.82);
}

.ai-suggestion-list {
  display: grid;
  gap: 10px;
}

.ai-suggestion-list article {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.ai-suggestion-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--warm);
  font-weight: 850;
}

.ai-chart-panel {
  grid-area: chart;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 520px;
  padding: 20px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.chart-header strong {
  display: block;
  margin-top: 4px;
  color: var(--text-strong);
  font-size: 1.2rem;
}

.chart-header em {
  padding: 5px 10px;
  border: 1px solid rgba(50, 240, 140, 0.22);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(50, 240, 140, 0.06);
}

.trend-chart {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 76% 22%, rgba(50, 240, 140, 0.11), transparent 30%),
    linear-gradient(135deg, rgba(19, 24, 22, 0.96), rgba(12, 14, 14, 0.98));
}

.chart-grid {
  position: absolute;
  inset: 24px 24px 46px;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 25%, 16.66% 100%;
}

.bar-groups {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 46px;
  top: 24px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 2vw, 22px);
}

.bar-group {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  height: 100%;
}

.bar-group::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.bar {
  width: min(18px, 36%);
  min-height: 18px;
  border-radius: 999px 999px 4px 4px;
  transform-origin: bottom;
}

.bar-steps {
  background: linear-gradient(180deg, var(--brand), rgba(50, 240, 140, 0.32));
  box-shadow: 0 0 22px rgba(50, 240, 140, 0.18);
}

.bar-pace {
  background: linear-gradient(180deg, var(--warm), rgba(215, 181, 138, 0.28));
}

.bar-group.is-warning .bar {
  background: linear-gradient(180deg, var(--danger), rgba(255, 143, 112, 0.28));
  box-shadow: 0 0 20px rgba(255, 143, 112, 0.18);
}

.chart-days {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.legend-steps {
  background: var(--brand);
}

.legend-pace {
  background: var(--warm);
}

.chart-legend strong {
  margin-left: auto;
  color: var(--danger);
  font-size: 0.92rem;
}

.ai-metric-panel {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
}

.ai-metric-panel article {
  min-height: 128px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-metric-panel article:last-child {
  border-right: 0;
}

.ai-metric-panel strong {
  display: block;
  margin: 8px 0 18px;
  color: var(--text-strong);
  font-size: 1.14rem;
}

.metric-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.metric-bar.warning i {
  background: var(--danger);
}

.metric-bar.calm i {
  background: var(--warm);
}

.loop-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  isolation: isolate;
}

.loop-track::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 34px;
  height: 2px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(50, 240, 140, 0.34), rgba(50, 240, 140, 0.5), transparent);
  box-shadow: 0 0 18px rgba(50, 240, 140, 0.26);
}

.loop-track::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 31px;
  z-index: 1;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, transparent 8%, rgba(50, 240, 140, 0.0) 18%, rgba(50, 240, 140, 0.95) 28%, rgba(215, 181, 138, 0.72) 34%, rgba(50, 240, 140, 0.0) 45%, transparent 100%);
  background-size: 220% 100%;
  filter: blur(1px);
  animation: care-flow 3.4s linear infinite;
}

.loop-track article {
  position: relative;
  z-index: 2;
  min-height: 235px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(50, 240, 140, 0.055), transparent 44%),
    rgba(18, 20, 20, 0.88);
}

.loop-track article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(110deg, transparent 0%, transparent 32%, rgba(50, 240, 140, 0.18) 46%, rgba(215, 181, 138, 0.12) 50%, transparent 64%, transparent 100%);
  background-size: 260% 100%;
  opacity: 0.72;
  animation: card-stream 4.6s ease-in-out infinite;
}

.loop-track article::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50, 240, 140, 0.8), transparent);
  box-shadow: 0 0 18px rgba(50, 240, 140, 0.35);
  transform: translateX(-110%);
  animation: edge-sweep 3.4s ease-in-out infinite;
}

.loop-track article:nth-child(2)::before,
.loop-track article:nth-child(2)::after {
  animation-delay: 0.22s;
}

.loop-track article:nth-child(3)::before,
.loop-track article:nth-child(3)::after {
  animation-delay: 0.44s;
}

.loop-track article:nth-child(4)::before,
.loop-track article:nth-child(4)::after {
  animation-delay: 0.66s;
}

.loop-track article:nth-child(5)::before,
.loop-track article:nth-child(5)::after {
  animation-delay: 0.88s;
}

.loop-track article > * {
  position: relative;
  z-index: 2;
}

.loop-track span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 54px;
  border-radius: 50%;
  color: #07130d;
  background: var(--brand);
  box-shadow:
    0 0 0 0 rgba(50, 240, 140, 0.42),
    0 0 28px rgba(50, 240, 140, 0.34);
  animation: node-pulse 2.4s ease-in-out infinite;
}

.loop-track article:nth-child(2) span { animation-delay: 0.22s; }
.loop-track article:nth-child(3) span { animation-delay: 0.44s; }
.loop-track article:nth-child(4) span { animation-delay: 0.66s; }
.loop-track article:nth-child(5) span { animation-delay: 0.88s; }

.layer-card {
  min-height: 286px;
  padding: 28px;
}

.layer-card span {
  margin-bottom: 58px;
  color: var(--warm);
}

.value-card {
  min-height: 205px;
  padding: 30px;
}

.closing-quote {
  margin: 42px 0 0;
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text-strong);
  font-size: clamp(1.5rem, 3.6vw, 3.2rem);
  font-weight: 850;
  line-height: 1.18;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 64px 24px 50px;
  border-top: 1px solid var(--line-soft);
  background: #101111;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--text-strong);
  font-weight: 850;
}

.site-footer span {
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes btn-stream {
  to { transform: translateX(130%); }
}

@keyframes scan-down {
  0%, 100% { transform: translateY(0); opacity: 0.1; }
  18% { opacity: 0.85; }
  56% { opacity: 0.95; }
  82% { transform: translateY(56vh); opacity: 0.12; }
}

@keyframes cane-scan {
  from { background-position: 0 -180px; }
  to { background-position: 0 180px; }
}

@keyframes light-pulse {
  0%, 100% {
    opacity: 0.58;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes care-flow {
  from { background-position: 160% 0; }
  to { background-position: -80% 0; }
}

@keyframes card-stream {
  0%, 18% { background-position: 160% 0; opacity: 0; }
  42% { opacity: 0.72; }
  78%, 100% { background-position: -90% 0; opacity: 0; }
}

@keyframes edge-sweep {
  0%, 16% { transform: translateX(-120%); opacity: 0; }
  38% { opacity: 1; }
  72%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes node-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(50, 240, 140, 0.32),
      0 0 24px rgba(50, 240, 140, 0.3);
    transform: scale(1);
  }
  48% {
    box-shadow:
      0 0 0 11px rgba(50, 240, 140, 0),
      0 0 38px rgba(50, 240, 140, 0.52);
    transform: scale(1.04);
  }
}

@keyframes live-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(50, 240, 140, 0.45),
      0 0 20px rgba(50, 240, 140, 0.52);
  }

  100% {
    box-shadow:
      0 0 0 13px rgba(50, 240, 140, 0),
      0 0 20px rgba(50, 240, 140, 0.52);
  }
}

@keyframes route-flow {
  to {
    stroke-dashoffset: -26;
  }
}

@keyframes pin-breathe {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 1120px) {
  .scenario-grid,
  .architecture-layers {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .intro-layout {
    grid-template-columns: 1fr;
  }

  .tracking-console {
    grid-template-columns: 1fr;
  }

  .ai-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "query"
      "chart"
      "metrics";
  }

  .live-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop-track {
    grid-template-columns: 1fr;
  }

  .loop-track::before {
    display: none;
  }

  .loop-track::after {
    display: none;
  }

  .loop-track article {
    min-height: auto;
  }

  .loop-track span {
    margin-bottom: 28px;
  }
}

@media (max-width: 767px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 11px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-nav {
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  .site-nav a {
    min-width: 0;
    padding: 7px 5px;
    font-size: 11px;
  }

  .hero {
    min-height: 100svh;
    padding: 90px 16px 34px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .hero-content {
    align-self: start;
    padding-top: 0;
    margin-top: clamp(76px, 11svh, 110px);
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions {
    width: min(100%, 330px);
  }

  .btn {
    width: 100%;
  }

  .cane-showcase {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
  }

  .section {
    width: min(calc(100% - 28px), var(--max-width));
    padding: 82px 0;
  }

  .user-grid,
  .pain-grid,
  .scenario-grid,
  .architecture-layers,
  .live-status-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .principle-card,
  .user-card,
  .pain-card,
  .scenario-card,
  .layer-card,
  .value-card {
    min-height: auto;
    padding: 24px;
  }

  .principle-card span,
  .pain-icon,
  .scenario-icon,
  .scenario-index,
  .layer-card span {
    margin-bottom: 28px;
  }

  .principle-grid {
    padding-left: 0;
    border-left: 0;
  }

  .principle-grid::before,
  .principle-card::before {
    display: none;
  }

  .principle-card {
    grid-template-columns: 58px 1fr;
    padding: 20px 0;
  }

  .principle-card::after {
    left: 58px;
  }

  .principle-card span {
    margin-bottom: 0;
    font-size: 2.3rem;
  }

  .tracking-section {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .live-map-panel,
  .history-panel {
    padding: 14px;
  }

  .map-topbar,
  .history-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-map {
    min-height: 320px;
  }

  .route-pin span {
    font-size: 0.72rem;
  }

  .replay-card {
    min-height: auto;
    padding: 18px;
  }

  .replay-item {
    grid-template-columns: 1fr;
  }

  .replay-item span {
    grid-row: auto;
  }

  .ai-section {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .ai-query-panel,
  .ai-chart-panel {
    padding: 14px;
  }

  .ai-chart-panel {
    min-height: auto;
  }

  .chart-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .trend-chart {
    min-height: 280px;
  }

  .chart-days {
    font-size: 0.68rem;
  }

  .chart-legend strong {
    width: 100%;
    margin-left: 0;
  }

  .ai-metric-panel {
    grid-template-columns: 1fr;
  }

  .ai-metric-panel article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ai-metric-panel article:last-child {
    border-bottom: 0;
  }

  .cursor-glow {
    display: none;
  }
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
