:root {
  --kars-ease: cubic-bezier(.22, 1, .36, 1);
}

.hero {
  background: radial-gradient(ellipse at 50% 18%, #c6f4320b, transparent 57%);
}

.agent-card, .workspace-examples button, .sectors-strip > a {
  position: relative;
  isolation: isolate;
}

.agent-card::before, .workspace-examples button::before, .sectors-strip > a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 30%), #c6f4321a, transparent 65%);
  transition: opacity 240ms ease;
}

.agent-card:focus-within::before, .workspace-examples button:focus-visible::before,
.sectors-strip > a:focus-visible::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .agent-card:hover::before, .workspace-examples button:hover::before, .sectors-strip > a:hover::before {
    opacity: 1;
  }

  .agent-card, .workspace-examples button, .sectors-strip > a {
    transition: transform 280ms var(--kars-ease), border-color 220ms ease, box-shadow 280ms ease;
  }

  .agent-card:hover, .sectors-strip > a:hover {
    transform: translateY(-4px);
    border-color: #b0ca6360;
    box-shadow: 0 14px 28px #0004;
  }
}

.showcase-tabs button[aria-pressed="true"] .art {
  outline-color: var(--lime, #c6f432);
}
#showcase-content { overflow: hidden; }
html:has(dialog[open]) { overflow: hidden; }
dialog[open] { animation: kars-dialog-in 310ms var(--kars-ease) both; }
dialog[open]::backdrop { animation: kars-backdrop-in 210ms ease both; }

@keyframes kars-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes kars-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .agent-card, .workspace-examples button, .sectors-strip > a,
  dialog[open], dialog[open]::backdrop { animation: none; transition: none; transform: none; }
  .agent-card::before, .workspace-examples button::before, .sectors-strip > a::before { display: none; }
}

.mobile-nav { display: none; }
@media (max-width: 760px) {
  .global .navlinks { display: none; }
  .global nav { position: relative; gap: 10px; }
  .global .logo { margin-right: auto; }
  .global .navbutton { text-align: center; }
  .mobile-nav { display: block; }
  .mobile-nav summary {
    cursor: pointer;
    display: grid;
    place-items: center;
    min-height: 42px;
    padding: 0 10px;
    font-size: .8rem;
    border: 1px solid #424448;
    border-radius: 10px;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav-links {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    right: 14px;
    width: min(260px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid #414245;
    border-radius: 14px;
    background: #1a1b1e;
    box-shadow: 0 18px 40px #0008;
  }
  .mobile-nav-links a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #f5f5f7;
  }
  .mobile-nav-links a:hover, .mobile-nav-links a:focus-visible { background: #2a2f22; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .mobile-nav[open] .mobile-nav-links { animation: kars-dialog-in 240ms var(--kars-ease) both; }
}
