/* =========================================================
   VIXO BUILD — page layer (cobalt world). Requires v2.css
   ========================================================= */

/* ---------- HERO ---------- */
.b-hero { background: var(--cobalt); color: var(--white); grid-template-rows: auto 1fr; }
.b-hero::before {
  width: 110vw; height: 110vw; right: -50vw; top: -20vw;
  background:
    radial-gradient(closest-side, rgba(217,255,79,.30), transparent 70%),
    radial-gradient(closest-side at 20% 80%, rgba(242,138,217,.28), transparent 70%);
}
.crumbs { display: flex; gap: 8px; font-family: var(--f-display); font-size: 13px; font-weight: 500; color: rgba(255,255,255,.62); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--white); }
.b-hero .availability { color: var(--ink); }
.b-hero .kicker { color: rgba(255,255,255,.7); margin-bottom: 18px; }

.b-hero-grid { display: grid; gap: 28px; align-items: center; padding-top: 28px; }
.b-title { margin: 0 0 22px; font-size: clamp(60px, 17.5vw, 210px); line-height: .86; }
.b-hero .hero-title .serif { color: var(--lime); }
.b-hero .hero-sub { color: rgba(255,255,255,.82); max-width: 40ch; }

.b-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.b-link { font-weight: 600; font-size: 15px; border-bottom: 1.5px solid var(--lime); padding-bottom: 2px; }
.b-link span { display: inline-block; transition: transform .4s var(--ease-out); }
.b-link:hover span { transform: translateY(3px); }

.need { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.need-label { width: 100%; font-family: var(--f-display); font-size: 13px; font-weight: 500; color: rgba(255,255,255,.62); }
.need-chip {
  font-size: 13px; font-weight: 400; padding: 9px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-spring);
}
.need-chip:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: translateY(-2px); }

.b-hero-visual { position: relative; height: 92vw; max-height: 620px; }
.b-hero-visual .floater { position: absolute; }
.b-screen { right: -4vw; top: 4%; width: 92%; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-float-dark); }
.b-screen img { width: 100%; }
.b-phone { left: 0; bottom: 0; width: 36%; filter: drop-shadow(0 40px 50px rgba(5,10,60,.45)); }
.b-hero-visual .sticker { animation: popIn 1s var(--ease-spring) both; }
.b-hero-visual .sticker-lime  { left: 34%; top: 0; right: auto; }
.b-hero-visual .sticker-pink  { right: 2%; top: auto; bottom: 22%; left: auto; display: inline-flex; align-items: center; gap: 8px; }
.b-hero-visual .sticker-white { left: 40%; bottom: 3%; top: auto; right: auto; background: var(--white); color: var(--ink); animation-delay: .86s; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

@media (min-width: 900px) {
  .b-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4vw; padding-top: 2vh; }
  .b-title { font-size: min(10.4vw, 19vh); }
  .b-hero-visual { height: min(44vw, 72vh); max-height: none; }
  .b-screen { right: 0; top: 6%; width: 86%; }
  .b-phone { width: 30%; left: 0; bottom: -2%; }
  .need { max-width: 560px; }
}

