/* ==========================================================================
   GeniPad — design tokens ported from Velora UI (shadcn tokens, MIT)
   ========================================================================== */

:root {
  --background: oklch(0.99 0.002 260);
  --foreground: oklch(0.16 0.01 260);
  --card: oklch(1 0 0);
  --muted: oklch(0.965 0.004 260);
  --muted-foreground: oklch(0.5 0.015 260);
  --border: oklch(0.91 0.006 260);
  --input: oklch(0.89 0.006 260);
  --primary: oklch(0.546 0.245 263);
  --primary-foreground: oklch(0.985 0 0);
  --brand: oklch(0.546 0.245 263);
  --brand-from: oklch(0.546 0.245 263);
  --brand-via: oklch(0.623 0.214 260);
  --brand-to: oklch(0.685 0.169 237);
  --ring: oklch(0.623 0.214 260);
  --success: oklch(0.62 0.17 155);
  --warn: oklch(0.7 0.17 60);
  --radius: 0.625rem;
  --shadow: 0 1px 2px oklch(0 0 0 / 5%), 0 8px 24px -8px oklch(0.3 0.05 260 / 12%);
  --glass: oklch(1 0 0 / 70%);
  --header-bg: oklch(1 0 0 / 72%);
  --grid-line: oklch(0.16 0.01 260 / 6%);
  --aurora-opacity: 0.22;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

.dark {
  --background: oklch(0.145 0.004 260);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.19 0.006 260);
  --muted: oklch(0.24 0.008 260);
  --muted-foreground: oklch(0.72 0.012 260);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --primary: oklch(0.623 0.214 260);
  --primary-foreground: oklch(0.145 0 0);
  --brand: oklch(0.623 0.214 260);
  --brand-from: oklch(0.623 0.214 260);
  --brand-via: oklch(0.707 0.165 255);
  --brand-to: oklch(0.746 0.16 233);
  --ring: oklch(0.707 0.165 255);
  --shadow: 0 1px 2px oklch(0 0 0 / 30%), 0 12px 32px -12px oklch(0 0 0 / 60%);
  --glass: oklch(0.19 0.006 260 / 60%);
  --header-bg: oklch(0.145 0.004 260 / 70%);
  --grid-line: oklch(1 0 0 / 5.5%);
  --aurora-opacity: 0.2;
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted-foreground); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--foreground); color: var(--background);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }

.gradient-text {
  background: linear-gradient(90deg, var(--brand-from), var(--brand-via), var(--brand-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.link { color: var(--primary); text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease-out), opacity .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: .85rem; }
.btn-lg { height: 3rem; padding: 0 1.6rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn .icon { transition: transform .2s var(--ease-out); }
.btn:hover .icon { transform: translateX(2px); }

.btn-primary {
  background: var(--foreground); color: var(--background);
  box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--brand) 55%, transparent);
}
.btn-primary:hover { opacity: .9; }

.btn-ghost {
  background: color-mix(in oklab, var(--background) 60%, transparent);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--muted); }

/* Shimmer button (Velora "Shimmer Button") */
.btn-shimmer {
  color: #fff;
  background:
    linear-gradient(110deg, transparent 35%, oklch(1 0 0 / 35%) 50%, transparent 65%) 0 0 / 250% 100%,
    linear-gradient(90deg, var(--brand-from), var(--brand-via) 60%, var(--brand-to));
  box-shadow: 0 12px 34px -10px color-mix(in oklab, var(--brand) 70%, transparent), inset 0 1px 0 oklch(1 0 0 / 25%);
  animation: shimmer 3s linear infinite;
}
.btn-shimmer:hover { box-shadow: 0 16px 40px -10px color-mix(in oklab, var(--brand) 85%, transparent), inset 0 1px 0 oklch(1 0 0 / 30%); }
.dark .btn-shimmer { color: oklch(0.145 0 0); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--muted-foreground); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--muted); color: var(--foreground); }

