/* ══════════════════════════════════════════════════════════════════════
   ClientsFlow Digital — v5 "Kinetic Blue"
   Brand: #2A54FF → #06DAFF (logo gradient) · Montserrat display / Inter body
   Contrast law: #1d85ff never carries text on white — buttons use #2a54ff,
   body links #0d52b3, white-on-navy and white-on-gradient are AA-safe.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --deep: #2a54ff;
  --blue: #1d85ff;
  --cyan: #06daff;
  --link: #0d52b3;
  --grad: linear-gradient(135deg, #2a54ff, #06daff);
  --grad-soft: linear-gradient(135deg, #2a54ff 0%, #1d85ff 45%, #06daff 100%);

  --ink: #0b1526;
  --ink-2: #3b4a61;
  --mut: #5c6c85;
  --line: #e3eaf5;
  --soft: #f4f8ff;
  --white: #fff;

  --navy: #080d1a;
  --navy-2: #0e1730;
  --on-dark: #a9bcd8;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 24px 50px -32px rgba(11, 21, 38, .45);
  --shadow-lg: 0 40px 80px -40px rgba(11, 21, 38, .55);
  --wrap: 1200px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100% }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--white);
  line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100% }
ul, ol { list-style: none }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
input, textarea { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--white); color: var(--deep); padding: .7rem 1.1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 12px }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem) }

/* ── type ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: Montserrat, system-ui, sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: -.025em }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem) }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.28rem); letter-spacing: -.015em }
.h2-c { text-align: center; max-width: 20ch; margin-inline: auto }
.on-dark { color: #fff }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }

.eyebrow {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--link); margin-bottom: .9rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: var(--grad) }
.eyebrow-light { color: rgba(255, 255, 255, .92) }
.eyebrow-light::before, .eyebrow-light::after { background: linear-gradient(135deg, #7fc4ff, #06daff) }

.sec-lead { text-align: center; max-width: 62ch; margin: 1rem auto 0; color: var(--mut); font-size: 1.03rem }
.sec-lead.on-dark { color: var(--on-dark) }
.sec-lead-l { text-align: left; margin-inline: 0 }

/* ── buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: Montserrat, sans-serif; font-weight: 700; font-size: .84rem; letter-spacing: .04em;
  padding: 1rem 1.6rem; border-radius: 99px; text-align: center;
  transition: transform .22s, box-shadow .22s, background-color .22s, color .22s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s }
.btn:hover svg { transform: translateX(3px) }
.btn-sm { padding: .72rem 1.2rem; font-size: .78rem }
.btn-block { width: 100%; margin-top: .4rem }

.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(42, 84, 255, .85) }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(42, 84, 255, .9) }
.btn-light { background: #fff; color: var(--deep); box-shadow: 0 16px 34px -16px rgba(4, 12, 40, .6) }
.btn-light:hover { transform: translateY(-2px) }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55) }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px) }
.btn-outline { color: var(--link); border: 1.5px solid var(--line); background: #fff }
.btn-outline:hover { border-color: var(--deep); transform: translateY(-2px) }

/* ── icons ────────────────────────────────────────────────────────── */
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: #eaf2ff; color: var(--deep); margin-bottom: 1rem;
}
.ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.ico-grad { background: var(--grad); color: #fff }

/* ── chips / tags ─────────────────────────────────────────────────── */
.chip {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 99px; background: var(--grad); color: #fff;
}
.chip-soft { background: #eaf2ff; color: var(--link) }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.3rem }
.tags li { font-size: .76rem; font-weight: 500; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: .28rem .68rem; border-radius: 99px }

/* ── sections ─────────────────────────────────────────────────────── */
.sec { position: relative; padding-block: clamp(3.4rem, 7vw, 6rem) }
.sec-soft { background: var(--soft) }
.sec-dark { background: var(--navy); color: #fff; overflow: hidden }
.sec-dark .card p { color: var(--on-dark) }
.sec-dark .glow {
  position: absolute; inset: -40% -10% auto; height: 90%; pointer-events: none;
  background: radial-gradient(45% 55% at 30% 40%, rgba(42, 84, 255, .35), transparent 70%),
              radial-gradient(40% 50% at 72% 25%, rgba(6, 218, 255, .18), transparent 70%);
  filter: blur(20px);
}
.sec-dark .wrap { position: relative; z-index: 1 }

/* ══════════════════ NAV ══════════════════ */
.nav {
  position: sticky; top: 0; z-index: 120; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 21, 38, .07);
}
.nav-in { display: flex; align-items: center; gap: 1rem; min-height: var(--nav-h) }
.nav-logo img { height: 42px; width: auto }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; margin-left: auto }
.nav-menu a { font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: color .2s }
.nav-menu a:hover { color: var(--deep) }
.nav-menu .btn { color: #fff }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 10px }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s }
.burger span + span { margin-top: 5px }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

@media (max-width: 900px) {
  .burger { display: block }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; padding: .6rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible }
  .nav-menu a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem }
  .nav-menu .btn { margin-top: .9rem; border-bottom: 0 }
}

