:root {
  color-scheme: light;
  --page-background: #fff;
  --page-text: #222523;
}
body {
  background: var(--page-background);
  color: var(--page-text);
}
.nav-wrap {
  gap: 24px;
}
.nav-wrap nav {
  gap: 26px;
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.theme-toggle {
  border-radius: 50%;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: #f1f3f1;
}
.theme-sun,
[data-theme="dark"] .theme-moon {
  display: none;
}
[data-theme="dark"] .theme-sun {
  display: block;
}
.windows-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("../public/brand/vendors/windows.svg") center / contain no-repeat;
  mask: url("../public/brand/vendors/windows.svg") center / contain no-repeat;
}
.setup-footnote .windows-icon {
  color: #0078d4;
  width: 16px;
  height: 16px;
}
.vendor-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.vendor-codex {
  background: #111;
  border-radius: 4px;
}
.integration-list .vendor-icon {
  width: 26px;
  height: 26px;
}
.agent-icon .vendor-icon {
  width: 19px;
  height: 19px;
}
.session-icon .vendor-icon,
.response-icon .vendor-icon {
  width: 16px;
  height: 16px;
}
.ownership {
  background: #151515;
  color: #f5f5f3;
  border-color: #2d2d2d;
}
.ownership .eyebrow {
  color: #98ac9e;
}
.ownership-inner > div > p,
.ownership .principles p {
  color: #a8ada9;
}
.ownership .principles > div {
  border-color: #343735;
}
.ownership .principles > div > svg {
  color: #93b29e;
}
.ownership .text-link:hover {
  color: #a1d5b5;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  background: #101010;
  color: #ededeb;
  --page-background: #101010;
  --page-text: #ededeb;
  --muted: #a5aaa6;
  --line: #303331;
  --green: #91c9a8;
  --pale: #1c1e1c;
  --surface: #191b19;
  --surface-raised: #232623;
  --text-secondary: #afb6af;
  --text-muted: #929c93;
}
[data-theme="dark"] ::selection {
  background: #385443;
  color: #fff;
}
[data-theme="dark"] .site-header {
  background: rgba(16, 16, 16, 0.97);
}
[data-theme="dark"] .nav-wrap nav,
[data-theme="dark"] .desktop-app,
[data-theme="dark"] .skip-link {
  background: var(--page-background);
}
[data-theme="dark"] .nav-wrap nav {
  color: #b9beba;
}
[data-theme="dark"] .button,
[data-theme="dark"] .send-button {
  background: #e8eee9;
  color: #18251c;
}
[data-theme="dark"] .button:hover,
[data-theme="dark"] .send-button:hover {
  background: #b9d6c3;
}
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .agent-button:hover {
  background: var(--surface-raised);
}
[data-theme="dark"] .workspace-section {
  background: #181a18;
  border-color: var(--line);
}
[data-theme="dark"] .desktop-app {
  border-color: #363b36;
  box-shadow: 0 18px 45px #00000026;
}
[data-theme="dark"] .titlebar,
[data-theme="dark"] .app-sidebar,
[data-theme="dark"] .app-statusbar,
[data-theme="dark"] .terminal-panel,
[data-theme="dark"] .workflow-icon {
  background: var(--surface);
}
[data-theme="dark"] .agent-button.active {
  background: #29392d;
}
[data-theme="dark"] .agent-icon,
[data-theme="dark"] .session-icon,
[data-theme="dark"] .window-dots span {
  background: var(--surface-raised);
  border-color: #3d473e;
}
[data-theme="dark"] .avatar {
  background: #3e3e32;
}
[data-theme="dark"] .user-message {
  background: #242c25;
  border-color: #303b31;
}
[data-theme="dark"] .response-icon,
[data-theme="dark"] .activity,
[data-theme="dark"] .composer-area form {
  border-color: #354137;
}
[data-theme="dark"] .composer-area form:focus-within {
  border-color: #80a98e;
}
[data-theme="dark"] .composer-area textarea {
  color: var(--page-text);
}
[data-theme="dark"] .composer-area textarea::placeholder {
  color: var(--text-muted);
}
[data-theme="dark"] .app-tabs button.active {
  border-color: #91c9a8;
  color: #b8d8c3;
}
[data-theme="dark"] .feature-visual {
  background: #1c231e;
}
[data-theme="dark"] .sessions-visual,
[data-theme="dark"] .workflow-icon-blue {
  background: #1c232c;
}
[data-theme="dark"] .interface-visual,
[data-theme="dark"] .workflow-icon-coral {
  background: #29221f;
}
[data-theme="dark"] .sessions-visual > div,
[data-theme="dark"] .mini-tabs,
[data-theme="dark"] .workflow-meta > span + span,
[data-theme="dark"] .connector span {
  border-color: #384239;
}
[data-theme="dark"] .ownership {
  background: #080808;
  border-color: #303331;
}
[data-theme="dark"] .intro-bottom > p,
[data-theme="dark"] .feature > p,
[data-theme="dark"] .workflow-intro > p,
[data-theme="dark"] .workflow-copy p,
[data-theme="dark"] .setup-steps p,
[data-theme="dark"] details p,
[data-theme="dark"] .download-section p,
[data-theme="dark"] .agent-response p,
[data-theme="dark"] .activity > div,
[data-theme="dark"] .terminal-panel,
[data-theme="dark"] .mini-terminal {
  color: var(--text-secondary);
}
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .edition,
[data-theme="dark"] .preview-caption,
[data-theme="dark"] .integrations > p,
[data-theme="dark"] .feature-number,
[data-theme="dark"] .section-heading > p,
[data-theme="dark"] .titlebar,
[data-theme="dark"] .workspace-label > svg,
[data-theme="dark"] .sidebar-label,
[data-theme="dark"] .agent-button small,
[data-theme="dark"] .machine,
[data-theme="dark"] .machine small,
[data-theme="dark"] .sidebar-footer small,
[data-theme="dark"] .sidebar-footer > svg,
[data-theme="dark"] .breadcrumb > span,
[data-theme="dark"] .breadcrumb svg,
[data-theme="dark"] .connection,
[data-theme="dark"] .app-tabs button,
[data-theme="dark"] .demo-label,
[data-theme="dark"] .conversation-date,
[data-theme="dark"] .response-heading > span,
[data-theme="dark"] .activity-time,
[data-theme="dark"] .change-summary,
[data-theme="dark"] .composer-bottom,
[data-theme="dark"] .composer-note,
[data-theme="dark"] .app-statusbar,
[data-theme="dark"] .preview-footnote,
[data-theme="dark"] .terminal-top,
[data-theme="dark"] .integration-list .custom-agent,
[data-theme="dark"] .visual-machine small,
[data-theme="dark"] .sessions-visual small,
[data-theme="dark"] .session-tag,
[data-theme="dark"] .mini-tabs > span,
[data-theme="dark"] .muted,
[data-theme="dark"] .workflow-note,
[data-theme="dark"] .workflow-meta,
[data-theme="dark"] .workflow-arrow,
[data-theme="dark"] .setup-step-marker,
[data-theme="dark"] .setup-footnote > span,
[data-theme="dark"] .download-note,
[data-theme="dark"] footer {
  color: var(--text-muted);
}
[data-theme="dark"] .intro-heading > p span,
[data-theme="dark"] h2 > span {
  color: #a4afa5;
}
[data-theme="dark"] .visual-machine > svg,
[data-theme="dark"] .activity svg,
[data-theme="dark"] .session-tag.live,
[data-theme="dark"] .additions,
[data-theme="dark"] .preview-footnote a,
[data-theme="dark"] .setup-step-marker svg,
[data-theme="dark"] summary svg {
  color: #93b89e;
}
[data-theme="dark"] .deletions {
  color: #d89d8d;
}
[data-theme="dark"] .status-divider,
[data-theme="dark"] .setup-divider {
  color: #6b776d;
}
[data-theme="dark"] .mini-tabs > span:last-child,
[data-theme="dark"] footer .brand {
  color: var(--page-text);
}
[data-theme="dark"] .setup-footnote .windows-icon {
  color: #70b9ef;
}
@media (max-width: 1100px) {
  .nav-wrap {
    gap: 16px;
  }
  .nav-wrap nav {
    gap: 20px;
    font-size: 12px;
  }
}
@media (max-width: 800px) {
  .nav-wrap nav.open {
    gap: 0;
  }
  .nav-controls {
    gap: 8px;
  }
}
@media (max-width: 580px) {
  .nav-wrap {
    gap: 10px;
  }
  .nav-controls > .button {
    font-size: 11px;
    min-height: 34px;
    padding-inline: 12px;
    gap: 7px;
  }
  .nav-controls .icon-button {
    width: 34px;
    height: 34px;
  }
  .nav-controls .windows-icon {
    width: 15px;
    height: 15px;
  }
  .agent-icon .vendor-icon {
    width: 15px;
    height: 15px;
  }
  .integration-list .vendor-icon {
    width: 21px;
    height: 21px;
  }
  .workflow-icon .vendor-icon {
    width: 20px;
    height: 20px;
  }
  .response-icon .vendor-icon {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 380px) {
  .nav-download-label {
    display: none;
  }
  .nav-controls > .button {
    width: 34px;
    padding: 0;
  }
}
/* Mac downloads: the Apple glyph uses the same mask treatment as the Windows mark. */
.apple-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("../public/brand/vendors/apple.svg") center / contain no-repeat;
  mask: url("../public/brand/vendors/apple.svg") center / contain no-repeat;
}
.platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.platform-icons .apple-icon {
  width: 16px;
  height: 16px;
}
.setup-footnote .apple-icon {
  width: 15px;
  height: 15px;
  color: #1d1d1f;
}
[data-theme="dark"] .setup-footnote .apple-icon {
  color: #e8ece9;
}
.button-light {
  background: transparent;
  color: #242925;
  border: 1px solid #242925;
}
.button-light:hover {
  background: #242925;
  color: #fff;
}
[data-theme="dark"] .button-light {
  background: transparent;
  color: var(--page-text);
  border-color: currentColor;
}
[data-theme="dark"] .button-light:hover {
  background: var(--page-text);
  color: #111;
}
.intro-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 16px;
}
.intro-actions > .text-link {
  display: inline-flex;
  margin-left: 0;
  white-space: nowrap;
}
@media (min-width: 760px) {
  .intro-heading > p,
  .intro-actions {
    flex: 0 0 350px;
    width: 350px;
  }
  .intro-heading > p {
    padding-right: 0;
  }
}
@media (max-width: 759px) {
  .intro-heading,
  .intro-bottom {
    display: block;
  }
  .intro-heading > p {
    margin-top: 18px;
    padding-right: 0;
  }
  .intro-actions {
    margin-top: 20px;
  }
}
@media (max-width: 580px) {
  .intro-actions {
    gap: 10px;
  }
  .intro-actions > .button {
    padding-inline: 12px;
    font-size: 11px;
  }
  .intro-actions > .text-link {
    gap: 4px;
    font-size: 10px;
  }
}
.download-section > .button + .button {
  margin-left: 12px;
}
@media (max-width: 580px) {
  .nav-controls .platform-icons .apple-icon {
    width: 14px;
    height: 14px;
  }
  .download-section > .button {
    width: 100%;
    max-width: 320px;
  }
  .download-section > .button + .button {
    margin: 10px 0 0;
  }
}

