.features {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 22%, rgba(30, 116, 196, 0.1), transparent 30%),
    radial-gradient(circle at 94% 72%, rgba(75, 216, 200, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(7, 15, 27, 0.28), rgba(9, 19, 33, 0.72) 48%, rgba(6, 12, 22, 0.38));
}

.features::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(91, 153, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 153, 211, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.features .section-shell {
  position: relative;
  z-index: 1;
  width: min(1680px, calc(100vw - 56px));
}

.features .section-heading {
  max-width: 980px;
  margin-left: max(0px, calc((100% - 1240px) / 2));
}

.features .bento-grid {
  margin-inline: max(0px, calc((100% - 1240px) / 2));
}

.hero h1,
.section-heading h2,
.feature-card h3,
.workflow-copy h2,
.release-copy h2,
.download-content h2 {
  color: #f4f8ff;
  background: none;
  will-change: filter, opacity;
  animation: title-breathe 2.8s ease-in-out infinite;
}

.hero h1 span,
.section-heading h2 span,
.workflow-copy h2 span {
  color: transparent;
  background-image: linear-gradient(95deg, var(--blue-bright), var(--teal));
  background-size: 100% 100%;
  background-position: center;
  background-clip: text;
  -webkit-background-clip: text;
  animation: none;
}

.feature-card:nth-child(2n) h3 {
  animation-delay: -2.1s;
}

.feature-card:nth-child(3n) h3 {
  animation-delay: -4.2s;
}

.workflow {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(7, 14, 25, 0.62);
}

.workflow::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  right: -260px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(28, 119, 197, 0.08);
  filter: blur(90px);
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.workflow-copy > p {
  max-width: 560px;
}

.workflow-copy ul {
  display: grid;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-copy li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
}

.workflow-copy li > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #22415e;
  border-radius: 10px;
  color: var(--blue-bright);
  background: rgba(25, 81, 126, 0.14);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.workflow-copy li span {
  color: #7f94a9;
  font-size: 13px;
  line-height: 1.55;
}

.workflow-copy li b {
  display: block;
  margin-bottom: 2px;
  color: #dce9f5;
  font-size: 14px;
}

.orbit-diagram {
  position: relative;
  min-height: 590px;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(92, 163, 220, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one { width: 330px; height: 330px; }
.orbit-two { width: 510px; height: 510px; border-style: dashed; }

.orbit-two {
  animation: orbit-rotate 22s linear infinite;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 178px;
  height: 178px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(111, 203, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 25%, #153555, #091625 70%);
  box-shadow: 0 0 80px rgba(37, 126, 197, 0.16), inset 0 0 40px rgba(75, 216, 200, 0.035);
  animation: runtime-breathe 3.8s ease-in-out infinite;
}

.orbit-center img {
  width: 55px;
  height: 55px;
  margin-bottom: 10px;
}

.orbit-center strong {
  font-size: 13px;
}

.orbit-center span {
  margin-top: 4px;
  color: var(--text-muted);
  font: 10px "Cascadia Code", Consolas, monospace;
}

.orbit-node {
  position: absolute;
  width: 138px;
  padding: 13px;
  border: 1px solid #1d3852;
  border-radius: 13px;
  background: rgba(9, 21, 36, 0.88);
  box-shadow: 0 15px 35px rgba(0, 5, 16, 0.32);
  backdrop-filter: blur(14px);
  will-change: transform;
  animation: orbit-node-float 3.2s ease-in-out infinite;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.orbit-node i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 8px;
  color: #06131f;
  background: var(--blue-bright);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.orbit-node b,
.orbit-node span {
  display: block;
}

.orbit-node b { color: #d6e6f3; font-size: 12px; }
.orbit-node span { margin-top: 3px; color: #627a91; font: 9px "Cascadia Code", Consolas, monospace; }
.node-request { top: 34px; left: 72px; --float-x: 8px; --float-y: -14px; animation-delay: -0.3s; }
.node-tool { top: 117px; right: 8px; --float-x: -10px; --float-y: -12px; animation-delay: -1.1s; }
.node-result { right: 55px; bottom: 43px; --float-x: -8px; --float-y: 12px; animation-delay: -1.9s; }
.node-next { left: 14px; bottom: 85px; --float-x: 10px; --float-y: 11px; animation-delay: -2.7s; }
.node-result i, .node-next i { background: var(--teal); }

.orbit-node:hover {
  border-color: rgba(110, 203, 255, 0.52);
  box-shadow: 0 20px 44px rgba(15, 91, 151, 0.24);
  animation-play-state: paused;
}

.orbit-signal {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 17px var(--teal);
}

.signal-a {
  top: 74px;
  left: 53%;
  animation: float 2.8s ease-in-out infinite;
}

.signal-b {
  right: 16%;
  bottom: 125px;
  background: var(--blue-bright);
  box-shadow: 0 0 17px var(--blue-bright);
  animation: float 2.8s 0.7s ease-in-out infinite reverse;
}

.release-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 80px;
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 5%, rgba(46, 169, 243, 0.13), transparent 42%),
    linear-gradient(140deg, rgba(16, 33, 55, 0.92), rgba(8, 17, 30, 0.94));
  box-shadow: var(--shadow);
}

.release-copy h2 {
  font-size: clamp(38px, 4vw, 58px);
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.release-tags span {
  padding: 8px 10px;
  border: 1px solid #26425e;
  border-radius: 8px;
  color: #8fa6bc;
  background: rgba(8, 19, 32, 0.6);
  font-size: 12px;
}

.release-list {
  border-top: 1px solid var(--line);
}

.release-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.release-list article > i {
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.release-list h3 {
  margin: -4px 0 7px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.release-list p {
  margin: 0;
  color: #8297ac;
  font-size: 13px;
  line-height: 1.7;
}

.download {
  padding-top: 40px;
}

.download-panel {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: grid;
  place-items: center;
  padding: 80px 40px;
  border: 1px solid rgba(110, 203, 255, 0.19);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), transparent),
    #081421;
  box-shadow: var(--shadow);
}

.download-panel::before,
.download-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(93, 178, 231, 0.1);
  border-radius: 50%;
}

.download-panel::before { width: 750px; height: 750px; }
.download-panel::after { width: 1050px; height: 1050px; border-style: dashed; }

.download-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 145, 222, 0.22), transparent 66%);
}

.download-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  text-align: center;
}

.download-content > img {
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 22px 35px rgba(30, 132, 222, 0.35));
}