/* ==========================================================================
   Header (Velora "Resizable Navbar")
   ========================================================================== */

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 2px;
  background: linear-gradient(90deg, var(--brand-from), var(--brand-via), var(--brand-to));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: .75rem clamp(.75rem, 3vw, 1.5rem);
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 80rem; margin-inline: auto;
  padding: .5rem .5rem .5rem 1rem;
  border: 1px solid transparent; border-radius: 999px;
  transition: max-width .5s var(--ease-out), background-color .3s, border-color .3s, box-shadow .3s, transform .3s;
}
.site-header.is-scrolled .nav-shell {
  max-width: 62rem;
  background: var(--header-bg);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo-mark { width: 2.75rem; height: 2.75rem; margin: -.375rem; object-fit: contain; }
.brand-name span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  display: block; padding: .45rem .85rem; border-radius: 999px;
  font-size: .9rem; color: var(--muted-foreground);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--foreground); background: var(--muted); }

.nav-actions { display: flex; align-items: center; gap: .35rem; }

.theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

.mobile-menu {
  pointer-events: auto;
  margin: .5rem auto 0; max-width: 40rem;
  padding: 1rem; border: 1px solid var(--border); border-radius: 1.25rem;
  background: var(--header-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: drop-in .3s var(--ease-out);
}
.mobile-menu .nav-links { flex-direction: column; align-items: stretch; margin-bottom: .75rem; }
.mobile-menu .nav-links a { font-size: 1rem; padding: .7rem 1rem; border-radius: .75rem; }
.mobile-menu .btn { width: 100%; }

@media (max-width: 900px) {
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-grid; }
}

/* ==========================================================================
   Backgrounds: aurora, grid pattern, meteors
   ========================================================================== */

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: var(--aurora-opacity); }
.aurora span { position: absolute; border-radius: 999px; will-change: transform; }
.aurora span:nth-child(1) { top: -25%; left: 10%; width: 44rem; height: 44rem; background: var(--brand-from); filter: blur(120px); animation: aurora-1 14s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { top: 5%; right: 5%; width: 38rem; height: 38rem; background: var(--brand-via); filter: blur(130px); animation: aurora-2 18s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { bottom: -25%; left: 35%; width: 40rem; height: 40rem; background: var(--brand-to); filter: blur(140px); animation: aurora-3 22s ease-in-out infinite alternate; }
.aurora.subtle { opacity: calc(var(--aurora-opacity) * .7); }

.grid-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 30% 0%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 55% at 30% 0%, #000, transparent);
}

.meteors { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.meteor {
  position: absolute; top: -5%;
  width: 2px; height: 2px; border-radius: 999px;
  background: var(--brand-via);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 6%);
  animation: meteor var(--dur, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}
.meteor::before {
  content: ""; position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 70px; height: 1px;
  background: linear-gradient(90deg, var(--brand-via), transparent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(7.5rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2.5rem, 5vw, 4rem);
}

.hero-copy { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; max-width: 100%;
  padding: .25rem .75rem .25rem .25rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(8px);
  font-size: .85rem;
  transition: border-color .2s;
}
.pill:hover { border-color: color-mix(in oklab, var(--primary) 45%, transparent); }
.pill-tag { white-space: nowrap; padding: .15rem .55rem; border-radius: 999px; background: color-mix(in oklab, var(--primary) 16%, transparent); font-size: .75rem; font-weight: 500; }
.pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill .icon { width: .85rem; height: .85rem; color: var(--muted-foreground); transition: transform .2s; }
.pill:hover .icon { transform: translateX(2px); }

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 650; letter-spacing: -0.04em; line-height: 1.04;
}

/* Word rotate (Velora "Word Rotate") */
.word-rotate { display: grid; margin-top: .08em; }
.word-rotate > span {
  grid-area: 1 / 1; align-self: start;
  opacity: 0; transform: translateY(.45em); filter: blur(6px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), filter .5s var(--ease-out);
  padding-bottom: .08em;
}
.word-rotate > span.is-active { opacity: 1; transform: none; filter: none; }
.word-rotate > span.is-leaving { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }

.lead { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.credentials { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; font-size: .85rem; color: var(--muted-foreground); }
.credentials li { display: inline-flex; align-items: center; gap: .45rem; }
.credentials .icon { color: var(--primary); }

/* Hero visual — document AI demo */
.hero-visual { position: relative; }
.card-glass {
  position: relative;
  border: 1px solid var(--border); border-radius: 1.25rem;
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.doc-demo { overflow: hidden; }
.doc-demo-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--border);
  font-size: .75rem; color: var(--muted-foreground);
}
.dots { display: inline-flex; gap: .35rem; }
.dots i { width: .6rem; height: .6rem; border-radius: 999px; background: var(--muted); border: 1px solid var(--border); }
.status-chip { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .55rem; border-radius: 999px; background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); font-weight: 500; }
.live-dot { width: .4rem; height: .4rem; border-radius: 999px; background: currentColor; animation: pulse-dot 1.6s ease-in-out infinite; }

.doc-demo-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; padding: 1.1rem; }