/* ══════════════════ HERO ══════════════════ */
.hero { position: relative; background: var(--grad-soft); color: #fff; overflow: hidden; isolation: isolate }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none }
.mesh { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55 }
.hero .m1 { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: radial-gradient(circle, #7fe6ff, transparent 68%) }
.hero .m2 { width: 40vw; height: 40vw; right: -10vw; top: 8vw; background: radial-gradient(circle, #1a3cff, transparent 66%); opacity: .5 }
.hero .m3 { width: 34vw; height: 34vw; left: 32vw; bottom: -16vw; background: radial-gradient(circle, #00c2ff, transparent 68%); opacity: .35 }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(80% 70% at 50% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 35%, #000 30%, transparent 78%);
}
.hero-in {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr;
  gap: clamp(1.6rem, 3.4vw, 2.8rem); align-items: center;
  padding-block: clamp(2.8rem, 6vw, 4.6rem) clamp(6rem, 11vw, 9rem);
}
/* capped so "ONLINE MARKETING" stays on one line in the copy column */
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.45rem); font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; line-height: 1.02 }
.h1-alt { color: #d9f4ff }
.hero .eyebrow { justify-content: flex-start }
.hero .eyebrow::after { display: none }
.hero-lead { margin-top: 1.3rem; max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.1rem); color: rgba(255, 255, 255, .93) }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: 2.6rem }
.hero-stats b { display: block; font-family: Montserrat, sans-serif; font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1 }
.hero-stats span { font-size: .82rem; color: rgba(255, 255, 255, .82) }

/* device stage (shared by hero + references) */
.stage-laptop, .stage-phone { filter: drop-shadow(0 30px 50px rgba(3, 12, 45, .38)) }
.hero-art { position: relative; padding-block: 1rem }
.hero-art .stage-laptop img { width: 100%; height: auto }
.hero-art .stage-phone { position: absolute; right: -5%; bottom: -4%; width: 23%; z-index: 2 }
.hero-art .stage-phone img { width: 100%; height: auto }
.hero-art .stage-laptop, .hero-art .stage-phone { transition: opacity .5s }
.hero-art.swap .stage-laptop, .hero-art.swap .stage-phone { opacity: 0 }
.hero-chip {
  position: absolute; left: 4%; bottom: 2%; z-index: 3;
  background: rgba(6, 14, 40, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .38rem .85rem; border-radius: 99px;
}
@media (max-width: 940px) {
  .hero-in { grid-template-columns: 1fr }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100% }
  /* the phone can't hang off the edge once the art is full-bleed — the hero clips it */
  .hero-art .stage-phone { right: 0; bottom: -2%; width: 22% }
  .hero .eyebrow, .hero-cta, .hero-stats { justify-content: flex-start }
}

/* waves */
.wave { position: absolute; left: 0; right: 0; line-height: 0; z-index: 2; pointer-events: none }
.wave svg { width: 100%; height: clamp(58px, 8vw, 118px) }
.wave-b { bottom: -1px }
.wave-b path { fill: var(--white) }
.wave-t { top: -1px }
.wave-t path { fill: var(--white) }
.wave-dark path { fill: var(--navy) }

/* ══════════════════ LOGO WALL ══════════════════ */
.logos { padding-block: clamp(2rem, 4vw, 3rem); background: #fff; overflow: hidden }
.logos-title { text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); margin-bottom: 1.6rem }
.marquee { position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent) }
/* gap lives on each li as margin-right (incl. the seam item) so translateX(-50%)
   lands exactly on set 2's first logo — a container `gap` leaves a half-gap seam that jumps */
.marquee-track { display: flex; align-items: center; width: max-content; animation: slide 48s linear infinite }
.marquee-track li { margin-right: clamp(2.8rem, 6vw, 5.2rem) }
.marquee:hover .marquee-track { animation-play-state: paused }
.marquee-track img { height: clamp(52px, 6.5vw, 84px); width: auto; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s }
.marquee-track li:hover img { filter: none; opacity: 1 }
@keyframes slide { to { transform: translateX(-50%) } }

/* ══════════════════ CARDS ══════════════════ */
.two-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(2rem, 4vw, 3rem) }
.three-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem) }
@media (max-width: 880px) { .two-cards, .three-cards { grid-template-columns: 1fr } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem); box-shadow: var(--shadow);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.card:hover { transform: translateY(-4px); border-color: #c9dcff; box-shadow: var(--shadow-lg) }
.card h3 { margin-bottom: .55rem }
.card p { color: var(--mut) }
.card-glass {
  background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .13);
  box-shadow: 0 24px 50px -32px rgba(0, 0, 0, .8); color: #fff;
}
.card-glass:hover { background: rgba(255, 255, 255, .085); border-color: rgba(124, 196, 255, .45) }
.card-glass b { color: #fff }

.ticks { display: grid; gap: .62rem; margin-top: .3rem }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--mut); font-size: .96rem }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 12px; height: 7px;
  border-left: 2.2px solid var(--deep); border-bottom: 2.2px solid var(--deep);
  transform: rotate(-45deg); border-radius: 1px;
}
.ticks b { color: var(--ink); font-weight: 700 }
.ticks-sm li { font-size: .9rem }

