:root {
  --bg: #07111f;
  --bg-soft: #0b1929;
  --panel: rgba(14, 31, 49, .82);
  --line: rgba(173, 202, 223, .16);
  --text: #edf6f8;
  --muted: #9eb2bf;
  --cyan: #76e3d4;
  --blue: #7aa8ff;
  --lime: #c8ef88;
  --red: #ff8d87;
  --orange: #ffc66d;
  --shadow: 0 30px 90px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 5%, rgba(47, 111, 148, .24), transparent 28rem),
    radial-gradient(circle at 10% 35%, rgba(35, 122, 112, .12), transparent 24rem),
    var(--bg);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--cyan); color: #041117; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 74px;
  padding: 0 clamp(1.2rem, 4vw, 4.6rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, .78);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: .75rem; font-weight: 750; text-decoration: none; letter-spacing: .02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(118,227,212,.5); border-radius: 50%; box-shadow: inset 0 0 18px rgba(118,227,212,.15); }
.brand-mark span { width: 9px; height: 9px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 16px var(--cyan); }
nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); margin-left: auto; }
nav a { text-decoration: none; color: var(--muted); font-size: .9rem; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--text); }
.display-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .72rem; border: 1px solid rgba(118,227,212,.23); border-radius: 999px; color: var(--cyan); font-size: .76rem; }
.display-pill i, .demo-agent small i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 4rem;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.4rem, 7vw, 8rem);
  overflow: hidden;
}

.eyebrow { margin: 0 0 1.15rem; color: var(--cyan); font-size: .72rem; font-weight: 750; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.1rem, 6.5vw, 6.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 740; }
h1 em { color: var(--cyan); font-style: normal; font-weight: 480; }
.hero-lede { max-width: 680px; color: #b7c9d3; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 2.6rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: 7px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--cyan); color: #05151a; }
.button.secondary { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.025); }
.button.secondary:hover { border-color: rgba(118,227,212,.45); }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .78rem; }
.trust-row span { color: var(--cyan); margin-right: .4rem; font-family: ui-monospace, monospace; }