.doc-page {
  position: relative; overflow: hidden;
  padding: 1rem; border-radius: .75rem;
  background: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .8rem;
  min-height: 15.5rem;
}
.doc-head { display: flex; align-items: center; gap: .6rem; }
.doc-head > div { flex: 1; display: grid; gap: .35rem; }
.doc-logo { width: 1.6rem; height: 1.6rem; border-radius: .4rem; background: linear-gradient(135deg, var(--brand-from), var(--brand-to)); opacity: .8; }
.doc-badge { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .08em; padding: .15rem .35rem; border-radius: .3rem; border: 1px solid var(--border); color: var(--muted-foreground); }
.doc-meta, .doc-table, .doc-total, .doc-sign { display: grid; gap: .4rem; }
.doc-table { padding: .6rem 0; border-block: 1px dashed var(--border); }
.doc-total { justify-items: end; }
.doc-sign { margin-top: auto; }
.ln { display: block; height: .42rem; border-radius: 999px; background: var(--muted); }
.ln.w30 { width: 30%; } .ln.w35 { width: 35%; } .ln.w40 { width: 40%; } .ln.w45 { width: 45%; } .ln.w50 { width: 50%; }
.ln.w60 { width: 60%; } .ln.w70 { width: 70%; } .ln.w80 { width: 80%; } .ln.w85 { width: 85%; } .ln.w90 { width: 90%; }
.ln.hl { position: relative; animation: highlight 6s ease-in-out infinite; }
.ln.hl-2 { animation-delay: .5s; }
.ln.hl-3 { animation-delay: 1.4s; }

.scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 3.5rem; z-index: 1;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--brand) 22%, transparent) 80%, var(--brand-via) 100%);
  border-bottom: 1px solid var(--brand-via);
  animation: scan 3s ease-in-out infinite;
  pointer-events: none;
}

