/* UniView — Private document, device, and agent viewer. */
/* Design read: premium consumer / Linear-style light aesthetic; clean typography, refined borders, purposeful animation. */

:root {
  interpolate-size: allow-keywords;
  --ink: #1e2530;
  --ink-deep: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --blue: #246ce5;
  --blue-hover: #195bc7;
  --blue-soft: #eff6ff;
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --paper-tint: #f1f5f9;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px -4px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-float: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.marquee-viewport:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

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

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  z-index: 1000;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Site Navigation — Floating Frosted Pill */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 500;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  height: 60px;
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow: 0 6px 24px -2px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink-deep);
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-links {
  margin: auto;
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-action {
  font-size: 13px;
  font-weight: 550;
  background: var(--ink-deep);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav-action:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.nav-action:active {
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-deep);
  font-size: 22px;
  padding: 6px;
  line-height: 1;
}

/* Typography & Display */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(36, 108, 229, 0.18);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 550;
  font-size: 13.5px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.button.primary {
  background: var(--ink-deep);
  color: #ffffff;
  border: 1px solid var(--ink-deep);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.button.primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.button.primary:active {
  transform: translateY(1px) scale(0.98);
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.button.secondary:hover {
  background: var(--paper-soft);
  border-color: #cbd5e1;
  color: var(--blue);
  transform: translateY(-1px);
}

.button.secondary:active {
  transform: translateY(1px) scale(0.98);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--blue);
  margin-top: 22px;
  transition: color 0.18s ease;
}

.text-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--blue-hover);
}

.text-link:hover span {
  transform: translateX(3px);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 160px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
}

.hero-copy {
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* White plate keeps the orbital file chips behind the copy, so text is never obscured */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -32px -56px;
  z-index: -1;
  background: radial-gradient(closest-side, var(--paper) 76%, rgb(255 255 255 / 0));
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 600;
  margin: 22px 0 20px;
  color: var(--ink-deep);
  text-wrap: pretty;
}

.hero h1 span {
  color: var(--blue);
}

.hero-copy > p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

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

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  letter-spacing: 0.01em;
}

/* Staggered entrance animations */
/* ponytail: fast entrance animation completes well under 1s so hero content is never blank */
.hero-enter {
  opacity: 1;
  animation: hero-reveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-enter-1 { animation-delay: 0.02s; }
.hero-enter-2 { animation-delay: 0.05s; }
.hero-enter-3 { animation-delay: 0.08s; }
.hero-enter-4 { animation-delay: 0.11s; }
.hero-enter-5 { animation-delay: 0.14s; }
.hero-enter-6 { animation-delay: 0.18s; }

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Orbital Rings & Moving Chips */
.orbits {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 92%);
}

.orbit-track {
  position: absolute;
  top: 220px;
  left: 50%;
  border: 1px solid #edf1f6;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

.orbit-track-1 {
  width: 620px;
  height: 620px;
  animation: orbit-spin-1 38s linear infinite;
}

.orbit-track-2 {
  width: 880px;
  height: 880px;
  animation: orbit-spin-2 52s linear infinite reverse;
}

.orbit-track-3 {
  width: 1140px;
  height: 1140px;
  animation: orbit-spin-3 68s linear infinite;
}

.orbit-track-4 {
  width: 1400px;
  height: 1400px;
  animation: orbit-spin-4 84s linear infinite reverse;
}

.orbit-file {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e9f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  will-change: transform;
}

/* Position chips on perimeter of their respective ring */
.orbit-a {
  top: -23px;
  left: 50%;
  margin-left: -23px;
  color: #b56662;
  border-color: #f2d9d7;
  animation: orbit-counter-1 38s linear infinite;
}

.orbit-b {
  top: 50%;
  left: -23px;
  margin-top: -23px;
  color: #4b8567;
  border-color: #d1e7dc;
  animation: orbit-counter-2 52s linear infinite reverse;
}

.orbit-c {
  top: -23px;
  left: 50%;
  margin-left: -23px;
  color: #246ce5;
  border-color: #cfe0fc;
  animation: orbit-counter-3 68s linear infinite;
}

.orbit-d {
  top: 50%;
  right: -23px;
  margin-top: -23px;
  color: #6285b5;
  border-color: #d7e3f4;
  animation: orbit-counter-4 84s linear infinite reverse;
}

/* Orbital track rotation and counter-spin to keep text upright */
@keyframes orbit-spin-1 {
  from { transform: translate(-50%, -50%) rotate(-120deg); }
  to   { transform: translate(-50%, -50%) rotate(240deg); }
}
@keyframes orbit-counter-1 {
  from { transform: rotate(120deg); }
  to   { transform: rotate(-240deg); }
}

@keyframes orbit-spin-2 {
  from { transform: translate(-50%, -50%) rotate(-160deg); }
  to   { transform: translate(-50%, -50%) rotate(200deg); }
}
@keyframes orbit-counter-2 {
  from { transform: rotate(160deg); }
  to   { transform: rotate(-200deg); }
}

@keyframes orbit-spin-3 {
  from { transform: translate(-50%, -50%) rotate(-45deg); }
  to   { transform: translate(-50%, -50%) rotate(315deg); }
}
@keyframes orbit-counter-3 {
  from { transform: rotate(45deg); }
  to   { transform: rotate(-315deg); }
}

@keyframes orbit-spin-4 {
  from { transform: translate(-50%, -50%) rotate(20deg); }
  to   { transform: translate(-50%, -50%) rotate(380deg); }
}
@keyframes orbit-counter-4 {
  from { transform: rotate(-20deg); }
  to   { transform: rotate(-380deg); }
}

/* Product Device Stage with Scroll-Linked Depth */
.product-stage {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 35px auto 0;
  padding: 0 16px;
}

.product-stage > img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  will-change: transform;
  transition: transform 0.1s linear;
}

