@font-face {
  font-family: Inter;
  src: url("assets/Inter-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: Inter;
  src: url("assets/Inter-Medium.woff2") format("woff2");
  font-display: swap;
  font-weight: 500 800;
}

@font-face {
  font-family: "Martina Plantijn";
  src: url("assets/MartinaPlantijn-Regular__e02ea76d18e952604fbe5636471d4c7e48f8db1c01fa15ee0e0170347f966405.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --qube-yellow: #ffff3a;
  --qube-black: #030303;
  --qube-line: rgba(255, 255, 255, 0.12);
  --qube-muted: rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--qube-black);
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--qube-yellow);
  outline-offset: 6px;
}

img,
video {
  max-width: 100%;
}

video {
  display: block;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--qube-yellow);
  color: #000;
}

.skip-link:focus {
  top: 12px;
}

.qube-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: blur(16px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.nav-brand img {
  display: block;
  width: 60px;
  height: 20px;
}

.brand-divider {
  height: 18px;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}

.nav-links a,
.login-link {
  color: var(--qube-muted);
  transition: color 160ms ease;
}

.nav-links a:hover,
.login-link:hover {
  color: #fff;
}

.qube-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: background 180ms ease, transform 180ms ease;
}

.qube-button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #030303;
  background: var(--qube-yellow);
}

.primary:hover {
  background: #f2f27a;
}

.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  min-height: 40px;
  padding: 9px 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 40px;
  padding: 4px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 1px;
  width: 24px;
  background: #fff;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 72px 0 auto;
  z-index: 99;
  padding: 20px 24px 30px;
  background: #080808;
  border-bottom: 1px solid var(--qube-line);
}

.mobile-menu a {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--qube-line);
  font-size: 20px;
}

.mobile-menu a span {
  font-size: 12px;
  color: var(--qube-muted);
}

.css-1ynvpn {
  padding-top: 72px;
}

.css-1k2xshn {
  font-family: Inter, sans-serif;
  line-height: 1.6;
}

.hero-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.hero-wordmark img {
  width: 28px;
  height: 28px;
}

.hero-intro {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero-intro p {
  margin: 26px 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
}

.css-1fwjis6 .headline {
  max-width: 700px;
}

.css-1fwjis6 .media {
  margin-top: -10px;
}

.css-1fwjis6::before,
.css-qa128t::before {
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    131.7% 144.46% at 50% 9.25%,
    rgba(255, 255, 58, 0) 35.8%,
    rgba(255, 255, 58, 0.65) 100%
  );
}

.css-1fwjis6,
.css-qa128t {
  isolation: isolate;
}

.css-1upj5rc {
  background: linear-gradient(0deg, #24240d 0%, #000 100%);
}

.css-13g9zdm {
  background: linear-gradient(0deg, #000 0%, #24240d 100%);
}

main video[data-motion-video] {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.css-1upj5rc picture {
  display: block;
}

.css-18593he .media {
  max-width: min(420px, 100vw);
}

.css-1c93k80 .media {
  max-width: min(640px, 100vw);
}

.css-13g9zdm .media {
  max-width: 1050px;
}

.css-1cg5knk {
  background: var(--qube-yellow);
  color: #030303;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.css-1cg5knk:hover {
  background: #f2f27a;
}

.css-1qwebtj {
  font-family: inherit;
}

.css-1krfapg .button {
  display: flex;
  justify-content: center;
}

.eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--qube-yellow);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 18px;
}

.info-content h2 {
  margin: 0;
  font-family: "Martina Plantijn", Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 0 20px;
}

.closing-actions > span {
  color: var(--qube-muted);
  font-size: 11px;
}

.closing-cta {
  padding: 80px 0 0;
}

.qube-footer {
  padding: 50px 40px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #030303;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: 1360px;
  margin: 0 auto;
}

.footer-top > span,
.footer-top > a:last-child {
  color: var(--qube-muted);
  font-size: 12px;
}

.footer-info {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--qube-muted);
  font-size: 12px;
}

.footer-info:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.js-motion .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

dialog {
  max-width: 540px;
  width: calc(100% - 40px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: #101010;
  color: #fff;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.info-content {
  position: relative;
  padding: 44px;
}

.info-content h2 {
  font-size: 48px;
}

.info-content p {
  margin: 24px 0;
  color: var(--qube-muted);
  font-size: 14px;
  line-height: 1.7;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--qube-line);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 22px;
}