.extract { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.extract-title { font-size: .7rem; color: var(--muted-foreground); }
.extract-list { display: grid; gap: .45rem; }
.extract-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem;
  padding: .5rem .65rem; border-radius: .6rem;
  border: 1px solid var(--border); background: var(--card);
  font-size: .78rem;
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.extract-list li.is-in { opacity: 1; transform: none; }
.extract-list .k { font-family: var(--font-mono); font-size: .68rem; color: var(--muted-foreground); }
.extract-list .v { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extract-list .conf { font-family: var(--font-mono); font-size: .65rem; padding: .1rem .35rem; border-radius: .3rem; background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
.extract-list li.ok { grid-template-columns: auto 1fr; color: var(--success); background: color-mix(in oklab, var(--success) 8%, var(--card)); border-color: color-mix(in oklab, var(--success) 30%, transparent); font-weight: 500; }

.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .85rem; border-radius: .9rem;
  border: 1px solid var(--border); background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: .75rem; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float-chip > .icon { width: 1.9rem; height: 1.9rem; padding: .45rem; border-radius: .55rem; background: color-mix(in oklab, var(--primary) 14%, transparent); color: var(--primary); }
.float-chip strong { display: block; font-size: .85rem; }
.float-chip span { color: var(--muted-foreground); }
.chip-a { top: -2.6rem; right: 1.5rem; }
.chip-b { bottom: -1.6rem; left: -1.5rem; animation-delay: -3s; }

/* Border beam (Velora "Border Beam") */
.border-beam {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  border: 1px solid transparent;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.border-beam::after {
  content: ""; position: absolute;
  width: 90px; aspect-ratio: 1;
  background: linear-gradient(to left, var(--brand-from), var(--brand-to), transparent);
  offset-path: rect(0 auto auto 0 round 90px);
  animation: border-beam 7s linear infinite;
}
.border-beam.slow::after { animation-duration: 12s; }

/* ==========================================================================
   Stack marquee
   ========================================================================== */

.stack-strip { padding: 2.75rem 0; border-block: 1px solid var(--border); font-size: .9rem; }
.marquee {
  --gap: 3rem;
  display: flex; gap: var(--gap); overflow: hidden; margin-top: 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; flex-shrink: 0; align-items: center; gap: var(--gap); min-width: 100%; justify-content: space-around;
  animation: marquee var(--duration, 40s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--muted-foreground); white-space: nowrap; transition: color .2s; }
.marquee-track li:hover { color: var(--foreground); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; isolation: isolate; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt { background: color-mix(in oklab, var(--muted) 45%, var(--background)); border-block: 1px solid var(--border); }
.section-glow { position: absolute; inset: 0 0 auto 0; height: 24rem; z-index: -1; background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 7%, transparent), transparent); }

.section-heading { max-width: 42rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--primary); letter-spacing: .01em; }
.section-heading h2, .founder h2, .cta-copy h2 { margin-top: .6rem; font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.035em; }
.section-heading > p:last-child:not(.eyebrow) { margin-top: 1rem; font-size: 1.05rem; color: var(--muted-foreground); }

.icon-tile {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: .7rem;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  transition: background-color .2s, transform .3s var(--ease-out);
}
.icon-tile .icon { width: 1.2rem; height: 1.2rem; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0;
  overflow: hidden; border: 1px solid var(--border); border-radius: 1.25rem;
  background: var(--border);
}
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--background); }
.stats dt { font-size: .875rem; color: var(--muted-foreground); }
.stats dd { margin: 0; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Bento (Velora "Bento Grid" + "Spotlight Card")
   ========================================================================== */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.bento-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 1.25rem;
  background: var(--card);
  transition: border-color .3s, transform .4s var(--ease-out), box-shadow .3s;
}
.bento-card:hover { border-color: color-mix(in oklab, var(--primary) 35%, var(--border)); box-shadow: var(--shadow); }
.bento-card:hover .icon-tile { transform: scale(1.06); }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.small { padding: 1.5rem; gap: .75rem; }
.bento-card.small h3 { margin-top: .4rem; }
.bento-body { padding: 1.5rem; display: grid; gap: .65rem; align-content: start; position: relative; z-index: 1; }
.bento-card h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.bento-card p { color: var(--muted-foreground); font-size: .93rem; }

.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(340px circle at var(--spot-x, 50%) var(--spot-y, 50%), color-mix(in oklab, var(--brand) 14%, transparent), transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.tags li { padding: .2rem .65rem; border-radius: 999px; border: 1px solid var(--border); background: var(--background); font-size: .75rem; color: var(--muted-foreground); }

.bento-visual {
  position: relative; height: 12.5rem; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 120%, color-mix(in oklab, var(--brand) 12%, transparent), transparent 70%),
    var(--background);
}
.bento-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* docs visual */
.visual-docs { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.5rem; }
.mini-docs { display: grid; gap: .5rem; z-index: 1; }
.mini-doc {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .8rem; border-radius: .6rem;
  border: 1px solid var(--border); background: var(--card);
  font-size: .78rem; font-family: var(--font-mono);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.mini-doc:nth-child(2) { animation-delay: -2s; transform: translateX(14px); }
.mini-doc:nth-child(3) { animation-delay: -4s; }
.mini-doc .icon { color: var(--primary); }
.flow-arrow { position: relative; width: 5rem; height: 2px; background: var(--border); z-index: 1; overflow: hidden; border-radius: 2px; }
.flow-arrow span { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--brand-via), transparent); animation: flow 1.8s linear infinite; }
.mini-json {
  z-index: 1; display: grid; gap: .2rem;
  padding: .9rem 1.1rem; border-radius: .8rem;
  border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
  background: var(--card); font-size: .78rem;
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--brand) 50%, transparent);
}
.mini-json b { font-weight: 500; color: var(--primary); }
.mini-json em { font-style: normal; color: var(--success); }

/* industrial visual */
.visual-industrial svg { position: absolute; inset: 1.5rem 0 0 0; width: 100%; height: calc(100% - 1.5rem); z-index: 1; }
.spark-line { fill: none; stroke: var(--brand-via); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 4s var(--ease-out) forwards infinite; }
.anomaly { fill: oklch(0.65 0.22 25); }
.anomaly-ring { fill: none; stroke: oklch(0.65 0.22 25); stroke-width: 1.5; transform-origin: 200px 22px; animation: ping 1.8s ease-out infinite; }
.anomaly-label {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  padding: .2rem .5rem; border-radius: .4rem; font-size: .68rem;
  background: color-mix(in oklab, oklch(0.65 0.22 25) 14%, var(--card)); color: oklch(0.65 0.22 25);
  border: 1px solid color-mix(in oklab, oklch(0.65 0.22 25) 30%, transparent);
}

