/* ============================================================
   VENTURI CREATIVE — Design System
   Neutral / architectural dark palette, single blue accent
   pulled from the mark (#0081EC).
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #08080A;
  --bg-1:          #0D0D10;
  --bg-2:          #131317;
  --bg-3:          #191920;
  --bg-glass:      rgba(13, 13, 16, 0.72);

  /* Hairlines */
  --line:          rgba(255, 255, 255, 0.07);
  --line-2:        rgba(255, 255, 255, 0.12);
  --line-3:        rgba(255, 255, 255, 0.20);

  /* Type */
  --fg:            #F2F2F4;
  --fg-1:          #B4B4BC;
  --fg-2:          #7E7E8A;
  --fg-3:          #55555F;

  /* Accent */
  --accent:        #0081EC;
  --accent-lift:   #2E9BFF;
  --accent-deep:   #0059A6;
  --accent-soft:   rgba(0, 129, 236, 0.14);
  --accent-line:   rgba(0, 129, 236, 0.38);

  /* Feedback */
  --danger:        #FF5A5A;
  --ok:            #34D07F;

  /* Geometry */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 48px);
  --max:    1240px;
  --max-narrow: 780px;
  --section-y: clamp(80px, 11vw, 160px);

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur:   0.55s;
  --dur-fast: 0.28s;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 18px 40px -18px rgba(0,0,0,.75);
  --shadow-lg: 0 40px 90px -34px rgba(0,0,0,.9);
  --glow: 0 0 0 1px var(--accent-line), 0 18px 50px -18px rgba(0,129,236,.55);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv02" 1, "cv03" 1, "cv04" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-lift);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Custom scrollbar (desktop) */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb {
    background: #2A2A33; border-radius: 99px;
    border: 3px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover { background: #3A3A46; }
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.65rem, 7.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); letter-spacing: -0.042em; }
.h2 { font-size: clamp(1.85rem, 4.1vw, 3rem); letter-spacing: -0.038em; }
.h3 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); letter-spacing: -0.028em; line-height: 1.18; }
.h4 { font-size: 1.075rem; letter-spacing: -0.02em; line-height: 1.3; font-weight: 500; }

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.62;
  color: var(--fg-1);
  text-wrap: pretty;
}