@keyframes chart-draw {
  from {
    stroke-dashoffset: 1200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 1600px) {
  .css-1fwjis6 .media {
    max-width: 1920px;
  }
}

@media (max-width: 1024px) {
  .qube-nav {
    padding: 0 24px;
  }
  .nav-links {
    gap: 22px;
  }
  .workspace-layout {
    grid-template-columns: 155px minmax(0, 1fr);
  }
  .workspace-tag {
    display: none;
  }
  .workflow-panel {
    padding: 28px 24px 16px;
  }
}

@media (max-width: 767px) {
  .css-1ni5a0q,
  .css-81pnyk,
  .css-4cd87b,
  .half-width-cards,
  .full-width-card {
    max-width: calc(100vw - 40px);
  }
  .nav-links,
  .login-link {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-actions {
    gap: 16px;
  }
  .qube-nav {
    padding: 0 20px;
  }
  .nav-brand {
    gap: 12px;
    font-size: 14px;
  }
  .nav-brand img {
    width: 48px;
    height: 16px;
  }
  .nav-cta {
    min-height: 36px;
    padding: 7px 15px;
    gap: 12px;
    font-size: 12px;
  }
  .hero-wordmark {
    font-size: 18px;
  }
  .hero-intro p {
    margin: 22px 0;
    font-size: 15px;
  }
  .css-1fwjis6 .media {
    margin-top: 0;
  }
  .qube-workspace {
    padding: 60px 20px 90px;
  }
  .workspace-heading h2 {
    font-size: 46px;
  }
  .workspace-heading p {
    max-width: 300px;
    margin: 22px auto 30px;
    font-size: 14px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .workflow-tabs {
    gap: 20px;
    margin-bottom: 20px;
  }
  .workflow-tabs button {
    gap: 8px;
    padding: 12px 2px;
    font-size: 12px;
  }
  .workspace-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 550px;
  }
  .workspace-sidebar {
    display: none;
  }
  .workspace-toolbar {
    padding: 15px 16px;
    min-height: 56px;
  }
  .workspace-window {
    border-radius: 16px;
  }
  .demo-label {
    font-size: 8px;
  }
  .workspace-product {
    font-size: 12px;
  }
  .workflow-panel {
    padding: 22px 16px 16px;
    min-height: 550px;
  }
  .user-message {
    padding: 13px 15px;
    font-size: 11px;
  }
  .agent-response {
    font-size: 11px;
  }
  .artifact-top {
    gap: 10px;
    padding: 15px 12px;
  }
  .artifact-top strong {
    font-size: 11px;
  }
  .artifact-top .saved-status {
    font-size: 8px;
  }
  .artifact-top > span:first-child {
    width: 28px;
    height: 28px;
  }
  .strategy-rules {
    margin: 0 12px;
  }
  .strategy-rules > span {
    font-size: 9px;
  }
  .strategy-rules strong {
    font-size: 10px;
  }
  .prompt-options {
    gap: 5px;
  }
  .prompt-options button {
    padding: 8px 9px;
    font-size: 9px;
  }
  .analysis-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  .analysis-top h3 {
    font-size: 18px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .metric-grid strong {
    font-size: 24px;
  }
  .chart-heading > span:last-child {
    font-size: 8px;
  }
  .analysis-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-top: 16px;
  }
  .analysis-bottom .artifact-action {
    padding-left: 0;
  }
  .version-list > div {
    gap: 10px;
    padding: 17px 8px;
  }
  .version-list strong {
    font-size: 10px;
  }
  .version-list small {
    font-size: 9px;
    line-height: 1.5;
  }
  .version-list > div > span:last-child {
    font-size: 8px;
  }
  .qube-footer {
    padding: 36px 20px 24px;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 24px;
  }
  .footer-top > span {
    order: 3;
    width: 100%;
  }
  .footer-top > a:last-child {
    margin-left: auto;
  }
  .footer-bottom {
    margin-top: 28px;
    align-items: flex-start;
    font-size: 9px;
    line-height: 1.6;
  }
  .info-content {
    padding: 40px 26px 28px;
  }
}

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