/* orbit visual (Velora "Orbiting Circles") */
.visual-orbit { display: grid; place-items: center; }
.orbit-center {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to)); color: #fff;
  box-shadow: 0 0 40px color-mix(in oklab, var(--brand) 55%, transparent);
}
.orbit-center .icon { width: 1.5rem; height: 1.5rem; }
.orbit-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); translate: -50% -50%; border-radius: 999px; border: 1px dashed var(--border); z-index: 1; }
.orbit-item {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center; width: 2rem; height: 2rem; margin: -1rem 0 0 -1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground);
  animation: orbit calc(var(--duration) * 1s) linear infinite;
}
.orbit-item .icon { width: .9rem; height: .9rem; }

/* apps visual */
.visual-apps { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; padding: 1.5rem 1.5rem 0; }
.browser { position: relative; z-index: 1; width: min(30rem, 72%); border: 1px solid var(--border); border-bottom: 0; border-radius: .8rem .8rem 0 0; background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: .3rem; padding: .45rem .6rem; border-bottom: 1px solid var(--border); }
.browser-bar i { width: .45rem; height: .45rem; border-radius: 999px; background: var(--muted); }
.browser-bar span { margin-left: .5rem; padding: .1rem .5rem; border-radius: .3rem; background: var(--muted); font-size: .6rem; color: var(--muted-foreground); }
.browser-body { display: flex; height: 8.6rem; }
.browser-body aside { width: 18%; padding: .6rem; display: grid; gap: .4rem; align-content: start; border-right: 1px solid var(--border); }
.browser-body aside span { height: .35rem; border-radius: 999px; background: var(--muted); }
.browser-body aside span:first-child { background: color-mix(in oklab, var(--primary) 50%, transparent); }
.dash { flex: 1; padding: .6rem; display: flex; flex-direction: column; gap: .6rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.kpis span { padding: .35rem .45rem; border-radius: .4rem; border: 1px solid var(--border); font-size: .55rem; color: var(--muted-foreground); display: grid; }
.kpis b { font-size: .8rem; color: var(--foreground); font-weight: 600; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: .35rem; }
.bars i { flex: 1; height: var(--h); border-radius: .25rem .25rem 0 0; background: linear-gradient(180deg, var(--brand-via), color-mix(in oklab, var(--brand) 30%, transparent)); transform-origin: bottom; animation: grow 1.2s var(--ease-out) both; }
.bars i:nth-child(2n) { animation-delay: .1s; } .bars i:nth-child(3n) { animation-delay: .2s; }
.phone { position: relative; z-index: 1; width: 8.5rem; height: 11rem; padding: 1.4rem .5rem 0; border: 1px solid var(--border); border-bottom: 0; border-radius: 1.2rem 1.2rem 0 0; background: var(--card); box-shadow: var(--shadow); display: grid; gap: .4rem; align-content: start; }
.phone-notch { position: absolute; top: .45rem; left: 50%; translate: -50% 0; width: 2.6rem; height: .45rem; border-radius: 999px; background: var(--muted); }
.phone-card { display: flex; align-items: center; gap: .35rem; padding: .4rem .45rem; border-radius: .5rem; border: 1px solid var(--border); font-size: .55rem; line-height: 1.25; animation: slide-up .6s var(--ease-out) both; }
.phone-card:nth-child(3) { animation-delay: .15s; } .phone-card:nth-child(4) { animation-delay: .3s; }
.phone-card .icon { width: .7rem; height: .7rem; color: var(--primary); }
.phone-card.accent { background: color-mix(in oklab, var(--success) 10%, var(--card)); }
.phone-card.accent .icon { color: var(--success); }

/* ==========================================================================
   Beam diagram (Velora "Animated Beam")
   ========================================================================== */

.beam-diagram { position: relative; margin: 3.5rem auto 0; max-width: 62rem; aspect-ratio: 1000 / 420; }
.beam-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.beam-paths path { fill: none; stroke: var(--border); stroke-width: 2; vector-effect: non-scaling-stroke; }
.beam-flows path {
  fill: none; stroke: var(--brand-via); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 90 600; stroke-dashoffset: 90;
  animation: beam-flow 3.2s linear infinite; animation-delay: var(--delay);
}
.beam-flows path { filter: drop-shadow(0 0 4px var(--brand-via)); }

.beam-node, .beam-hub { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; z-index: 1; }
.beam-node {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .9rem .55rem .6rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  font-size: .82rem; font-weight: 500; white-space: nowrap;
  box-shadow: var(--shadow);
}
.beam-node .icon { width: 1.8rem; height: 1.8rem; padding: .4rem; border-radius: 999px; background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary); }
.beam-hub { display: grid; justify-items: center; gap: .6rem; }
.beam-hub .logo-mark { width: 6rem; height: 6rem; margin: -.75rem; position: relative; z-index: 1; }
.hub-ring { position: absolute; top: 2.25rem; left: 50%; width: 4.5rem; height: 4.5rem; translate: -50% -50%; border-radius: 999px; border: 1px solid var(--brand-via); animation: ripple-ring 3s ease-out infinite; }
.hub-label { font-size: .8rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; background: var(--card); border: 1px solid var(--border); white-space: nowrap; }

