/* =========================================================================
   Quintinno Labs — design tokens
   Fonts: Geist (sans) + Geist Mono + Instrument Serif (italic accents only)
   Palette: deep dark bg, teal product accent, amber attention/status accent
   ========================================================================= */
:root {
  /* surfaces */
  --bg: #06080a;
  --surface: #0b1012;
  --surface-2: #131a1d;
  --surface-3: #1c2428;

  /* ink */
  --ink: #e8eef0;
  --ink-2: #9fb3ba;
  --ink-3: #9fb3ba;
  --ink-faint: #3a4448;

  /* brand teal — from the logo gradient + app */
  --teal: #4dd0e1;
  --teal-bright: #6ee0ef;
  --teal-2: #2da6b8;
  --teal-deep: #0e4b5a;

  /* amber attention — from the app "RUNNING ON BATTERY" pill */
  --amber: #ffa726;
  --amber-soft: #ffc472;
  --amber-deep: #6b3e0a;
  --amber-glow: rgba(255, 167, 38, 0.12);

  /* rules */
  --rule: rgba(255, 255, 255, 0.06);
  --rule-2: rgba(255, 255, 255, 0.12);
  --rule-teal: rgba(77, 208, 225, 0.22);
  --rule-amber: rgba(255, 167, 38, 0.28);

  /* type */
  --f-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --f-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --f-serif: 'Instrument Serif', Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--teal); color: var(--bg); }

/* =========================================================================
   Nav
   ========================================================================= */
.qnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center;
  padding: 20px 48px;
  font-family: var(--f-sans);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.qnav.scrolled {
  background: rgba(6, 8, 10, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.qnav .qlogo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; cursor: pointer; }
.qnav .qlogo img {
  height: 41px;
  width: auto;
  display: block;
}
.qnav .qlogo .word {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.qnav .qlogo .word .labs {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
  margin-left: 6px;
}
.qnav .links {
  margin-left: auto;
  display: flex; gap: 4px; align-items: center;
}
.qnav .links a {
  padding: 8px 14px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.15s;
}
.qnav .links a:hover, .qnav .links a.active { color: var(--ink); }
.qnav .links a.active { color: var(--teal); }
.qnav .cta {
  margin-left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal);
  color: #fff;
  padding: 9px 16px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s;
}
.qnav .cta:hover { background: var(--teal-bright); }

/* =========================================================================
   Hero 3D placeholder — full viewport, transparent, centered
   ========================================================================= */
.hero3d-track {
  height: 320vh;
  position: relative;
}
.hero3d {
  position: sticky; top: 0;
  height: 100vh; min-height: 720px;
  width: 100%;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.hero3d::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 65%, rgba(77,208,225,0.07), transparent 70%);
  pointer-events: none;
}
.hero3d-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: #000; color-scheme: dark;
  border: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
  transform: translateX(20%);
}
.hero3d-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.hero3d-placeholder .h3-box {
  position: relative;
  width: min(480px, 50vw);
  aspect-ratio: 5 / 4;
  border: 1px dashed var(--rule-teal);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 16px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 50%, rgba(77,208,225,0.04), transparent 70%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(77,208,225,0.025) 14px 15px);
}
.hero3d-placeholder .h3-box::before,
.hero3d-placeholder .h3-box::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--teal);
}
.hero3d-placeholder .h3-box::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero3d-placeholder .h3-box::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero3d-placeholder .h3-tag {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--teal);
  padding: 8px 18px;
  border: 1px solid var(--rule-teal);
  border-radius: 2px;
  background: rgba(6,8,10,0.4);
  text-transform: uppercase;
}
.hero3d-placeholder .h3-desc {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.6;
}

/* =========================================================================
   Reusable primitives
   ========================================================================= */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.container-wide  { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.section         { padding: 140px 0; position: relative; }
.section.tight   { padding: 96px 0; }

/* eyebrows */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--teal);
}
.eyebrow.amber { color: var(--amber); }
.eyebrow.amber::before { background: var(--amber); }
.eyebrow.muted { color: var(--ink-3); }
.eyebrow.muted::before { background: var(--ink-3); }
.eyebrow .num { color: var(--ink-3); }