.body   { color: var(--fg-1); text-wrap: pretty; }
.muted  { color: var(--fg-2); }
.tiny   { font-size: 0.8125rem; line-height: 1.55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.eyebrow.is-centered::after {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

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

.grad-text {
  background: linear-gradient(180deg, #FFFFFF 8%, #9FA0AB 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section.is-flush-top    { padding-top: 0; }
.section.is-tight-bottom { padding-bottom: clamp(48px, 6vw, 84px); }
.section-head { max-width: 700px; margin-bottom: clamp(40px, 5.5vw, 68px); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 18px; }
.section-head .lead { margin-top: 20px; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
  border: 0;
}

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 5. Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient::before {
  /* fine architectural grid */
  content: "";
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.orb-a {
  width: 46vw; height: 46vw; min-width: 420px; min-height: 420px;
  top: -18vw; left: 50%;
  background: radial-gradient(circle, rgba(0,129,236,.34), transparent 66%);
  animation: drift-a 22s var(--ease-in-out) infinite alternate;
}
.orb-b {
  width: 38vw; height: 38vw; min-width: 340px; min-height: 340px;
  top: 22vh; left: -12vw;
  background: radial-gradient(circle, rgba(120,130,170,.16), transparent 66%);
  animation: drift-b 28s var(--ease-in-out) infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(-55%, 0) scale(1); }
  to   { transform: translate(-40%, 6vh) scale(1.14); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vw, -8vh) scale(1.1); }
}

/* grain */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

/* ---------- 6. Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-lift));
  box-shadow: 0 0 14px rgba(0,129,236,.7);
}

/* ---------- 7. Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease,
              backdrop-filter var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -24px rgba(0,0,0,.9);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
  transition: height var(--dur-fast) ease;
}
.nav.is-stuck .nav-inner { height: 64px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand img {
  width: 36px; height: 36px; border-radius: 50%;
  transition: transform var(--dur) var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.5625rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3);
}

/* centered 3-link cluster */
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.028);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-links a {
  position: relative;
  padding: 8px 17px;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--fg-1);
  border-radius: var(--r-pill);
  transition: color var(--dur-fast) ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.is-active { color: var(--fg); }
.nav-pill {
  position: absolute; z-index: -1;
  top: 5px; left: 0; width: 0; height: calc(100% - 10px);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.075);
  border: 1px solid var(--line);
  opacity: 0;
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease), opacity var(--dur-fast) ease;
}
.nav-links.is-ready .nav-pill { opacity: 1; }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* mobile toggle */
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.nav-burger:hover { background: rgba(255,255,255,.05); }
.nav-burger span {
  display: block; position: relative;
  width: 17px; height: 1.5px; background: var(--fg); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) ease;
}
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0;
  width: 17px; height: 1.5px; background: var(--fg); border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), top var(--dur-fast) var(--ease);
}
.nav-burger span::before { top: -5.5px; }
.nav-burger span::after  { top: 5.5px; }
.nav-burger.is-open span { background: transparent; }
.nav-burger.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.nav-mobile {
  position: fixed; inset: 0 0 auto 0; top: 0; z-index: 110;
  padding: 96px var(--gutter) 32px;
  background: rgba(8,8,10,.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-102%);
  transition: transform var(--dur) var(--ease);
  visibility: hidden;
}
.nav-mobile.is-open { transform: translateY(0); visibility: visible; }
/* :not(.btn) so the drawer's call-to-action keeps its own button styling */
.nav-mobile a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px;
  font-size: 1.4rem; letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
  color: var(--fg-1);
  transition: color var(--dur-fast) ease, padding-left var(--dur-fast) ease;
}
.nav-mobile a:not(.btn):hover,
.nav-mobile a:not(.btn).is-active { color: var(--fg); padding-left: 8px; }
.nav-mobile a:not(.btn) span { color: var(--fg-3); font-size: .75rem; letter-spacing: .1em; }
.nav-mobile .btn { margin-top: 28px; width: 100%; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-label-full { display: none; }
}
@media (max-width: 620px) {
  .nav-burger { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .brand-sub { display: none; }
}

/* ---------- 8. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: -0.012em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease;
}
.btn:active { transform: scale(.965); }
.btn svg { flex: 0 0 auto; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* primary */
.btn-primary {
  background: linear-gradient(180deg, var(--accent-lift), var(--accent));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset,
              0 12px 30px -12px rgba(0,129,236,.75);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset,
              0 18px 42px -12px rgba(0,129,236,.95);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(.965); }
/* shine sweep */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.42) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }

/* secondary / ghost */
.btn-ghost {
  background: rgba(255,255,255,.045);
  border-color: var(--line-2);
  color: var(--fg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.085);
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0) scale(.965); }

.btn-quiet { color: var(--fg-1); padding-inline: 14px; }
.btn-quiet:hover { color: var(--fg); background: rgba(255,255,255,.05); }

.btn-lg { padding: 16px 30px; font-size: 0.975rem; }
.btn-block { width: 100%; }

/* click ripple */
.ripple {
  position: absolute; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255,255,255,.42);
  pointer-events: none; z-index: -1;
  animation: ripple .62s var(--ease-out) forwards;
}
.btn-ghost .ripple, .btn-quiet .ripple { background: rgba(255,255,255,.16); }
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* text link with animated underline */
.link {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--fg); font-weight: 450; font-size: .9rem;
  padding-bottom: 3px;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform var(--dur) var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.link svg { transition: transform var(--dur) var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- 9. Badge / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem; color: var(--fg-1);
  letter-spacing: -0.005em;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52,208,127,.65);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,208,127,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(52,208,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,208,127,0); }
}

.chip {
  display: inline-block;
  padding: 5px 11px;
  font-size: .72rem; letter-spacing: .02em;
  color: var(--fg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.03);
}

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
/* cursor-following sheen — paints above the card background, below its text */
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(0,129,236,.16), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  color: var(--accent-lift);
  margin-bottom: 22px;
}
.card .h4 { margin-bottom: 10px; }
.card p { font-size: .9375rem; color: var(--fg-1); }