/* ---------- PROMISES ---------- */
.promises { padding-block: clamp(72px, 10vw, 140px); }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.promise { padding: 22px 0 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.promise b {
  font-family: var(--f-display); font-weight: 700; color: var(--cobalt);
  font-size: clamp(54px, 9vw, 150px); line-height: .85; letter-spacing: -0.06em;
}
.promise b small { font-size: .34em; letter-spacing: -0.02em; margin-left: .08em; color: var(--ink); }
.promise span { font-size: 14px; color: var(--ink-2); max-width: 26ch; }
@media (min-width: 900px) {
  .promise-grid { grid-template-columns: repeat(4, 1fr); gap: 0 2.4vw; }
  .promise span { font-size: 15px; }
}

/* ---------- WHAT WE BUILD (horizontal) ---------- */
.what { padding-bottom: clamp(80px, 10vw, 140px); overflow: hidden; }
.what-head { display: grid; gap: 18px; margin-bottom: 36px; }
.what-head .h-xl { font-size: clamp(52px, 13vw, 130px); }
.what-head .serif { color: var(--cobalt); }
.what-hint { display: none; }
.what-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
.what-viewport::-webkit-scrollbar { display: none; }
.what-track { display: flex; gap: 12px; width: max-content; padding-bottom: 40px; }
.wcard {
  position: relative; flex: none; width: 80vw; min-height: 460px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: 28px; scroll-snap-align: start;
  box-shadow: var(--sh-float);
}
.wcard-n { position: absolute; top: 24px; right: 26px; font-family: var(--f-display); font-weight: 500; font-size: 13px; opacity: .6; }
.glyph { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.wcard h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 8.5vw, 52px); letter-spacing: -0.05em; line-height: .95; margin-top: 60px; }
.wcard p { font-size: 15px; line-height: 1.55; opacity: .86; max-width: 34ch; }
.wcard .chips li { border-color: color-mix(in srgb, currentColor 30%, transparent); }
.wc-cobalt { background: var(--cobalt); color: var(--white); }
.wc-lime   { background: var(--lime); color: var(--ink); }
.wc-ink    { background: var(--ink); color: var(--white); }
.wc-ink .glyph { stroke: var(--green-hi); filter: drop-shadow(0 0 12px rgba(34,208,122,.6)); }
.wc-white  { background: var(--white); color: var(--ink); }
.wc-pink   { background: var(--pink); color: var(--ink); }
.wc-paper  { background: var(--paper-2); color: var(--ink); }
.wc-cta {
  background: transparent; box-shadow: none; border: 1.5px dashed rgba(11,13,12,.25);
  justify-content: center; align-items: flex-start; gap: 22px;
}
.wcard-cta-t { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 8vw, 48px); letter-spacing: -0.05em; line-height: .98; opacity: 1 !important; }
.wcard-cta-s { font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
  .what { padding-bottom: 0; }
  .what-pin { height: 100vh; display: grid; grid-template-rows: auto 1fr; padding-top: 120px; }
  .what-head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 4vh; }
  .what-head .label { grid-column: 1 / -1; }
  .what-head .h-xl { font-size: min(8vw, 15vh); }
  .what-hint { display: block; font-family: var(--f-display); font-weight: 500; font-size: 14px; color: var(--muted); padding-bottom: 1vw; }
  .what-hint span { display: inline-block; animation: nudge 1.6s var(--ease-out) infinite; }
  .what-viewport { overflow: visible; scroll-snap-type: none; padding-inline: var(--gut); }
  .what-track { height: 100%; padding-bottom: 7vh; gap: 1.4vw; will-change: transform; }
  .wcard { width: min(30vw, 470px); min-height: 0; height: 100%; padding: 30px; }
  .wcard h3 { font-size: clamp(34px, 3vw, 54px); }
}
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ---------- AI AT THE CORE ---------- */
.core { background: var(--ink); color: var(--white); overflow: hidden; position: relative; z-index: 1; }
.core-pin { display: grid; gap: 40px; padding-block: 110px 90px; }
.core-copy .label { margin-bottom: 24px; }
.core .h-l .serif { color: var(--green-hi); }
.core-lead { margin-top: 24px; font-size: 16px; color: rgba(255,255,255,.72); max-width: 46ch; }
.core-points { margin-top: 30px; display: grid; }
.core-points li { display: grid; gap: 4px; padding: 16px 0 16px 22px; border-top: 1px solid var(--line-d); position: relative; opacity: .38; transition: opacity .5s var(--ease-out); }
.core-points li::before { content: ''; position: absolute; left: 0; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); transform: scale(0); transition: transform .5s var(--ease-spring); }
.core-points li.is-on { opacity: 1; }
.core-points li.is-on::before { transform: scale(1); box-shadow: 0 0 14px var(--green); }
.core-points b { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.core-points span { font-size: 14px; color: rgba(255,255,255,.66); }

.core-visual { position: relative; height: 420px; display: grid; place-items: center; perspective: 1400px; }
.core-caption { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-family: var(--f-display); font-weight: 500; font-size: 14px; height: 20px; }
.core-caption span { position: absolute; inset: 0; transition: opacity .5s, transform .6s var(--ease-out); }
.cc-a { color: rgba(255,255,255,.6); }
.cc-b { color: var(--green-hi); opacity: 0; transform: translateY(10px); }
.core-visual.is-core .cc-a { opacity: 0; transform: translateY(-10px); }
.core-visual.is-core .cc-b { opacity: 1; transform: none; }
.stack {
  position: relative; width: 210px; height: 210px; margin-top: 30px;
  transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-40deg);
}
.plane {
  position: absolute; inset: 0; border-radius: 26px;
  display: flex; align-items: flex-end; padding: 16px;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
  backface-visibility: visible;
}
.p-data  { background: #24302A; color: rgba(255,255,255,.75); transform: translateZ(0);
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 21px 21px; }
.p-logic { background: var(--cobalt); color: var(--white); transform: translateZ(40px); }
.p-ui    { background: var(--paper); color: var(--ink); transform: translateZ(80px);
  background-image: linear-gradient(var(--paper-2) 0 0), linear-gradient(var(--paper-2) 0 0), linear-gradient(var(--lime) 0 0);
  background-size: 60% 10px, 40% 10px, 30% 26px; background-position: 16px 18px, 16px 38px, 16px 62px; background-repeat: no-repeat; }