.product-stage figcaption {
  font-size: 11px;
  color: var(--muted-light);
  margin-top: 18px;
  letter-spacing: 0.02em;
}

/* Formats Strip Marquee */
.strip {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 24px 0;
  overflow: hidden;
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}

.strip-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  margin: 0;
}

.marquee-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 34s linear infinite;
  will-change: transform;
}

.marquee-viewport:hover .marquee-track,
.marquee-viewport:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.marquee-group span:hover {
  color: var(--blue);
  border-color: #cbd5e1;
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Connection Demo Section (#connect) */
.connect-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 90px;
  padding-block: 120px;
}

.connect-copy h2,
.section-heading h2,
.agent-layout h2,
.formats-layout h2,
.privacy-intro h2,
.faq-section h2 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
  color: var(--ink-deep);
  margin: 18px 0 22px;
  text-wrap: balance;
}

.connect-copy p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  font-weight: 550;
  margin-top: 26px;
  color: #334155;
}

.connection-demo {
  position: relative;
  padding: 28px;
  background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.demo-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  margin-bottom: 22px;
}

.demo-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.demo-network {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-host {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
}

.demo-computer {
  width: 44px;
  color: #475569;
}

.demo-computer svg {
  display: block;
  width: 44px;
}

.demo-host strong,
.demo-destination strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-deep);
  letter-spacing: -0.02em;
}

.demo-host small,
.demo-destination small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.demo-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: #eff8f4;
  color: #15803d;
  border: 1px solid #d1fae5;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.demo-files {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
  box-shadow: var(--shadow-subtle);
}

.demo-files > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-subtle);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.demo-files > div:last-child {
  border-bottom: 0;
}

.demo-file {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  border-radius: 4px 8px 4px 4px;
  font-size: 8.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.demo-file.video {
  background: #8799bc;
}

.demo-files > div > span:nth-child(2) {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink);
}

.demo-files small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

.demo-files svg {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--muted-light);
  transition: transform 0.25s ease, color 0.25s ease;
}

.demo-route {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.route-badge {
  position: relative;
  padding: 2px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  color: var(--blue);
}

.route-badge::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid #cbd5e1;
  box-shadow: 0 0 10px rgba(36, 108, 229, 0.18);
  opacity: 0;
  pointer-events: none;
}

.route-track {
  height: 18px;
  width: 2px;
  background: #cbd5e1;
  position: relative;
}

.route-track i {
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px rgba(36, 108, 229, 0.6);
  opacity: 0;
}

