:root {
  --bg: #07080b;
  --bg-soft: #101118;
  --panel: #151621;
  --text: #f7f3ea;
  --muted: #bdb6a8;
  --line: rgba(247, 243, 234, 0.15);
  --purple: #8a3ffc;
  --orange: #ff8a1f;
  --teal: #42d3bb;
  --blue: #2f7bff;
  --gold: #ffd36e;
  --cora: #8a3ffc;
  --vera: #42d3bb;
  --petra: #ff8a1f;
  --nova: #2f7bff;
  --max: 1160px;
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(138, 63, 252, 0.18), transparent 26rem),
    radial-gradient(circle at 82% 6%, rgba(255, 138, 31, 0.16), transparent 24rem),
    linear-gradient(180deg, #0b0c12 0%, var(--bg) 42%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
  min-height: 88px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  width: 78px;
  height: 45px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 8, 11, 0.68);
}

.site-nav a {
  min-width: 5.2rem;
  padding: 0.62rem 0.82rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(247, 243, 234, 0.1);
  color: var(--text);
}

main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.hero,
.download-hero,
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(22rem, 1.18fr);
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - 152px);
  padding: 3rem 0 4rem;
}

.download-hero,
.about-hero {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.58fr);
}

.hero-copy {
  min-width: 0;
  max-width: 43rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.tm {
  font-size: 0.42em;
  line-height: 0;
  margin-left: 0.04em;
  margin-right: 0.22em;
  vertical-align: super;
}

h1 {
  margin-bottom: 1.05rem;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.download-hero h1,
.about-hero h1 {
  font-size: clamp(2.65rem, 5.4vw, 5rem);
  line-height: 1;
}

.tagline {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.35;
}

.lede {
  margin-bottom: 1.65rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--text), #fff1d9);
  box-shadow: 0 18px 46px rgba(255, 138, 31, 0.22);
  color: var(--bg);
}

.button.secondary {
  border-color: rgba(247, 243, 234, 0.22);
  background: rgba(247, 243, 234, 0.06);
  color: var(--text);
}

.hero-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.hero-media img {
  width: 100%;
  min-height: 24rem;
  object-fit: cover;
}

.agents {
  padding: 1rem 0 5rem;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.agent-grid article,
.specimen-panel,
.about-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(247, 243, 234, 0.08), rgba(247, 243, 234, 0.02)),
    rgba(21, 22, 33, 0.82);
}

.panel-logo {
  width: min(100%, 170px);
  height: auto;
}

.agent-grid article {
  min-height: 10rem;
  padding: 1.15rem;
}

.agent-grid span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 900;
}

.agent-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.specimen-panel,
.about-panel {
  display: grid;
  gap: 1rem;
  align-content: center;
  min-height: 25rem;
  padding: 1.35rem;
}

.specimen-panel h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.92;
}

.specimen-panel p,
.about-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.specimen-panel dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.specimen-panel dl div {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.specimen-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.specimen-panel dd {
  margin: 0;
  color: var(--text);
}

.demo-title {
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 900;
}

.orchestration-panel {
  position: relative;
  overflow: hidden;
  align-content: stretch;
  min-height: 25rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 138, 31, 0.16), transparent 9rem),
    radial-gradient(circle at 28% 34%, rgba(138, 63, 252, 0.18), transparent 10rem),
    linear-gradient(145deg, rgba(247, 243, 234, 0.08), rgba(247, 243, 234, 0.025)),
    rgba(21, 22, 33, 0.9);
}

.orchestration-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 211, 110, 0.14), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%);
  content: "";
  opacity: 0.72;
}

.orchestration-demo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0.85rem;
  min-height: 100%;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.demo-header .panel-logo {
  width: 7rem;
  max-width: 42%;
}

.demo-title,
.demo-subtitle,
.demo-footer {
  margin: 0;
}

.demo-title {
  line-height: 1;
  letter-spacing: 0.08em;
}

.demo-subtitle,
.demo-footer {
  color: var(--muted);
  font-size: 0.86rem;
}

.prompt-card,
.response-card {
  position: relative;
  overflow: hidden;
  min-height: 4.55rem;
  padding: 0.78rem 0.82rem;
  border: 1px solid rgba(247, 243, 234, 0.13);
  border-radius: var(--radius);
  background: rgba(7, 8, 11, 0.42);
}

.prompt-card::after,
.response-card::after {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  content: "";
  opacity: 0.7;
}