/* flow chip */
.flow { margin-top: clamp(2rem, 4vw, 3rem); display: grid; justify-items: center; gap: .9rem }
.flow-label { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mut) }
.flow-chain { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center }
.node {
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .8rem 1.5rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.node-hi { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 14px 30px -16px rgba(42, 84, 255, .85) }

/* ══════════════════ REFERENCES ══════════════════ */
.refs { padding-bottom: clamp(3.4rem, 6vw, 5rem) }
.stage-wrap { margin-top: clamp(2.2rem, 4vw, 3.4rem) }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem }
.stage-title { font-size: clamp(1.05rem, 1.8vw, 1.3rem) }
.stage-nav { display: flex; align-items: center; gap: .7rem }
.rnd {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; transition: .22s; box-shadow: var(--shadow);
}
.rnd svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round }
.rnd:hover { border-color: var(--deep); transform: translateY(-2px) }
.rnd:hover svg { stroke: var(--deep) }
.stage-count { font-size: .84rem; color: var(--mut); font-variant-numeric: tabular-nums }
.stage-count b { color: var(--ink) }

.stage {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center; background: linear-gradient(160deg, #f7faff, #eef4ff);
  border: 1px solid var(--line); border-radius: clamp(var(--r-md), 2vw, 28px);
  padding: clamp(1.4rem, 3vw, 2.6rem); margin-inline: auto; max-width: var(--wrap);
  width: calc(100% - 2 * clamp(1.1rem, 4vw, 2rem));
}
.stage-art { position: relative }
.stage-glow {
  position: absolute; inset: 6% 8% 8%; border-radius: 50%; filter: blur(46px); z-index: 0;
  background: radial-gradient(circle, rgba(42, 84, 255, .3), transparent 68%);
}
.stage-art .stage-laptop { position: relative; z-index: 1 }
.stage-art .stage-laptop img { width: 100%; height: auto }
/* stays inside the column gap — a bigger negative offset overlaps the info text */
.stage-art .stage-phone { position: absolute; right: -2%; bottom: -6%; width: 21%; z-index: 2 }
.stage-art .stage-phone img { width: 100%; height: auto }
.stage-art img { transition: opacity .35s }
.stage.swap .stage-art img { opacity: 0 }
.stage-info h4 { font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -.025em; margin: .7rem 0 .55rem }
.stage-plat { display: flex; gap: .4rem; flex-wrap: wrap }
.stage-desc { color: var(--mut) }
.stage-metric { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-weight: 700; color: var(--link); font-size: .92rem }
.stage-metric svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.stage-actions { display: flex; gap: .6rem; flex-wrap: wrap }
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr }
  .stage-art { max-width: 460px; margin-inline: auto; width: 100% }
}