.card-num {
  font-size: .72rem; letter-spacing: .18em; color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

/* ---------- 11. Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 26px;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 56px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .875rem; color: var(--fg-2);
  white-space: nowrap;
}
.marquee-item strong { color: var(--fg); font-weight: 550; }
.marquee-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 12. Stats ---------- */
.stat { padding: 4px 0; }
.stat-num {
  display: block;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFFFFF, #8E8F9A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  display: block; margin-top: 12px;
  font-size: .8125rem; color: var(--fg-2);
  letter-spacing: -0.005em;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
}
.stat-strip > * + * { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > * + * { border-left: 0; padding-left: 0; }
}

/* ---------- 14b. Demo gallery (live scaled previews) ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.028);
  width: fit-content;
}
.filter {
  padding: 9px 18px;
  font-size: .85rem; font-weight: 450;
  color: var(--fg-1);
  border-radius: var(--r-pill);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.filter:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.filter.is-on {
  color: var(--fg);
  background: rgba(255,255,255,.085);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.filter span { color: var(--fg-3); font-variant-numeric: tabular-nums; margin-left: 6px; }

.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.gal.gal-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .gal.gal-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .gal, .gal.gal-3 { grid-template-columns: 1fr; } }

.gal-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.gal-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: 0 40px 80px -44px rgba(0,0,0,.95);
}
.gal-card.is-hidden { display: none; }

/* fake browser chrome */
.gal-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.gal-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #2E2E38; }
.gal-chrome b {
  flex: 1; margin-left: 8px; padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.05);
  font-size: .7rem; font-weight: 400; color: var(--fg-3);
  text-align: center; letter-spacing: .01em;
}

/* the live preview */
.gal-view {
  position: relative;
  aspect-ratio: 128 / 86;
  overflow: hidden;
  background: #0F0F13;
}
.gal-view iframe {
  position: absolute; top: 0; left: 0;
  width: 1280px; height: 860px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(.36);          /* JS refines this to the exact card width */
  pointer-events: none;           /* the whole card is the click target */
}
.gal-view::after {                /* hover veil + prompt */
  content: "Open the full demo →";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(8,8,10,.35), rgba(8,8,10,.75));
  color: var(--fg);
  font-size: .9rem; font-weight: 500; letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.gal-card:hover .gal-view::after,
.gal-card:focus-visible .gal-view::after { opacity: 1; }

.gal-body { padding: clamp(20px, 2.2vw, 26px); display: grid; gap: 12px; }
.gal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.gal-body p { font-size: .9rem; color: var(--fg-1); }
.gal-tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* fallback when iframes can't load (e.g. opened via file://) */
.gal-fallback {
  position: absolute; inset: 0;
  display: none; place-items: center;
  padding: 24px; text-align: center;
  font-size: .82rem; color: var(--fg-2);
}
.no-frames .gal-view iframe { display: none; }
.no-frames .gal-fallback { display: grid; }
.no-frames .gal-view::after { content: "Open the full demo →"; }

/* ---------- 15. Process ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding-block: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { background: rgba(255,255,255,.018); }
.step-idx {
  font-size: .78rem; letter-spacing: .16em; color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: flex-start; gap: 10px;
}
.step-idx::after {
  content: ""; width: 24px; height: 1px; margin-top: .62em;
  background: var(--line-2);
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.step:hover .step-idx::after { width: 40px; background: var(--accent); }
.step-body { display: grid; gap: 10px; max-width: 62ch; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- 16. Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { display: grid; gap: 13px; margin-top: 26px; }
.checklist li {
  display: grid; grid-template-columns: 20px 1fr; gap: 13px;
  align-items: start;
  font-size: .9375rem; color: var(--fg-1);
}
.checklist svg { margin-top: 4px; color: var(--accent-lift); }

/* before / after */
.ba {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}
.ba-col {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.018);
}
.ba-col.is-after {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(0,129,236,.09), rgba(0,129,236,.02));
  box-shadow: 0 24px 60px -30px rgba(0,129,236,.5);
}
.ba-label {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 18px; display: block;
}
.ba-col.is-after .ba-label { color: var(--accent-lift); }
.ba-list { display: grid; gap: 11px; }
.ba-list li {
  display: grid; grid-template-columns: 16px 1fr; gap: 11px;
  font-size: .9rem; color: var(--fg-1); align-items: start;
}
.ba-list li svg { margin-top: 4px; }
.ba-col:not(.is-after) .ba-list svg { color: var(--fg-3); }
.ba-col.is-after .ba-list svg { color: var(--ok); }
.ba-arrow {
  display: grid; place-items: center;
  color: var(--fg-3);
}
@media (max-width: 780px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); padding-block: 4px; }
}