/* display headings — clean Geist, italic serif accents */
.display {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.display .teal { color: var(--teal); }
.display .amber { color: var(--amber); }
.display .italic {
  font-family: var(--f-sans); font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--teal);
}
.display .italic-amber { font-family: var(--f-sans); font-weight: 500; color: var(--amber); letter-spacing: -0.01em; }
.display .thin { font-weight: 400; color: var(--ink-2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}
.btn-primary { background: var(--teal); color: var(--bg); }
.btn-primary:hover { background: var(--teal-bright); }
.btn-ghost { border-color: var(--rule-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-amber { background: var(--amber); color: var(--bg); }
.btn-amber:hover { background: var(--amber-soft); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* live status badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 6px 12px;
  border: 1px solid var(--rule-amber);
  border-radius: 999px;
  background: var(--amber-glow);
}
.live-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes float-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* image placeholders */
.imgslot {
  position: relative;
  background: linear-gradient(135deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.imgslot::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(77,208,225,0.035) 14px 15px);
  pointer-events: none;
}
.imgslot.filled {
  background: transparent;
}
.imgslot.filled::after { display: none; }
.imgslot.filled img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.imgslot .corner { position: absolute; width: 10px; height: 10px; border-color: var(--teal); border-style: solid; border-width: 0; z-index: 2; }
.imgslot .corner.tl { top: 6px; left: 6px; border-top-width: 1px; border-left-width: 1px; }
.imgslot .corner.tr { top: 6px; right: 6px; border-top-width: 1px; border-right-width: 1px; }
.imgslot .corner.bl { bottom: 6px; left: 6px; border-bottom-width: 1px; border-left-width: 1px; }
.imgslot .corner.br { bottom: 6px; right: 6px; border-bottom-width: 1px; border-right-width: 1px; }
.imgslot .label {
  position: relative;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 12px;
  border: 1px solid var(--rule-teal);
  border-radius: 2px;
  background: rgba(6,8,10,0.6);
  text-align: center;
}
.imgslot.glow::before {
  content: '';
  position: absolute;
  inset: 18% 18%;
  background: radial-gradient(circle, rgba(77,208,225,0.2), transparent 60%);
  filter: blur(28px);
}

/* fine grid backdrop */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}
.grid-bg.dense {
  background-image:
    linear-gradient(rgba(77,208,225,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,208,225,0.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
}

/* footer */
.qfoot {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 80px 48px 32px;
}
.qfoot .row {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.qfoot .foot-logo {
  display: block;
  width: 160px;
  height: auto;
  margin-bottom: 16px;
}
.qfoot h4 {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  font-weight: 400;
}
.qfoot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.qfoot ul li {
  font-size: 14px; color: var(--ink-2);
  cursor: pointer; transition: color 0.15s;
}
.qfoot ul li:hover { color: var(--teal); }
.qfoot ul li a { color: inherit; text-decoration: none; }
.qfoot .brand {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  display: flex; align-items: baseline; gap: 10px;
}
.qfoot .brand .labs {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
}
.qfoot .tagline { color: var(--ink-2); max-width: 280px; font-size: 14px; line-height: 1.55; }
.qfoot .bottom {
  max-width: 1280px; margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.page-enter { animation: float-up 0.4s ease; }

/* supported-by marquee */
.h-supporters {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  overflow: hidden;
  display: flex; align-items: center; gap: 40px;
}
.h-supporters .lead {
  flex: none; padding-left: 48px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
}
.h-supporters .marquee {
  position: relative; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.h-supporters .track {
  display: flex; align-items: center; width: max-content;
  animation: supporters-scroll 38s linear infinite;
}
.h-supporters:hover .track { animation-play-state: paused; }
.h-supporters .track .name {
  font-family: var(--f-sans);
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s;
}
.h-supporters .track .name:hover { color: var(--ink); }
.h-supporters .track .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--teal);
  margin: 0 36px; flex: none;
}
@keyframes supporters-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* responsive */
@media (max-width: 1100px) {
  .container, .container-wide { padding: 0 24px; }
  .qnav { padding: 16px 24px; }
  .qnav .links a:not(.cta) { display: none; }
  .qfoot .row { grid-template-columns: 1fr 1fr; }
}