.demo-destination {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-destination > svg {
  width: 22px;
  height: 30px;
  color: #475569;
}

.destination-check {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #15803d;
  background: #eff8f4;
  border: 1px solid #d1fae5;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  transform: scale(1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.demo-caption {
  display: block;
  text-align: center;
  font-size: 10px;
  color: var(--muted-light);
  margin-top: 18px;
}

/* Connection Demo Narrative Keyframe Loop (active only when in view and JS enabled) */
.connection-demo.story-active .demo-status {
  animation: story-sharing 7.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.connection-demo.story-active .demo-row-1 {
  animation: story-row-1 7.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.connection-demo.story-active .demo-row-2 {
  animation: story-row-2 7.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.connection-demo.story-active .demo-row-3 {
  animation: story-row-3 7.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.connection-demo.story-active .track-top i {
  animation: story-packet-top 7.5s linear infinite;
}
.connection-demo.story-active .route-badge::after {
  animation: story-route-badge 7.5s ease infinite;
}
.connection-demo.story-active .track-bottom i {
  animation: story-packet-bottom 7.5s linear infinite;
}

.connection-demo.story-active .destination-check {
  animation: story-check 7.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes story-sharing {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  4%, 92%  { transform: scale(1.04); opacity: 1; }
}

@keyframes story-row-1 {
  0%, 2%   { opacity: 0.6; transform: translateX(-3px); }
  6%, 92%  { opacity: 1; transform: translateX(0); }
  98%, 100%{ opacity: 0.6; transform: translateX(-3px); }
}

@keyframes story-row-2 {
  0%, 6%   { opacity: 0.6; transform: translateX(-3px); }
  10%, 92% { opacity: 1; transform: translateX(0); }
  98%, 100%{ opacity: 0.6; transform: translateX(-3px); }
}

@keyframes story-row-3 {
  0%, 10%  { opacity: 0.6; transform: translateX(-3px); }
  14%, 92% { opacity: 1; transform: translateX(0); }
  98%, 100%{ opacity: 0.6; transform: translateX(-3px); }
}

@keyframes story-packet-top {
  0%, 14%  { opacity: 0; transform: translateY(0); }
  16%      { opacity: 1; }
  22%      { opacity: 1; transform: translateY(18px); }
  24%, 100%{ opacity: 0; transform: translateY(18px); }
}

@keyframes story-route-badge {
  0%, 18%  { opacity: 0; }
  22%, 88% { opacity: 1; }
  94%, 100%{ opacity: 0; }
}

@keyframes story-packet-bottom {
  0%, 22%  { opacity: 0; transform: translateY(0); }
  24%      { opacity: 1; }
  30%      { opacity: 1; transform: translateY(18px); }
  32%, 100%{ opacity: 0; transform: translateY(18px); }
}

@keyframes story-check {
  0%, 26%  { transform: scale(0.85); opacity: 0.6; }
  31%      { transform: scale(1.15); opacity: 1; }
  34%, 94% { transform: scale(1); opacity: 1; }
  98%, 100%{ transform: scale(0.85); opacity: 0.6; }
}

/* Features Grid */
.section {
  padding-block: 100px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: end;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  color: var(--muted);
  font-size: 16px;
  max-width: 360px;
  margin-bottom: 6px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.features article {
  padding: 30px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.features article:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--blue-soft);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
}

.features h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 18px 0 10px;
  color: var(--ink-deep);
}

.features p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

/* Agents Section with Scroll-Drawn Spine Line */
.agent-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding-block: 110px;
}

.agent-layout {
  max-width: 720px;
}

.agent-layout > div > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 440px;
}

.agent-layout h2 span {
  color: var(--blue);
}

/* Formats Grid Section */
.formats-section {
  padding-block: 110px;
  border-top: 1px solid var(--line);
}

.formats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.formats-layout > div > p {
  font-size: 16px;
  color: var(--muted);
  max-width: 400px;
}

.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.format-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.format-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px -4px rgba(36, 108, 229, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  transition-delay: 0s;
}

.format-card b {
  grid-row: span 2;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  padding: 6px 2px;
  border-radius: 5px;
  text-align: center;
  width: 34px;
  letter-spacing: 0.02em;
}

.format-card strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-deep);
}

.format-card small {
  color: var(--muted);
  font-size: 11.5px;
}

.pdf  { background: #b56d69; }
.xls  { background: #4f8768; }
.ppt  { background: #c27d4c; }
.img  { background: #7c6c96; }
.code { background: #3b82f6; }
.zip  { background: #9c7b50; }
.video{ background: #8799bc; }

/* Privacy Section */
.privacy-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding-block: 105px;
  border-top: 1px solid var(--line);
}

.privacy-intro > p {
  color: var(--muted);
  font-size: 16px;
  max-width: 420px;
  line-height: 1.8;
}

.privacy-points article {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.privacy-points article:last-child {
  border-bottom: 0;
}

.privacy-points article > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.privacy-points h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-deep);
  margin: 0 0 6px;
}

.privacy-points p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

/* FAQ Section with Smooth Details Transition */
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding-block: 80px 110px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  transition: border-color 0.2s ease;
}

.faq-list summary {
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  color: var(--ink-deep);
  user-select: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "+";
  transform: translateY(-50%) rotate(45deg);
  color: var(--blue);
}

.details-content {
  overflow: hidden;
}

/* ponytail: CSS ::details-content smooth transition replaces JS setTimeout state machine; older engines open/close natively without JS */
.faq-list details::details-content {
  opacity: 0;
  block-size: 0;
  overflow-y: clip;
  transition: content-visibility 0.25s allow-discrete, opacity 0.22s ease, block-size 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-list details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

.faq-list p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin: 12px 0 4px;
}

/* Closing Section */
.closing {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #edf4fc 100%);
  border: 1px solid #dbe6f5;
  border-radius: 24px;
  margin-bottom: 70px;
  padding: 60px 30px;
  overflow: hidden;
}

.closing-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.closing-backdrop i {
  position: absolute;
  top: 45%;
  left: 50%;
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
}

.closing-backdrop i:nth-child(2) {
  width: 850px;
  height: 850px;
  border-color: rgba(203, 213, 225, 0.35);
}

.closing > * {
  position: relative;
  z-index: 1;
}

.closing-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.closing h2 {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink-deep);
  margin: 16px 0 12px;
}

.closing > p {
  color: var(--muted);
  font-size: 17px;
  max-width: 440px;
  margin: 0 auto;
}

.availability {
  max-width: 500px;
  margin: 32px auto 0;
}

.availability p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  padding-block: 36px;
}

.footer-inner p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--blue);
}

/* Document Sub-pages (agents.html, getting-started.html, privacy.html) */
.document-page .site-header {
  position: static;
  padding-top: 18px;
}

.document-page .nav {
  position: relative;
}

.doc-content {
  padding-top: 40px;
  padding-bottom: 90px;
  max-width: 900px;
}

.doc-content > .text-link {
  margin-top: 0;
  margin-bottom: 24px;
}

.doc-content > .eyebrow {
  display: block;
  margin-top: 16px;
}

.doc-content h1 {
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--ink-deep);
  margin: 18px 0 24px;
}

