/* ============ Revpipelinez v2 ============ */
:root {
  --bg: #06070a;
  --bg-2: #0b0d12;
  --ink: #f2f4f8;
  --ink-dim: #9aa1ae;
  --acc: #5d7cff;
  --lime: #b9ff3c;
  --border: rgba(242, 244, 248, 0.1);
  --font-d: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-b: 'Satoshi', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: #06070a; }

a { color: inherit; text-decoration: none; }
.mono {
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.acc { color: var(--acc); font-style: normal; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { display: flex; align-items: center; gap: 1.2rem; }
.preloader__logo { width: 52px; height: auto; filter: drop-shadow(0 0 24px rgba(93,124,255,.5)); }
.preloader__count {
  font-family: var(--font-d); font-weight: 700; font-size: 3rem;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.preloader__bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: rgba(242,244,248,.08);
}
.preloader__bar span { display: block; width: 0%; height: 100%; background: var(--lime); }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300; border-radius: 50%; }
.cursor { width: 8px; height: 8px; background: var(--lime); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 36px; height: 36px; border: 1px solid rgba(185,255,60,.55);
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background-color .25s ease;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(185,255,60,.08); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 10% { transform: translate(-5%,-8%) }
  30% { transform: translate(3%,-12%) } 50% { transform: translate(-8%,4%) }
  70% { transform: translate(6%,8%) } 90% { transform: translate(-3%,6%) }
}

/* ---------- Progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 150;
  background: var(--lime); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  transition: background-color .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
.nav.is-scrolled {
  background: rgba(6,7,10,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: .7rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; }
.nav__logo { width: 34px; height: auto; }
.nav__name { font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .85rem; font-weight: 500; color: var(--ink-dim);
  transition: color .2s ease; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--lime); transition: width .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 26px; position: relative; }
.nav__burger span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--ink); transition: transform .3s ease, top .3s ease; }
.nav__burger span:nth-child(1) { top: 8px; } .nav__burger span:nth-child(2) { top: 16px; }
.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.menu__links a { font-family: var(--font-d); font-weight: 600; font-size: 2.2rem; }
.menu__cta { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-b); font-weight: 700; font-size: .92rem;
  padding: .85rem 1.5rem; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; will-change: transform;
}
.btn--accent { background: var(--acc); color: #fff; box-shadow: 0 8px 40px rgba(93,124,255,.35); }
.btn--accent:hover { box-shadow: 0 10px 56px rgba(93,124,255,.55); }
.btn--ghost { border-color: var(--border); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(242,244,248,.35); }
.btn--big { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn__arrow { font-style: normal; transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 8.5rem; overflow: hidden;
}
.hero__orbit {
  position: absolute; right: 3rem; bottom: 3rem; width: 130px; height: 130px; z-index: 3;
  animation: orbitspin 14s linear infinite;
}
.hero__orbit text {
  font-family: var(--font-b); font-weight: 700; font-size: 8.4px;
  letter-spacing: .22em; fill: var(--ink-dim);
}
.hero__orbit .orbit__core { fill: var(--lime); }
@keyframes orbitspin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero__orbit { display: none; } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(242,244,248,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,244,248,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, black 30%, transparent 75%);
}
.hero__meta { position: absolute; top: 6.2rem; }
.hero__meta--tl { left: 2rem; }
.hero__meta--tr { right: 2rem; display: flex; align-items: center; gap: .5rem; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime); display: inline-block;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(185,255,60,.6); }
  100% { box-shadow: 0 0 0 12px rgba(185,255,60,0); }
}
.hero__title {
  position: relative; z-index: 2;
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(3.4rem, 11.5vw, 10.5rem);
  line-height: .95; letter-spacing: -0.015em;
}
.line { display: block; overflow: hidden; }
.line__inner { display: inline-block; will-change: transform; }
.hero__sub { position: relative; z-index: 2; margin-top: 2rem; color: var(--ink-dim); font-size: 1.08rem; }
.hero__sub strong { color: var(--ink); }
.hero__ctas { position: relative; z-index: 2; margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero__scrollbar { width: 1px; height: 42px; background: rgba(242,244,248,.25); position: relative; overflow: hidden; display: block; }
.hero__scrollbar::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--lime); animation: scrolldrop 1.8s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes scrolldrop { 0% { top: -50% } 100% { top: 110% } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; z-index: 3; overflow: hidden;
  background: var(--lime); color: #06070a;
  transform: rotate(-1.2deg) scale(1.02); margin: -1rem 0 0;
  border-top: 1px solid #06070a; border-bottom: 1px solid #06070a;
}
.ticker__track { display: flex; width: max-content; animation: tick 26s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 1.6rem; padding: .8rem 1.6rem .7rem 0; }
.ticker__group span {
  font-family: var(--font-d); font-weight: 600; font-size: 1.15rem; white-space: nowrap;
}
.ticker__group i { font-style: normal; font-size: .8rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Video (lite YouTube embed) ---------- */
.watch { padding: 8rem 2rem 2rem; max-width: 1240px; margin: 0 auto; }
.watch .section-kicker { margin-bottom: 1.2rem; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 22px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2);
  box-shadow: 0 30px 120px rgba(93,124,255,.14);
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, opacity .4s ease; }
.video-frame:hover img { transform: scale(1.03); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(6,7,10,.1), rgba(6,7,10,.55));
  transition: opacity .3s ease;
}
.video-frame__btn {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--lime); color: #06070a;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; padding-left: 6px;
  box-shadow: 0 0 0 0 rgba(185,255,60,.4);
  animation: pulse 2s ease-out infinite;
  transition: transform .3s ease;
}
.video-frame:hover .video-frame__btn { transform: scale(1.12); }
.video-frame__label {
  position: absolute; left: 1.6rem; bottom: 1.3rem;
  font-family: var(--font-d); font-weight: 600; font-size: 1.25rem;
}

