:root {
  --bg: #f8fbf8;
  --bg-soft: #eef6f0;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(28, 91, 50, 0.14);
  --line-bright: rgba(25, 105, 54, 0.3);
  --text: #17251c;
  --muted: #5e7165;
  --green: #237a3d;
  --green-deep: #176832;
  --cyan: #167f92;
  --amber: #92700f;
  --max: 1240px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(180deg, #fbfdf9 0%, var(--bg) 48%, #f3f8f4 100%);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-grid {
  position: absolute; inset: 0;
  opacity: .36;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0, transparent 78%);
}
.ambient-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .2; }
.glow-one { width: 46vw; height: 46vw; top: -18vw; right: -8vw; background: var(--green); }
.glow-two { width: 35vw; height: 35vw; left: -18vw; top: 58vh; background: var(--cyan); }
.cursor-glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(63, 177, 101, .12), transparent 65%);
  transition: opacity .25s ease; opacity: 0;
}

.site-header {
  width: min(calc(100% - 48px), var(--max)); height: 92px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-decoration: none; }
.brand svg { width: 25px; height: 25px; fill: var(--bg); stroke: var(--green); stroke-width: 1.8; }
.header-link { display: inline-flex; align-items: center; gap: 16px; color: #4d6658; font-size: .78rem; letter-spacing: .08em; text-decoration: none; }
.header-link i { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--green); font-style: normal; transition: transform .2s ease, border-color .2s ease; }
.header-link:hover i { transform: translateY(3px); border-color: var(--green); }