.p-ai    { background: var(--green); color: var(--ink); transform: translateZ(160px) scale(.62);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 60px rgba(34,208,122,.55), 0 0 140px rgba(34,208,122,.35); }

@media (min-width: 900px) {
  .core-pin { min-height: 100vh; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw; padding-block: 110px 60px; }
  .core-visual { height: min(70vh, 640px); }
  .stack { width: min(24vw, 340px); height: min(24vw, 340px); }
  .plane { font-size: 18px; padding: 22px; }
}

/* ---------- TECH MARQUEE ---------- */
.tech { padding-block: clamp(80px, 10vw, 140px); overflow: hidden; }
.tech .label { margin-bottom: 30px; }
.tech-rows { display: grid; gap: 6px; }
.tech-row { overflow: hidden; border-block: 1px solid var(--line); padding-block: 10px; }
.tech-row + .tech-row { border-top: 0; }
.tech-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.tech-row-rev .tech-track { animation-direction: reverse; animation-duration: 52s; }
.tech-track span {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 8.5vw, 140px); letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px var(--ink);
  padding-right: .45em; display: inline-flex; align-items: center; gap: .45em;
  transition: color .3s;
}
.tech-track span::after { content: '✦'; font-size: .3em; -webkit-text-stroke: 0; color: var(--cobalt); }
.tech-track span:hover { color: var(--cobalt); -webkit-text-stroke-color: var(--cobalt); }
.tech-row:hover .tech-track { animation-play-state: paused; }