/* bottom padding gives the preview-card shadow room — overflow-x:auto also clips vertically */
.rail { display: flex; gap: .6rem; overflow-x: auto; padding: 1.2rem .3rem 1.8rem; scrollbar-width: thin }
.rail button {
  flex: none; width: 122px; border-radius: 12px; overflow: hidden; border: 2px solid transparent;
  background: #fff; box-shadow: var(--shadow); transition: .22s; position: relative;
}
.rail img { width: 100%; height: 76px; object-fit: cover; object-position: top center }
.rail span {
  display: block; font-size: .68rem; font-weight: 700; padding: .38rem .3rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail button:hover { transform: translateY(-3px) }
.rail button[aria-selected="true"] { border-color: var(--deep) }
.rail button[aria-selected="true"] span { color: var(--deep) }

/* grid */
.grid-block { margin-top: clamp(2.6rem, 5vw, 4.2rem) }
.grid-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem }
.grid-sub { font-size: .88rem; color: var(--mut) }
.filters { display: grid; gap: .8rem; margin-bottom: 1.6rem }
/* label sits above the chips (both groups match) */
.fgroup { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem }
.flabel { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut) }
.fchips { display: flex; gap: .4rem; flex-wrap: wrap }
.fchips button {
  font-size: .8rem; font-weight: 600; padding: .42rem .9rem; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: .2s;
}
.fchips button:hover { border-color: var(--deep); color: var(--deep) }
.fchips button[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem) }
.pcard {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: 0 12px 26px -14px rgba(11, 21, 38, .32); /* tighter than --shadow so cards don't bleed together */
  transition: transform .28s, box-shadow .28s, border-color .28s;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-5px); border-color: #c9dcff; box-shadow: 0 18px 34px -16px rgba(11, 21, 38, .42) }