/* ---------- 17. Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; text-align: left;
  padding: 24px 4px;
  font-size: 1.0125rem; font-weight: 450; letter-spacing: -0.02em;
  color: var(--fg-1);
  transition: color var(--dur-fast) ease;
}
.acc-btn:hover { color: var(--fg); }
.acc-item.is-open .acc-btn { color: var(--fg); }
.acc-sign {
  position: relative; flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.acc-sign::before, .acc-sign::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-fast) ease;
}
.acc-sign::before { width: 9px; height: 1.5px; }
.acc-sign::after  { width: 1.5px; height: 9px; }
.acc-item.is-open .acc-sign { transform: rotate(180deg); border-color: var(--accent-line); }
.acc-item.is-open .acc-sign::after { opacity: 0; }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p {
  padding: 0 4px 26px; max-width: 68ch;
  font-size: .9375rem; color: var(--fg-1);
}

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(44px, 6.5vw, 88px) clamp(24px, 5vw, 72px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(0,129,236,.20), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.008));
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000, transparent);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 32px;
}

/* ---------- 19. Forms ---------- */
.form-shell {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }

.form-card {
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: 9px; margin-bottom: 20px; position: relative; }
.field label {
  font-size: .8125rem; font-weight: 450; color: var(--fg-1);
  display: flex; align-items: center; gap: 7px;
}
.field label .req { color: var(--accent-lift); }
.field .opt { color: var(--fg-3); font-size: .75rem; margin-left: auto; }

.input, .textarea, select.input {
  width: 100%;
  padding: 14px 16px;
  font-size: .9375rem;
  color: var(--fg);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,129,236,.06);
  box-shadow: 0 0 0 4px rgba(0,129,236,.14);
}
.textarea { resize: vertical; min-height: 128px; line-height: 1.6; }

.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .input:focus, .field.has-error .textarea:focus {
  box-shadow: 0 0 0 4px rgba(255,90,90,.14);
}
.err {
  font-size: .78rem; color: var(--danger);
  display: none; align-items: center; gap: 6px;
}
.field.has-error .err { display: flex; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 18px; font-size: .78rem; color: var(--fg-3);
}
.form-note svg { flex: 0 0 auto; margin-top: 2px; }

/* success state */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(30px, 5vw, 56px) clamp(20px, 3vw, 34px);
}
.form-card.is-sent .form-success { display: block; animation: pop-in .6s var(--ease-out) both; }
.form-card.is-sent form { display: none; }
.success-ring {
  width: 66px; height: 66px; margin: 0 auto 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ok);
  border: 1px solid rgba(52,208,127,.4);
  background: rgba(52,208,127,.09);
}
.success-ring svg { animation: draw .7s var(--ease-out) .18s both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes draw { from { opacity: 0; transform: scale(.5); } }

.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn-txt { opacity: .5; }
.spinner {
  display: none;
  width: 15px; height: 15px;
  border: 1.8px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* contact sidebar */
.aside-card {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.022);
}
.aside-card + .aside-card { margin-top: 16px; }
.tl { display: grid; gap: 20px; margin-top: 20px; }
.tl li {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px;
  position: relative;
}
.tl li:not(:last-child)::before {
  content: ""; position: absolute; left: 12.5px; top: 28px; bottom: -20px;
  width: 1px; background: var(--line-2);
}
.tl-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .7rem; color: var(--accent-lift);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  position: relative; z-index: 1;
}
.tl-body strong { display: block; font-size: .9rem; font-weight: 500; }
.tl-body span { font-size: .82rem; color: var(--fg-2); }