.download-content h2 {
  margin-inline: auto;
  max-width: 760px;
}

.download-content > p {
  margin-inline: auto;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 46px;
  text-align: left;
}

.platform-card {
  min-height: 135px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 13px;
  padding: 22px;
  border: 1px solid #203951;
  border-radius: 16px;
  background: rgba(7, 17, 29, 0.8);
}

a.platform-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 203, 255, 0.55);
  box-shadow: 0 18px 40px rgba(0, 7, 17, 0.34);
}

.platform-card.primary {
  border-color: rgba(110, 203, 255, 0.34);
  background: linear-gradient(135deg, rgba(32, 111, 171, 0.28), rgba(11, 27, 44, 0.86));
}

.platform-card.muted {
  opacity: 0.58;
}

.platform-card svg {
  width: 30px;
  height: 30px;
  fill: #cfeeff;
}

.platform-card span small,
.platform-card span b,
.platform-card em {
  display: block;
}

.platform-card span small {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.platform-card span b {
  font-size: 15px;
}

.platform-card em {
  grid-column: 2;
  margin-top: -23px;
  color: #71879b;
  font-size: 11px;
  font-style: normal;
}

.download-content .download-footnote {
  margin-top: 24px;
  color: #70869b;
  font-size: 12px;
}

.site-footer {
  padding: 34px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.footer-grid > p {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--text-soft);
  font-size: 12px;
}

.footer-links a:hover { color: #fff; }

.copyright {
  grid-column: 1 / -1;
  color: #5d7389;
  font-size: 11px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.feature-card {
  transition:
    opacity 700ms ease,
    transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.feature-card.is-visible:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 203, 255, 0.28);
  box-shadow: 0 28px 70px rgba(0, 6, 18, 0.34), inset 0 1px rgba(255, 255, 255, 0.04);
}

.comparison-product,
.trajectory-step {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.comparison-product:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 203, 255, 0.42);
  box-shadow: 0 24px 54px rgba(0, 7, 20, 0.34);
}

.comparison-rovercode {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.comparison-rovercode::before,
.comparison-rovercode::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.comparison-rovercode::before {
  z-index: 0;
  inset: -42%;
  background:
    radial-gradient(circle at 28% 35%, rgba(75, 216, 200, 0.3), transparent 25%),
    radial-gradient(circle at 68% 62%, rgba(57, 155, 255, 0.24), transparent 31%);
  opacity: 0;
  filter: blur(18px);
  animation: rovercode-card-ambient 5.2s ease-in-out infinite;
}

.comparison-rovercode::after {
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(93, 225, 255, 0),
    inset 0 0 32px rgba(47, 173, 255, 0),
    0 0 34px rgba(22, 139, 225, 0);
  animation: rovercode-card-edge 5.2s ease-in-out infinite;
}

.comparison-rovercode > * {
  position: relative;
  z-index: 1;
  animation: rovercode-content-reveal 5.2s cubic-bezier(0.22, 0.75, 0.25, 1) infinite both;
}

.comparison-rovercode > .comparison-number { animation-delay: 70ms; }
.comparison-rovercode > .comparison-caption { animation-delay: 120ms; }
.comparison-rovercode > ul { animation-delay: 180ms; }

.comparison-rovercode li {
  animation: rovercode-line-reveal 5.2s cubic-bezier(0.22, 0.75, 0.25, 1) infinite both;
}

.comparison-rovercode li:nth-child(1) { animation-delay: 220ms; }
.comparison-rovercode li:nth-child(2) { animation-delay: 280ms; }
.comparison-rovercode li:nth-child(3) { animation-delay: 340ms; }

.trajectory-step:hover {
  transform: translateX(4px);
  border-color: rgba(110, 203, 255, 0.34);
}

.pulse-ring {
  will-change: transform, opacity, box-shadow;
  animation: agent-light-breathe 1.8s ease-in-out infinite;
}

.archive-task {
  animation: archive-task-copy 4.2s ease-in-out infinite;
}

.archive-task i {
  transform-origin: center;
  will-change: transform, color, background-color, border-color, box-shadow;
  animation: archive-check-cycle 4.2s ease-in-out infinite;
}

.sheet-pdf,
.sheet-xlsx,
.sheet-map {
  transform-origin: center bottom;
  will-change: opacity, transform;
}

.sheet-pdf {
  animation: doc-pdf-stack 7.2s ease-in-out infinite;
}

.sheet-xlsx {
  animation: doc-xlsx-stack 7.2s ease-in-out infinite;
}

.sheet-map {
  animation: doc-map-stack 7.2s ease-in-out infinite;
}

.context-meter > i em {
  position: relative;
  overflow: hidden;
}

.context-meter > i em::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 0;
  width: 38%;
  pointer-events: none;
  transform: translateX(-150%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), rgba(117, 235, 255, 0.88), transparent);
  filter: blur(0.4px);
  animation: context-meter-flow 2.35s ease-in-out infinite;
}