.button.button-demo.download-panel-primary {
  justify-content: center;
  min-height: 62px;
  padding: 12px 22px;
  font-size: 15px;
  text-align: center;
}
.download-panel h2:first-child {
  margin-top: 0;
}

/* Agent logos under the demo panel CTA. */
.panel-agents {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-agents-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #737a74);
}
.panel-agents-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel-agents-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #737a74);
}
.panel-agents-list img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.9;
  flex: none;
}
[data-theme="dark"] .panel-agents-list li,
[data-theme="dark"] .panel-agents-label {
  color: #a9b3ad;
}
@media (max-width: 480px) {
  .panel-agents-list {
    gap: 10px 14px;
  }
  .panel-agents-list li {
    font-size: 11px;
  }
}

/* Audience cards: page CTAs sit below the box, one per audience. */
.audience-grid {
  align-items: start;
}
.audience-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.audience-item .audience-card {
  flex: 1;
}
.button.audience-cta {
  align-self: flex-start;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  gap: 10px;
  font-size: 13px;
  font-weight: 550;
}
.button.audience-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}
.button.audience-cta:hover svg {
  transform: translateX(3px);
}
@media (max-width: 760px) {
  .button.audience-cta {
    align-self: stretch;
  }
}

/* Book a demo orbit: dark band with agents circling the Opaya mark. */
.demo-orbit {
  background: #070b09;
  color: #f2f5f2;
  padding: 84px 0 92px;
  overflow: hidden;
}
.demo-orbit-inner {
  width: min(calc(100% - 72px), 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(32px, 5vw, 72px);
  text-align: left;
}
.demo-orbit-copy {
  justify-self: start;
  max-width: 460px;
}
.demo-visual {
  position: relative;
  width: clamp(280px, 34vw, 440px);
  aspect-ratio: 1;
}
.demo-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.demo-ring-outer {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  animation: demo-spin 110s linear infinite;
}
.demo-ring-mid {
  width: 64%;
  height: 64%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  animation: demo-spin 70s linear infinite reverse;
}
.demo-ring-inner {
  width: 38%;
  height: 38%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.demo-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 210, 149, 0.18), transparent 62%);
  pointer-events: none;
}
.demo-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  place-items: center;
}
.demo-tile {
  width: clamp(46px, 6vw, 74px);
  aspect-ratio: 1;
  border-radius: 26%;
  background: #f7f8f5;
  display: grid;
  place-items: center;
  box-shadow:
    0 12px 26px -14px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(16, 24, 32, 0.04);
  animation: demo-float 7s ease-in-out infinite;
}
.demo-grid > .demo-tile:nth-child(3) {
  animation-delay: -1.6s;
}
.demo-grid > .demo-tile:nth-child(7) {
  animation-delay: -3.2s;
}
.demo-grid > .demo-tile:nth-child(9) {
  animation-delay: -4.8s;
}
.demo-tile img {
  width: 56%;
  height: 56%;
  object-fit: contain;
}
.demo-core {
  width: clamp(66px, 8.6vw, 108px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.demo-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(35, 210, 149, 0.3));
}
@keyframes demo-spin {
  to {
    rotate: 360deg;
  }
}
@keyframes demo-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
.demo-orbit-copy h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 450;
  margin: 0 0 12px;
  color: #f6f8f5;
}
.demo-orbit-copy p {
  font-size: 14px;
  line-height: 1.7;
  color: #97a39c;
  margin: 0 0 26px;
}
@media (max-width: 900px) {
  .demo-orbit-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 30px;
  }
  .demo-orbit-copy {
    justify-self: center;
    max-width: 520px;
  }
}
@media (max-width: 640px) {
  .demo-orbit {
    padding: 64px 0 70px;
  }
  .demo-orbit-inner {
    width: calc(100% - 40px);
    gap: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-ring,
  .demo-tile {
    animation: none;
  }
}

/* Solutions dropdown in the main nav */
.nav-solutions { position: relative; }
.nav-solutions > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  font-size: 13px;
  line-height: 1;
  color: #555c57;
  text-decoration: none;
  transition: color 0.16s ease;
}
.nav-solutions > summary::-webkit-details-marker { display: none; }
.nav-solutions > summary::marker { content: ""; }
.nav-solutions > summary:hover,
.nav-solutions[open] > summary { color: var(--green); }
.nav-solutions > summary svg { width: 13px; height: 13px; opacity: 0.55; transition: transform 0.2s ease, opacity 0.16s ease; }
.nav-solutions:hover > summary svg,
.nav-solutions[open] > summary svg { transform: rotate(180deg); opacity: 1; }