/* ==========================================================================
   Tabs (Velora "Animated Tabs")
   ========================================================================== */

.tabs { margin-top: 4rem; }
.tab-list {
  position: relative; display: flex; gap: .25rem; width: fit-content; max-width: 100%; margin-inline: auto;
  padding: .3rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  overflow-x: auto; scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1rem; border: 0; border-radius: 999px; background: transparent;
  font-size: .87rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; cursor: pointer;
  transition: color .25s;
}
.tab-list button[aria-selected="true"] { color: var(--background); }
.tab-indicator {
  position: absolute; z-index: 0; top: .3rem; bottom: .3rem; left: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: 999px; background: var(--foreground);
  transition: transform .45s var(--ease-out), width .45s var(--ease-out);
}
.tab-panel {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center;
  margin-top: 2rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border); border-radius: 1.25rem; background: var(--card);
  animation: fade-up .5s var(--ease-out);
}
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.45rem; }
.tab-panel > div:first-child > p { margin-top: .75rem; color: var(--muted-foreground); }

.checklist { display: grid; gap: .6rem; margin-top: 1.25rem; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; }
.checklist .icon { margin-top: .2rem; width: 1.1rem; height: 1.1rem; padding: .15rem; border-radius: 999px; background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); stroke-width: 3; }

.outcome-card {
  padding: 1.5rem; border-radius: 1rem;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 100% 0%, color-mix(in oklab, var(--brand) 14%, transparent), transparent 60%), var(--background);
}
.outcome-card .mono { font-size: .75rem; }
.outcome-num { margin: .4rem 0 .5rem; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
.outcome-card p:last-child { color: var(--muted-foreground); font-size: .92rem; }

/* ==========================================================================
   Process steps (Velora "Features Steps" + "Tracing Beam")
   ========================================================================== */

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 2.85rem; left: 2rem; right: 2rem; height: 1px;
  background: var(--border);
}
.steps::after {
  content: ""; position: absolute; top: 2.85rem; left: 2rem; height: 1px;
  width: calc((100% - 4rem) * var(--trace, 0));
  background: linear-gradient(90deg, var(--brand-from), var(--brand-via), var(--brand-to));
  box-shadow: 0 0 10px var(--brand-via);
  transition: width .2s linear;
}
.step {
  position: relative; display: grid; gap: .6rem; align-content: start;
  padding: 1.5rem; border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.step:hover { border-color: color-mix(in oklab, var(--primary) 35%, var(--border)); transform: translateY(-4px); }
.step .icon-tile { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--card); background: color-mix(in oklab, var(--primary) 14%, var(--card)); }
.step-num { position: absolute; top: 1.4rem; right: 1.5rem; font-size: .8rem; color: var(--muted-foreground); }
.step h3 { margin-top: .5rem; font-size: 1.15rem; }
.step p { color: var(--muted-foreground); font-size: .92rem; }
.step-time { margin-top: .4rem; width: fit-content; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--border); font-size: .72rem; color: var(--muted-foreground); }

/* ==========================================================================
   Expertise
   ========================================================================== */