.hero {
  width: min(calc(100% - 48px), var(--max)); min-height: calc(100vh - 92px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); align-items: center; gap: 72px;
  padding: 72px 0 96px;
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .69rem; font-weight: 700; letter-spacing: .2em; }
.eyebrow span { width: 31px; height: 1px; background: currentColor; }
.hero h1 { max-width: 830px; margin-top: 28px; font-size: clamp(3.4rem, 6.8vw, 6.9rem); font-weight: 720; line-height: 1.03; letter-spacing: -.068em; }
.hero h1 em { color: #557062; font-style: normal; font-weight: 560; }
.hero-note { margin-top: 36px; color: #5b7063; font-size: clamp(.98rem, 1.5vw, 1.08rem); line-height: 1.9; }
.hero-cta { display: inline-flex; align-items: center; gap: 44px; margin-top: 40px; border-bottom: 1px solid var(--line-bright); padding: 0 0 11px; font-size: .88rem; font-weight: 650; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.hero-cta span { color: var(--green); font-size: 1.2rem; }
.hero-cta:hover { color: var(--green); border-color: var(--green); }

.agent-orbit { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end; }
.orbit { position: absolute; inset: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 38%; height: 38%; border-color: rgba(35, 122, 61, .3); }
.orbit-two { width: 68%; height: 68%; }
.orbit-three { width: 96%; height: 96%; border-style: dashed; animation: rotate 38s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid var(--green); background: var(--bg); transform: rotate(45deg); }
.orbit::before { left: 49%; top: -3px; }
.orbit::after { right: 12%; bottom: 15%; }
.core { position: absolute; left: 50%; top: 50%; width: 122px; height: 122px; transform: translate(-50%, -50%); display: grid; place-content: center; border: 1px solid rgba(35, 122, 61, .42); border-radius: 50%; text-align: center; background: radial-gradient(circle at 40% 30%, rgba(124, 218, 157, .34), rgba(248, 252, 249, .97) 68%); box-shadow: 0 18px 70px rgba(31, 111, 56, .16); }
.core small { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .58rem; letter-spacing: .2em; }
.core strong { margin-top: 3px; font-size: 1.2rem; font-weight: 670; }
.core-pulse { position: absolute; inset: -1px; border: 1px solid var(--green); border-radius: 50%; animation: pulse 3.2s ease-out infinite; }
.agent-node { --drift-from-x: -12px; --drift-from-y: 7px; --drift-to-x: 12px; --drift-to-y: -9px; position: absolute; color: #51675a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .54rem; line-height: 1.2; letter-spacing: .09em; text-decoration: none; white-space: nowrap; }
.agent-node::before { content: ""; position: absolute; inset: -9px; border-radius: 999px; background: currentColor; opacity: 0; transition: opacity .2s ease; }
.node-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; will-change: transform; animation: node-drift var(--drift-duration, 5.8s) linear var(--drift-delay, 0s) infinite alternate; }
.agent-node i { flex: 0 0 auto; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; box-shadow: 0 0 13px currentColor; animation: node-beacon 2.4s ease-in-out var(--drift-delay, 0s) infinite; }
.agent-node:hover .node-content { animation-play-state: paused; }
.agent-node:hover::before, .agent-node:focus-visible::before { opacity: .08; }
.node-kiwi { --drift-from-x: -8px; --drift-from-y: -14px; --drift-to-x: 10px; --drift-to-y: 12px; --drift-duration: 3.7s; --drift-delay: -.8s; top: 5%; left: 45%; color: var(--green); }
.node-nephro { --drift-from-x: -18px; --drift-from-y: 8px; --drift-to-x: 15px; --drift-to-y: -10px; --drift-duration: 4.4s; --drift-delay: -2.1s; top: 18%; left: 3%; color: var(--green); }
.node-health { --drift-from-x: 16px; --drift-from-y: -10px; --drift-to-x: -14px; --drift-to-y: 12px; --drift-duration: 4.1s; --drift-delay: -3.4s; top: 19%; right: -1%; color: var(--green-deep); }
.node-learning { --drift-from-x: -14px; --drift-from-y: -12px; --drift-to-x: 18px; --drift-to-y: 10px; --drift-duration: 4.8s; --drift-delay: -1.4s; top: 45%; left: -14%; color: var(--cyan); }
.node-food { --drift-from-x: 16px; --drift-from-y: 10px; --drift-to-x: -18px; --drift-to-y: -8px; --drift-duration: 3.9s; --drift-delay: -4.2s; right: -5%; top: 48%; color: var(--amber); }
.node-song { --drift-from-x: -18px; --drift-from-y: 12px; --drift-to-x: 14px; --drift-to-y: -14px; --drift-duration: 4.3s; --drift-delay: -2.8s; left: -3%; bottom: 24%; color: var(--cyan); }
.node-lesscreen { --drift-from-x: 15px; --drift-from-y: -12px; --drift-to-x: -16px; --drift-to-y: 14px; --drift-duration: 4.6s; --drift-delay: -.3s; right: -2%; bottom: 25%; color: var(--amber); }
.node-actcue { --drift-from-x: -14px; --drift-from-y: -15px; --drift-to-x: 16px; --drift-to-y: 12px; --drift-duration: 4s; --drift-delay: -3.7s; left: 22%; bottom: 5%; color: var(--cyan); }
.node-student { --drift-from-x: 14px; --drift-from-y: 13px; --drift-to-x: -15px; --drift-to-y: -12px; --drift-duration: 4.7s; --drift-delay: -1.9s; right: 7%; bottom: 7%; color: var(--green); }
.orbit-caption { position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%); color: #5c7164; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .58rem; letter-spacing: .15em; white-space: nowrap; }
.orbit-caption span { color: var(--green); }

.products { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; border-top: 1px solid var(--line); padding: 120px 0 140px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.section-heading h2 { margin-top: 19px; font-size: clamp(2.15rem, 4vw, 3.8rem); line-height: 1.1; letter-spacing: -.05em; }
.section-heading > p { max-width: 25em; color: var(--muted); font-size: .92rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card { position: relative; min-height: 530px; overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px; background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(238, 247, 241, .88)); box-shadow: 0 18px 55px rgba(26, 76, 43, .05); text-decoration: none; transition: transform .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease; }
.product-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, var(--card-glow), transparent 35%); opacity: .12; transition: opacity .28s ease; }
.product-card:hover { z-index: 1; transform: translateY(-8px); border-color: var(--card-color); background: linear-gradient(160deg, #fff, #e7f4ea); box-shadow: 0 24px 70px rgba(29, 99, 51, .12); }
.product-card:hover::after { opacity: .24; }
.card-kiwi { --card-color: var(--green); --card-glow: var(--green); }
.card-food { --card-color: var(--amber); --card-glow: var(--amber); }
.card-song { --card-color: var(--cyan); --card-glow: var(--cyan); }
.card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #607468; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .6rem; letter-spacing: .14em; }
.status { display: flex; align-items: center; gap: 7px; color: #536b5d; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: var(--card-color); box-shadow: 0 0 9px var(--card-color); }
.status-build i { animation: blink 1.8s ease-in-out infinite; }
.card-symbol { position: relative; z-index: 1; height: 160px; margin: 38px 0 24px; display: grid; place-items: center; }
.kiwi-symbol span, .food-symbol span { display: grid; width: 110px; height: 110px; place-items: center; border: 1px solid var(--card-color); color: var(--card-color); font-size: 2.7rem; font-weight: 650; transform: rotate(45deg); background: rgba(73, 164, 103, .06); box-shadow: inset 0 0 28px rgba(73, 164, 103, .08), 0 12px 35px rgba(42, 110, 65, .08); }
.kiwi-symbol span::first-letter, .food-symbol span::first-letter { transform: rotate(-45deg); }
.kiwi-symbol::after, .food-symbol::after { content: "K"; position: absolute; color: var(--card-color); font-size: 2.7rem; font-weight: 650; }
.kiwi-symbol span { font-size: 0; }
.food-symbol span { font-size: 0; border-radius: 50%; }
.food-symbol::after { content: "食"; font-size: 2.2rem; }
.song-symbol { display: flex; align-items: center; justify-content: center; gap: 8px; }
.song-symbol span { width: 4px; height: 60px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 18px rgba(120,221,234,.3); animation: wave 1.5s ease-in-out infinite; }
.song-symbol span:nth-child(2), .song-symbol span:nth-child(4) { animation-delay: -.3s; }
.song-symbol span:nth-child(3) { animation-delay: -.6s; }
.card-type { position: relative; z-index: 1; color: var(--card-color); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .61rem; letter-spacing: .17em; }
.product-card h3 { position: relative; z-index: 1; margin-top: 7px; font-size: 2rem; line-height: 1.2; letter-spacing: -.035em; }
.card-copy { position: relative; z-index: 1; max-width: 24em; margin-top: 15px; color: var(--muted); font-size: .9rem; }
.card-link { position: relative; z-index: 1; margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: .76rem; font-weight: 650; letter-spacing: .06em; }
.card-link i { color: var(--card-color); font-size: 1.15rem; font-style: normal; transition: transform .2s ease; }
.product-card:hover .card-link i { transform: translate(4px, -4px); }
.product-card, .project-brief { scroll-margin-top: 28px; }
.product-card:target, .project-brief:target { border-color: var(--green); animation: target-arrival 1.2s ease-out; }

.project-expansion { margin-top: 88px; }
.project-expansion-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); align-items: end; gap: 18px 64px; }
.project-expansion-head .eyebrow { grid-column: 1 / -1; }
.project-expansion-head h3 { font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -.045em; }
.project-expansion-head > p { color: var(--muted); font-size: .9rem; }
.project-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-brief { min-height: 245px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px; background: rgba(255, 255, 255, .7); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.project-brief:hover { z-index: 1; border-color: var(--line-bright); background: rgba(255, 255, 255, .96); box-shadow: 0 18px 48px rgba(29, 99, 51, .08); }
.project-brief-top, .project-brief-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #607468; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .58rem; letter-spacing: .12em; }
.brief-status { color: var(--green); }
.project-brief h4 { margin-top: 36px; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.025em; }
.project-brief > p { max-width: 43em; margin-top: 12px; color: var(--muted); font-size: .87rem; }
.project-brief-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.project-brief-foot a { color: var(--green); font-weight: 700; text-decoration: none; }
.project-brief-foot a i { font-style: normal; }

.manifesto { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; border-top: 1px solid var(--line); padding: 100px 0 120px; }
.manifesto-line { display: flex; align-items: center; gap: 18px; color: #607468; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .58rem; letter-spacing: .18em; }
.manifesto-line i { flex: 1; height: 1px; background: var(--line); }
.manifesto > p { margin-top: 78px; font-size: clamp(2.9rem, 6vw, 6.2rem); font-weight: 620; line-height: 1.08; letter-spacing: -.065em; }
.manifesto > a { display: inline-flex; gap: 30px; margin-top: 48px; border-bottom: 1px solid var(--line-bright); padding-bottom: 11px; color: #4f6759; font-size: .85rem; text-decoration: none; }
.manifesto > a span { color: var(--green); }
.manifesto > a:hover { color: var(--green); border-color: var(--green); }
.site-footer { width: min(calc(100% - 48px), var(--max)); min-height: 100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #607468; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .61rem; letter-spacing: .12em; }

@keyframes rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 75%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes wave { 0%, 100% { height: 35px; opacity: .6; } 50% { height: 92px; opacity: 1; } }
@keyframes node-drift { from { transform: translate3d(var(--drift-from-x), var(--drift-from-y), 0); } to { transform: translate3d(var(--drift-to-x), var(--drift-to-y), 0); } }
@keyframes node-beacon { 0%, 100% { opacity: .62; transform: scale(.84); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes target-arrival { 0% { box-shadow: 0 0 0 0 rgba(35, 122, 61, .34); } 100% { box-shadow: 0 0 0 16px rgba(35, 122, 61, 0); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 62px; padding-top: 94px; }
  .agent-orbit { max-width: 470px; justify-self: center; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: 1 / -1; min-height: 450px; }
  .project-expansion-head { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header, .hero, .products, .manifesto, .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .site-header { height: 76px; }
  .header-link span { display: none; }
  .hero { padding: 72px 0 82px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .hero-note br { display: none; }
  .agent-orbit { width: 100%; transform: none; }
  .agent-node { font-size: .47rem; letter-spacing: .05em; }
  .node-content { gap: 5px; }
  .agent-node i { width: 6px; height: 6px; }
  .node-nephro, .node-learning, .node-song { left: 0; }
  .node-health, .node-food, .node-lesscreen { right: 0; }
  .node-student { right: 1%; }
  .orbit-caption { bottom: -5%; }
  .products { padding: 84px 0 100px; }
  .section-heading { align-items: start; flex-direction: column; gap: 24px; }
  .product-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .product-card, .product-card:last-child { grid-column: auto; min-height: 485px; }
  .project-expansion { margin-top: 68px; }
  .project-directory { grid-template-columns: 1fr; }
  .project-brief { min-height: 230px; padding: 24px; }
  .project-brief-top, .project-brief-foot { align-items: flex-start; }
  .manifesto { padding: 80px 0 92px; }
  .manifesto > p { margin-top: 54px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor-glow { display: none; }
}
