:root {
  --bg: #080705;
  --bg-soft: #11100c;
  --bg-panel: #16140f;
  --ink: #f6f0df;
  --muted: #bcb19a;
  --dim: #827863;
  --gold: #d7af55;
  --gold-soft: #f4dd9b;
  --line: rgba(215, 175, 85, 0.2);
  --line-cool: rgba(141, 182, 191, 0.2);
  --cool: #8db6bf;
  --danger: #c48669;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 175, 85, 0.12), transparent 30rem),
    linear-gradient(180deg, #090806 0%, #0d0c09 42%, #080705 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(215, 175, 85, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 175, 85, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 84%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.035) 47%,
    transparent 54%
  );
  transform: translateX(-70%);
  animation: slow-scan 16s linear infinite;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  color: #0b0904;
  background: var(--gold-soft);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #100d06;
  background: var(--gold-soft);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(215, 175, 85, 0.12);
  background: rgba(8, 7, 5, 0.48);
  backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    border-color 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(215, 175, 85, 0.22);
  background: rgba(8, 7, 5, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 175, 85, 0.56);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(244, 221, 155, 0.24), transparent 48%),
    rgba(16, 14, 9, 0.72);
  box-shadow:
    inset 0 0 20px rgba(215, 175, 85, 0.12),
    0 0 24px rgba(215, 175, 85, 0.1);
}

.brand-mark img {
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.05);
}