.expertise-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; align-items: stretch; }
.founder { padding: clamp(1.75rem, 4vw, 2.75rem); overflow: hidden; }
.founder > p:not(.eyebrow) { margin-top: 1rem; color: var(--muted-foreground); }
.founder strong, .founder em { color: var(--foreground); }
.founder-facts { display: grid; gap: .75rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.founder-facts li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; font-size: .92rem; color: var(--muted-foreground); }
.founder-facts .mono { font-size: 1.1rem; font-weight: 500; color: var(--primary); }

.pubs { display: grid; gap: .75rem; }
.pub-card {
  position: relative; overflow: hidden;
  padding: 1.25rem 1.4rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.pub-card:hover { border-color: color-mix(in oklab, var(--primary) 35%, var(--border)); transform: translateX(4px); }
.pub-card h3 { margin-top: .5rem; font-size: 1rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.pub-venue { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .72rem; color: var(--primary); }
.pub-venue .icon { width: .85rem; height: .85rem; }
.pub-card.featured { border-color: color-mix(in oklab, var(--primary) 40%, var(--border)); background: radial-gradient(ellipse at 0% 0%, color-mix(in oklab, var(--brand) 12%, transparent), transparent 60%), var(--card); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.principle { display: flex; gap: 1rem; align-items: flex-start; }
.principle h3 { font-size: 1rem; }
.principle p { margin-top: .3rem; font-size: .9rem; color: var(--muted-foreground); }
.principle .icon-tile { flex-shrink: 0; }

/* ==========================================================================
   FAQ (Velora "FAQ Two Column" + accordion)
   ========================================================================== */

.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-grid .section-heading { position: sticky; top: 7rem; }
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.02rem;
  transition: color .2s;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { color: var(--primary); }
.accordion-item summary .icon { width: 1.1rem; height: 1.1rem; color: var(--muted-foreground); transition: transform .3s var(--ease-out); }
.accordion-item[open] summary .icon { transform: rotate(45deg); color: var(--primary); }
.accordion-content { padding: 0 2rem 1.35rem 0; color: var(--muted-foreground); }
.accordion-item[open] .accordion-content { animation: fade-up .35s var(--ease-out); }

/* ==========================================================================
   CTA + contact form
   ========================================================================== */

.cta-section { overflow: hidden; }
.cta-section .aurora { -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent); }
.cta-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 5vw, 3.5rem); overflow: hidden;
}
.cta-copy .lead { margin-top: 1rem; }

.contact-form { display: grid; gap: 1rem; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .9rem;
  border: 1px solid var(--input); border-radius: .7rem;
  background: var(--background); color: var(--foreground);
  font: inherit; font-weight: 400; font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 20%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; text-align: center; }
.form-alert { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: .7rem; font-size: .9rem; }
.form-alert.success { background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
.form-alert.error { background: color-mix(in oklab, oklch(0.65 0.22 25) 14%, transparent); color: oklch(0.65 0.22 25); }

/* ==========================================================================
   Footer (Velora "Footer Wordmark")
   ========================================================================== */

.site-footer { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--border); }
.footer-glow { position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; background: radial-gradient(ellipse at 50% 100%, color-mix(in oklab, var(--brand) 13%, transparent), transparent 70%); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: end; }
.footer-statement { max-width: 28rem; }
.footer-lead { margin-top: 1.5rem; font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.footer-statement .muted { margin-top: .9rem; }
.footer-email { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.4rem; font-weight: 500; transition: color .2s; }
.footer-email:hover { color: var(--primary); }
.footer-email .icon { transition: transform .2s; }
.footer-email:hover .icon { transform: translate(2px, -2px); }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 4rem; }
.footer-nav h3 { font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-nav ul { display: grid; gap: .6rem; font-size: .9rem; }
.footer-nav a { color: var(--muted-foreground); transition: color .2s; }
.footer-nav a:hover { color: var(--foreground); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted-foreground); }
.social { display: flex; gap: .25rem; }
.social a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; transition: background-color .2s, color .2s; }
.social a:hover { background: var(--muted); color: var(--foreground); }