.pbar { display: flex; align-items: center; gap: .38rem; padding: .55rem .7rem; background: #f2f5fa; border-bottom: 1px solid var(--line) }
.pbar i { width: 8px; height: 8px; border-radius: 50%; background: #d5dce8 }
.pbar i:nth-child(1) { background: #ff6058 } .pbar i:nth-child(2) { background: #ffbe2f } .pbar i:nth-child(3) { background: #2aca44 }
.pbar span { margin-left: .4rem; font-size: .7rem; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pshot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft) }
.pshot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s }
.pcard:hover .pshot img { transform: scale(1.045) }
.pmeta { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1 }
.pname { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: -.015em; line-height: 1.25 }
.pmeta .prow { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: auto }
.ptag { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--link); background: #eaf2ff; padding: .24rem .6rem; border-radius: 99px }
.ptag-ind { color: var(--mut); background: var(--soft); border: 1px solid var(--line) }
.grid-empty { text-align: center; color: var(--mut); padding: 2.4rem 0 }

/* ══════════════════ INTRO (Matyi) ══════════════════ */
.intro { background: linear-gradient(180deg, #fff 0%, #eef4ff 55%, #fff 100%); overflow: hidden }
.intro-bg { position: absolute; inset: 0; pointer-events: none }
.intro .m1 { width: 30vw; height: 30vw; left: -8vw; top: 6vw; background: radial-gradient(circle, rgba(42, 84, 255, .18), transparent 68%); opacity: 1 }
.intro .m2 { width: 26vw; height: 26vw; right: -6vw; bottom: 2vw; background: radial-gradient(circle, rgba(6, 218, 255, .2), transparent 68%); opacity: 1 }
.intro-in { position: relative; z-index: 1; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.8rem, 4vw, 3.6rem); align-items: center }
.intro-photo { position: relative }
/* founder photo — the supplied image already carries the brand backdrop; just frame it */
.photo-frame { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 70px -34px rgba(42, 84, 255, .55) }
.photo-frame img { display: block; width: 100%; height: auto }
.photo-badge {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: .6rem; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: .6rem 1.1rem; box-shadow: var(--shadow); font-size: .8rem; color: var(--mut);
}
.photo-badge b { display: block; color: var(--ink); font-family: Montserrat, sans-serif; font-weight: 800; font-size: .92rem }
.badge-dot { width: 9px; height: 9px; border-radius: 50%; background: #2aca44; box-shadow: 0 0 0 4px rgba(42, 202, 68, .18); flex: none }
.intro-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem) }
.intro-copy .eyebrow { justify-content: flex-start }
.intro-copy .eyebrow::after { display: none }
.intro-lead { font-size: 1.08rem; color: var(--ink-2); margin: 1.1rem 0 .9rem }
.intro-copy p + p { margin-top: .85rem; color: var(--mut) }
.intro-facts { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.8rem 0; padding: 1.2rem 0; border-block: 1px solid var(--line) }
.intro-facts li { display: grid; gap: .1rem; max-width: 15rem }
.intro-facts b { font-family: Montserrat, sans-serif; font-weight: 900; font-size: 1.45rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
.intro-facts span { font-size: .82rem; color: var(--mut); line-height: 1.4 }
.intro-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap }
.intro-mail { font-weight: 600; color: var(--link); border-bottom: 1px solid rgba(13, 82, 179, .3) }
.intro-mail:hover { border-color: var(--link) }
@media (max-width: 900px) {
  .intro-in { grid-template-columns: 1fr }
  /* width:100% keeps a definite width — margin:auto alone makes the figure shrink to its
     absolutely-positioned img (0 width) and the whole photo stage collapses */
  .intro-photo { width: 100%; max-width: 340px; margin-inline: auto; margin-bottom: 2.2rem }
}

/* ══════════════════ TIMELINE (galaxy) ══════════════════ */
.sec-galaxy { background: #04060c; color: #fff; overflow: hidden }
.galaxy-bg {
  position: absolute; inset: -18% 0; background: url("../galaxy-wide.jpg") center/cover no-repeat;
  opacity: .75; will-change: transform; /* taller than the section so JS parallax has travel room */
}
.galaxy-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 12, .86), rgba(4, 6, 12, .42) 45%, rgba(4, 6, 12, .9));
}
.sec-galaxy .wrap { position: relative; z-index: 1 }
.timeline { position: relative; margin: clamp(2.2rem, 4vw, 3.2rem) auto 0; max-width: 760px; display: grid; gap: clamp(1rem, 2vw, 1.5rem) }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(124, 196, 255, .5), transparent);
}
.tl-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: clamp(.9rem, 2vw, 1.6rem); align-items: start }
.tl-num {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-family: Montserrat, sans-serif; font-weight: 900; font-size: .95rem;
  background: rgba(9, 16, 34, .92); border: 1px solid rgba(124, 196, 255, .35); color: #7fc4ff;
}
.tl-card {
  max-width: 860px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg); padding: clamp(1.2rem, 2.2vw, 1.7rem);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .28s, border-color .28s, background-color .28s;
}
.tl-step:hover .tl-card { transform: translateX(4px); border-color: rgba(124, 196, 255, .45); background: rgba(255, 255, 255, .075) }
.tl-card h3 { margin-bottom: .4rem }
.tl-card p { color: var(--on-dark) }
.tl-card .ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: .8rem }
.tl-card .ico svg { width: 23px; height: 23px; stroke-width: 2.4 }
.tl-cta { margin-top: clamp(2rem, 4vw, 3rem); display: grid; justify-items: center; gap: .6rem }
.tl-cta .note { font-size: .82rem; color: var(--on-dark) }
@media (max-width: 620px) {
  .timeline::before { left: 21px }
  .tl-step { grid-template-columns: 44px 1fr }
  .tl-num { width: 44px; height: 44px; font-size: .8rem }
}