.trajectory-step.current {
  isolation: isolate;
  contain: paint;
  overflow: hidden;
  border-color: transparent;
  background: transparent;
}

.trajectory-step.current::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 175%;
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg);
  will-change: transform;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 245deg,
    rgba(255, 207, 92, 0.2) 270deg,
    #ffd66b 298deg,
    #fff1a4 315deg,
    var(--teal) 334deg,
    transparent 360deg
  );
  animation: trajectory-marquee 2.4s linear infinite;
}

.trajectory-step.current::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 1px;
  pointer-events: none;
  border-radius: 11px;
  background: rgba(7, 16, 29, 0.96);
}

.trajectory-step.current > * {
  position: relative;
  z-index: 2;
}

.product-stage[data-reveal] {
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateY(24px);
}

.product-stage[data-reveal].is-visible {
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateY(0);
}

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

@keyframes pulse {
  50% { box-shadow: 0 0 0 9px rgba(75, 216, 200, 0), 0 0 18px rgba(75, 216, 200, 0.45); }
}

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

@keyframes float {
  50% { transform: translateY(-14px); }
}

@keyframes title-breathe {
  0%, 100% {
    opacity: 0.9;
    filter: brightness(0.96) drop-shadow(0 0 0 rgba(110, 203, 255, 0));
  }
  50% {
    opacity: 1;
    filter: brightness(1.14) drop-shadow(0 0 26px rgba(110, 203, 255, 0.32));
  }
}

@keyframes orbit-node-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--float-x, 0), var(--float-y, -8px), 0); }
}

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

@keyframes runtime-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 70px rgba(37, 126, 197, 0.14), inset 0 0 40px rgba(75, 216, 200, 0.035);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.035);
    box-shadow: 0 0 105px rgba(37, 126, 197, 0.25), inset 0 0 52px rgba(75, 216, 200, 0.07);
  }
}