.wordmark { max-width: 80rem; margin: 1rem auto -2%; padding-inline: clamp(1rem, 4vw, 2rem); }
.wordmark svg { width: 100%; height: auto; overflow: visible; }
.wordmark text { font-family: var(--font-sans); font-size: 210px; font-weight: 800; letter-spacing: -0.05em; fill: transparent; stroke-width: 1.2; }
.wordmark-outline { stroke: var(--border); }
.dark .wordmark-outline { stroke: oklch(1 0 0 / 14%); }
.wordmark-fill { stroke-width: 1.6 !important; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-main { padding: 9rem 0 6rem; min-height: 70vh; }
.prose-wrap { max-width: 48rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; }
.entry-card { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.entry-card h2 { font-size: 1.4rem; }
.entry-card h2 a:hover { color: var(--primary); }
.prose { color: var(--muted-foreground); line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { color: var(--foreground); margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.25rem; }

/* ==========================================================================
   Reveal on scroll (Velora "Blur Fade")
   ========================================================================== */

.js [data-reveal] {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), filter .7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   Keyframes (from Velora globals.css)
   ========================================================================== */

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--gap))); } }
@keyframes shimmer { from { background-position: 200% 0, 0 0; } to { background-position: -200% 0, 0 0; } }
@keyframes orbit {
  0% { transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--r) * -1px)) rotate(calc(var(--angle) * -1deg)); }
  100% { transform: rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--r) * -1px)) rotate(calc((var(--angle) * 1deg + 360deg) * -1)); }
}
@keyframes aurora-1 { 0% { transform: translate(-10%, -12%) scale(1); } 50% { transform: translate(12%, 8%) scale(1.25); } 100% { transform: translate(-6%, 14%) scale(.95); } }
@keyframes aurora-2 { 0% { transform: translate(12%, 10%) scale(1.1); } 50% { transform: translate(-14%, -6%) scale(.9); } 100% { transform: translate(8%, -12%) scale(1.2); } }
@keyframes aurora-3 { 0% { transform: translate(0%, 16%) scale(.95); } 50% { transform: translate(10%, -10%) scale(1.15); } 100% { transform: translate(-12%, 4%) scale(1); } }
@keyframes meteor { 0% { transform: rotate(215deg) translateX(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotate(215deg) translateX(-700px); opacity: 0; } }
@keyframes ripple-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes border-beam { to { offset-distance: 100%; } }
@keyframes beam-flow { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -600; } }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(17rem); } }
@keyframes highlight { 0%, 30% { background: var(--muted); box-shadow: none; } 40%, 85% { background: color-mix(in oklab, var(--brand) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); } 100% { background: var(--muted); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes draw { 0% { stroke-dashoffset: 600; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 40rem; margin-top: 1rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card.small:last-child { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before, .steps::after { display: none; }
  .expertise-grid, .faq-grid, .cta-card { grid-template-columns: 1fr; }
  .faq-grid .section-heading { position: static; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2, .bento-card.small:last-child { grid-column: auto; }
  .visual-docs .flow-arrow { width: 2rem; }
  .visual-apps .phone { display: none; }
  .browser { width: 100%; }
  .tab-panel { grid-template-columns: 1fr; }
  .tab-list { margin-inline: 0; }
  .principles { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { gap: 2.5rem; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .beam-node span { display: none; }
  .beam-node { padding: .35rem; }
  .beam-hub .logo-mark { width: 4rem; height: 4rem; margin: -.5rem; }
  .hub-ring { width: 3rem; height: 3rem; }
  .hub-ring { top: 1.5rem; }
  .hub-label { font-size: .7rem; }
  .chip-a { right: .25rem; }
  .chip-b { left: .25rem; bottom: -2.6rem; }
  .hero-visual { margin-bottom: 1.5rem; }
}

@media (max-width: 560px) {
  .doc-demo-body { grid-template-columns: 1fr; }
  .doc-page { min-height: 0; }
  .doc-page .doc-table, .doc-page .doc-sign { display: none; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .visual-docs { gap: .75rem; padding: 1rem; }
  .mini-doc { font-size: .68rem; }
  .mini-json { font-size: .68rem; padding: .7rem; }
  .founder-facts li { grid-template-columns: 1fr; gap: .1rem; }
}

/* ==========================================================================
   Reduced motion — every component respects it, as in Velora
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .aurora span, .meteors, .border-beam, .scan-line, .hub-ring, .anomaly-ring { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .extract-list li { opacity: 1; transform: none; }
  .spark-line { stroke-dashoffset: 0; }
}
