@import url("widescreen.css");
@import url("site-footer.css");

:root {
  --app-shot-aspect: 1024 / 611;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --ink: #101425;
  --muted: #647084;
  --line: #e8ebf2;
  --line-strong: #dce2ee;
  --placeholder: #f0f2f6;
  --blue: #2878ff;
  --purple: #8458ff;
  --purple-dark: #6d42e8;
  --teal: #34d7c3;
  --shadow-sm: 0 10px 26px rgba(16, 20, 37, 0.08);
  --shadow-md: 0 22px 60px rgba(16, 20, 37, 0.12);
  --radius-sm: 14px;
  --radius-md: 24px;
  --wrap: calc(1180px * var(--mx-wrap-scale, 1));
  /* Horizontal page inset (each side). Raised on tablet/mobile like od-site. */
  --page-gutter: 1.5rem;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;
  --hero-icon-size: 70px;
  --hero-icon-radius: 19px;
  --header-bar-height: 76px;
  --header-height: calc(var(--header-bar-height) + env(safe-area-inset-top, 0px));
  /* Sticky header clearance + breathing room (same +40px formula as TextCase) */
  --anchor-offset: calc(var(--header-height) + 40px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 30%, rgba(52, 215, 195, 0.08), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

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

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

.wrap {
  width: min(var(--wrap), calc(100vw - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.section-pad {
  padding: var(--space-2xl) 0;
}

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

/* Anchor targets clear the fixed header (mirrors TextCase --tc-anchor-offset) */
#apps,
#games,
#youtube,
#about,
#hexdrop,
#qrdev,
#textcase,
#orbitdrive,
#chromachain {
  scroll-margin-top: var(--anchor-offset);
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  overflow: visible;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(6, 10, 22, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    top 0.28s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom-color: rgba(232, 235, 242, 0.88);
  box-shadow: 0 8px 28px rgba(16, 20, 37, 0.07);
}

.site-header:not(.is-scrolled) .main-nav > a,
.site-header:not(.is-scrolled) .nav-trigger,
.site-header:not(.is-scrolled) .brand-name {
  color: rgba(244, 246, 251, 0.94);
}

.site-header:not(.is-scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled .main-nav > a,
.site-header.is-scrolled .nav-trigger,
.site-header.is-scrolled .brand-name {
  color: #1f2740;
}

.site-header.is-scrolled .brand-logo {
  filter: none;
}

.nav-wrap,
.footer-wrap {
  min-height: var(--header-bar-height);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.015em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-wrap > .brand {
  flex: 1;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.site-header.is-menu-open .nav-toggle__bars {
  background: transparent;
}

.site-header.is-menu-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-menu-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.site-header .brand-logo {
  width: auto;
  height: 28px;
}

.brand-logo--footer {
  height: 28px;
}

.brand-name {
  font-size: 17px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-item {
  position: relative;
  /* Vertical only — wide horizontal padding made hit areas overlap neighbors */
  padding: 18px 0;
  margin: -18px 0;
}

.nav-trigger {
  appearance: none;
  position: relative;
  z-index: 50; /* above sibling dropdown panels so Apps ↔ Games handoff works */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.35s ease;
}

.nav-trigger__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 180ms ease;
}

.nav-trigger__chevron svg {
  width: 14px;
  height: 14px;
}

.nav-item:hover .nav-trigger,
.nav-item:focus-within .nav-trigger,
.nav-item.is-open .nav-trigger {
  color: var(--purple);
}

.nav-item:hover .nav-trigger__chevron,
.nav-item:focus-within .nav-trigger__chevron,
.nav-item.is-open .nav-trigger__chevron {
  transform: rotate(180deg);
}

.main-nav > a,
.nav-trigger,
.footer-links a,
.section-link {
  color: #1f2740;
  transition: color 0.35s ease;
}

.main-nav > a:hover,
.footer-links a:hover,
.section-link:hover {
  color: var(--purple);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 6px);
  /* Nudge left so the rounded panel optically lines up under the label */
  left: -15px;
  z-index: 40;
  min-width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

/* Open state driven by JS (.is-open) so a wide panel can’t keep a sibling “hovered” */
.nav-item.is-open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Vertical bridge only — keeps path into the menu without covering the next label */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  width: 100%;
  max-width: 120px;
  height: 28px;
}

.nav-dropdown__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #1f2740 !important;
  transition: background 160ms ease, color 160ms ease;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
  background: rgba(132, 88, 255, 0.08);
  color: var(--purple) !important;
}

.nav-dropdown__app-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(16, 20, 37, 0.12);
}

.nav-dropdown__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.nav-dropdown__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-dropdown__sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.nav-dropdown__link:hover .nav-dropdown__sub,
.nav-dropdown__link:focus-visible .nav-dropdown__sub {
  color: rgba(100, 112, 132, 0.9);
}

.nav-dropdown__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--muted);
}

.nav-dropdown__link:hover .nav-dropdown__icon,
.nav-dropdown__link:focus-visible .nav-dropdown__icon {
  color: var(--purple);
}

.nav-dropdown__icon svg {
  width: 16px;
  height: 16px;
}

/* Buttons */

.btn,
.youtube-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.youtube-btn:hover,
.product-icon:hover,
.app-card:hover,
.game-card:hover,
.lab-card:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 10px 28px rgba(132, 88, 255, 0.32);
}

.btn-primary:hover {
  background: var(--purple-dark);
}

.btn-secondary {
  color: var(--purple);
  background: #fff;
  border-color: rgba(132, 88, 255, 0.38);
  box-shadow: 0 6px 18px rgba(16, 20, 37, 0.04);
}

.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(132, 88, 255, 0.04);
}

.btn-store {
  color: #fff;
  background: #05070b;
  border-color: #05070b;
}

.btn-store:hover {
  background: #1a1d24;
  border-color: #1a1d24;
}

.btn-store__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-small {
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 999px;
}

.btn-compact {
  min-height: 40px;
  padding-inline: 18px;
  border-radius: 13px;
}

.is-muted {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
  overflow: hidden;
  color: #f4f6fb;
  background: #060b1f;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg__fade {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  background-color: #060b1f;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  will-change: opacity;
}

/* Keep product art below the fixed header so widescreen cover-crop doesn’t clip under the nav */
@media (min-width: 1025px) {
  .hero-bg,
  .hero-overlay {
    top: var(--header-height);
  }

  .hero-bg__fade {
    background-position: center 28%;
  }
}

.hero-bg__fade.is-visible {
  opacity: 1;
}

.hero-bg__fade.is-orbit {
  background-image:
    radial-gradient(ellipse at 72% 38%, rgba(33, 62, 255, 0.55), transparent 52%),
    radial-gradient(ellipse at 18% 72%, rgba(164, 95, 255, 0.35), transparent 48%),
    linear-gradient(145deg, #060b1f 0%, #121a42 42%, #0a1028 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(6, 10, 22, 0.88) 0%, rgba(6, 10, 22, 0.62) 42%, rgba(6, 10, 22, 0.18) 72%, rgba(6, 10, 22, 0.08) 100%),
    linear-gradient(180deg, rgba(6, 10, 22, 0.15) 0%, rgba(6, 10, 22, 0.05) 55%, rgba(6, 10, 22, 0.72) 100%);
  pointer-events: none;
}

.hero-inner,
.hero-carousel-wrap {
  position: relative;
  z-index: 2;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: var(--space-md);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: var(--space-xl);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(48%, 560px);
  max-width: none;
}

.hero-lede {
  max-width: none;
  margin-top: 18px;
  color: rgba(244, 246, 251, 0.72);
  font-size: 0.98rem;
  line-height: 1.58;
}

.hero-mobile-visual {
  display: none;
}

.btn-apple-icon {
  display: block;
  width: 14px;
  height: 17px;
  flex-shrink: 0;
}

.btn-lucide-icon,
.btn .btn-lucide-icon,
.btn svg.btn-lucide-icon,
.btn [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
}

.hero-dots {
  display: none;
}

.hero-eyebrow {
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 246, 251, 0.88);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow,
.mini-label {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  max-width: 620px;
  font-size: clamp(2.05rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: none;
  font-size: clamp(2.35rem, 5.1vw, 4.15rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: #fff;
}

.hero-accent {
  color: #f1f1f1;
}

.accent-gradient {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-gradient.accent-blue {
  background-image: linear-gradient(110deg, #5ec4ff 0%, #2878ff 55%, #34d7c3 100%);
}

.accent-gradient.accent-purple {
  background-image: linear-gradient(110deg, #c084fc 0%, #8458ff 50%, #f472b6 100%);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.05rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.accent-blue {
  color: var(--blue);
}

.accent-purple {
  color: var(--purple);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: 26px;
}

.product-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-xs);
  max-width: 100%;
}

.product-icon {
  flex: 0 0 auto;
  width: 76px;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #27304a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, color 180ms ease;
}

.product-icon img {
  width: var(--hero-icon-size);
  height: var(--hero-icon-size);
  border-radius: var(--hero-icon-radius);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.icon-placeholder {
  display: grid;
  place-items: center;
  width: var(--hero-icon-size);
  height: var(--hero-icon-size);
  border-radius: var(--hero-icon-radius);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}

.icon-orbit {
  background: radial-gradient(circle at 66% 38%, #f255ff, transparent 18%), linear-gradient(135deg, #081126, #213eff 55%, #a45fff);
}

.icon-chroma {
  background: linear-gradient(135deg, #170522, #4b1377);
}

.hero-visual {
  position: relative;
  min-height: min(420px, 55vw);
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  width: 290px;
  height: 290px;
  filter: blur(30px);
  opacity: 0.36;
  border-radius: 999px;
  pointer-events: none;
}

.glow-teal {
  left: 10%;
  bottom: 8%;
  background: var(--teal);
}

.device {
  position: absolute;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.device-laptop {
  right: 0;
  top: 22px;
  width: min(84%, 480px);
  height: 350px;
  border-radius: 24px;
}

.device-popover {
  left: 5%;
  bottom: 24px;
  width: min(47%, 260px);
  height: 315px;
  border: 10px solid rgba(52, 215, 195, 0.72);
  border-radius: 27px;
}

.device-topbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.device-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ccd2df;
}

.device-screen {
  overflow: hidden;
  height: calc(100% - 34px);
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Placeholders */

.placeholder {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(16, 20, 37, 0.018) 12px 24px),
    var(--placeholder);
  border: 1px dashed #cfd6e4;
  color: #8a94a8;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 20px;
}

.shot-placeholder__title {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.shot-placeholder__soon {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

/* Sections */

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-link {
  flex: none;
  font-size: 14px;
  font-weight: 850;
  padding-top: 4px;
}

/* App cards */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.app-card,
.lab-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-card:hover,
.lab-card:hover {
  box-shadow: var(--shadow-md);
}

.app-card {
  padding: var(--space-md);
}

.card-head {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.card-head p,
.latest-copy p,
.about-blurb p,
.game-copy p {
  color: var(--muted);
  font-size: 0.94rem;
}

.shot-frame {
  aspect-ratio: var(--app-shot-aspect);
  margin: var(--space-md) 0;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.shot-placeholder {
  aspect-ratio: 1.35;
  min-height: 0;
  margin: 20px 0;
  border-radius: 18px;
}

.card-actions,
.latest-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.app-card .card-actions {
  justify-content: center;
}

/* Games */

.games-section {
  padding-top: var(--space-xl);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.game-card {
  min-height: 272px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 37, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card--orbit {
  background:
    radial-gradient(ellipse at 90% 50%, rgba(33, 62, 255, 0.45), transparent 55%),
    linear-gradient(135deg, #0a0f2e 0%, #1a1040 50%, #0d1a3a 100%);
  color: #fff;
}

.game-card--chroma {
  background:
    radial-gradient(ellipse at 85% 40%, rgba(180, 60, 255, 0.35), transparent 50%),
    linear-gradient(135deg, #12041f 0%, #2a0a45 50%, #0f0520 100%);
  color: #fff;
}

.game-card:hover {
  box-shadow: var(--shadow-md);
}

.game-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.game-copy h3 {
  font-size: 2rem;
  color: inherit;
}

.game-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.game-placeholder {
  min-height: 224px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.03) 12px 24px),
    rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.45);
}

.game-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 224px;
}

.game-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* YouTube / Lab */

.youtube-section {
  padding-top: var(--space-lg);
}

.youtube-section > .wrap > h2 {
  margin-bottom: var(--space-lg);
}

.lab-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.lab-card__video-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.video-thumb {
  display: block;
  margin: 20px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.video-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.latest-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 30px;
  border-left: 1px solid var(--line);
}

.latest-copy h3 {
  font-size: 1.5rem;
  max-width: 520px;
}

.about-blurb {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 30px;
  border-top: 1px solid var(--line);
}

.about-blurb__copy {
  flex: 1;
  min-width: 0;
}

.about-blurb__copy h3 {
  margin-bottom: 10px;
}

.about-blurb__copy p {
  margin-bottom: 14px;
}

.about-blurb__more[hidden] {
  display: none !important;
}

.about-blurb__more p:last-child {
  margin-bottom: 14px;
}

.about-blurb__toggle {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: #1f2740;
  cursor: pointer;
  transition: color 0.35s ease;
}

.about-blurb__toggle:hover,
.about-blurb__toggle:focus-visible {
  color: var(--purple);
  outline: none;
}

.about-blurb__toggle:focus-visible {
  outline: 2px solid rgba(132, 88, 255, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.portrait {
  width: 94px;
  height: 94px;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
}

.youtube-btn {
  min-height: 40px;
  color: #202436;
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: 0 10px 22px rgba(16, 20, 37, 0.06);
}

.youtube-btn__icon {
  flex-shrink: 0;
}

/* Responsive */

@media (max-width: 1024px) {
  .hero-grid,
  .app-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .lab-card__video-row {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .latest-copy {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .game-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0;
    min-height: var(--header-bar-height);
  }

  .main-nav {
    display: none;
  }

  .nav-actions .btn-small {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-header:not(.is-scrolled) .nav-toggle {
    color: rgba(244, 246, 251, 0.94);
  }

  .site-header.is-scrolled .nav-toggle,
  .site-header.is-menu-open .nav-toggle {
    color: #1f2740;
  }

  .site-header.is-menu-open {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(232, 235, 242, 0.88);
    box-shadow: 0 8px 28px rgba(16, 20, 37, 0.07);
  }

  .site-header.is-menu-open .brand-name {
    color: #1f2740;
  }

  .site-header.is-menu-open .brand-logo {
    filter: none;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    overflow: auto;
    background: #fff;
    border-top: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav[hidden] {
    display: none !important;
  }

  .mobile-nav__inner {
    width: min(var(--wrap), calc(100vw - (var(--page-gutter) * 2)));
    margin: 0 auto;
    padding: 20px 0 40px;
  }

  .mobile-nav__section + .mobile-nav__section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav__label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 14px;
    color: #1f2740;
  }

  .mobile-nav__link + .mobile-nav__link {
    margin-top: 4px;
  }

  .mobile-nav__link:hover,
  .mobile-nav__link:focus-visible {
    background: rgba(132, 88, 255, 0.08);
    color: var(--purple);
  }

  .mobile-nav__link img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(16, 20, 37, 0.12);
  }

  .mobile-nav__link span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .mobile-nav__link strong {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .mobile-nav__sub {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
  }

  .mobile-nav__link i,
  .mobile-nav__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--muted);
  }

  .mobile-nav__page {
    display: block;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .mobile-nav__page:hover {
    color: var(--purple);
    background: rgba(132, 88, 255, 0.08);
  }

  .mobile-nav__social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    color: #1f2740;
    font-size: 0.92rem;
    font-weight: 800;
    background: var(--bg-soft);
  }

  .mobile-nav__social a:hover {
    border-color: rgba(132, 88, 255, 0.35);
    color: var(--purple);
  }

  body.is-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  :root {
    --page-gutter: 1.5rem;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 1.5rem;
  }

  .section-pad {
    padding: var(--space-xl) 0;
  }

  .btn-small {
    display: none;
  }

  h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.75rem);
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .card-actions,
  .latest-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .youtube-btn {
    width: 100%;
  }

  .product-strip {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: var(--space-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .product-strip::-webkit-scrollbar {
    display: none;
  }

  .product-icon {
    width: 68px;
    font-size: 10px;
  }

  .product-icon img,
  .icon-placeholder {
    width: 65px;
    height: 65px;
    border-radius: 17px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .device-laptop {
    width: 95%;
    height: 280px;
  }

  .device-popover {
    width: 58%;
    height: 230px;
    left: 0;
  }

  .section-head {
    display: block;
  }

  .section-head .section-link {
    display: inline-block;
    margin-top: 14px;
    padding-top: 0;
  }

  .app-card,
  .game-card,
  .latest-copy,
  .about-blurb {
    padding: 20px;
  }

  .video-thumb {
    margin: 16px;
  }

  .about-blurb {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .about-blurb__copy .section-link {
    display: inline-block;
  }

}


/* Hero component styles */

.hero-grid,
.hero-visual,
.glow,
.device,
.product-strip {
  display: none !important;
}

.hero-actions {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: var(--space-lg);
  margin-inline: 0;
  padding-inline: 0;
  box-sizing: border-box;
  text-align: left;
  overflow: visible;
  row-gap: var(--space-sm);
  column-gap: var(--space-sm);
}

.hero-actions .btn {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-carousel {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  --carousel-gap: 10px;
  gap: var(--carousel-gap);
  padding: var(--carousel-gap);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(42px) saturate(180%);
  -webkit-backdrop-filter: blur(42px) saturate(180%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  box-sizing: border-box;
}

.hero-carousel-shell {
  display: block;
}

.hero-carousel__nav {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  place-items: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.hero-carousel__nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

.hero-carousel__nav:hover:not(.is-dimmed) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: none;
}

.hero-carousel__nav.is-dimmed {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.hero-carousel::-webkit-scrollbar {
  display: none;
}

.hero-card {
  position: relative;
  flex: 1 1 0;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 18px 22px 22px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
  font-family: inherit;
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: none;
}

.hero-card.is-active {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 24px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-card.is-active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

.hero-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero-card__icon--placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-card__copy {
  display: grid;
  min-width: 0;
  margin-left: 16px;
  text-align: left;
  gap: 4px;
}

.hero-card__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.hero-card__tagline {
  display: block;
  color: rgba(244, 246, 251, 0.62);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media (min-width: 1025px) {
  .hero-copy {
    padding-top: var(--space-lg);
  }

  .hero-carousel-wrap {
    margin-top: var(--space-xl);
  }

  .hero-carousel-shell {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero-carousel-shell.is-scrollable .hero-carousel__nav {
    display: grid;
  }

  .hero-carousel {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .hero-card {
    flex: 0 0 calc((100% - var(--carousel-gap) * 3) / 4);
    min-width: 0;
    padding: 20px 22px 24px;
  }

  .hero-card__name {
    font-size: 16px;
  }

  .hero-card__tagline {
    font-size: 13.5px;
  }
}

@media (min-width: 1025px) and (max-height: 1200px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }
}

/* Hero carousel scales with global --mx-wrap-scale; stays capped so it doesn’t dominate. */
@media (min-width: 1441px) {
  :root {
    --header-bar-height: calc(76px * var(--mx-wrap-scale, 1.1));
  }

  .hero {
    --hero-scale: var(--mx-wrap-scale, 1.1);
    min-height: clamp(700px, calc(100vw * 700 / 1440), 880px);
    padding-top: calc(var(--header-height) + var(--space-xl));
  }

  .hero-bg,
  .hero-overlay {
    /* Extra air under the taller scaled header on ultrawide */
    top: calc(var(--header-height) + 8px);
  }

  .hero-bg__fade {
    background-position: center 32%;
  }

  .hero-copy {
    padding-top: calc(var(--space-xl) * var(--hero-scale));
    width: min(48%, calc(560px * var(--hero-scale)));
    max-width: none;
  }

  .hero-carousel-wrap {
    margin-top: calc(var(--space-2xl) * var(--hero-scale));
  }

  .hero h1 {
    font-size: clamp(2.4rem, 5.1vw, calc(4.15rem * var(--hero-scale)));
  }

  .hero-lede {
    font-size: calc(0.98rem * var(--hero-scale));
  }

  .hero-eyebrow {
    margin-bottom: calc(14px * var(--hero-scale));
    padding: calc(8px * var(--hero-scale)) calc(14px * var(--hero-scale));
    font-size: calc(11px * var(--hero-scale));
  }

  .hero-actions {
    margin-top: calc(26px * var(--hero-scale));
  }

  .hero-actions .btn {
    min-height: calc(48px * var(--hero-scale));
    padding-inline: calc(22px * var(--hero-scale));
    font-size: calc(14px * var(--hero-scale));
  }

  .hero-carousel-shell {
    gap: calc(12px * var(--hero-scale));
  }

  .hero-carousel {
    --carousel-gap: calc(10px * var(--hero-scale));
    gap: var(--carousel-gap);
    padding: var(--carousel-gap);
  }

  .hero-card {
    flex: 0 0 calc((100% - var(--carousel-gap) * 3) / 4);
    padding:
      calc(20px * var(--hero-scale))
      calc(22px * var(--hero-scale))
      calc(24px * var(--hero-scale));
  }

  .hero-card__icon {
    width: calc(52px * var(--hero-scale));
    height: calc(52px * var(--hero-scale));
  }

  .hero-card__name {
    font-size: calc(16px * var(--hero-scale));
  }

  .hero-card__tagline {
    font-size: calc(13.5px * var(--hero-scale));
  }

  .hero-carousel__nav {
    width: calc(44px * var(--hero-scale));
    height: calc(44px * var(--hero-scale));
  }
}

@media (max-width: 1024px) {
  .hero-carousel__nav {
    display: none !important;
  }

  .hero-copy {
    width: min(62%, 640px);
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 4.6vw, 3.55rem);
  }

  .hero-lede {
    font-size: 0.96rem;
  }
}

@media (max-width: 900px) {
  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 6.2vw, 3.25rem);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding: calc(var(--header-height) + var(--space-md)) 0 var(--space-lg);
    background: #060b1f;
  }

  .hero-bg,
  .hero-overlay {
    display: none;
  }

  .hero-inner {
    flex: 0 0 auto;
    align-items: stretch;
    padding-bottom: 0;
  }

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

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 2.95rem);
    line-height: 1.05;
  }

  .hero-lede {
    margin-top: 14px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .hero-mobile-visual {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: var(--space-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: #0a1028;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
  }

  .hero-mobile-visual__fade {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 700ms ease;
    background-color: #060b1f;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .hero-mobile-visual__fade.is-visible {
    opacity: 1;
  }

  .hero-mobile-visual__fade.is-orbit {
    background-image:
      radial-gradient(ellipse at 72% 38%, rgba(33, 62, 255, 0.55), transparent 52%),
      radial-gradient(ellipse at 18% 72%, rgba(164, 95, 255, 0.35), transparent 48%),
      linear-gradient(145deg, #060b1f 0%, #121a42 42%, #0a1028 100%);
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: var(--space-md);
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }

  .hero-carousel-wrap {
    margin-top: var(--space-md);
  }

  .hero-carousel-shell {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-carousel-shell .hero-carousel__nav {
    display: grid !important;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .hero-carousel {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border-radius: 22px;
    overflow: hidden;
  }

  .hero-card {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-card.is-active {
    display: flex;
  }

  .hero-card.is-active::after {
    display: none;
  }

  .hero-card:hover,
  .hero-card.is-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .hero-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .hero-card__name {
    font-size: 16px;
  }

  .hero-card__tagline {
    font-size: 13px;
  }

  .hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-dots__dot {
    width: 22px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: background 200ms ease, width 200ms ease;
  }

  .hero-dots__dot.is-active {
    width: 28px;
    background: var(--purple);
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-md));
    padding-bottom: var(--space-md);
  }
}