/* ---------- TIMELINE (gantt) ---------- */
.timeline { padding-bottom: clamp(96px, 12vw, 180px); }
.tl-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 96px); }
.tl-head .serif { color: var(--cobalt); }
.gantt { display: grid; gap: 0; }
.gantt-axis { display: none; }
.g-row { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.g-meta { display: grid; gap: 4px; }
.g-meta b { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.035em; }
.g-meta span { font-size: 14px; color: var(--ink-2); max-width: 44ch; }
.g-lane { position: relative; height: 40px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.g-bar {
  position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 1%); width: calc((var(--e) - var(--s)) * 1%);
  border-radius: 999px; display: flex; align-items: center; padding-left: 14px;
  transform-origin: left center; font-style: normal;
}
.g-bar em { font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; display: none; }
.gb-cobalt { background: var(--cobalt); color: var(--white); }
.gb-pink   { background: var(--pink); color: var(--ink); }
.gb-lime   { background: var(--lime); color: var(--ink); }
.gb-green  { background: var(--green); color: var(--ink); }
.gb-ink    { background: var(--ink); color: var(--white); }
.g-open { border-radius: 999px 0 0 999px; }
.g-bar s { position: absolute; top: 30%; bottom: 30%; width: 2px; border-radius: 2px; background: rgba(11,13,12,.28); }
.g-bar s:nth-of-type(1) { left: 30%; } .g-bar s:nth-of-type(2) { left: 45%; } .g-bar s:nth-of-type(3) { left: 60%; } .g-bar s:nth-of-type(4) { left: 75%; } .g-bar s:nth-of-type(5) { left: 90%; }
.gb-lime em { display: inline; }
.tl-note { margin-top: 22px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .gantt-axis { display: flex; justify-content: space-between; margin-left: calc(36% + 32px); padding-bottom: 12px; font-family: var(--f-display); font-size: 12px; font-weight: 500; color: var(--muted); }
  .g-row { grid-template-columns: 36% 1fr; align-items: center; gap: 32px; padding: 22px 0; }
  .g-lane { height: 52px; }
  .g-bar em { display: inline; font-size: 13px; }
  .g-meta b { font-size: 26px; }
}

/* ---------- COMPARISON ---------- */
.compare { padding-bottom: clamp(96px, 12vw, 180px); }
.cmp-head { display: grid; gap: 24px; margin-bottom: 40px; }
.cmp-head .serif { color: var(--cobalt); }
.cmp-scroll { overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
.cmp-scroll::-webkit-scrollbar { display: none; }
.cmp { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cmp th, .cmp td { text-align: left; padding: 18px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { border-top: 0; font-family: var(--f-display); font-weight: 500; font-size: 13px; color: var(--muted); padding-top: 22px; }
.cmp tbody th { font-family: var(--f-display); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; width: 34%; }
.cmp td { color: var(--muted); }
.cmp .cmp-vixo { background: var(--cobalt); color: var(--white); font-weight: 600; border-top-color: rgba(255,255,255,.16); }
.cmp thead .cmp-vixo { color: var(--white); font-weight: 700; font-size: 16px; border-radius: 22px 22px 0 0; }
.cmp tbody tr:last-child .cmp-vixo { border-radius: 0 0 22px 22px; }
.cmp .ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: var(--ink); font-style: normal; font-size: 12px; margin-right: 8px; }
.cmp-vixo { box-shadow: 0 30px 80px -40px rgba(47,59,255,.6); }
@media (min-width: 900px) {
  .cmp-head { grid-template-columns: 1fr; }
  .cmp { font-size: 15px; }
  .cmp th, .cmp td { padding: 22px 24px; }
  .cmp tbody th { font-size: 20px; }
}

/* ---------- VOICE ---------- */
.b-voice .voice { opacity: 1; transform: none; }
.b-voice .voice blockquote .serif { color: var(--cobalt); }

/* ---------- CLOSER / FORM ---------- */
.b-closer { background: var(--ink); }
.b-closer-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vw at 85% 110%, rgba(47,59,255,.75), transparent 70%),
    radial-gradient(40vw 34vw at 10% 0%, rgba(21,178,99,.35), transparent 70%);
}
.b-closer::after { display: none; }
.b-closer .closer-title .serif { color: var(--lime); }
.b-form .btn { width: 100%; }
.b-assure { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: rgba(255,255,255,.75); }
.b-assure li::before { content: '✓'; color: var(--lime); margin-right: 8px; font-weight: 700; }
@media (min-width: 900px) {
  .b-form { grid-template-columns: 1.3fr 1fr 1fr auto; max-width: 1100px; }
  .b-form .btn { width: auto; }
}

/* ---------- Reduced motion fallbacks ---------- */
.rm .p-ai { transform: translateZ(120px); }
.b-screen, .b-phone { animation: popInV 1.2s var(--ease-spring) both; }
.b-phone { animation-delay: .15s; }
.page-build .faq-head .serif { color: var(--cobalt); }
.wcard .wcard-cta-t { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 8vw, 48px); letter-spacing: -0.05em; line-height: .98; opacity: 1; max-width: 12ch; }
.wcard .wcard-cta-s { font-size: 14px; color: var(--muted); opacity: 1; }
/* keep the visual anchored while web fonts swap (no CLS) */
.b-hero-grid { align-items: start; }
@media (min-width: 900px) { .b-hero-visual { margin-top: 2vh; } }
@media (min-width: 900px) { .b-hero .availability { min-width: 236px; justify-content: center; } }
.page-build .sticky-cta b { background: var(--cobalt); color: var(--white); }