.hero-visual { position: relative; min-height: 570px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(118,227,212,.12), transparent 65%); filter: blur(20px); }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(132,180,210,.2); }
.orbit-one { width: 390px; height: 390px; animation: spin 24s linear infinite; }
.orbit-two { width: 520px; height: 520px; border-style: dashed; animation: spinReverse 38s linear infinite; }
.orbit-one::before, .orbit-two::before { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbit-two::before { left: 12%; top: 16%; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.agent-core { position: relative; z-index: 3; width: 218px; height: 218px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(118,227,212,.35); border-radius: 50%; text-align: center; background: radial-gradient(circle at 45% 35%, #183d4a, #091722 68%); box-shadow: 0 0 0 18px rgba(118,227,212,.025), 0 30px 80px rgba(0,0,0,.45), inset 0 0 48px rgba(118,227,212,.12); }
.agent-core::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.08); border-radius: inherit; }
.agent-core strong { font-size: 2rem; line-height: 1.08; letter-spacing: -.03em; }
.core-label, .agent-core small { font-family: ui-monospace, monospace; color: var(--cyan); font-size: .58rem; letter-spacing: .14em; }
.core-label { margin-bottom: .7rem; }
.agent-core small { margin-top: .8rem; color: var(--muted); }
.signal { position: absolute; z-index: 4; min-width: 128px; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 9px; background: rgba(9,25,38,.82); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.signal b, .signal span { display: block; }
.signal b { font-size: .9rem; color: var(--text); }
.signal span { color: var(--muted); font-size: .68rem; }
.signal-a { left: 1%; top: 25%; }
.signal-b { right: 0; top: 17%; }
.signal-c { left: 7%; bottom: 18%; }
.signal-d { right: 2%; bottom: 23%; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

.ticker { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.ticker div { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.ticker div:last-child { border-right: 0; }
.ticker span, .ticker i { display: block; }
.ticker span { font-size: .86rem; }
.ticker i { color: #6f8795; font-size: .55rem; font-style: normal; letter-spacing: .12em; }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.4rem, 7vw, 8rem); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -.8rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 4.2vw, 4.4rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 500px; margin: 0 0 .4rem auto; color: var(--muted); }
.section-heading.compact { grid-template-columns: 1fr; }
.section-heading.compact > p:last-child { margin-left: 0; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.capability-card { min-height: 260px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); transition: background .25s ease, transform .25s ease; }
.capability-card:hover { background: rgba(118,227,212,.035); transform: translateY(-3px); }
.capability-card.featured { grid-column: span 2; background: linear-gradient(135deg, rgba(118,227,212,.07), rgba(122,168,255,.025)); }
.card-index { color: var(--cyan); font-family: ui-monospace, monospace; font-size: .68rem; }
.capability-card h3 { margin: 2.7rem 0 .8rem; font-size: 1.35rem; }
.capability-card p { max-width: 480px; color: var(--muted); font-size: .92rem; }
.mini-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.mini-tags span { padding: .3rem .6rem; color: var(--cyan); border: 1px solid rgba(118,227,212,.18); border-radius: 999px; font-size: .65rem; }

.workflow-section { background: rgba(2, 12, 22, .48); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; }
.workflow-rail { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.workflow-rail li { border-bottom: 1px solid var(--line); }
.workflow-rail button { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1rem .3rem; color: var(--muted); border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.workflow-rail button b { color: #557080; font-family: ui-monospace, monospace; font-size: .68rem; }
.workflow-rail li.active button, .workflow-rail button:hover { color: var(--text); }
.workflow-rail li.active button b { color: var(--cyan); }
.workflow-panel { min-height: 470px; padding: clamp(2rem, 4vw, 3.8rem); border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(18,43,60,.88), rgba(8,21,34,.9)); box-shadow: var(--shadow); }
.workflow-panel-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-family: ui-monospace, monospace; font-size: .68rem; }
.rule { padding: .3rem .55rem; border-radius: 4px; font-weight: 800; }
.rule.must { color: #051517; background: var(--cyan); }
.rule.should { color: #0c1320; background: var(--blue); }
.workflow-panel h3 { margin: 4rem 0 1rem; font-size: clamp(2rem, 3.5vw, 3.4rem); letter-spacing: -.04em; }
.workflow-panel > p { max-width: 720px; color: #bbccd5; font-size: 1.05rem; }
.decision-box { margin-top: 2rem; padding: 1rem 1.1rem; border-left: 2px solid var(--cyan); background: rgba(0,0,0,.15); }
.decision-box span { display: block; margin-bottom: .3rem; color: var(--cyan); font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.decision-box p { margin: 0; color: var(--muted); font-size: .9rem; }
.panel-progress { height: 2px; margin-top: 3rem; background: rgba(255,255,255,.08); }
.panel-progress span { display: block; width: 14.28%; height: 100%; background: var(--cyan); transition: width .3s ease; }

.demo-section { background: radial-gradient(circle at 85% 25%, rgba(122,168,255,.08), transparent 28rem); }
.demo-shell { display: grid; grid-template-columns: 290px 1fr; min-height: 600px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #091625; box-shadow: var(--shadow); }
.demo-sidebar { padding: 1.3rem; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); }
.demo-agent { display: flex; align-items: center; gap: .8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; color: #061318; background: var(--cyan); border-radius: 12px; font-weight: 900; }
.demo-agent strong, .demo-agent small { display: block; }
.demo-agent small { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .68rem; }
.demo-sidebar > p { margin: 1.6rem 0 .7rem; color: #6f8795; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.prompt-chip { width: 100%; padding: .85rem .9rem; margin-bottom: .45rem; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; font: inherit; font-size: .85rem; }
.prompt-chip:hover, .prompt-chip.active { color: var(--text); border-color: var(--line); background: rgba(118,227,212,.045); }
.chat-window { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.chat-topbar, .chat-composer { min-height: 56px; padding: 0 1.4rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.local-only { color: var(--cyan); font-family: ui-monospace, monospace; font-size: .62rem; }
.chat-body { padding: 2rem clamp(1.2rem, 4vw, 3.8rem); overflow: auto; }
.message { max-width: 760px; margin-bottom: 1.5rem; opacity: 0; transform: translateY(8px); animation: messageIn .35s ease forwards; }
.message.user { margin-left: auto; max-width: 480px; padding: .8rem 1rem; border-radius: 12px 12px 2px 12px; background: #17334a; }
.message.agent { display: grid; grid-template-columns: 32px 1fr; gap: .8rem; }
.message-agent-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(118,227,212,.35); border-radius: 9px; color: var(--cyan); font-size: .7rem; font-weight: 900; }
.message-content { color: #c6d5dd; font-size: .9rem; }
.message-content strong { color: var(--text); }
.message-content ul { margin: .7rem 0 0; padding-left: 1.2rem; }
.message-content .demo-warning { margin-top: .9rem; padding: .55rem .7rem; border: 1px solid rgba(255,198,109,.2); border-radius: 5px; color: var(--orange); font-size: .7rem; }
.chat-composer { border-top: 1px solid var(--line); border-bottom: 0; }
.chat-composer button { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: transparent; cursor: pointer; }
@keyframes messageIn { to { opacity: 1; transform: translateY(0); } }

.temperature-scale { display: grid; grid-template-columns: 1fr 2fr 4fr 2fr 1fr; min-height: 150px; overflow: hidden; border-radius: 10px; }
.scale-segment { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem; color: #061317; }
.scale-segment b { font-size: .9rem; }
.scale-segment span { font-size: .72rem; }
.very-low { background: #8de9d8; }
.low { background: #bce7c3; }
.medium { background: #e4dc9e; }
.high { background: #f2b67f; }
.very-high { background: #ed8b85; }
.scale-note { max-width: 780px; margin: 1.2rem 0 0; color: var(--muted); font-size: .82rem; }

.boundaries-section { border-top: 1px solid var(--line); }
.boundaries-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.allowed, .forbidden { padding: clamp(1.6rem, 3vw, 2.8rem); border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.015); }
.allowed { border-top: 2px solid var(--cyan); }
.forbidden { border-top: 2px solid var(--red); }
.boundary-label { display: inline-block; margin-bottom: 1.4rem; padding: .25rem .55rem; border-radius: 4px; font-size: .66rem; font-weight: 850; letter-spacing: .12em; }
.allowed .boundary-label { color: #041616; background: var(--cyan); }
.forbidden .boundary-label { color: #1b0908; background: var(--red); }
.boundaries-grid ul { margin: 0; padding: 0; list-style: none; }
.boundaries-grid li { position: relative; padding: .75rem 0 .75rem 1.5rem; border-bottom: 1px solid var(--line); color: #bbcbd4; }
.boundaries-grid li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.forbidden li::before { background: var(--red); }

.closing { padding: clamp(6rem, 13vw, 12rem) 1.4rem; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(circle at center, rgba(118,227,212,.09), transparent 35rem); }
.closing h2 { margin: 0 auto 1.5rem; font-size: clamp(3.2rem, 7vw, 7rem); line-height: .95; letter-spacing: -.06em; }
.closing > p:not(.eyebrow) { max-width: 680px; margin: 0 auto 2rem; color: var(--muted); }
footer { min-height: 90px; padding: 1rem clamp(1.4rem, 7vw, 8rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: #708795; font-size: .7rem; }

@media (max-width: 1000px) {
  .site-header nav { display: none; }
  .display-pill { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .ticker { grid-template-columns: repeat(3, 1fr); }
  .ticker div:nth-child(3) { border-right: 0; }
  .ticker div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin-left: 0; }
  .workflow-layout { grid-template-columns: 1fr; }
  .workflow-rail { display: grid; grid-template-columns: repeat(4, 1fr); }
  .workflow-rail li { border-right: 1px solid var(--line); }
  .workflow-rail button { flex-direction: column; align-items: flex-start; gap: .25rem; padding: .8rem; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 1rem; }
  .brand { font-size: .9rem; }
  .display-pill { font-size: .62rem; padding: .35rem .5rem; }
  .hero { padding: 4rem 1.2rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-visual { min-height: 430px; transform: scale(.82); margin: -2rem -3rem; }
  .ticker { grid-template-columns: repeat(2, 1fr); }
  .ticker div { border-bottom: 1px solid var(--line); }
  .ticker div:nth-child(2n) { border-right: 0; }
  .section { padding: 5rem 1.2rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card.featured { grid-column: auto; }
  .workflow-rail { grid-template-columns: repeat(2, 1fr); }
  .workflow-panel { min-height: 520px; }
  .workflow-panel h3 { margin-top: 2.5rem; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .prompt-chip { width: auto; margin-right: .25rem; }
  .chat-window { min-height: 590px; }
  .temperature-scale { grid-template-columns: 1fr; }
  .scale-segment { min-height: 74px; }
  .boundaries-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}

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