.brand-name,
.brand-product {
  display: block;
  white-space: nowrap;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-product {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  color: rgba(246, 240, 223, 0.78);
  font-size: 13px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.language-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 42px;
  height: 34px;
  margin-left: 16px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid rgba(215, 175, 85, 0.34);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(16, 14, 9, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: rgba(244, 221, 155, 0.78);
  color: #100d06;
  background: var(--gold-soft);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(215, 175, 85, 0.48);
  border-radius: 0;
  color: var(--ink);
  background: rgba(16, 14, 9, 0.62);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(244, 221, 155, 0.92);
  background: rgba(215, 175, 85, 0.14);
  box-shadow: 0 0 0 3px rgba(215, 175, 85, 0.14);
  outline: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  align-items: end;
  padding: calc(var(--header-h) + 74px) clamp(20px, 5vw, 72px) clamp(44px, 8vh, 86px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay,
.field-canvas {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -4;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  opacity: 0.56;
  filter: saturate(0.88) contrast(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.96) 0%, rgba(8, 7, 5, 0.72) 38%, rgba(8, 7, 5, 0.3) 100%),
    linear-gradient(0deg, rgba(8, 7, 5, 0.95) 0%, rgba(8, 7, 5, 0.18) 38%, rgba(8, 7, 5, 0.7) 100%);
}

.field-canvas {
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.48;
  mix-blend-mode: screen;
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.03;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(52px, 10vw, 128px);
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5.4vw, 68px);
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-size: clamp(24px, 3vw, 38px);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
}

.hero-copy,
.lead,
.section-copy p,
.graph-copy p,
.modules-copy p,
.safety-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 20px);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid rgba(244, 221, 155, 0.34);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #0d0a04;
  background: linear-gradient(135deg, var(--gold-soft), #c99a3a);
  border-color: rgba(244, 221, 155, 0.72);
}

.button-secondary {
  background: rgba(12, 11, 8, 0.54);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(244, 221, 155, 0.62);
  background: rgba(244, 221, 155, 0.08);
}

.section {
  position: relative;
  padding: clamp(76px, 11vw, 142px) clamp(20px, 5vw, 72px);
}

.section::before {
  position: absolute;
  top: 0;
  right: clamp(20px, 5vw, 72px);
  left: clamp(20px, 5vw, 72px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(215, 175, 85, 0.28), transparent);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.two-column,
.graph-layout,
.modules-layout,
.safety-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.plain-language {
  background:
    radial-gradient(circle at 82% 12%, rgba(141, 182, 191, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(17, 16, 12, 0.82), rgba(8, 7, 5, 0.94));
}

.lead {
  margin-bottom: 30px;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.statement,
.control-item,
.use-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(15, 14, 10, 0.74);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.statement {
  min-height: 190px;
  padding: 22px;
}

.statement-index {
  display: block;
  margin-bottom: 32px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.statement p,
.control-item p,
.use-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.architecture-section {
  background:
    radial-gradient(circle at 12% 24%, rgba(215, 175, 85, 0.11), transparent 26rem),
    linear-gradient(180deg, rgba(8, 7, 5, 0.98), rgba(12, 12, 10, 0.96));
}

.architecture-section .section-inner {
  width: min(1320px, 100%);
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(8, minmax(140px, 1fr));
  border: 1px solid rgba(215, 175, 85, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(12, 11, 8, 0.78);
  box-shadow: var(--shadow);
}

.flow-step {
  position: relative;
  isolation: isolate;
  min-height: 210px;
  padding: 24px 20px;
  overflow: hidden;
  border-right: 1px solid rgba(215, 175, 85, 0.16);
  animation: flow-step-active 16s linear infinite;
  animation-delay: calc(var(--step-i, 0) * 2s);
}

.flow-step::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(244, 221, 155, 0.16), transparent),
    radial-gradient(circle at 50% 16%, rgba(141, 182, 191, 0.12), transparent 62%);
  opacity: 0;
  transform: translateX(-110%);
  animation: flow-step-scan 16s linear infinite;
  animation-delay: calc(var(--step-i, 0) * 2s);
}

.flow-step > * {
  position: relative;
  z-index: 1;
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step::after {
  position: absolute;
  top: 29px;
  right: -10px;
  z-index: 2;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(215, 175, 85, 0.22);
  border-radius: 50%;
  color: var(--gold-soft);
  content: "\2192";
  background: #0b0a07;
  font-size: 12px;
  line-height: 1;
}

.flow-step:last-child::after {
  content: none;
}

.flow-index {
  display: block;
  margin-bottom: 42px;
  color: rgba(244, 221, 155, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  animation: flow-index-pulse 16s linear infinite;
  animation-delay: calc(var(--step-i, 0) * 2s);
}

.flow-step h3 {
  margin-bottom: 12px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.reasoning-console {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  margin-top: 18px;
  padding: 13px 16px;
  overflow: hidden;
  border: 1px solid rgba(215, 175, 85, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 221, 155, 0.055), transparent 48%),
    rgba(8, 7, 5, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.reasoning-console::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(244, 221, 155, 0.78);
  border-radius: 50%;
  content: "";
  background: rgba(215, 175, 85, 0.5);
  box-shadow: 0 0 22px rgba(215, 175, 85, 0.34);
  animation: computation-dot 2.8s ease-in-out infinite;
}

.reasoning-console-label {
  flex: 0 0 auto;
  color: rgba(244, 221, 155, 0.78);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reasoning-console-text {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 240, 223, 0.64);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: computation-dim 4.6s ease-in-out infinite;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.reasoning-console-text.is-swapping {
  opacity: 0.2;
  filter: blur(2px);
  transform: translateY(2px);
}

.graph-section {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 1), rgba(11, 13, 13, 0.96)),
    radial-gradient(circle at 62% 52%, rgba(215, 175, 85, 0.14), transparent 30rem);
}

.graph-layout-premium {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
}

.graph-copy {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.system-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.system-list li,
.module-tags span {
  border: 1px solid rgba(215, 175, 85, 0.22);
  color: rgba(246, 240, 223, 0.86);
  background: rgba(215, 175, 85, 0.055);
}

.system-list li {
  padding: 8px 11px;
  font-size: 13px;
}

.environment-graph {
  min-height: 620px;
  padding: clamp(14px, 2.4vw, 28px);
  border: 1px solid rgba(215, 175, 85, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(rgba(215, 175, 85, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 175, 85, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(215, 175, 85, 0.13), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006));
  background-size: 54px 54px, 54px 54px, auto, auto;
  box-shadow: var(--shadow);
}

.environment-graph svg {
  width: 100%;
  height: auto;
  min-height: 560px;
}

.graph-lines path {
  fill: none;
  stroke: url("#lineGold");
  stroke-width: 1.5;
  stroke-dasharray: 2 18;
  animation: graph-flow 18s linear infinite;
}

.pulse-ring circle {
  fill: none;
  stroke: rgba(244, 221, 155, 0.14);
  stroke-width: 1;
  animation: ring-pulse 10s ease-in-out infinite;
}

.pulse-ring circle:nth-child(2) {
  animation-delay: 1.2s;
}

.graph-node {
  animation: node-float 12s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.graph-node circle {
  fill: rgba(16, 14, 9, 0.94);
  stroke: rgba(244, 221, 155, 0.6);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 20px rgba(215, 175, 85, 0.14));
}

.graph-node text {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.graph-node .small {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.graph-node-core circle {
  fill: url("#nodeGlow");
  stroke: rgba(244, 221, 155, 0.82);
}

.graph-node-core text {
  fill: #120f08;
  font-size: 24px;
  font-weight: 900;
}

.graph-node-core .small {
  fill: #2f2615;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.why-section {
  background:
    radial-gradient(circle at 16% 40%, rgba(141, 182, 191, 0.1), transparent 26rem),
    linear-gradient(180deg, rgba(10, 11, 10, 0.98), rgba(8, 7, 5, 0.98));
}

.why-panel {
  position: relative;
  max-width: 980px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(215, 175, 85, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.01)),
    rgba(13, 12, 9, 0.86);
  box-shadow: var(--shadow);
}

.why-panel::before,
.why-panel::after {
  position: absolute;
  width: 72px;
  height: 72px;
  border-color: rgba(215, 175, 85, 0.42);
  content: "";
  pointer-events: none;
}

.why-panel::before {
  top: 18px;
  left: 18px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.why-panel::after {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.why-panel p:not(.eyebrow) {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 22px);
}

.modules-section {
  background:
    radial-gradient(circle at 14% 22%, rgba(215, 175, 85, 0.1), transparent 28rem),
    #0a0907;
}

.modules-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.product-mark {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 175, 85, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.85), transparent 24rem),
    linear-gradient(135deg, #d3d4d3, #7f8282);
  box-shadow: var(--shadow);
}

.product-mark::after {
  content: none;
}

.product-mark img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.module-tags span {
  padding: 9px 12px;
  font-size: 14px;
}

.safety-section {
  background:
    linear-gradient(180deg, rgba(12, 15, 14, 0.88), rgba(8, 7, 5, 0.98)),
    radial-gradient(circle at 72% 18%, rgba(196, 134, 105, 0.12), transparent 26rem);
}

.control-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.control-item {
  position: relative;
  min-height: 180px;
  padding: 26px;
  overflow: hidden;
}

.control-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: 2px;
  border: 0;
  border-radius: 0;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: none;
}

.control-item span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.control-item h3 {
  margin-bottom: 12px;
}

.use-cases-section {
  background: #090806;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 20px);
}

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

.use-card {
  position: relative;
  min-height: 222px;
  padding: 28px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.use-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(141, 182, 191, 0.42), transparent);
  transform: translateX(-30%);
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.use-card:hover {
  border-color: rgba(244, 221, 155, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(18, 16, 11, 0.82);
  transform: translateY(-4px);
}

.use-card:hover::after {
  transform: translateX(0);
  opacity: 1;
}

.card-line {
  display: block;
  width: 44px;
  height: 1px;
  margin-bottom: 26px;
  background: var(--gold);
}

.applications-section {
  background:
    radial-gradient(circle at 76% 18%, rgba(141, 182, 191, 0.11), transparent 28rem),
    radial-gradient(circle at 14% 72%, rgba(215, 175, 85, 0.08), transparent 24rem),
    #090806;
}

.application-actions {
  margin: -12px 0 30px;
}

.application-grid {
  align-items: stretch;
}

.application-card {
  display: flex;
  min-height: 332px;
  flex-direction: column;
}

.application-card h3 {
  margin-bottom: 12px;
}

.application-eyebrow {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.application-note {
  margin-top: 16px;
  color: rgba(244, 221, 155, 0.86);
  font-size: 13px;
}

.application-card-map {
  position: relative;
  min-height: 62px;
  margin-top: auto;
  border-top: 1px solid rgba(215, 175, 85, 0.12);
  overflow: hidden;
}

.application-card-map::before,
.application-card-map::after {
  position: absolute;
  right: 0;
  left: 0;
  content: "";
}

.application-card-map::before {
  top: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(215, 175, 85, 0.06), rgba(244, 221, 155, 0.54), rgba(141, 182, 191, 0.12));
  animation: map-scan 7s ease-in-out infinite;
}

.application-card-map::after {
  top: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(215, 175, 85, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 175, 85, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.72;
}

.application-card-map span {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(244, 221, 155, 0.74);
  border-radius: 50%;
  background: rgba(8, 7, 5, 0.92);
  box-shadow: 0 0 18px rgba(215, 175, 85, 0.22);
}

.application-card-map span:nth-child(1) {
  top: 24px;
  left: 9%;
}

.application-card-map span:nth-child(2) {
  top: 18px;
  left: 37%;
}

.application-card-map span:nth-child(3) {
  top: 34px;
  left: 64%;
}

.application-card-map span:nth-child(4) {
  top: 22px;
  left: 88%;
}

.application-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 18px;
}

.application-card-actions a,
.text-button {
  color: var(--gold-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.application-card-actions a {
  text-decoration-line: underline;
  text-decoration-color: rgba(244, 221, 155, 0.28);
  text-underline-offset: 4px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.application-card-actions a:hover,
.application-card-actions a:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: var(--ink);
}

.application-modal[hidden] {
  display: none;
}

.application-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.application-modal.is-open {
  opacity: 1;
}

.application-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(215, 175, 85, 0.16), transparent 28rem),
    rgba(3, 3, 2, 0.82);
  backdrop-filter: blur(16px);
}

.application-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  width: min(1120px, 100%);
  max-height: min(820px, calc(100svh - 36px));
  overflow: auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(244, 221, 155, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.014)),
    #0d0c09;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.62);
  transform: translateY(18px) scale(0.98);
  transition: transform 180ms ease;
}

.application-modal.is-open .application-modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 221, 155, 0.32);
  border-radius: 50%;
  background: rgba(8, 7, 5, 0.68);
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 18px;
  left: 10px;
  width: 16px;
  height: 1px;
  content: "";
  background: var(--gold-soft);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(244, 221, 155, 0.72);
}

.modal-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(215, 175, 85, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(215, 175, 85, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 175, 85, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(215, 175, 85, 0.18), transparent 42%),
    rgba(9, 9, 7, 0.9);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.modal-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0%, rgba(244, 221, 155, 0.11) 48%, transparent 52%);
  animation: modal-sweep 8s linear infinite;
}

.modal-ring,
.modal-core,
.modal-node {
  position: absolute;
  z-index: 1;
}

.modal-ring {
  top: 50%;
  left: 50%;
  border: 1px solid rgba(244, 221, 155, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: modal-rotate 28s linear infinite;
}

.modal-ring-one {
  width: 46%;
  aspect-ratio: 1;
}

.modal-ring-two {
  width: 68%;
  aspect-ratio: 1;
  animation-duration: 38s;
  animation-direction: reverse;
}

.modal-ring-three {
  width: 88%;
  aspect-ratio: 1;
  border-color: rgba(141, 182, 191, 0.18);
  animation-duration: 52s;
}

.modal-core {
  top: 50%;
  left: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(244, 221, 155, 0.78);
  border-radius: 50%;
  color: #120f08;
  background: radial-gradient(circle at 50% 38%, var(--gold-soft), var(--gold));
  box-shadow: 0 0 46px rgba(215, 175, 85, 0.28);
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.modal-node {
  max-width: 142px;
  padding: 8px 10px;
  border: 1px solid rgba(244, 221, 155, 0.34);
  color: rgba(246, 240, 223, 0.94);
  background: rgba(8, 7, 5, 0.78);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.modal-node-1 {
  top: 12%;
  left: 14%;
}

.modal-node-2 {
  top: 10%;
  right: 12%;
}

.modal-node-3 {
  top: 45%;
  right: 6%;
}

.modal-node-4 {
  right: 18%;
  bottom: 12%;
}

.modal-node-5 {
  bottom: 10%;
  left: 12%;
}

.modal-node-6 {
  top: 48%;
  left: 6%;
}

.modal-copy {
  align-self: center;
  padding-right: 34px;
}

.modal-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
}

.modal-copy p:not(.eyebrow),
.modal-detail-grid dd {
  color: var(--muted);
}

.modal-detail-grid {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.modal-detail-grid div {
  padding-top: 16px;
  border-top: 1px solid rgba(215, 175, 85, 0.18);
}

.modal-detail-grid dt {
  margin-bottom: 7px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-detail-grid dd {
  margin: 0;
}

.modal-note {
  margin: 0 0 22px;
  color: rgba(244, 221, 155, 0.88) !important;
  font-size: 14px;
}

.modal-open {
  overflow: hidden;
}

.page-hero {
  position: relative;
  min-height: 72svh;
  padding: calc(var(--header-h) + 86px) clamp(20px, 5vw, 72px) clamp(68px, 10vh, 104px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(215, 175, 85, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(9, 8, 6, 0.98), rgba(8, 7, 5, 0.96));
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.26;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.74) contrast(1.08);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.96), rgba(8, 7, 5, 0.64), rgba(8, 7, 5, 0.82)),
    linear-gradient(0deg, rgba(8, 7, 5, 0.96), transparent 48%, rgba(8, 7, 5, 0.76));
}

.page-hero-inner,
.application-hero-grid {
  position: relative;
  z-index: 2;
}

.page-hero-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.application-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(36px, 6vw, 84px);
  width: min(var(--max), 100%);
  margin: 0 auto;
  align-items: center;
}

.application-system-visual {
  position: relative;
  min-height: 480px;
  border: 1px solid rgba(215, 175, 85, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(rgba(215, 175, 85, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 175, 85, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(215, 175, 85, 0.16), transparent 46%),
    rgba(10, 9, 7, 0.66);
  background-size: 48px 48px, 48px 48px, auto, auto;
  box-shadow: var(--shadow);
}

.application-system-visual::before,
.application-system-visual::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 221, 155, 0.2);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  animation: modal-rotate 30s linear infinite;
}

.application-system-visual::after {
  width: 82%;
  border-color: rgba(141, 182, 191, 0.18);
  animation-duration: 44s;
  animation-direction: reverse;
}

.system-visual-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 94px;
  height: 94px;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
  color: #120f08;
  background: radial-gradient(circle at 50% 38%, var(--gold-soft), var(--gold));
  box-shadow: 0 0 48px rgba(215, 175, 85, 0.28);
  transform: translate(-50%, -50%);
}

.system-visual-core span {
  font-weight: 900;
  line-height: 1;
}

.system-visual-core small {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-visual-node {
  position: absolute;
  z-index: 2;
  max-width: 150px;
  padding: 9px 11px;
  border: 1px solid rgba(244, 221, 155, 0.34);
  color: var(--ink);
  background: rgba(8, 7, 5, 0.76);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.system-node-1 {
  top: 11%;
  left: 13%;
}

.system-node-2 {
  top: 12%;
  right: 12%;
}

.system-node-3 {
  top: 45%;
  right: 5%;
}

.system-node-4 {
  right: 16%;
  bottom: 12%;
}

.system-node-5 {
  bottom: 12%;
  left: 12%;
}

.system-node-6 {
  top: 45%;
  left: 5%;
}

.applications-directory,
.application-story {
  background:
    radial-gradient(circle at 80% 14%, rgba(141, 182, 191, 0.08), transparent 24rem),
    #090806;
}

.application-story-grid,
.application-model-grid {
  display: grid;
  gap: 18px;
}

.application-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-panel,
.model-column {
  border: 1px solid rgba(215, 175, 85, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.012)),
    rgba(14, 13, 9, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.story-panel {
  padding: clamp(26px, 4vw, 44px);
}

.story-panel p:not(.eyebrow),
.model-column p {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
}

.application-operating-model {
  background:
    radial-gradient(circle at 18% 22%, rgba(215, 175, 85, 0.1), transparent 24rem),
    linear-gradient(180deg, rgba(10, 10, 8, 0.96), rgba(8, 7, 5, 0.98));
}

.application-model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-column {
  min-height: 260px;
  padding: 28px;
}

.model-column ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.model-column li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.model-column li::before {
  position: absolute;
  top: 0.76em;
  left: 0;
  width: 7px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.outcome-column {
  background:
    linear-gradient(135deg, rgba(215, 175, 85, 0.12), rgba(255, 255, 255, 0.018)),
    rgba(16, 14, 9, 0.84);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.94), rgba(17, 16, 12, 0.9)),
    radial-gradient(circle at 76% 36%, rgba(215, 175, 85, 0.1), transparent 22rem);
}

.contact-layout {
  align-items: center;
}

.contact-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(215, 175, 85, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(15, 14, 10, 0.78);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-company {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.contact-label {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.founder-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.founder-list span {
  display: grid;
  gap: 4px;
}

.contact-panel strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.contact-panel small {
  color: var(--muted);
  font-size: 13px;
}

.contact-panel span:not(.contact-label) {
  color: var(--muted);
}

.contact-panel .contact-company {
  color: var(--ink);
}

.contact-panel a {
  width: fit-content;
  margin-top: 10px;
  color: var(--gold-soft);
  font-weight: 750;
  text-decoration-color: rgba(244, 221, 155, 0.34);
  text-underline-offset: 4px;
}

.contact-cta {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 175, 85, 0.18);
  color: var(--ink);
  font-size: 16px;
}

.demo-section {
  background:
    linear-gradient(180deg, rgba(141, 182, 191, 0.05), transparent 44%),
    rgba(8, 7, 5, 0.36);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: stretch;
}

.demo-copy {
  align-self: center;
}

.demo-copy h2 {
  margin-bottom: 22px;
}

.demo-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.demo-guardrails {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(246, 240, 223, 0.84);
  list-style: none;
}

.demo-guardrails li {
  position: relative;
  padding-left: 22px;
}

.demo-guardrails li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(215, 175, 85, 0.52);
}

.demo-console {
  display: grid;
  min-height: 560px;
  overflow: hidden;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  border: 1px solid rgba(215, 175, 85, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(22, 20, 15, 0.92), rgba(9, 8, 6, 0.94)),
    rgba(8, 7, 5, 0.82);
  box-shadow: var(--shadow);
}

.demo-console-header {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(215, 175, 85, 0.16);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7ed17d;
  box-shadow: 0 0 16px rgba(126, 209, 125, 0.72);
}

.demo-status-dot.is-busy {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(215, 175, 85, 0.72);
}

.demo-status-dot.is-error {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(196, 134, 105, 0.72);
}

.demo-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
  scrollbar-color: rgba(215, 175, 85, 0.42) rgba(255, 255, 255, 0.04);
}

.demo-message {
  max-width: 92%;
  padding: 14px 15px;
  border: 1px solid rgba(215, 175, 85, 0.14);
  border-radius: 16px;
  color: rgba(246, 240, 223, 0.9);
  background: rgba(255, 255, 255, 0.045);
}

.demo-message strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-message p {
  margin: 0;
  white-space: pre-wrap;
}

.demo-message-user {
  align-self: flex-end;
  border-color: rgba(141, 182, 191, 0.24);
  background: rgba(141, 182, 191, 0.08);
}

.demo-message-assistant {
  align-self: flex-start;
}

.demo-message.is-pending p::after {
  display: inline-block;
  width: 1.5em;
  overflow: hidden;
  content: "...";
  vertical-align: bottom;
  animation: demo-dots 1.1s steps(4, end) infinite;
}

.demo-maintenance {
  border-color: rgba(215, 175, 85, 0.46);
  background:
    linear-gradient(135deg, rgba(215, 175, 85, 0.12), rgba(28, 143, 134, 0.05)),
    rgba(12, 11, 8, 0.86);
}

.demo-maintenance strong {
  color: var(--gold);
}

.maintenance-countdown {
  color: var(--text);
  font-weight: 700;
}

.maintenance-countdown span {
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.demo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 18px 14px;
  border-top: 1px solid rgba(215, 175, 85, 0.16);
}

.demo-form textarea {
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid rgba(215, 175, 85, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
  font: inherit;
  line-height: 1.45;
}

.demo-form textarea:focus {
  outline: 2px solid rgba(215, 175, 85, 0.34);
  outline-offset: 2px;
}

.demo-form .button {
  min-width: 124px;
  align-self: stretch;
  border: 0;
  cursor: pointer;
}

.demo-form .button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.demo-footnote {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--dim);
  font-size: 12px;
}

.demo-chat-link {
  width: fit-content;
  margin-top: 26px;
}

.chat-page-body {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.chat-page-body.has-compact-header {
  --header-h: 54px;
}

.chat-page-body .site-header {
  background: rgba(8, 7, 5, 0.92);
}

.chat-page-body .site-header.is-chat-compact {
  min-height: var(--header-h);
  padding-top: 7px;
  padding-bottom: 7px;
  border-color: rgba(215, 175, 85, 0.24);
  background: rgba(8, 7, 5, 0.94);
}

.chat-page-body .site-header.is-chat-compact .brand-mark {
  width: 34px;
  height: 34px;
}

.chat-page-body .site-header.is-chat-compact .brand-product {
  display: none;
}

.chat-page-body .site-header.is-chat-compact .site-nav {
  font-size: 12px;
}

.chat-page {
  display: grid;
  height: 100vh;
  min-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-h) + 18px) 18px 18px;
  grid-template-areas: "workspace rail";
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 18px;
  overscroll-behavior: none;
  transition: grid-template-columns 260ms ease, gap 260ms ease;
}

.chat-rail,
.chat-workspace {
  min-height: 0;
  border: 1px solid rgba(215, 175, 85, 0.2);
  background:
    linear-gradient(180deg, rgba(244, 221, 155, 0.055), transparent 34%),
    rgba(12, 11, 8, 0.88);
  box-shadow: var(--shadow);
}

.chat-rail {
  grid-area: rail;
  height: calc(100vh - var(--header-h) - 36px);
  height: calc(100svh - var(--header-h) - 36px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 18px;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    width 260ms ease,
    padding 260ms ease,
    border-color 260ms ease;
}

.chat-rail-section + .chat-rail-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(215, 175, 85, 0.16);
}

.chat-rail h1,
.chat-rail h2,
.chat-rail p {
  margin-top: 0;
}

.chat-rail h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.95;
}

.chat-rail h2 {
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-rail p,
.chat-rail li {
  color: var(--muted);
  font-size: 14px;
}

.chat-rail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-rail li {
  position: relative;
  padding-left: 18px;
}

.chat-rail li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.chat-workspace {
  grid-area: workspace;
  display: grid;
  height: calc(100vh - var(--header-h) - 36px);
  height: calc(100svh - var(--header-h) - 36px);
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border-radius: 18px;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.chat-page.is-chat-focus {
  grid-template-columns: minmax(0, 1fr) 0;
  gap: 0;
}

.chat-page.is-chat-focus .chat-rail {
  width: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateX(14px);
  border-color: transparent;
}

.chat-page.is-chat-focus .chat-workspace {
  border-color: rgba(215, 175, 85, 0.34);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(244, 221, 155, 0.08);
}

.chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(215, 175, 85, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.chat-console-header {
  min-height: auto;
  padding: 0;
  border: 0;
}

.chat-mode {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-messages {
  gap: 18px;
  padding: clamp(20px, 4vw, 46px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 30% 0%, rgba(215, 175, 85, 0.08), transparent 28rem),
    rgba(255, 255, 255, 0.015);
}

.chat-messages .demo-message {
  max-width: min(980px, 92%);
  border-radius: 18px;
}

.demo-visitor-panel {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(215, 175, 85, 0.16);
  background:
    linear-gradient(90deg, rgba(215, 175, 85, 0.08), rgba(28, 143, 134, 0.06)),
    rgba(10, 9, 6, 0.72);
}

.demo-visitor-form,
.demo-contact-form {
  display: grid;
  align-items: end;
  gap: 10px;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) auto auto minmax(160px, 1.2fr);
}

.demo-contact-form {
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(220px, 2fr) auto;
}

.demo-visitor-form label,
.demo-contact-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-visitor-form input,
.demo-contact-form input,
.demo-contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(215, 175, 85, 0.22);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.demo-contact-note {
  grid-column: auto;
}

.demo-contact-form textarea {
  min-height: 42px;
  max-height: 120px;
  resize: vertical;
}

.demo-visitor-form small {
  align-self: center;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.chat-composer {
  grid-template-columns: minmax(0, 1fr) 132px;
  padding: 20px;
  background: rgba(8, 7, 5, 0.86);
}

.chat-action-stack {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 132px;
}

.chat-attach-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  align-self: start;
  justify-self: start;
  padding: 0;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
  text-align: center;
  cursor: pointer;
}

.demo-form .chat-attach-button {
  min-width: 42px;
  align-self: start;
}

.chat-attach-button::after {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: 180px;
  padding: 6px 8px;
  border: 1px solid rgba(215, 175, 85, 0.32);
  color: var(--ink);
  background: rgba(8, 7, 5, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  content: attr(title);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.chat-attach-button:hover::after,
.chat-attach-button:focus-visible::after {
  opacity: 1;
  transform: translate(50%, 0);
}

.chat-live-video-button {
  position: relative;
  min-height: 36px;
  padding-inline: 12px;
  font-size: 12px;
}

.chat-video-panel {
  position: relative;
  z-index: 12;
  display: grid;
  gap: 8px;
  width: min(260px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  min-width: 0;
  justify-self: end;
  padding: 8px;
  border: 1px solid rgba(226, 194, 99, 0.22);
  background: rgba(9, 12, 15, 0.84);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.chat-video-panel[hidden] {
  display: none;
}

.chat-video-panel .button {
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}

.chat-video-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chat-video-url-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(215, 175, 85, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
}

.chat-video-studio {
  position: fixed;
  inset: calc(var(--header-h) + 18px) 18px 18px;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(16px);
}

.chat-video-studio[hidden] {
  display: none;
}

.chat-video-stage {
  position: relative;
  width: min(1080px, 100%);
  height: min(720px, 100%);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(226, 194, 99, 0.28);
  border-radius: 18px;
  background: #020202;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.chat-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020202;
  object-fit: contain;
}

.chat-video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(215, 175, 85, 0.08), transparent 38%),
    rgba(0, 0, 0, 0.82);
  font-size: 14px;
  text-align: center;
}

.chat-video-stage.has-video .chat-video-empty {
  opacity: 0;
  pointer-events: none;
}

.chat-video-teleprompter {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 2;
  max-height: min(34%, 240px);
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid rgba(226, 194, 99, 0.18);
  color: rgba(246, 240, 223, 0.96);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
  font-size: 14px;
  line-height: 1.48;
  scrollbar-gutter: stable;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.86);
}

.chat-video-teleprompter::after {
  position: sticky;
  bottom: 0;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(244, 221, 155, 0.24);
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.46);
  content: attr(data-video-status);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
}

.chat-video-teleprompter:focus-visible {
  outline: 2px solid rgba(244, 221, 155, 0.62);
  outline-offset: 2px;
}

.chat-video-teleprompter.is-busy {
  border-color: rgba(244, 221, 155, 0.42);
}

.chat-video-teleprompter.is-ready {
  border-color: rgba(141, 182, 191, 0.42);
}

.chat-video-teleprompter.is-error {
  border-color: rgba(196, 134, 105, 0.58);
  color: #f2c2ad;
}

.chat-video-teleprompter.is-updating::after {
  opacity: 1;
  animation: teleprompter-status-pulse 1100ms ease-in-out infinite;
}

.chat-video-teleprompter-text {
  min-height: 1.5em;
  white-space: pre-wrap;
}

.chat-video-teleprompter-text.is-new-output {
  animation: teleprompter-new-output 420ms ease-out;
}

.chat-video-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: grid;
  gap: 8px;
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(226, 194, 99, 0.26);
  background:
    linear-gradient(180deg, rgba(16, 14, 9, 0.92), rgba(8, 7, 5, 0.86)),
    rgba(8, 7, 5, 0.9);
  backdrop-filter: blur(18px);
}

.chat-video-toolbar,
.chat-video-control-row {
  display: grid;
  gap: 8px;
}

.chat-video-toolbar {
  grid-template-columns: minmax(160px, 1fr) repeat(4, minmax(78px, auto));
}

.chat-video-control-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chat-video-device,
.chat-video-prompt {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(215, 175, 85, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  letter-spacing: 0;
}

.chat-video-device {
  min-height: 42px;
  padding: 8px 10px;
}

.chat-video-prompt-label {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-video-prompt {
  min-height: 66px;
  max-height: 130px;
  padding: 10px 11px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.35;
}

.chat-video-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chat-video-chip {
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid rgba(226, 194, 99, 0.26);
  color: var(--ink);
  background: rgba(226, 194, 99, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.chat-video-chip:hover,
.chat-video-chip:focus-visible {
  border-color: rgba(244, 221, 155, 0.72);
  outline: none;
}

.chat-video-feedback {
  min-height: 38px;
  max-height: 120px;
  overflow-y: auto;
  padding: 9px 10px;
  border-left: 2px solid rgba(141, 182, 191, 0.62);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  line-height: 1.35;
}

.chat-video-feedback.is-busy::after {
  display: inline-block;
  width: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  content: "...";
  animation: video-feedback-dots 900ms steps(3, end) infinite;
}

.chat-video-assets {
  display: grid;
  gap: 9px;
  max-height: 280px;
  overflow: hidden;
  border-top: 1px solid rgba(226, 194, 99, 0.2);
  padding-top: 10px;
}

.chat-video-assets[hidden] {
  display: none;
}

.chat-video-assets-head,
.chat-video-assets-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-video-assets-head {
  justify-content: space-between;
  color: var(--gold-soft);
  font-size: 12px;
  text-transform: uppercase;
}

.chat-video-assets-filters {
  align-items: flex-start;
}

.chat-video-assets-filters input {
  min-height: 36px;
  min-width: 160px;
  flex: 0 0 min(220px, 42%);
  border: 1px solid rgba(215, 175, 85, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}

.chat-video-assets-tags,
.chat-video-asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-video-assets-tags {
  max-height: 78px;
  overflow-y: auto;
}

.chat-video-assets-list {
  display: grid;
  gap: 8px;
  min-height: 42px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 3px;
  color: var(--muted);
  font-size: 12px;
}

.chat-video-asset {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(226, 194, 99, 0.2);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.chat-video-interaction {
  border-color: rgba(141, 182, 191, 0.28);
}

.chat-video-asset strong {
  color: var(--ink);
  font-size: 12px;
}

.chat-video-asset-meta,
.chat-video-asset-prompt,
.chat-video-asset-analysis,
.chat-video-asset-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.chat-video-asset-analysis {
  color: rgba(245, 238, 218, 0.82);
}

.chat-video-asset-tag {
  min-height: 24px;
  border: 1px solid rgba(141, 182, 191, 0.35);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(141, 182, 191, 0.1);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 1;
}

.chat-video-asset-tag.is-active,
.chat-video-asset-tag:hover,
.chat-video-asset-tag:focus-visible {
  border-color: rgba(244, 221, 155, 0.74);
  color: #0b0905;
  background: var(--gold);
  outline: none;
}

.chat-video-studio.is-controls-collapsed .chat-video-overlay {
  left: auto;
  width: min(680px, calc(100% - 24px));
  max-height: none;
  padding: 8px;
  background: rgba(8, 7, 5, 0.42);
}

.chat-video-studio.is-controls-collapsed .chat-video-prompt-label,
.chat-video-studio.is-controls-collapsed .chat-video-prompt,
.chat-video-studio.is-controls-collapsed .chat-video-examples,
.chat-video-studio.is-controls-collapsed .chat-video-control-row,
.chat-video-studio.is-controls-collapsed .chat-video-feedback,
.chat-video-studio.is-controls-collapsed .chat-video-assets {
  display: none;
}

.chat-video-studio:fullscreen {
  inset: 0;
  padding: 0;
  background: #000;
}

.chat-video-studio:fullscreen .chat-video-stage {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
}

.chat-live-video-status {
  min-height: 16px;
}

.chat-attachment-status {
  min-height: 18px;
  overflow: hidden;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-attachment-status.is-busy {
  color: var(--gold-soft);
}

.chat-attachment-status.is-ready {
  color: var(--cool);
}

.chat-attachment-status.is-error {
  color: var(--danger);
}

.chat-attachment-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  width: min(280px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  min-width: 0;
  max-height: 160px;
  overflow: auto;
  justify-self: end;
}

.chat-attachment-preview {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px;
  border: 1px solid rgba(226, 194, 99, 0.22);
  background: rgba(9, 12, 15, 0.78);
}

.chat-attachment-preview.is-video .chat-attachment-thumb {
  color: var(--cool);
}

.chat-attachment-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(214, 226, 238, 0.15);
  background: rgba(214, 226, 238, 0.08);
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.chat-attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-attachment-meta {
  min-width: 0;
}

.chat-attachment-name,
.chat-attachment-size {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-attachment-name {
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
}

.chat-attachment-size {
  margin-top: 2px;
  color: var(--dim);
  font-size: 10px;
}

.chat-attachment-remove {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(226, 194, 99, 0.34);
  background: rgba(0, 0, 0, 0.24);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.chat-attachment-remove:hover,
.chat-attachment-remove:focus-visible {
  border-color: var(--danger);
  color: var(--danger);
  outline: none;
}

.chat-attachment-remove:disabled {
  opacity: 0.45;
  cursor: wait;
}

.chat-composer textarea {
  min-height: 92px;
  max-height: 220px;
  font-size: 16px;
  line-height: 1.55;
}

.chat-footnote {
  padding-bottom: 14px;
  background: rgba(8, 7, 5, 0.86);
  transition:
    opacity 260ms ease,
    max-height 260ms ease,
    padding 260ms ease,
    margin 260ms ease;
}

.chat-page.is-chat-focus .chat-footnote {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
}

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

.site-footer {
  border-top: 1px solid rgba(215, 175, 85, 0.18);
  background: #070604;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner span:first-child {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner a {
  color: var(--gold-soft);
  text-decoration-color: rgba(244, 221, 155, 0.34);
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slow-scan {
  0% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

@keyframes graph-flow {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes node-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.48;
    transform: scale(1.04);
  }
}

@keyframes flow-step-active {
  0%,
  14% {
    border-color: rgba(244, 221, 155, 0.44);
    box-shadow: inset 0 0 34px rgba(215, 175, 85, 0.075);
  }
  18%,
  100% {
    border-color: rgba(215, 175, 85, 0.16);
    box-shadow: inset 0 0 0 rgba(215, 175, 85, 0);
  }
}

@keyframes flow-step-scan {
  0% {
    opacity: 0;
    transform: translateX(-110%);
  }
  4% {
    opacity: 0.68;
  }
  13% {
    opacity: 0.2;
    transform: translateX(110%);
  }
  18%,
  100% {
    opacity: 0;
    transform: translateX(110%);
  }
}

@keyframes flow-index-pulse {
  0%,
  13% {
    color: rgba(244, 221, 155, 0.98);
  }
  18%,
  100% {
    color: rgba(244, 221, 155, 0.72);
  }
}

@keyframes computation-dot {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.82);
  }
  50% {
    opacity: 0.96;
    transform: scale(1.12);
  }
}

@keyframes computation-dim {
  0%,
  100% {
    opacity: 0.42;
  }
  45% {
    opacity: 0.86;
  }
  72% {
    opacity: 0.56;
  }
}

@keyframes map-scan {
  0%,
  100% {
    transform: translateX(-22%);
    opacity: 0.34;
  }
  50% {
    transform: translateX(16%);
    opacity: 0.84;
  }
}

@keyframes modal-sweep {
  0% {
    transform: translateX(-82%);
  }
  100% {
    transform: translateX(82%);
  }
}

@keyframes modal-rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes demo-dots {
  0% {
    width: 0;
  }
  100% {
    width: 1.5em;
  }
}

@keyframes teleprompter-status-pulse {
  0%,
  100% {
    border-color: rgba(244, 221, 155, 0.24);
    opacity: 0.72;
    transform: translateY(4px);
  }
  50% {
    border-color: rgba(244, 221, 155, 0.68);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes teleprompter-new-output {
  0% {
    opacity: 0.62;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes video-feedback-dots {
  0% {
    width: 0;
  }
  100% {
    width: 1.2em;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-header.has-mobile-menu .brand {
    order: 1;
    max-width: calc(100% - 116px);
    margin-right: auto;
  }

  .site-header.has-mobile-menu .language-toggle {
    order: 2;
    margin-left: 0;
  }

  .site-header.has-mobile-menu .nav-toggle {
    order: 3;
    display: inline-flex;
    margin-left: 0;
  }

  .site-header.has-mobile-menu .site-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(215, 175, 85, 0.24);
    background: rgba(12, 10, 7, 0.96);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  }

  .site-header.has-mobile-menu.is-nav-open .site-nav {
    display: flex;
  }

  .site-header.has-mobile-menu .site-nav a {
    display: block;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(244, 221, 155, 0.1);
  }

  .site-header.has-mobile-menu .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-header.has-mobile-menu .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 90svh;
    padding-top: 142px;
  }

  .hero-media img {
    object-position: 56% 50%;
  }

  .two-column,
  .graph-layout,
  .modules-layout,
  .safety-layout,
  .contact-layout,
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .chat-page {
    height: 100vh;
    min-height: 100vh;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    grid-template-areas: "workspace";
    grid-template-columns: 1fr;
  }

  .chat-page-body {
    overflow: hidden;
  }

  .chat-rail {
    display: none;
  }

  .chat-rail-section + .chat-rail-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .chat-workspace {
    height: calc(100vh - var(--header-h) - 36px);
    height: calc(100svh - var(--header-h) - 36px);
    min-height: 0;
  }

  .chat-page.is-chat-focus {
    grid-template-columns: 1fr;
  }

  .chat-page.is-chat-focus .chat-rail {
    display: none;
  }

  .graph-copy {
    position: static;
  }

  .environment-graph {
    min-height: auto;
  }

  .environment-graph svg {
    min-height: 460px;
  }

  .architecture-flow,
  .control-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reasoning-console {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .reasoning-console::before {
    display: none;
  }

  .reasoning-console-label,
  .reasoning-console-text {
    width: 100%;
  }

  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-modal-panel,
  .application-hero-grid,
  .application-story-grid,
  .application-model-grid {
    grid-template-columns: 1fr;
  }

  .modal-copy {
    padding-right: 0;
  }

  .application-system-visual,
  .modal-visual {
    min-height: 420px;
  }

  .demo-console {
    min-height: 500px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 112px;
  }

  .chat-page-body.has-compact-header {
    --header-h: 52px;
  }

  .site-header {
    min-height: var(--header-h);
    padding: 12px 16px;
  }

  .chat-page-body .site-header.is-chat-compact {
    align-items: center;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 7px 12px;
  }

  .chat-page-body .site-header.is-chat-compact .brand {
    gap: 8px;
  }

  .chat-page-body .site-header.is-chat-compact .brand-mark {
    width: 32px;
    height: 32px;
  }

  .chat-page-body .site-header.is-chat-compact .brand-name {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .chat-page-body .site-header.has-mobile-menu.is-chat-compact .site-nav {
    width: 100%;
    max-width: none;
    margin-left: 0;
    overflow: visible;
    white-space: normal;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  .brand-product {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .site-nav {
    gap: 16px;
    font-size: 12px;
  }

  .hero {
    min-height: 88svh;
    padding: 152px 20px 38px;
  }

  .hero-media img {
    opacity: 0.42;
    object-position: 58% 50%;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 7, 5, 0.98) 0%, rgba(8, 7, 5, 0.82) 70%, rgba(8, 7, 5, 0.56) 100%),
      linear-gradient(0deg, rgba(8, 7, 5, 0.96) 0%, rgba(8, 7, 5, 0.24) 48%, rgba(8, 7, 5, 0.76) 100%);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 68px 20px;
  }

  .section::before {
    right: 20px;
    left: 20px;
  }

  .statement-grid,
  .architecture-flow,
  .control-stack,
  .use-case-grid,
  .application-model-grid {
    grid-template-columns: 1fr;
  }

  .statement,
  .use-card,
  .application-card {
    min-height: auto;
  }

  .application-actions,
  .application-actions .button {
    width: 100%;
  }

  .demo-console {
    min-height: 480px;
    border-radius: 14px;
  }

  .demo-form,
  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-action-stack {
    grid-template-columns: 42px minmax(72px, auto) minmax(0, 1fr);
    align-items: start;
    min-width: 0;
  }

  .demo-visitor-form,
  .demo-contact-form {
    grid-template-columns: 1fr;
  }

  .chat-composer {
    gap: 8px;
    padding: 10px;
  }

  .chat-composer textarea {
    min-height: 58px;
    max-height: 120px;
    font-size: 16px;
  }

  .demo-form .button,
  .chat-composer .button {
    width: 100%;
    min-height: 42px;
  }

  .chat-composer .chat-attach-button {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  .chat-action-stack > .chat-live-video-button {
    grid-column: 2;
    grid-row: 1;
  }

  .chat-action-stack > .button-primary {
    grid-column: 3;
    grid-row: 1;
  }

  .chat-action-stack > .chat-video-panel,
  .chat-action-stack > .chat-attachment-status,
  .chat-action-stack > .chat-attachment-previews {
    grid-column: 1 / -1;
  }

  .chat-action-stack > .chat-video-panel,
  .chat-action-stack > .chat-attachment-previews {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    box-shadow: none;
  }

  .chat-action-stack > .chat-attachment-status:not(.is-busy):not(.is-ready):not(.is-error),
  .chat-action-stack > .chat-attachment-previews:empty {
    display: none;
  }

  .chat-video-studio {
    inset: calc(var(--header-h) + 8px) 8px 8px;
    padding: 8px;
  }

  .chat-video-stage {
    min-height: min(520px, calc(100svh - var(--header-h) - 24px));
    border-radius: 14px;
  }

  .chat-video-overlay {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 10px;
  }

  .chat-video-teleprompter {
    top: 8px;
    right: 8px;
    left: 8px;
    max-height: min(34%, 190px);
    padding: 10px 11px;
    font-size: 12px;
  }

  .chat-video-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .chat-video-device {
    grid-column: 1 / -1;
  }

  .chat-video-studio.is-controls-collapsed .chat-video-overlay {
    right: 8px;
    left: 8px;
    width: auto;
  }

  .chat-video-control-row {
    grid-template-columns: 1fr;
  }

  .chat-video-chip {
    flex: 1 1 128px;
  }

  .chat-page {
    padding: calc(var(--header-h) + 8px) 8px 8px;
    gap: 8px;
  }

  .chat-rail {
    display: none;
  }

  .chat-rail-section + .chat-rail-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(215, 175, 85, 0.16);
  }

  .chat-toolbar {
    align-items: center;
    gap: 8px;
    flex-direction: row;
    min-height: 44px;
    padding: 0 10px;
  }

  .chat-mode {
    overflow: hidden;
    max-width: 44vw;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-messages {
    gap: 12px;
    padding: 14px 12px;
  }

  .chat-messages .demo-message {
    max-width: 96%;
    padding: 12px;
    border-radius: 14px;
  }

  .application-modal {
    padding: 10px;
  }

  .application-modal-panel {
    max-height: calc(100svh - 20px);
    padding: 22px;
  }

  .modal-visual,
  .application-system-visual {
    min-height: 340px;
  }

  .modal-node,
  .system-visual-node {
    max-width: 118px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .modal-core,
  .system-visual-core {
    width: 72px;
    height: 72px;
  }

  .environment-graph {
    padding: 4px;
  }

  .environment-graph svg {
    min-height: 360px;
  }

  .flow-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(215, 175, 85, 0.16);
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .flow-step::after {
    top: auto;
    right: 24px;
    bottom: -10px;
    transform: rotate(90deg);
  }

  .reasoning-console {
    padding: 12px 13px;
  }

  .reasoning-console-label {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .reasoning-console-text {
    font-size: 11px;
  }

  .graph-node text {
    font-size: 11px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
  }
}

.agent-page-body {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(141, 182, 191, 0.12), transparent 36%),
    linear-gradient(180deg, #070806 0%, #0f0d09 48%, #080705 100%);
}

.agent-page-body .site-header {
  background: rgba(8, 7, 5, 0.9);
}

.agent-page {
  display: grid;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 12px) 12px 12px;
  overflow: hidden;
}

.agent-call {
  min-width: 0;
  min-height: 0;
}

.agent-stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 175, 85, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(141, 182, 191, 0.08), transparent 28%, rgba(215, 175, 85, 0.08)),
    repeating-linear-gradient(0deg, rgba(244, 221, 155, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(141, 182, 191, 0.035) 0 1px, transparent 1px 72px),
    #090906;
  box-shadow: var(--shadow);
}

.agent-stage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 34%);
}

.agent-stage::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.045) 48%, transparent 56%);
  transform: translateX(-100%);
  animation: agent-scan 12s linear infinite;
}

.agent-status-strip,
.agent-presence,
.agent-controls,
.agent-prompt,
.agent-caption,
.agent-self-view,
.agent-transcript,
.agent-meter,
.agent-meti-wrap {
  position: absolute;
  z-index: 2;
}

.agent-status-strip {
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  max-width: min(520px, calc(100% - 32px));
  padding: 8px 12px;
  border: 1px solid rgba(215, 175, 85, 0.22);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(7, 7, 5, 0.72);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 750;
}

.agent-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 4px rgba(130, 120, 99, 0.14);
}

.agent-status-dot.is-ready {
  background: #8dbf9d;
  box-shadow: 0 0 0 4px rgba(141, 191, 157, 0.16);
}

.agent-status-dot.is-busy {
  background: var(--gold-soft);
  box-shadow: 0 0 0 4px rgba(244, 221, 155, 0.16);
  animation: agent-pulse 1.1s ease-in-out infinite;
}

.agent-status-dot.is-error {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(196, 134, 105, 0.16);
}

.agent-runtime {
  min-width: 0;
  overflow: hidden;
  color: var(--cool);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-meti-wrap {
  top: 50%;
  left: 50%;
  display: grid;
  width: min(34vw, 420px);
  min-width: 260px;
  max-width: 420px;
  aspect-ratio: 0.78;
  place-items: center;
  transform: translate(-50%, -55%);
}

.agent-meti {
  position: relative;
  width: 72%;
  height: 86%;
  border: 1px solid rgba(244, 221, 155, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(244, 221, 155, 0.18), transparent 18%),
    linear-gradient(90deg, rgba(141, 182, 191, 0.18), transparent 42%, rgba(215, 175, 85, 0.2)),
    #15130e;
  box-shadow:
    inset 0 0 42px rgba(0, 0, 0, 0.44),
    0 30px 90px rgba(0, 0, 0, 0.42);
  animation: meti-idle 5.4s ease-in-out infinite;
}

.agent-meti::before,
.agent-meti::after {
  position: absolute;
  right: 10%;
  left: 10%;
  height: 1px;
  content: "";
  background: rgba(244, 221, 155, 0.22);
}

.agent-meti::before {
  top: 29%;
}

.agent-meti::after {
  top: 62%;
}

.agent-meti-antenna {
  position: absolute;
  top: -38px;
  left: 50%;
  width: 2px;
  height: 38px;
  background: rgba(244, 221, 155, 0.5);
  transform: translateX(-50%);
}

.agent-meti-antenna::before {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(141, 182, 191, 0.76);
  border-radius: 50%;
  content: "";
  background: rgba(141, 182, 191, 0.18);
  transform: translateX(-50%);
}

.agent-meti-head {
  position: absolute;
  top: 12%;
  right: 12%;
  left: 12%;
  display: grid;
  align-items: center;
  justify-items: center;
  height: 24%;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(141, 182, 191, 0.34);
  border-radius: 14px;
  background: rgba(4, 7, 7, 0.58);
}

.agent-meti-eye {
  width: 38%;
  max-width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8db6bf;
  box-shadow:
    0 0 14px rgba(141, 182, 191, 0.56),
    inset 0 -5px 12px rgba(0, 0, 0, 0.28);
}

.agent-meti-mouth {
  position: absolute;
  right: 32%;
  bottom: 17%;
  left: 32%;
  height: 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  box-shadow: 0 0 12px rgba(244, 221, 155, 0.45);
  transform-origin: center;
}

.is-meti-speaking .agent-meti-mouth {
  animation: meti-mouth 180ms ease-in-out infinite alternate;
}

.agent-meti-rack {
  position: absolute;
  right: 12%;
  bottom: 16%;
  left: 12%;
  display: grid;
  gap: 12px;
}

.agent-meti-rack span {
  display: block;
  height: 12px;
  border: 1px solid rgba(215, 175, 85, 0.2);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 221, 155, 0.28), transparent 58%, rgba(141, 182, 191, 0.3));
}

.agent-meti-lights {
  position: absolute;
  right: 13%;
  bottom: 7%;
  display: flex;
  gap: 8px;
}

.agent-meti-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(215, 175, 85, 0.42);
  animation: meti-light 1.8s ease-in-out infinite;
}

.agent-meti-lights span:nth-child(2) {
  background: var(--cool);
  animation-delay: 260ms;
}

.agent-meti-lights span:nth-child(3) {
  background: #8dbf9d;
  animation-delay: 520ms;
}

.agent-meti-shadow {
  position: absolute;
  bottom: 0;
  width: 80%;
  height: 15%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(16px);
}

.is-user-speaking .agent-meti {
  border-color: rgba(141, 182, 191, 0.68);
}

.is-user-speaking .agent-meti-wrap::before {
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(141, 182, 191, 0.34);
  border-radius: 32px;
  content: "";
  animation: user-speaking-ring 1.2s ease-out infinite;
}

.agent-caption {
  right: 50%;
  bottom: 152px;
  display: grid;
  width: min(760px, calc(100% - 520px));
  max-height: 150px;
  min-height: 76px;
  padding: 14px 16px;
  overflow-y: auto;
  border: 1px solid rgba(244, 221, 155, 0.2);
  border-radius: 10px;
  background: rgba(6, 6, 4, 0.55);
  backdrop-filter: blur(16px);
  transform: translateX(50%);
}

.agent-caption-text {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.agent-caption-text.is-new {
  animation: agent-caption-in 240ms ease-out;
}

.agent-caption-text.is-busy::after {
  display: inline-block;
  width: 1.1em;
  overflow: hidden;
  vertical-align: bottom;
  content: "...";
  animation: video-feedback-dots 900ms steps(3, end) infinite;
}

.agent-caption-text.is-error {
  color: #f2b49a;
}

.agent-self-view {
  top: 16px;
  right: 16px;
  width: min(24vw, 290px);
  min-width: 210px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(141, 182, 191, 0.3);
  border-radius: 12px;
  background: #050504;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.agent-camera {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.agent-camera-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 13px;
  background: repeating-linear-gradient(135deg, rgba(244, 221, 155, 0.04) 0 8px, transparent 8px 16px);
}

.has-camera .agent-camera-empty {
  display: none;
}

.agent-camera-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  min-height: 28px;
  padding: 5px 8px;
  overflow: hidden;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(4, 4, 3, 0.7);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-transcript {
  top: 70px;
  bottom: 118px;
  left: 16px;
  display: flex;
  flex-direction: column;
  width: 330px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 175, 85, 0.18);
  border-radius: 10px;
  background: rgba(7, 7, 5, 0.52);
  backdrop-filter: blur(14px);
}

.agent-transcript-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(215, 175, 85, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.agent-transcript-log {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 12px;
}

.agent-turn {
  padding: 10px 11px;
  border: 1px solid rgba(244, 221, 155, 0.14);
  border-radius: 8px;
  background: rgba(13, 12, 8, 0.7);
}

.agent-turn strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-turn p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.agent-turn-user {
  border-color: rgba(141, 182, 191, 0.22);
  background: rgba(9, 18, 19, 0.66);
}

.agent-turn-user strong {
  color: var(--cool);
}

.agent-turn.is-pending p::after {
  display: inline-block;
  width: 1.1em;
  overflow: hidden;
  vertical-align: bottom;
  content: "...";
  animation: video-feedback-dots 900ms steps(3, end) infinite;
}

.agent-meter {
  bottom: 272px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 42vw);
  height: 52px;
  gap: 7px;
  transform: translateX(-50%);
}

.agent-meter span {
  display: block;
  width: 7px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cool), var(--gold-soft));
  opacity: 0.34;
  transform: scaleY(0.12);
  transform-origin: center;
  transition:
    opacity 80ms linear,
    transform 80ms linear;
}

.agent-prompt {
  right: 50%;
  bottom: 86px;
  display: grid;
  width: min(680px, calc(100% - 560px));
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  transform: translateX(50%);
}

.agent-prompt input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(215, 175, 85, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(8, 7, 5, 0.72);
  font: inherit;
}

.agent-prompt input:focus {
  outline: 2px solid rgba(141, 182, 191, 0.42);
  outline-offset: 2px;
}

.agent-controls {
  right: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 32px);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(215, 175, 85, 0.18);
  border-radius: 12px;
  background: rgba(5, 5, 4, 0.7);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.agent-control {
  display: inline-grid;
  min-width: 74px;
  min-height: 54px;
  padding: 7px 9px;
  place-items: center;
  border: 1px solid rgba(244, 221, 155, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(14, 13, 9, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.agent-control:hover,
.agent-control:focus-visible {
  border-color: rgba(244, 221, 155, 0.56);
  background: rgba(244, 221, 155, 0.08);
  transform: translateY(-1px);
}

.agent-control:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.agent-control-icon {
  font-size: 14px;
  line-height: 1;
}

.agent-control-primary {
  color: #0d0a04;
  border-color: rgba(244, 221, 155, 0.72);
  background: linear-gradient(135deg, var(--gold-soft), #c99a3a);
}

.agent-control.is-active {
  border-color: rgba(141, 182, 191, 0.62);
  background: rgba(141, 182, 191, 0.16);
}

.agent-control-end {
  border-color: rgba(196, 134, 105, 0.36);
}

.agent-presence {
  right: 16px;
  bottom: 118px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
  max-width: 310px;
  pointer-events: none;
}

.agent-presence span {
  max-width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(141, 182, 191, 0.16);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(5, 6, 5, 0.62);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes agent-scan {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(110%);
  }
}

@keyframes agent-pulse {
  50% {
    transform: scale(1.18);
  }
}

@keyframes meti-idle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes meti-mouth {
  0% {
    transform: scaleY(0.65) scaleX(0.82);
  }
  100% {
    transform: scaleY(2.3) scaleX(1.16);
  }
}

@keyframes meti-light {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
  }
}

@keyframes user-speaking-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.96);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes agent-caption-in {
  0% {
    opacity: 0.62;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .agent-caption,
  .agent-prompt {
    width: min(620px, calc(100% - 390px));
  }

  .agent-transcript {
    width: 290px;
  }

  .agent-self-view {
    width: 230px;
    min-width: 190px;
  }
}

@media (max-width: 860px) {
  .agent-page {
    padding: calc(var(--header-h) + 8px) 8px 8px;
  }

  .agent-stage {
    border-radius: 12px;
  }

  .agent-status-strip {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }

  .agent-self-view {
    top: 58px;
    right: 10px;
    width: 156px;
    min-width: 0;
    border-radius: 9px;
  }

  .agent-transcript {
    top: 58px;
    right: 174px;
    bottom: auto;
    left: 10px;
    width: auto;
    height: 150px;
  }

  .agent-meti-wrap {
    width: 280px;
    min-width: 220px;
    transform: translate(-50%, -52%);
  }

  .agent-caption {
    right: 10px;
    bottom: 150px;
    left: 10px;
    width: auto;
    max-height: 118px;
    min-height: 68px;
    transform: none;
  }

  .agent-caption-text {
    font-size: 15px;
  }

  .agent-meter {
    bottom: 304px;
    width: 230px;
    height: 38px;
  }

  .agent-prompt {
    right: 10px;
    bottom: 86px;
    left: 10px;
    width: auto;
    transform: none;
  }

  .agent-controls {
    right: 8px;
    bottom: 8px;
    left: 8px;
    justify-content: flex-start;
    max-width: none;
    overflow-x: auto;
    transform: none;
  }

  .agent-control {
    min-width: 66px;
    flex: 0 0 auto;
  }

  .agent-presence {
    display: none;
  }
}

@media (max-width: 560px) {
  .agent-self-view {
    width: 118px;
  }

  .agent-transcript {
    right: 136px;
    height: 120px;
  }

  .agent-transcript-head {
    min-height: 34px;
    padding: 7px 9px;
  }

  .agent-transcript-log {
    padding: 8px;
  }

  .agent-turn {
    padding: 8px;
  }

  .agent-turn p {
    font-size: 12px;
  }

  .agent-meti-wrap {
    width: 230px;
    min-width: 200px;
  }

  .agent-caption {
    bottom: 142px;
  }

  .agent-prompt {
    grid-template-columns: 1fr;
  }

  .agent-prompt .button {
    min-height: 42px;
    padding: 10px 14px;
  }

  .agent-meter {
    display: none;
  }
}

.agent-page-body {
  --header-h: 0px;
  background: #020202;
}

.agent-page-body .site-header {
  display: none;
}

.agent-page-body::before,
.agent-page-body::after {
  display: none;
}

.agent-page {
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  background: #020202;
}

.agent-call,
.agent-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.agent-stage {
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(141, 182, 191, 0.13), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(215, 175, 85, 0.1), transparent 26%),
    repeating-linear-gradient(0deg, rgba(244, 221, 155, 0.026) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(90deg, rgba(141, 182, 191, 0.024) 0 1px, transparent 1px 70px),
    #030302;
  box-shadow: none;
}

.agent-stage::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 24%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 34%);
}

.agent-status-strip {
  top: 14px;
  left: 14px;
  min-height: 34px;
  max-width: min(360px, calc(100% - 210px));
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-size: 11px;
}

.agent-runtime {
  max-width: 120px;
}

.agent-meti-wrap {
  top: 49%;
  width: min(52vmin, 520px);
  min-width: min(360px, 76vw);
  max-width: 520px;
  transform: translate(-50%, -50%);
}

.agent-meti {
  border-radius: 16px;
  box-shadow:
    inset 0 0 52px rgba(0, 0, 0, 0.48),
    0 42px 130px rgba(0, 0, 0, 0.55),
    0 0 92px rgba(141, 182, 191, 0.08);
}

.agent-caption {
  top: 14px;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(760px, calc(100% - 440px));
  min-height: 0;
  max-height: min(29vh, 238px);
  padding: 12px 14px;
  border: 1px solid rgba(226, 194, 99, 0.18);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  scrollbar-gutter: stable;
  transform: translateX(-50%);
}

.agent-caption::after {
  position: sticky;
  bottom: 0;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(244, 221, 155, 0.2);
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.42);
  content: "";
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
}

.agent-caption:has(.agent-caption-text.is-busy)::after {
  content: "updating";
  opacity: 1;
  animation: teleprompter-status-pulse 1100ms ease-in-out infinite;
}

.agent-caption-text {
  min-height: 1.45em;
  color: rgba(246, 240, 223, 0.97);
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.5;
  white-space: pre-wrap;
}

.agent-caption-text.is-new {
  animation: teleprompter-new-output 420ms ease-out;
}

.agent-subtitles {
  position: absolute;
  right: 18px;
  bottom: 118px;
  left: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.agent-subtitles-text {
  display: inline-block;
  max-width: min(920px, 100%);
  max-height: 4.2em;
  overflow: hidden;
  padding: 10px 16px;
  color: #fff8e8;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 780;
  line-height: 1.22;
  text-align: center;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 22px rgba(0, 0, 0, 0.55);
}

.agent-subtitles-text.is-new {
  animation: teleprompter-new-output 420ms ease-out;
}

.agent-subtitles-text.is-busy::after {
  display: inline-block;
  width: 1.1em;
  overflow: hidden;
  vertical-align: bottom;
  content: "...";
  animation: video-feedback-dots 900ms steps(3, end) infinite;
}

.agent-subtitles-text.is-error {
  color: #ffd0bd;
}

.agent-self-view {
  top: 14px;
  right: 14px;
  width: min(22vw, 240px);
  min-width: 160px;
  border-radius: 0;
  background: #030302;
}

.agent-transcript {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.agent-meter {
  display: none;
}

.agent-prompt {
  bottom: 66px;
  width: min(620px, calc(100% - 36px));
  min-height: 42px;
}

.agent-prompt input {
  min-height: 42px;
  border-color: rgba(226, 194, 99, 0.18);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.agent-prompt .button {
  min-height: 42px;
}

.agent-controls {
  bottom: 8px;
  max-width: calc(100% - 28px);
  padding: 6px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.agent-controls::-webkit-scrollbar {
  display: none;
}

.agent-control {
  min-width: 64px;
  min-height: 46px;
  border-radius: 0;
  background: rgba(13, 13, 10, 0.68);
  font-size: 11px;
}

.agent-control-primary {
  background: linear-gradient(135deg, var(--gold-soft), #c99a3a);
}

.agent-presence {
  display: none;
}

@media (max-width: 1060px) {
  .agent-caption {
    top: 58px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: min(24vh, 190px);
    transform: none;
  }

  .agent-status-strip {
    max-width: calc(100% - 190px);
  }
}

@media (max-width: 720px) {
  .agent-status-strip {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 146px);
    min-height: 32px;
  }

  .agent-self-view {
    top: 10px;
    right: 10px;
    width: 126px;
    min-width: 0;
  }

  .agent-caption {
    top: 74px;
    right: 10px;
    left: 10px;
    max-height: 23vh;
    padding: 10px 11px;
  }

  .agent-meti-wrap {
    top: 49%;
    width: min(72vw, 330px);
    min-width: 210px;
  }

  .agent-subtitles {
    right: 10px;
    bottom: 124px;
    left: 10px;
  }

  .agent-subtitles-text {
    padding: 8px 11px;
    font-size: clamp(18px, 5.5vw, 28px);
  }

  .agent-meter {
    display: none;
  }

  .agent-prompt {
    right: 10px;
    bottom: 64px;
    left: 10px;
    width: auto;
    grid-template-columns: minmax(0, 1fr) 72px;
    transform: none;
  }

  .agent-prompt input,
  .agent-prompt .button {
    min-height: 38px;
  }

  .agent-prompt .button {
    padding: 8px 10px;
  }

  .agent-controls {
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    max-width: none;
    overflow: hidden;
    transform: none;
  }

  .agent-control {
    min-width: 0;
    min-height: 46px;
    padding: 6px 3px;
    font-size: 10px;
  }
}

@media (max-width: 460px) {
  .agent-caption {
    max-height: 20vh;
  }

  .agent-prompt {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .agent-subtitles {
    bottom: 124px;
  }
}

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

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