/* ══════════════════ FAQ ══════════════════ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr } }
.faq-side .eyebrow { justify-content: flex-start }
.faq-side .eyebrow::after { display: none }
.faq-side .btn { margin-top: 1.4rem }
.faq { display: grid; gap: .7rem }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; transition: border-color .25s }
.faq details[open] { border-color: #c9dcff }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative;
  font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 1.45rem; width: 11px; height: 11px;
  border-right: 2.4px solid var(--deep); border-bottom: 2.4px solid var(--deep);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.65rem }
.faq-body { padding: 0 1.3rem 1.3rem; color: var(--mut) }
.faq-body p + p { margin-top: .6rem }

/* ══════════════════ CTA / FORM ══════════════════ */
.sec-cta { background: var(--grad-soft); color: #fff; overflow: hidden; padding-block: clamp(6.75rem, 11vw, 9.5rem) }
.cta-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden }
.cta-waves { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2; opacity: .07 }
.sec-cta .m1 { width: 40vw; height: 40vw; left: -12vw; bottom: -14vw; background: radial-gradient(circle, #7fe6ff, transparent 68%) }
.sec-cta .m2 { width: 34vw; height: 34vw; right: -8vw; top: -8vw; background: radial-gradient(circle, #1a3cff, transparent 66%) }
.cta-in { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center }
@media (max-width: 900px) { .cta-in { grid-template-columns: 1fr } }
.cta-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem) }
.cta-lead { margin-top: 1rem; font-size: 1.05rem; color: rgba(255, 255, 255, .94); max-width: 44ch }
.cta-list { margin-top: 1.8rem; display: grid; gap: .85rem }
.cta-list li { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; color: rgba(255, 255, 255, .9) }
.cta-list a { font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .45) }
.cta-list a:hover { border-color: #fff }
.tick { width: 11px; height: 7px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg); flex: none; align-self: center }

/* slightly translucent over the gradient; inputs keep a solid bg so contrast stays AA */
.form-card { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .5); color: var(--ink); border-radius: clamp(var(--r-md), 2vw, 26px); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 40px 80px -34px rgba(3, 12, 45, .6) }
.form-title { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 1.1rem }
.form-card label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .8rem }
.form-card input, .form-card textarea {
  width: 100%; margin-top: .35rem; padding: .8rem .9rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--soft); font-size: .95rem; font-weight: 400;
  transition: border-color .2s, background-color .2s;
}
.form-card input:focus, .form-card textarea:focus { border-color: var(--deep); background: #fff }
.form-card textarea { resize: vertical; min-height: 76px }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.form-msg { margin-top: .8rem; font-size: .86rem; font-weight: 600; min-height: 1.2em }
.form-msg.ok { color: #0a7d3d } .form-msg.err { color: #c1121f }

/* ══════════════════ FOOTER ══════════════════ */
.foot { background: #050912; color: var(--on-dark); padding-block: clamp(2.6rem, 5vw, 4rem) 1.4rem; font-size: .92rem }
.foot-in { display: grid; grid-template-columns: 1.1fr 1.4fr .6fr; gap: clamp(1.6rem, 4vw, 3rem) }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr } }
.foot-brand img { height: 44px; width: auto; margin-bottom: 1rem }
.foot-brand p { max-width: 40ch }
.foot-data { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr) }
@media (max-width: 560px) { .foot-data { grid-template-columns: 1fr } }
.foot-data dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6f83a3; margin-bottom: .25rem }
.foot-data dd { color: #d7e3f5 }
.foot-data a:hover, .foot-nav a:hover, .foot-bottom a:hover { color: #7fc4ff }
.foot-nav { display: grid; gap: .6rem; align-content: start }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .09); font-size: .84rem; color: #6f83a3;
}