.doc-content .doc-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 760px;
}

.doc-content h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-deep);
  margin-top: 45px;
  margin-bottom: 12px;
}

.doc-content p,
.doc-content li {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.doc-content pre {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  overflow-x: auto;
  font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink-deep);
  max-width: 720px;
}

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.platforms article {
  padding: 26px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.platforms h2 {
  margin-top: 0;
  font-size: 20px;
}

.platforms p {
  font-size: 13.5px;
  flex-grow: 1;
}

.platforms .button {
  align-self: flex-start;
  margin-top: 14px;
}

.platforms .text-link {
  margin-top: 14px;
}

/* Scroll reveal utility (JS enabled) */
.js-ready .reveal {
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js-ready .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.visible {
  opacity: 1;
}

/* stagger runs once on reveal only, so hover in/out is never delayed */
.format-card.reveal.visible {
  animation: card-reveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 60ms) backwards;
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.format-card:hover,
.format-card.reveal:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px -4px rgba(36, 108, 229, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  transition-delay: 0s;
}

/* after the hover rules so press feedback wins while hovered */
.format-card:active,
.format-card:hover:active {
  transform: translateY(-1px);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .nav {
    width: 100%;
    height: 56px;
    padding: 0 14px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-action {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-float);
  }

  .hero {
    padding-top: 130px;
  }

  .hero h1 {
    font-size: clamp(40px, 9vw, 56px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  /* No gutter at this width, so the decorative chips would sit on the copy: hide them */
  .orbits { display: none; }

  .strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .connect-section,
  .section-heading,
  .agent-layout,
  .formats-layout,
  .privacy-section,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 70px;
  }

  .connect-copy {
    order: -1;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .platforms {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .connection-demo {
    padding: 20px 16px;
  }

  .format-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: prefers-reduced-motion: reduce */
@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;
    scroll-behavior: auto !important;
  }

  .faq-list details::details-content {
    transition: none !important;
  }

  .hero-enter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .orbit-track {
    animation: none !important;
  }

  .orbit-file {
    animation: none !important;
  }

  .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
  }

  .marquee-group[aria-hidden="true"] {
    display: none;
  }

  .connection-demo.story-active .demo-status,
  .connection-demo.story-active .demo-row-1,
  .connection-demo.story-active .demo-row-2,
  .connection-demo.story-active .demo-row-3,
  .connection-demo.story-active .track-top i,
  .connection-demo.story-active .route-badge::after,
  .connection-demo.story-active .track-bottom i,
  .connection-demo.story-active .destination-check {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .js-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Download hero */
.hero-download {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  padding: 16px 34px;
  border-radius: 10px;
}

.hero .hero-warning {
  max-width: 540px;
  margin: 10px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-warning a {
  color: var(--blue);
  font-weight: 550;
}

.availability .hero-download {
  margin-bottom: 20px;
}

.availability-note {
  font-size: 13px;
  color: var(--muted);
}

/* Launch video */
.film {
  margin: 40px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: var(--shadow-card);
}

.film video {
  display: block;
  width: 100%;
  height: auto;
}

.film figcaption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
}

/* Screenshot gallery */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.shots figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: var(--shadow-card);
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
}

.shots figcaption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