/* details hides everything but the summary; we drive visibility ourselves */
details.nav-solutions > .nav-solutions-panel { display: grid; }
.nav-solutions-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 360px;
  padding: 10px;
  grid-template-columns: 1fr;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 56px -18px #10140f2e, 0 2px 6px #10140f0d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.16s ease, transform 0.18s ease, visibility 0.16s;
  z-index: 60;
}
.nav-solutions[open] > .nav-solutions-panel,
.nav-solutions:hover > .nav-solutions-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-solutions-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-wrap nav .nav-solutions-panel a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  text-align: left;
  transition: background 0.14s ease;
}
.nav-wrap nav .nav-solutions-panel a:hover { background: #f4f8f4; }
.nav-wrap nav .nav-solutions-panel a[aria-current="page"] { background: #eff5f0; }

.nav-sol-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2f6f2;
  border: 1px solid #e5ece6;
  color: #2f6b46;
}
.nav-sol-icon svg { width: 16px; height: 16px; }
.nav-wrap nav .nav-solutions-panel a:hover .nav-sol-icon { background: #e9f3ec; border-color: #d7e7dc; }

.nav-sol-text { display: flex; flex-direction: column; gap: 2px; }
.nav-sol-text strong {
  font-size: 13px;
  font-weight: 600;
  color: #1d231e;
  letter-spacing: -0.01em;
}
.nav-sol-text small {
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 450;
  color: #79817b;
}

html[data-theme="dark"] .nav-solutions-panel {
  background: #141814;
  border-color: #262d27;
  box-shadow: 0 28px 56px -18px #00000099;
}
html[data-theme="dark"] .nav-wrap nav .nav-solutions-panel a:hover { background: #1b211c; }
html[data-theme="dark"] .nav-wrap nav .nav-solutions-panel a[aria-current="page"] { background: #1b241d; }
html[data-theme="dark"] .nav-sol-icon { background: #1b211c; border-color: #2a332c; color: #85b79b; }
html[data-theme="dark"] .nav-sol-text strong { color: #eef2ee; }
html[data-theme="dark"] .nav-sol-text small { color: #98a49b; }

@media (max-width: 800px) {
  .nav-solutions { width: 100%; }
  .nav-solutions > summary { padding: 12px 0; font-size: 14px; }
  .nav-solutions-panel,
  .nav-solutions[open] > .nav-solutions-panel,
  .nav-solutions:hover > .nav-solutions-panel {
    position: static;
    width: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 4px 12px;
    gap: 0;
    display: grid;
  }
  .nav-solutions-panel::before { display: none; }
  details.nav-solutions:not([open]) > .nav-solutions-panel { display: none; }
  .nav-wrap nav .nav-solutions-panel a { padding: 9px 0; gap: 10px; }
  .nav-sol-icon { width: 28px; height: 28px; border-radius: 8px; }
  .nav-sol-icon svg { width: 14px; height: 14px; }
  html[data-theme="dark"] .nav-solutions-panel { background: transparent; }
}

/* FAQ page */
.faq-page { padding: 64px 0 88px; }
.faq-page-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-page-grid > div:first-child { position: sticky; top: 120px; }
.faq-page .faq-list { display: grid; gap: 0; }
.faq-page .faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-page .faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 550;
  list-style: none;
}
.faq-page .faq-list summary::-webkit-details-marker { display: none; }
.faq-page .faq-list summary svg { width: 17px; height: 17px; color: #7b837d; flex: 0 0 auto; transition: transform 0.18s ease; }
.faq-page .faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-page .faq-list p { margin: 0 0 20px; max-width: 62ch; color: #4d544e; line-height: 1.65; }
@media (max-width: 900px) {
  .faq-page-grid { grid-template-columns: 1fr; }
  .faq-page-grid > div:first-child { position: static; }
}