/* ---------- Case study pages ---------- */
.case-hero { padding: 11rem 2rem 3rem; max-width: 1240px; margin: 0 auto; }
.case-hero__tags { display: flex; gap: .6rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.case-hero .section-title { max-width: 18ch; }
.case-hero__sub { color: var(--ink-dim); margin-top: 1.6rem; font-size: 1.08rem; max-width: 60ch; }
.case-video { padding: 3rem 2rem 1rem; max-width: 1240px; margin: 0 auto; }
.case-stats { padding: 4rem 2rem 6rem; max-width: 1240px; margin: 0 auto; }
.case-stats .stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.case-cta { text-align: center; padding: 7rem 2rem 9rem; }
.case-cta .btn { margin-top: 2.4rem; }
.case-back { display: inline-flex; gap: .5rem; color: var(--ink-dim); font-weight: 500; margin-bottom: 2rem; transition: color .2s ease; }
.case-back:hover { color: var(--lime); }

/* ---------- Manifesto ---------- */
.manifesto { padding: 11rem 2rem 7rem; max-width: 1100px; margin: 0 auto; }
.manifesto__kicker, .section-kicker { color: var(--lime); margin-bottom: 1.6rem; }
.manifesto__text {
  font-family: var(--font-d); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.25; letter-spacing: -0.01em;
}
.manifesto__text .w { opacity: .13; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat { background: var(--bg); padding: 3.2rem 2rem; }
.stat__num {
  font-family: var(--font-d); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.01em; color: var(--ink); text-transform: none;
  font-variant-numeric: tabular-nums;
}
.stat__num .suffix { color: var(--acc); }
.stat__label { margin-top: .6rem; color: var(--ink-dim); font-size: .92rem; }

/* ---------- Process ---------- */
.process { padding: 10rem 2rem; max-width: 1240px; margin: 0 auto; }
.process__head { margin-bottom: 4rem; }
.section-title {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -0.015em;
}
.process__list { border-top: 1px solid var(--border); }
.prow {
  display: grid; grid-template-columns: 90px 1fr 60px; align-items: center;
  gap: 1.5rem; padding: 2.1rem 1rem; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden; cursor: default;
  transition: background-color .35s ease, padding-left .35s ease;
}
.prow::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--lime); transform: scaleY(0); transform-origin: top;
  transition: transform .35s ease;
}
.prow:hover { background: var(--bg-2); padding-left: 1.6rem; }
.prow:hover::before { transform: scaleY(1); }
.prow__num { color: var(--acc); font-size: .95rem; }
.prow__body h3 { font-family: var(--font-d); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.prow__body p { color: var(--ink-dim); margin-top: .35rem; max-width: 640px; }
.prow__arrow { font-size: 1.5rem; color: var(--ink-dim); opacity: 0; transform: translateX(-10px); transition: all .3s ease; }
.prow:hover .prow__arrow { opacity: 1; transform: translateX(0); color: var(--lime); }

/* ---------- Case studies ---------- */
.cases { position: relative; }
.cases__pin { overflow: hidden; padding: 6rem 0 6rem 2rem; }
.cases__head { max-width: 1240px; margin: 0 auto 3.4rem; padding-right: 2rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cases__hint { color: var(--lime); }
.cases__rail { display: flex; gap: 1.4rem; width: max-content; will-change: transform; }
.cs {
  width: min(480px, 82vw); flex: none;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px;
  padding: 1.8rem 1.8rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.cs:hover {
  border-color: rgba(93,124,255,.5);
  box-shadow: 0 24px 80px rgba(93,124,255,.16);
}
.cs__top { display: flex; gap: .5rem; flex-wrap: wrap; }
.cs__tag { border: 1px solid var(--border); padding: .3rem .7rem; border-radius: 100px; font-size: .62rem; }
.cs__num {
  font-family: var(--font-d); font-weight: 700; font-size: 4.6rem; line-height: 1;
  color: var(--ink); text-transform: none; display: flex; align-items: baseline; gap: .7rem;
}
.cs__plus { font-size: 1.05rem; font-weight: 600; color: var(--lime); }
.cs__title { font-size: 1.12rem; font-weight: 500; color: var(--ink-dim); max-width: 30ch; }
.cs__spark { width: 100%; height: 60px; margin-top: auto; }
.cs__line {
  fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(93,124,255,.6));
}
.cs__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; flex-wrap: wrap; }
.cs__foot .mono { font-size: .62rem; }
.cs__go { font-weight: 700; font-size: .85rem; color: var(--lime); white-space: nowrap; }

/* ---------- Contact ---------- */
.contact { padding: 11rem 2rem 7rem; max-width: 1240px; margin: 0 auto; }
.contact__title {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem); line-height: .95; letter-spacing: -0.015em;
  margin-bottom: 4.5rem;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.cinfo { padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.cinfo__label { color: var(--lime); margin-bottom: .4rem; }
.cinfo a { font-family: var(--font-d); font-weight: 600; font-size: 1.35rem; transition: color .2s ease; }
.cinfo a:hover { color: var(--acc); }
.cinfo__plain { color: var(--ink-dim); }
.cform { display: flex; flex-direction: column; gap: 1.3rem; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.cfield { display: flex; flex-direction: column; gap: .45rem; }
.cfield .mono { font-size: .62rem; color: var(--ink-dim); }
.cfield input, .cfield textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--border);
  padding: .6rem 0; color: var(--ink); font-family: var(--font-b); font-size: 1.02rem;
  outline: none; border-radius: 0; resize: vertical;
  transition: border-color .25s ease;
}
.cfield input:focus, .cfield textarea:focus { border-color: var(--lime); }
.cform__submit { align-self: flex-start; margin-top: .6rem; }
.cform__status { min-height: 1.2em; color: var(--lime); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); overflow: hidden; }
.footer__marquee { padding: 1.4rem 0 .6rem; overflow: hidden; }
.footer__track {
  display: flex; width: max-content; animation: tick 30s linear infinite;
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 8rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(242,244,248,.16);
}
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 2rem 1.8rem; gap: 1rem; flex-wrap: wrap;
}
.footer__bottom a:hover { color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__right .btn { display: none; }
  .hero__meta { display: none; }
  .prow { grid-template-columns: 56px 1fr 30px; padding: 1.6rem .4rem; }
}
@media (max-width: 560px) {
  .cform__row { grid-template-columns: 1fr; }
  .hero__ctas .btn--big { padding: .9rem 1.4rem; font-size: .92rem; }
  .cases__pin { padding-left: 1.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .ticker__track, .footer__track { animation: none; }
  .cursor, .cursor-ring { display: none; }
}