.prompt-card > span,
.response-card > span {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-card p,
.response-card p {
  margin: 0;
  color: var(--text);
  font-size: clamp(0.92rem, 1.5vw, 1.04rem);
  font-weight: 760;
  line-height: 1.35;
}

.typing-cursor {
  display: inline-block;
  width: 0.52rem;
  height: 1em;
  margin-left: 0.1rem;
  border-right: 2px solid var(--gold);
  transform: translateY(0.13rem);
  animation: cursorPulse 0.85s steps(1) infinite;
}

.orchestration-demo.is-complete .typing-cursor {
  border-right-color: transparent;
  animation: none;
}

.agent-stage {
  position: relative;
  display: grid;
  grid-template:
    "cora pool vera" minmax(4.7rem, 1fr)
    "petra pool nova" minmax(4.7rem, 1fr) / minmax(0, 1fr) minmax(4.8rem, 0.76fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0.72rem;
  min-height: 11.2rem;
}

.agent-connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.agent-connector {
  fill: none;
  opacity: 0;
  stroke-dasharray: 1.2 3.4;
  stroke-linecap: round;
  stroke-width: 1.35;
  transition: opacity 420ms ease;
  vector-effect: non-scaling-stroke;
}

.connector-cora {
  stroke: var(--cora);
}

.connector-vera {
  stroke: var(--vera);
}

.connector-petra {
  stroke: var(--petra);
}

.connector-nova {
  stroke: var(--nova);
}

.orchestration-demo.has-cora-contribution .connector-cora,
.orchestration-demo.has-vera-contribution .connector-vera,
.orchestration-demo.has-petra-contribution .connector-petra,
.orchestration-demo.has-nova-contribution .connector-nova {
  opacity: 0.72;
}

.agent-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(247, 243, 234, 0.12);
  border-radius: var(--radius);
  background: rgba(7, 8, 11, 0.42);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.agent-card::before {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--agent-color);
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.agent-card.is-active,
.agent-card.is-sending {
  border-color: color-mix(in srgb, var(--agent-color) 72%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--agent-color) 32%, transparent);
  transform: translateY(-2px);
}

.agent-card.is-active::before,
.agent-card.is-sending::before {
  opacity: 0.72;
}

.agent-cora {
  --agent-color: var(--cora);
  --send-x: 5.8rem;
  --send-y: 3.45rem;
  grid-area: cora;
}

.agent-vera {
  --agent-color: var(--vera);
  --send-x: -5.8rem;
  --send-y: 3.45rem;
  grid-area: vera;
}

.agent-petra {
  --agent-color: var(--petra);
  --send-x: 5.8rem;
  --send-y: -3.45rem;
  grid-area: petra;
}

.agent-nova {
  --agent-color: var(--nova);
  --send-x: -5.8rem;
  --send-y: -3.45rem;
  grid-area: nova;
}

.agent-name,
.agent-role,
.agent-thought {
  position: relative;
  z-index: 1;
}

.agent-name {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.agent-role {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-thought {
  display: inline-block;
  min-height: 1.35rem;
  width: max-content;
  max-width: 100%;
  color: var(--agent-color);
  font-size: 0.84rem;
  font-weight: 880;
  line-height: 1.25;
  white-space: nowrap;
}

.agent-card.is-sending .agent-thought {
  animation: sendToPool 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.contribution-pool {
  position: relative;
  z-index: 2;
  display: grid;
  grid-area: pool;
  place-items: center;
  align-self: center;
  justify-self: stretch;
  min-height: 7.6rem;
  border: 1px solid rgba(247, 243, 234, 0.13);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(247, 243, 234, 0.12), transparent 58%),
    rgba(7, 8, 11, 0.35);
}

.pool-core {
  position: absolute;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(247, 243, 234, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 211, 110, 0.7), transparent 17%),
    conic-gradient(from 210deg, var(--cora), var(--vera), var(--petra), var(--nova), var(--cora));
  filter: saturate(1.12);
  opacity: 0.46;
  animation: poolBreathe 2.8s ease-in-out infinite;
}

.pool-token {
  --token-x: 0;
  --token-y: 0.4rem;
  --token-visible-y: 0;
  position: absolute;
  max-width: 7.4rem;
  padding: 0.22rem 0.46rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.82);
  color: currentColor;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  opacity: 0;
  text-align: center;
  transform: translate(var(--token-x), var(--token-y)) scale(0.84);
  transition:
    border-color 280ms ease,
    color 280ms ease,
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pool-token.is-visible {
  opacity: 1;
  transform: translate(var(--token-x), var(--token-visible-y)) scale(1);
}

.pool-token.is-unified {
  border-color: rgba(247, 243, 234, 0.2);
  color: var(--text);
}

.pool-token.is-absorbed {
  opacity: 0;
  transform: translate(var(--token-x), var(--token-visible-y)) scale(0.72);
}

.pool-cora {
  --token-x: -50%;
  --token-visible-y: 0;
  top: 0.45rem;
  left: 50%;
  color: var(--cora);
  transform-origin: center;
}

.pool-vera {
  --token-y: calc(-50% + 0.4rem);
  --token-visible-y: -50%;
  top: 50%;
  right: -0.42rem;
  color: var(--vera);
}

.pool-petra {
  --token-x: -50%;
  --token-visible-y: 0;
  bottom: 0.45rem;
  left: 50%;
  color: var(--petra);
}

.pool-nova {
  --token-y: calc(-50% + 0.4rem);
  --token-visible-y: -50%;
  top: 50%;
  left: -0.42rem;
  color: var(--nova);
}

.response-card {
  min-height: clamp(8rem, 18vw, 11rem);
}

.response-card.is-revealed {
  border-color: rgba(255, 211, 110, 0.3);
  box-shadow: 0 18px 44px rgba(255, 138, 31, 0.12);
}

.response-card p {
  color: var(--text);
  font-size: clamp(0.78rem, 1.02vw, 0.94rem);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.demo-footer {
  justify-self: end;
  font-weight: 800;
}

@keyframes cursorPulse {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes poolBreathe {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.42;
  }

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

@keyframes sendToPool {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  72% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(var(--send-x), var(--send-y)) scale(0.74);
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-cursor,
  .pool-core {
    animation: none;
  }

  .agent-card,
  .agent-connector,
  .pool-token {
    transition: none;
  }

  .agent-card.is-sending .agent-thought {
    animation: none;
  }
}

.ownership {
  margin: 1rem 0 0;
  color: var(--muted);
}

.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.not-found {
  display: grid;
  gap: 1rem;
  place-items: center;
  min-height: 100vh;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    min-height: 138px;
    padding: 1rem 0;
  }

  .brand {
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
  }

  .hero,
  .download-hero,
  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

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

  .orchestration-panel {
    min-height: 30rem;
  }

  .response-card {
    min-height: 8.5rem;
  }

  .response-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 620px) {
  :root {
    --phone-gutter: 0.7rem;
    --phone-panel-padding: 0.78rem;
    --phone-copy-size: 0.96rem;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  .site-header,
  .site-footer {
    width: calc(100% - (var(--phone-gutter) * 2));
  }

  .site-header {
    min-height: auto;
    padding: 0.95rem 0 0.8rem;
    gap: 0.75rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 0.9rem;
  }

  .brand img {
    width: 64px;
    height: 37px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: hidden;
    padding: 0.24rem;
  }

  .site-nav a {
    min-width: 0;
    padding: 0.58rem 0.18rem;
    font-size: 0.82rem;
  }

  .hero,
  .download-hero,
  .about-hero {
    gap: 2rem;
    padding: 2rem 0 3rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .eyebrow {
    margin-bottom: 0.78rem;
    font-size: 0.7rem;
  }

  h1,
  .download-hero h1,
  .about-hero h1 {
    max-width: 100%;
    margin-bottom: 0.85rem;
    font-size: clamp(1.85rem, 7.4vw, 2.55rem);
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  .tagline {
    font-size: clamp(1.05rem, 5vw, 1.28rem);
  }

  .lede {
    margin-bottom: 1.25rem;
    font-size: var(--phone-copy-size);
    line-height: 1.58;
  }

  .actions {
    flex-direction: column;
    gap: 0.72rem;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding: 0.78rem 0.68rem;
    font-size: 0.94rem;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .hero-media img {
    min-height: 16rem;
  }

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

  .specimen-panel,
  .about-panel {
    min-height: auto;
    padding: var(--phone-panel-padding);
  }

  .specimen-panel h2 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .orchestration-panel {
    padding: var(--phone-panel-padding);
  }

  .orchestration-demo {
    gap: 0.72rem;
  }

  .demo-header {
    align-items: center;
    gap: 0.62rem;
  }

  .demo-header .panel-logo {
    width: 5rem;
    max-width: 32%;
  }

  .demo-title {
    font-size: 1.35rem;
  }

  .demo-subtitle,
  .demo-footer {
    font-size: 0.78rem;
  }

  .prompt-card,
  .response-card {
    min-height: auto;
    padding: 0.7rem;
  }

  .prompt-card > span,
  .response-card > span {
    font-size: 0.62rem;
  }

  .prompt-card p,
  .response-card p {
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .response-card {
    min-height: 10.5rem;
  }

  .response-card p {
    font-size: 0.78rem;
    line-height: 1.32;
  }

  .agent-stage {
    grid-template:
      "cora vera" auto
      "pool pool" minmax(5.2rem, auto)
      "petra nova" auto / minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.55rem;
    min-height: auto;
  }

  .agent-card {
    min-height: 4.9rem;
    padding: 0.58rem;
  }

  .agent-name {
    font-size: 0.84rem;
  }

  .agent-role {
    font-size: 0.58rem;
  }

  .agent-thought {
    font-size: 0.7rem;
  }

  .agent-cora {
    --send-x: 3.5rem;
    --send-y: 5rem;
  }

  .agent-vera {
    --send-x: -3.5rem;
    --send-y: 5rem;
  }

  .agent-petra {
    --send-x: 3.5rem;
    --send-y: -5rem;
  }

  .agent-nova {
    --send-x: -3.5rem;
    --send-y: -5rem;
  }

  .contribution-pool {
    min-height: 5.2rem;
    border-radius: var(--radius);
  }

  .pool-core {
    width: 2.3rem;
    height: 2.3rem;
  }

  .pool-token {
    max-width: 5.8rem;
    font-size: 0.58rem;
  }

  .demo-footer {
    justify-self: start;
  }
}