/* ---------- 20. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 76px) 32px;
  margin-top: clamp(60px, 8vw, 110px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 18px; font-weight: 500;
}
.footer-links { display: grid; gap: 11px; }
.footer-links a {
  font-size: .9rem; color: var(--fg-1);
  transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease);
  width: fit-content;
}
.footer-links a:hover { color: var(--fg); transform: translateX(3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  margin-top: clamp(38px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--fg-3);
}

/* ---------- 21. Page header (inner pages) ---------- */
.page-head {
  padding-top: clamp(130px, 15vw, 190px);
  padding-bottom: clamp(40px, 6vw, 76px);
}
.breadcrumb {
  display: flex; align-items: center; gap: 9px;
  font-size: .78rem; color: var(--fg-3); margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--fg-1); }

/* ---------- 22. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .85s var(--ease-out) var(--d, 0s),
    transform .85s var(--ease-out) var(--d, 0s),
    filter .85s var(--ease-out) var(--d, 0s);
  filter: blur(6px);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(.965); }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* hero staged entrance */
.stage > * {
  opacity: 0;
  transform: translateY(22px);
  animation: rise .95s var(--ease-out) both;
}
.stage > *:nth-child(1) { animation-delay: .08s; }
.stage > *:nth-child(2) { animation-delay: .18s; }
.stage > *:nth-child(3) { animation-delay: .28s; }
.stage > *:nth-child(4) { animation-delay: .38s; }
.stage > *:nth-child(5) { animation-delay: .48s; }
.stage > *:nth-child(6) { animation-delay: .58s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 23. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(140px, 17vw, 210px);
  padding-bottom: clamp(60px, 8vw, 100px);
  text-align: center;
}
.hero .display { margin-top: 26px; max-width: 17ch; margin-inline: auto; }
.hero .lead { margin: 26px auto 0; max-width: 60ch; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 38px;
}
.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 22px; margin-top: 34px;
  font-size: .82rem; color: var(--fg-2);
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }

.hero-visual {
  position: relative;
  margin-top: clamp(48px, 7vw, 84px);
  perspective: 1600px;
}
.hero-frame {
  border: 1px solid var(--line-2);
  border-radius: clamp(14px, 1.6vw, 22px);
  background: linear-gradient(180deg, #14141A, #0A0A0E);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
  transform: rotateX(9deg) scale(.985);
  transform-origin: 50% 0;
  transition: transform 1.1s var(--ease);
}
.hero-visual.is-in .hero-frame { transform: rotateX(0deg) scale(1); }
.hero-frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.026);
}
.hero-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2C2C36; }
.hero-frame-bar b {
  flex: 1; max-width: 320px; margin: 0 auto; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,.05);
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 400; color: var(--fg-3); letter-spacing: .02em;
}
.hero-frame-body {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
}
.hero-panel {
  padding: clamp(20px, 3vw, 34px);
  background: #0B0B0F;
  display: grid; gap: 10px; align-content: start;
  position: relative; overflow: hidden;
}
.hero-panel-k {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
}
.hero-panel-v {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500;
  letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-panel-v.is-up { color: var(--ok); }
.hero-panel-s { font-size: .8rem; color: var(--fg-2); }
.spark { margin-top: 8px; height: 34px; width: 100%; overflow: visible; }
.spark path {
  fill: none; stroke: var(--accent-lift); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
}
.hero-visual.is-in .spark path { animation: dash 1.8s var(--ease-out) .5s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@media (max-width: 720px) {
  .hero-frame-body { grid-template-columns: 1fr; }
}

.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 46px;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3);
}
.scroll-cue i {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--line-3), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ""; position: absolute; top: -40px; left: 0;
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { to { top: 40px; } }

/* ---------- 24. Utilities ---------- */
.center { text-align: center; }
.mt-s  { margin-top: 14px; }
.mt-m  { margin-top: 26px; }
.mt-l  { margin-top: 44px; }
.mt-xl { margin-top: clamp(44px, 6vw, 76px); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -200%; left: 16px; z-index: 999;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-size: .875rem;
}
.skip-link:focus { top: 16px; }

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .stage > * { opacity: 1 !important; transform: none !important; }
  .hero-frame { transform: none !important; }
  .spark path { stroke-dashoffset: 0 !important; }
}