/* ══════════════════ MODAL ══════════════════ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(.8rem, 3vw, 2rem) }
.modal[hidden] { display: none }
.modal-back { position: absolute; inset: 0; background: rgba(5, 9, 18, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s }
.modal-box {
  position: relative; z-index: 1; width: min(1000px, 100%); max-height: 90vh; overflow: auto;
  background: #fff; border-radius: clamp(var(--r-md), 2vw, 24px);
  display: grid; grid-template-columns: 1.25fr .75fr; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7);
  animation: pop .28s cubic-bezier(.2, .9, .3, 1);
}
@media (max-width: 820px) { .modal-box { grid-template-columns: 1fr } }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985) } }
.modal-media { background: var(--soft); padding: clamp(.9rem, 2vw, 1.4rem); border-right: 1px solid var(--line) }
.modal-media > img { width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff }
.thumbs { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap }
.thumbs button { width: 74px; height: 50px; border-radius: 7px; overflow: hidden; border: 2px solid transparent; background: #fff; transition: .2s }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top center }
.thumbs button[aria-current="true"] { border-color: var(--deep) }
.modal-info { padding: clamp(1.2rem, 2.6vw, 2rem) }
.modal-info h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: .7rem 0 .6rem }
.modal-info > p { color: var(--mut) }
.modal-x {
  position: absolute; right: .7rem; top: .7rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow);
}
.modal-x svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round }
.modal-x:hover { background: #fff; transform: scale(1.06) }
body.locked { overflow: hidden }

/* ══════════════════ SECTION ICONS (original gradient illustrations) ══════════════════ */
.ico-illu { width: clamp(56px, 7vw, 72px); height: auto; margin-bottom: 1rem }
.card-glass .ico-illu { width: 56px }
.flow-arrow img { width: 40px; height: auto; display: block }

/* ══════════════════ FAQ mail link ══════════════════ */
.faq-mail { display: inline-block; margin-top: .8rem; margin-left: .1rem; font-weight: 600; color: var(--link); border-bottom: 1px solid rgba(13, 82, 179, .3) }
.faq-mail:hover { border-color: var(--link) }

/* ══════════════════ CONSENT CHECKBOX ══════════════════ */
.form-card label.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; color: var(--mut); margin: .2rem 0 .3rem; cursor: pointer }
.form-card label.check input { width: 18px; height: 18px; margin: .15rem 0 0; flex: none; accent-color: var(--deep); cursor: pointer }
.form-card label.check span { font-size: .82rem; line-height: 1.45 }
.form-card label.check a { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px }

/* ══════════════════ REVENUE — B VARIANT (engine) ══════════════════ */
.engine-sec { background: linear-gradient(180deg, #eef4ff, #fff) }
.engine { position: relative; margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem) }
/* the connecting spine sits behind the number dots */
.engine::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 3px; border-radius: 3px; background: var(--grad); opacity: .5 }
.enode { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center }
.enode-dot {
  position: relative; z-index: 1; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: Montserrat, sans-serif; font-weight: 900; font-size: 1rem;
  box-shadow: 0 12px 26px -10px rgba(42, 84, 255, .7); margin-bottom: 1.1rem;
}
.enode-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.1rem, 2vw, 1.5rem);
  box-shadow: 0 16px 34px -22px rgba(11, 21, 38, .4); width: 100%; text-align: left;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.enode:hover .enode-card { transform: translateY(-5px); border-color: #c9dcff; box-shadow: var(--shadow-lg) }
.enode-card h3 { margin-bottom: .6rem }
@media (max-width: 900px) {
  .engine { grid-template-columns: 1fr; gap: 0; max-width: 640px; margin-inline: auto }
  .engine::before { display: none }   /* per-node connectors instead, so the spine stops at the last dot */
  .enode { flex-direction: row; align-items: flex-start; gap: 1.1rem; text-align: left; padding-bottom: 1.6rem }
  .enode:last-child { padding-bottom: 0 }
  /* line from this dot's centre to the next dot's centre; the last node has none */
  .enode:not(:last-child)::before {
    content: ""; position: absolute; left: 26px; top: 28px; bottom: -28px; width: 3px; z-index: 0;
    background: linear-gradient(180deg, var(--deep), var(--cyan)); opacity: .45;
  }
  .enode-dot { margin-bottom: 0 }
  .enode-card { text-align: left }
}

/* ══════════════════ BACK TO TOP ══════════════════ */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: 130;
  width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 16px 34px -12px rgba(42, 84, 255, .85);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none }
.to-top:hover { transform: translateY(-3px) }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round }

/* ══════════════════ REVEAL ══════════════════ */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1) }
.rv.in { opacity: 1; transform: none }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important }
  .rv { opacity: 1; transform: none }
}
