/* vorqOS marketing — brand board + alphAgentic editorial */

:root {
  --ink: #e8eef8;
  --ink-dim: #a8b4c8;
  --muted: #7b879c;
  --bg: #05060c;
  --bg-elev: #0a0c14;
  --glass: rgba(14, 18, 32, 0.72);
  --glass-border: rgba(148, 163, 184, 0.14);
  --cyan: #2dd4bf;
  --blue: #3b82f6;
  --violet: #818cf8;
  --grad: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 48%, #818cf8 100%);
  --grad-soft: linear-gradient(135deg, rgba(45, 212, 191, 0.9), rgba(99, 102, 241, 0.9));
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --toc-w: 220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Native natural scroll only — no Lenis, no wheel hijack, no body lock */
html {
  scroll-behavior: smooth;
  height: auto;
  overflow-x: hidden;
  overflow-y: scroll; /* always show native scrollbar track */
  -webkit-overflow-scrolling: touch;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: visible; /* page scrolls on document, not a nested pane */
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overscroll-behavior-y: auto;
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ambient */
.ambient,
.noise,
.glow {
  pointer-events: none;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  animation: breath 10s ease-in-out infinite alternate;
}
.g1 {
  width: min(55vw, 640px);
  height: min(55vw, 640px);
  top: -12%;
  left: -8%;
  background: rgba(45, 212, 191, 0.14);
}
.g2 {
  width: min(45vw, 520px);
  height: min(45vw, 520px);
  bottom: 5%;
  right: -8%;
  background: rgba(129, 140, 248, 0.16);
  animation-delay: -4s;
}
@keyframes breath {
  from {
    transform: scale(1);
    opacity: 0.65;
  }
  to {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Top */
.top {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.brand:hover {
  text-decoration: none;
}
/* Real crystalline lockup — never a flat CSS square V */
.brand-img .brand-lockup {
  height: 40px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}
.brand-os {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .mark {
  display: none; /* retired fake mark */
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.top-nav a {
  color: var(--ink-dim);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.top-nav a:hover {
  color: var(--ink);
}
.top-nav .cta,
.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #041016 !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
}
.top-nav .cta:hover,
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.ghost {
  color: var(--ink) !important;
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}
.btn.ghost:hover {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(45, 212, 191, 0.06);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Typography */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}
h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 750;
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  margin: 0 0 18px;
}
h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  margin: 0 0 16px;
}
h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
h1 em,
h2 em {
  font-style: italic;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-dim);
  max-width: 40rem;
  margin: 0 0 22px;
  line-height: 1.65;
}
.fine {
  font-size: 0.85rem;
  color: var(--muted);
}
.sec-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Landing main */
.page-home main,
.page-brief .brief {
  position: relative;
  z-index: 2;
}

/* Hero layout is also inlined critical in index.html */
.hero-copy {
  position: relative;
  z-index: 2;
}
.tagline {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
  margin: 16px 0 0;
}
/* Kill any leftover stage styles that blew up the page */
.hero-stage,
.hero-mark,
.hero-stage-glow {
  display: none !important;
}

/* Full brand board — proper section, not broken hero dump */
.brand-strip {
  padding-top: 12px !important;
}
.brand-strip-inner {
  display: grid;
  gap: 20px;
}
.brand-board {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #06080f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.brand-board img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 48px);
}
.section.full {
  max-width: 1400px;
}

.glass,
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(16px);
}
.glass.warn {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(30, 24, 12, 0.55);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.card p,
.glass p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* Showcase OS mock */
.showcase {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
  }
}
.panel {
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, #0e1220, #080a12);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.panel-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.78rem;
  color: var(--muted);
}
.panel-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
}
.panel-chrome span:nth-child(1) {
  background: #f87171;
}
.panel-chrome span:nth-child(2) {
  background: #fbbf24;
}
.panel-chrome span:nth-child(3) {
  background: #34d399;
}
.panel-chrome em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.panel-body.desk {
  position: relative;
  min-height: 260px;
  padding: 20px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(45, 212, 191, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(99, 102, 241, 0.1), transparent 45%),
    #070910;
}
.win {
  position: absolute;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(12, 16, 28, 0.88);
  padding: 12px 14px;
  width: 42%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.win header {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.win p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.w1 {
  top: 18%;
  left: 8%;
  border-color: rgba(45, 212, 191, 0.35);
}
.w2 {
  top: 28%;
  right: 10%;
  width: 38%;
}
.w3 {
  bottom: 22%;
  left: 22%;
  width: 40%;
}
.dock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.dock i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  opacity: 0.75;
}
.dock i:nth-child(2) {
  opacity: 0.55;
  filter: hue-rotate(40deg);
}
.dock i:nth-child(3) {
  opacity: 0.45;
  filter: hue-rotate(80deg);
}
.term {
  margin: 0;
  padding: 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-dim);
  min-height: 260px;
}
.term .g {
  color: var(--cyan);
}
.term .b {
  color: var(--violet);
}
.term .dim {
  color: #64748b;
}

/* Agentic band */
.agentic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 48px);
}
@media (max-width: 800px) {
  .agentic {
    grid-template-columns: 1fr;
  }
}
.agentic ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.agentic li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--glass-border);
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.agentic li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  transform: translateY(-50%);
}
.orb-stack {
  position: relative;
  height: 280px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.o1 {
  width: 180px;
  height: 180px;
  right: 10%;
  top: 10%;
  background: radial-gradient(circle at 30% 30%, #5eead4, transparent 65%);
  opacity: 0.55;
}
.o2 {
  width: 140px;
  height: 140px;
  left: 15%;
  bottom: 15%;
  background: radial-gradient(circle at 30% 30%, #818cf8, transparent 65%);
  opacity: 0.5;
}
.o3 {
  width: 90px;
  height: 90px;
  right: 30%;
  bottom: 25%;
  background: radial-gradient(circle at 30% 30%, #60a5fa, transparent 65%);
  opacity: 0.45;
}

/* Status bars */
.bars {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.bars li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--ink-dim);
}
.bars i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--grad);
}

/* Beats / roadmap */
.beats,
.roadmap,
.ask-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.beats li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}
.beats strong {
  font-size: 1rem;
}
.beats span {
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.roadmap li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}
.r-n {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
  padding-top: 2px;
}
.roadmap p {
  margin: 4px 0 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.ask-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--ink-dim);
}
.ask-list strong {
  color: var(--ink);
}

.callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(45, 212, 191, 0.25);
  background: rgba(45, 212, 191, 0.06);
}
.callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.callout p {
  margin: 0;
  color: var(--ink-dim);
}

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data th,
.data td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--glass-border);
}
.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) 24px;
}
.footer-cta p {
  color: var(--ink-dim);
  margin: 0 0 22px;
}
.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 48px) 40px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 1400px;
  margin: 0 auto;
}
.foot a {
  color: var(--ink-dim);
}

/* —— Investor brief layout —— */
.page-brief .brief {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 32px) 80px;
  padding-right: clamp(18px, 4vw, 32px);
}
@media (min-width: 1100px) {
  .page-brief .brief {
    margin-left: max(48px, calc(50vw - 360px - var(--toc-w) / 2 - 40px));
    margin-right: calc(var(--toc-w) + 48px);
  }
}
.brief-hero {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--glass-border);
}
.brief-sec {
  margin-bottom: 56px;
  scroll-margin-top: 28px;
}
.prose p {
  color: var(--ink-dim);
  margin: 0 0 14px;
}

/* Mobile TOC FAB (desktop uses .toc-rail in site-shared) */
.toc-fab {
  display: none;
}
@media (max-width: 960px) {
  .toc-fab {
    display: inline-flex;
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 50;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--ink);
    font: 650 0.85rem var(--font);
    backdrop-filter: blur(12px);
    cursor: pointer;
  }
  /* reuse rail as popup when opened via fab */
  .brief-shell .toc-rail.toc {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 72px;
    top: auto;
    width: min(260px, calc(100vw - 32px));
    max-height: 50vh;
    overflow: auto;
    z-index: 50;
  }
  .brief-shell .toc-rail.toc.is-open {
    display: block;
  }
}

/* Brief sections always visible (no opacity trap) */
.page-brief .reveal,
.page-brief .brief-sec,
.page-brief .brief-hero {
  opacity: 1 !important;
  transform: none !important;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .glow {
    animation: none;
  }
}

/* Print */
@media print {
  .ambient,
  .glow,
  .noise,
  .toc,
  .toc-fab,
  .top-nav,
  .foot {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .page-brief .brief {
    margin: 0;
    max-width: none;
    padding: 0;
  }
  h1 em,
  h2 em,
  .word .os {
    color: #0f766e !important;
    -webkit-text-fill-color: #0f766e;
    background: none;
  }
  .glass,
  .card,
  .callout {
    border: 1px solid #ddd;
    background: #fafafa;
    backdrop-filter: none;
  }
  .brief-sec {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  a {
    color: #0f766e;
  }
}