@keyframes agent-light-breathe {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.82);
    box-shadow: 0 0 0 4px rgba(75, 216, 200, 0.08), 0 0 9px rgba(75, 216, 200, 0.32);
  }
  50% {
    opacity: 1;
    transform: scale(1.24);
    box-shadow: 0 0 0 9px rgba(75, 216, 200, 0.02), 0 0 22px rgba(75, 216, 200, 0.78);
  }
}

@keyframes archive-check-cycle {
  0%, 42%, 100% {
    color: #ffffff;
    border-color: #218f83;
    background: #218f83;
    transform: scale(1);
    box-shadow: 0 0 0 rgba(33, 143, 131, 0);
  }
  54%, 68% {
    color: transparent;
    border-color: #b3bec8;
    background: transparent;
    transform: scale(0.9);
    box-shadow: 0 0 0 rgba(33, 143, 131, 0);
  }
  78% {
    color: #ffffff;
    border-color: var(--teal);
    background: #218f83;
    transform: scale(1.22);
    box-shadow: 0 0 12px rgba(75, 216, 200, 0.58);
  }
  88% {
    color: #ffffff;
    border-color: #218f83;
    background: #218f83;
    transform: scale(1);
    box-shadow: 0 0 0 rgba(33, 143, 131, 0);
  }
}

@keyframes archive-task-copy {
  0%, 42%, 78%, 100% { opacity: 1; }
  54%, 68% { opacity: 0.62; }
}

@keyframes doc-pdf-stack {
  0%, 100% { opacity: 0; transform: translateY(18px) rotate(-10deg) scale(0.96); }
  10%, 88% { opacity: 1; transform: translateY(0) rotate(-10deg) scale(1); }
  96% { opacity: 0; transform: translateY(-5px) rotate(-10deg) scale(0.98); }
}

@keyframes doc-xlsx-stack {
  0%, 24%, 100% { opacity: 0; transform: translateY(20px) rotate(-2deg) scale(0.96); }
  36%, 88% { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
  96% { opacity: 0; transform: translateY(-5px) rotate(-2deg) scale(0.98); }
}

@keyframes doc-map-stack {
  0%, 48%, 100% { opacity: 0; transform: translateY(22px) rotate(7deg) scale(0.96); }
  60%, 88% { opacity: 1; transform: translateY(0) rotate(7deg) scale(1); }
  96% { opacity: 0; transform: translateY(-5px) rotate(7deg) scale(0.98); }
}

@keyframes context-meter-flow {
  0%, 14% { transform: translateX(-150%); opacity: 0; }
  24% { opacity: 1; }
  78% { opacity: 1; }
  90%, 100% { transform: translateX(320%); opacity: 0; }
}

@keyframes rovercode-card-ambient {
  0%, 100% { opacity: 0; transform: scale(0.78) rotate(-8deg); }
  10% { opacity: 0.88; transform: scale(1.02) rotate(0deg); }
  40%, 84% { opacity: 0.52; transform: scale(1.12) rotate(7deg); }
  94% { opacity: 0.16; transform: scale(1.2) rotate(10deg); }
}

@keyframes rovercode-card-edge {
  0%, 100% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(93, 225, 255, 0), inset 0 0 32px rgba(47, 173, 255, 0), 0 0 34px rgba(22, 139, 225, 0);
  }
  12% {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(93, 225, 255, 0.42), inset 0 0 32px rgba(47, 173, 255, 0.12), 0 0 34px rgba(22, 139, 225, 0.2);
  }
  44%, 84% {
    opacity: 0.62;
    box-shadow: inset 0 0 0 1px rgba(93, 225, 255, 0.2), inset 0 0 22px rgba(47, 173, 255, 0.06), 0 0 22px rgba(22, 139, 225, 0.1);
  }
}

@keyframes rovercode-content-reveal {
  0%, 2%, 100% { opacity: 0; transform: translateY(9px); filter: blur(5px) brightness(0.82); }
  6%, 82% { opacity: 1; transform: translateY(0); filter: blur(0) brightness(1.08); }
  96% { opacity: 0; transform: translateY(-3px); filter: blur(1.5px) brightness(0.92); }
}

@keyframes rovercode-line-reveal {
  0%, 3%, 100% { opacity: 0; transform: translateX(-9px); filter: blur(3px); }
  8%, 82% { opacity: 1; transform: translateX(0); filter: blur(0); }
  96% { opacity: 0; transform: translateX(3px); filter: blur(1px); }
}

@keyframes trajectory-marquee {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
