﻿/* ─── Home page styles ───
   Page-specific rules for src/index.html. Shared tokens, resets, nav,
   footer and button bases live in /assets/site.css. Only rules that are
   unique to the home page (or that intentionally override site defaults)
   should live here.
*/

/* ─── BUTTON OVERRIDES (hero-specific variants) ─── */
/* Overrides site.css: slightly different hover bg on the hero surface. */
.btn-white:hover { background: #eee; transform: translateY(-1px); }
/* Overrides site.css: softer translucent border and color for the hero. */
.btn-outline-white { background: transparent; color: rgba(255,255,255,0.75); border: 1.5px solid rgba(255,255,255,0.22); }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.5); color: var(--white); transform: translateY(-1px); }
/* Buttons don't inherit font-family by default (UA button font) — match the hero's Space Grotesk. */
.hero-btns .btn { font-family: inherit; }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh; /* exactly one viewport height */
  display: flex; align-items: center; /* vertically center the content */
  overflow: hidden; background: #060610;
  border-bottom: 1px solid #111;
}

/* video fills the full section at full color */
.hero-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 1; pointer-events: none; z-index: 0;
}

/* dark gradient covers left side only, fades to transparent on the right */
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(5,5,15,0.96) 0%,
    rgba(5,5,15,0.92) 22%,
    rgba(5,5,15,0.78) 40%,
    rgba(5,5,15,0.40) 56%,
    rgba(5,5,15,0.10) 70%,
    transparent 82%
  );
}

/* content: left-aligned, sits inside the 1200px centered column.
   margin-left uses var(--px) so content aligns with the rest of the page;
   max-width caps the reading measure on ultra-wide screens. */
.hero-content {
  font-family: var(--nav-font);
  position: relative; z-index: 2;
  margin-left: var(--px);
  padding-right: 72px;
  width: 54%; max-width: 780px; min-width: 320px;
  display: flex; flex-direction: column;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.65);
  letter-spacing: 0.09em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 100px;
  padding: 5px 14px; background: rgba(255,255,255,0.06);
  margin-bottom: 28px; backdrop-filter: blur(4px);
}
.hero-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: tag-pulse 2.4s ease-in-out infinite; }
@keyframes tag-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(1.6)} }

.hero-tw-line { display: block; }
.hero-rest { display: block; }
.hero-tw-word { display: inline; }
.hero-cursor {
  color: var(--blue);
  animation: hero-blink 0.7s steps(1) infinite;
  display: inline;
}
@keyframes hero-blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }


h1.hero-h1 {
  font-size: clamp(19px, 2.7vw, 40px); font-weight: 800; line-height: 1.15; white-space: normal;
  color: #FFFFFF; letter-spacing: 1px;
  margin-bottom: 16px; text-align: left;
}
.hero-h1-sub {
  font-size: clamp(14px, 1.8vw, 26px);
  font-weight: 700; color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  display: inline-block; margin-top: 12px;
}
.hero-sub {
  font-size: 16px; font-weight: 400; line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 480px; margin-bottom: 30px;
}
.hero-sub-specs {
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  margin-top: 6px; display: inline-block;
}

/* environment tags */
.hero-envs {
  display: grid; grid-template-columns: repeat(3, max-content);
  gap: 7px; margin-bottom: 28px;
}
.hero-env {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 13px; border-radius: 100px; white-space: nowrap;
  backdrop-filter: blur(4px);
}

.hero-btns { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.copy-email-btn { cursor: pointer; font-family: var(--font); gap: 7px; position: relative; }

/* free trial strip */
.hero-trial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 16px 24px;
  display: inline-flex; align-items: center; gap: 12px;
  flex-wrap: wrap; backdrop-filter: blur(8px);
}
.hero-trial-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.hero-trial-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-trial-step { display: flex; align-items: center; gap: 8px; }
.hero-trial-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-trial-step-title { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); white-space: nowrap; }
.hero-trial-arrow { font-size: 14px; color: rgba(255,255,255,0.2); flex-shrink: 0; }

/* scroll hint */
.hero-scroll {
  position: absolute; bottom: 28px; right: var(--px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.25); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(28,51,255,0.7), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(0.6) translateY(6px)} }

/* ─── TRUSTED ─── */
.trusted {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 20px var(--px); display: flex; align-items: center; gap: 0;
}
.trusted-label { font-size: 13px; font-weight: 500; color: #888; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; margin-right: 48px; flex-shrink: 0; }
.trusted-wrap { flex: 1; overflow: hidden; position: relative; }
.trusted-wrap::before, .trusted-wrap::after { content: ""; position: absolute; top: 0; height: 100%; width: 80px; z-index: 2; pointer-events: none; }
.trusted-wrap::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.trusted-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.trusted-track { display: inline-flex; align-items: center; gap: 0; animation: t-scroll 32s linear infinite; white-space: nowrap; }
.trusted-track:hover { animation-play-state: paused; }
.trusted-logo { padding: 0 36px; display: flex; align-items: center; }
.trusted-logo { cursor: pointer; }
.trusted-logo img { height: 36px; width: auto; max-width: 100px; object-fit: contain;
  filter: none;
  opacity: 0.7;
  transition: opacity .2s; }
.trusted-logo:hover img { opacity: 1; }
.trusted-logo.logo-small img { height: 22px; max-width: 64px; }
.trusted-logo.logo-up img    { transform: translateY(-3px); }
.trusted-sep { color: #E0E0E0; font-size: 6px; flex-shrink: 0; }
@keyframes t-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ─── SECTION SHARED ─── */
.sec { padding: 92px var(--px); }
.sec-tag { display: block; font-size: 11px; font-weight: 600; color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.sec-h2 { font-size: clamp(22px, 3vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -1.3px; color: var(--black); margin-bottom: 14px; }
.sec-p { font-size: 16px; font-weight: 400; line-height: 1.75; color: var(--muted); max-width: 540px; }

/* ─── ICP ─── */
.icp-section {
  border-bottom: 1px solid var(--border);
}
.icp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.icp-card {
  padding: 72px var(--px);
  display: flex; flex-direction: column; gap: 24px;
}
.icp-card--dark  { background: var(--bg-alt); border-right: 1px solid var(--border); }
.icp-card--light { background: var(--white); }
.icp-num {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.icp-card--dark  .icp-num { color: var(--muted); }
.icp-card--light .icp-num { color: var(--muted); }
.icp-q {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  max-width: 480px; margin: 0;
}
.icp-card--dark  .icp-q { color: var(--black); }
.icp-card--light .icp-q { color: var(--black); }
.icp-a {
  font-size: 15px; line-height: 1.75; margin: 0;
  max-width: 440px;
}
.icp-card--dark  .icp-a { color: var(--muted); }
.icp-card--light .icp-a { color: var(--muted); }
.icp-cta { align-self: flex-start; margin-top: 8px; }
@media (max-width: 768px) {
  .icp-grid { grid-template-columns: 1fr; }
  .icp-card--dark { border-right: none; border-bottom: 1px solid #222; }
}

/* ─── BENEFITS ─── */
.benefits {
  background: var(--bg-alt);
  padding: 96px var(--px);
  border-bottom: 1px solid var(--border);
}
.benefits-headline {
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  color: var(--muted);
  margin: 0 auto 48px;
  max-width: 600px;
  line-height: 1.4;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--w);
  margin: 0 auto;
}
.benefit-item {
  padding: 48px 56px 48px 0;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0;
}
.benefit-item:last-child { border-right: none; padding-right: 0; }
.benefit-item:not(:first-child) { padding-left: 56px; }

.benefit-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.benefit-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.benefit-title {
  font-size: clamp(18px, 1.5vw, 22px); font-weight: 700;
  color: var(--black); letter-spacing: -0.3px; line-height: 1.1;
  margin: 0;
}
.benefit-hook {
  font-size: 13px; font-weight: 600; color: var(--black);
  margin: 0 0 10px; opacity: 0.4;
}
.benefit-body {
  font-size: 14px; color: var(--muted);
  line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 900px) {
  .benefits { padding: 72px var(--px); }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-item { padding: 40px 0; border-right: none; border-bottom: 1px solid var(--border); }
  .benefit-item:last-child { border-bottom: none; }
  .benefit-item:not(:first-child) { padding-left: 0; }
}
@media (max-width: 640px) {
  .benefits { padding: 56px var(--px); }
  .benefit-title { font-size: 26px; }
  .benefit-item { padding: 32px 0; }
  .benefit-icon { margin-bottom: 20px; }
}

/* ─── PRODUCTS ─── */
.products { background: var(--white); border-bottom: 1px solid var(--border); }
.products-head { text-align: center; margin-bottom: 40px; }
.products-head .sec-h2 { margin: 0 auto 14px; }
@media (min-width: 900px) {
  .products-head .sec-h2 { white-space: nowrap; }
}
.products-head .sec-p { margin: 0 auto; font-size: 15px; color: var(--muted); max-width: 640px; }

/* Octopus layout */
.tech-octopus { display: flex; flex-direction: column; align-items: center; }
.tech-core {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px 44px;
  max-width: 620px;
  width: 100%;
  text-align: center;
  background: var(--bg-alt);
  position: relative;
}
.tech-core::after {
  content: '';
  position: absolute;
  bottom: -52px; left: 50%;
  width: 1.5px; height: 52px;
  background: var(--border);
  transform: translateX(-50%);
}
.tech-core p { font-size: 15px; color: var(--muted); line-height: 1.75; }
.tech-connector { width: 100%; height: 52px; }
.tc-svg { width: 100%; height: 52px; display: block; overflow: visible; }
.tc-svg path { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-linecap: round; }

.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--border); gap: 1px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.prod-card { background: var(--white); padding: 30px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: background .18s; }
.prod-card.coming { opacity: 0.6; }
.prod-header { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.prod-icon { display: flex; align-items: center; }
.prod-icon svg { width: 22px; height: 22px; }


.prod-name { font-size: 14px; font-weight: 600; color: var(--black); line-height: 1.3; }
.prod-desc { font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.prod-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.prod-tag-type { font-size: 11px; font-weight: 500; color: var(--blue); background: transparent; border: 1px solid #c5cbff; border-radius: 100px; padding: 3px 10px; white-space: nowrap; width: 150px; height: 24px; overflow: hidden; display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.prod-tags { min-height: 40px; }
.prod-tag-cursor { display: inline-block; width: 1px; height: 10px; background: var(--blue); margin-left: 1px; animation: tw-blink .65s step-end infinite; vertical-align: middle; }
@keyframes tw-blink { 50% { opacity: 0; } }
.prod-link { margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--black); display: inline-flex; align-items: center; gap: 5px; transition: gap .18s; }
.prod-badge { margin-top: 14px; display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; background: var(--bg-alt); color: var(--light); padding: 3px 10px; border-radius: 100px; }

/* ─── PLATFORM ─── */
.platform { background: var(--black); border-bottom: 1px solid #222; }
.platform-intro { text-align: center; margin-bottom: 64px; }
.platform-intro .sec-tag { color: var(--blue); }
.platform-intro .sec-h2 { color: #fff; }
.platform-intro .sec-p { margin: 0 auto; color: rgba(255,255,255,0.5); font-size: 18px; line-height: 1.7; }

.plat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #222; border: 1px solid #222; border-radius: 10px; overflow: hidden; margin-bottom: 48px; }
.plat-col { background: #111; padding: 40px 36px; display: flex; flex-direction: column; }
/* Centered variant of plat-col — used by the lightweight product columns. */
.plat-col.is-center { align-items: center; text-align: center; }
.plat-col.is-center .plat-col-tags { justify-content: center; }
.plat-col-step { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.plat-col-step-num { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.12); color: var(--white); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plat-col-name { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.5px; margin: 0; }
.plat-col-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.75; margin-bottom: 16px; }
.plat-col-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.plat-col-tagline { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.plat-col-img { border-radius: 6px; overflow: hidden; border: 1px solid #2a2a2a; aspect-ratio: 16/9; background: #0a0a14; position: relative; cursor: default; margin-top: auto; }
.plat-col-img img, .plat-col-img video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: default; filter: saturate(0.6) brightness(0.9); }
.plat-vid-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: rgba(255,255,255,0.55); background: rgba(0,0,0,0.18); transition: opacity .25s; pointer-events: none; }
.plat-col-img.playing .plat-vid-hint { opacity: 0; }
.plat-col-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); transition: gap .18s, color .18s; }

.plat-teaser {
  background: #111; border: 1px solid #222; border-radius: 10px;
  padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 48px;
}
.plat-teaser-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plat-teaser-step { font-size: 11px; font-weight: 600; color: var(--blue); letter-spacing: 0.09em; text-transform: uppercase; }
.plat-teaser-name { font-size: 15px; font-weight: 600; color: #fff; }
.plat-teaser-desc { font-size: 13px; color: rgba(255,255,255,0.45); }
.plat-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35); padding: 5px 14px; border-radius: 100px; white-space: nowrap; border: 1px solid rgba(255,255,255,0.1); }

.plat-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #1a1a1a; border: 1px solid #1a1a1a; border-radius: 14px; overflow: hidden; margin-top: 32px; }
.plat-stat { background: #0d0d0d; padding: 40px 24px; text-align: center; transition: background .2s; position: relative; overflow: hidden; }
.plat-stat::after { content: ''; position: absolute; inset: 0; border-top: 2px solid transparent; transition: border-color .25s; pointer-events: none; }
.plat-stat-val { font-size: 54px; font-weight: 800; color: var(--blue); letter-spacing: -2.5px; line-height: 1; margin-bottom: 12px; opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(0.16,1,0.3,1), transform .5s cubic-bezier(0.16,1,0.3,1); }
.plat-stat-val.visible { opacity: 1; transform: translateY(0); }
.plat-stat-label { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ─── CASE STUDIES ─── */
.cases { background: var(--white); border-bottom: 1px solid var(--border); }
.cases-head { text-align: center; margin-bottom: 44px; }
.cases-head .sec-p { max-width: 640px; margin: 10px auto 0; }
.cases-all { font-size: 14px; font-weight: 500; color: var(--black); display: flex; align-items: center; gap: 5px; transition: gap .18s; white-space: nowrap; }
.cases-all:hover { gap: 9px; }

/* ─── CASE MODAL ─── */
.case-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0); pointer-events: none;
  transition: background 0.4s cubic-bezier(0.16,1,0.3,1);
  /* clip the off-canvas panel so its translated-out position never
     contributes to body scrollWidth on narrow phones */
  overflow: hidden;
}
.case-modal-overlay.open {
  background: rgba(0,0,0,0.65); pointer-events: all;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.case-modal-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(600px, 100vw);
  background: #0a0a0a;
  border-left: 1px solid rgba(255,255,255,0.07);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto; z-index: 501;
  display: flex; flex-direction: column;
}
.case-modal-overlay.open .case-modal-panel { transform: translateX(0); }
.case-modal-img {
  width: 100%; aspect-ratio: 16/7; overflow: hidden;
  position: relative; background: #050505; flex-shrink: 0;
}
.case-modal-img img { width:100%; height:100%; object-fit:cover; display:block; filter: brightness(0.88); }
.case-modal-img-ph {
  position:absolute; inset:0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 9px);
  display:flex; align-items:center; justify-content:center;
}
.case-modal-img-letter { font-size: 9rem; font-weight: 700; color: rgba(255,255,255,0.04); user-select:none; line-height:1; }
.case-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: background .2s, color .2s;
}
.case-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.case-modal-content { padding: 36px 40px 56px; flex: 1; }
.case-modal-tag { font-size:10px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color: var(--blue); margin-bottom: 8px; }
.case-modal-name { font-size: 32px; font-weight: 700; letter-spacing:-0.8px; line-height:1.1; color:#fff; margin-bottom: 8px; }
.case-modal-headline { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.case-modal-metrics { display: flex; gap: 24px; flex-wrap: wrap; padding: 20px 22px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); margin-top: 28px; }
.case-modal-metric-val { font-size: 20px; font-weight: 700; color: var(--blue); letter-spacing: -0.5px; }
.case-modal-metric-label { font-size: 11px; color: rgba(255,255,255,0.38); margin-top: 2px; }
.case-article-section { margin-bottom: 22px; }
.case-article-h { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 8px; }
.case-article-p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.8; }
.case-article-ul { list-style: none; padding: 0; margin: 0; }
.case-article-ul li { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.75; padding: 4px 0 4px 18px; position: relative; }
.case-article-ul li::before { content: '–'; position: absolute; left: 0; color: var(--blue); }
.case-article-ul li strong { color: rgba(255,255,255,0.78); font-weight: 500; }
.case-article-quote { margin: 24px 0 4px; padding: 16px 20px; border-left: 2px solid var(--blue); background: rgba(28,51,255,0.06); border-radius: 0 8px 8px 0; }
.case-article-quote p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; font-style: italic; margin-bottom: 8px; }
.case-article-quote cite { font-size: 10.5px; color: var(--blue); font-style: normal; letter-spacing: 0.07em; text-transform: uppercase; }

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); transition: box-shadow .22s, transform .22s; display: flex; flex-direction: column; }
.case-card:hover { box-shadow: 0 6px 32px rgba(0,0,0,0.09); transform: translateY(-3px); }
.case-img { aspect-ratio: 16/10; background: #0a0a14; position: relative; overflow: hidden; }
/* fallback sits behind, image renders on top */
.case-img-fb { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a0a14, #141850); }
.case-img-fb-letter { font-size: 52px; font-weight: 800; color: rgba(255,255,255,0.12); font-family: var(--font); }
.case-img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; filter: saturate(0.6) brightness(0.9); }
.case-card:hover .case-img img { transform: scale(1.03); }
.case-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.case-tag { font-size: 11px; font-weight: 500; color: var(--blue); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.case-title { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 8px; line-height: 1.4; }
.case-desc { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; font-style: italic; position: relative; padding-top: 28px; display: flex; flex-direction: column; }
.case-desc::before { content: '\201C'; position: absolute; top: -4px; left: -2px; font-size: 52px; line-height: 1; font-style: normal; color: var(--blue); opacity: 0.25; font-family: Georgia, serif; }
.case-desc cite { display: flex; align-items: center; gap: 8px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-top: auto; padding-top: 10px; }
.case-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.case-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--black); transition: gap .18s; }
.case-card:hover .case-link { gap: 9px; }

.case-quote {
  margin: 0;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 12px;
}
.case-quote p {
  font-size: 13px; font-style: italic;
  color: var(--black); line-height: 1.7;
  margin: 0;
}
.case-quote figcaption {
  font-size: 11px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.03em;
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 80px var(--px);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--w);
  margin: 0 auto;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 28px;
  margin: 0;
}
.testi-quote {
  font-size: 15px; font-style: italic;
  color: var(--black); line-height: 1.75;
  flex: 1;
}
.testi-quote::before { content: '\201C'; }
.testi-quote::after  { content: '\201D'; }
.testi-author {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.testi-logo {
  width: 40px; height: 40px;
  border-radius: 8px; object-fit: cover;
  filter: saturate(0.6) brightness(0.9);
  flex-shrink: 0;
}
.testi-author div { display: flex; flex-direction: column; gap: 2px; }
.testi-name { font-size: 13px; font-weight: 700; color: var(--black); }
.testi-role { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials { padding: 64px var(--px); }
}

/* ─── COMPATIBILITY ─── */
.compat { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.compat-head { text-align: center; margin-bottom: 52px; }
.compat-head .sec-p { margin: 0 auto; }

.compat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 4px; }
.compat-name { font-size: 14px; font-weight: 600; color: var(--black); }
.compat-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── LIDAR TICKER ─── */
.lidar-track-wrap { position: relative; overflow: hidden; margin-bottom: 36px; }
.lidar-track-wrap::before, .lidar-track-wrap::after { content: ""; position: absolute; top: 0; height: 100%; width: 80px; z-index: 2; pointer-events: none; }
.lidar-track-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.lidar-track-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg-alt), transparent); }
.lidar-track { display: inline-flex; align-items: stretch; white-space: nowrap; padding: 4px 0; will-change: transform; }
@keyframes lidar-scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.lidar-item { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 14px 24px; flex-shrink: 0; min-width: 120px; margin-right: 12px; text-decoration: none; transition: box-shadow .18s; }
.lidar-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.lidar-item-name { font-size: 14px; font-weight: 600; color: var(--black); display: flex; align-items: center; gap: 8px; }
.lidar-item-models { font-size: 11px; color: var(--muted); line-height: 1.5; }

.compat-os { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.compat-os-card { background: var(--white); padding: 20px; display: flex; align-items: flex-start; gap: 12px; }
.compat-os-name { font-size: 13px; font-weight: 600; color: var(--black); }
.compat-os-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── USE CASES (formerly "edge cases") ─── */
.env-challenges { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.env-head { text-align: center; margin-bottom: 52px; }

.uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1280px; margin: 0 auto 48px; }
.uc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.uc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: var(--blue); }
.uc-img { aspect-ratio: 16/9; overflow: hidden; background: #e8e8e8; }
.uc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
.uc-card:hover .uc-img img { transform: scale(1.04); }
.uc-body {
  padding: 24px 26px 26px;
  display: flex; flex-direction: column; flex: 1;
}
.uc-title {
  font-size: 21px; font-weight: 700; color: var(--black);
  line-height: 1.3; letter-spacing: -0.01em;
  margin-bottom: 16px;
}

/* Edge-case tags — the featured challenges, linked to their demo
   articles. Compact single-line text links; a pill row couldn't hold
   three tags on one line at 4-across card widths. */
.uc-tags { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; white-space: nowrap; }
.uc-tags a { font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; }
.uc-tags a:hover { text-decoration: underline; }
.uc-tags a:not(:last-child)::after { content: "·"; margin-left: 7px; color: var(--light); font-weight: 400; }

/* Industries — concrete examples as plain text (deliberately not labels).
   margin-top: auto pins the line to the card bottom so all four align
   even when a title wraps to a second line on a sibling card. */
.uc-industries { font-size: 13px; color: var(--muted); margin-top: auto; }

@media (max-width: 1024px) {
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .uc-grid { grid-template-columns: 1fr; }
}

/* ─── ORIENTEUR ─── */
.orienteur { max-width: 960px; margin: 64px auto 0; padding-top: 52px; border-top: 1px solid var(--border); }
.ori-prompt { font-size: 18px; font-weight: 700; color: var(--black); text-align: center; margin-bottom: 28px; }
.ori-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ori-option { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 20px 16px; text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.ori-option:hover { border-color: var(--blue); box-shadow: 0 2px 12px rgba(28,51,255,0.08); }
.ori-option[aria-pressed="true"] { border-color: var(--blue); background: rgba(28,51,255,0.04); box-shadow: 0 0 0 2px rgba(28,51,255,0.3); }
.ori-label { font-size: 13px; font-weight: 700; color: var(--black); }
.ori-option .ori-sub { font-size: 11.5px; color: var(--muted); line-height: 1.4; white-space: normal; }
.ori-result { margin-top: 24px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px 32px; display: flex; gap: 40px; align-items: center; }
.ori-result[hidden] { display: none; }
.ori-result-body { flex: 1; }
.ori-result-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 8px; }
.ori-result-desc { font-size: 14px; color: var(--black); line-height: 1.6; margin-bottom: 20px; }
.ori-result-links { display: flex; flex-direction: column; gap: 10px; }
.ori-result-link { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ori-result-link::before { content: '→'; }
.ori-result-link:hover { text-decoration: underline; }
.ori-result-cta { flex-shrink: 0; }
@media (max-width: 860px) {
  .ori-options { grid-template-columns: 1fr 1fr; }
  .ori-result { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .ori-options { grid-template-columns: 1fr; }
}

/* ─── SOLUTIONS / INDUSTRIES ─── */
.solutions { background: var(--white); border-bottom: 1px solid var(--border); padding-left: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); }
.solutions-head { text-align: center; margin-bottom: 52px; }
.solutions-head .sec-p { margin: 0 auto; }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(220px, 30%), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; max-width: 70%; margin: 0 auto; }
.sol-card { background: var(--white); padding: 0 0 24px; cursor: default; transition: background .28s cubic-bezier(0.16,1,0.3,1), opacity .28s cubic-bezier(0.16,1,0.3,1), box-shadow .28s cubic-bezier(0.16,1,0.3,1); }
.sol-icon { width: 100%; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; transition: transform .28s cubic-bezier(0.16,1,0.3,1); margin-bottom: 16px; }
.sol-icon img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.6) brightness(0.9); }
.sol-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; padding: 0 18px; }

.sol-name { font-size: 13px; font-weight: 600; color: var(--black); transition: color .28s cubic-bezier(0.16,1,0.3,1); }
.sol-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 18px; }
.sol-label { font-size: 10px; font-weight: 500; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 100px; padding: 5px 8px; text-align: center; transition: color .28s, border-color .28s, background .28s; display: flex; align-items: center; justify-content: center; height: 26px; }
.sol-client { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sol-client img { height: 16px; width: auto; max-width: 56px; object-fit: contain; filter: brightness(0) opacity(0.28); transition: opacity .2s; }

/* ─── PRICING ─── */
.pricing { background: var(--white); border-bottom: 1px solid var(--border); }
.pricing-head { text-align: center; margin-bottom: 64px; }
.pricing-head .sec-p { margin: 0 auto; }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.phase { background: var(--white); padding: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); transition: background .22s; }
.phase:last-child { border-right: none; }
.phase:hover { background: #fafafa; }
.phase-illo {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  transition: background .22s;
}
.phase:hover .phase-illo { background: #f0f2ff; }
.phase-illo svg { overflow: visible; }
.phase-body { padding: 32px 36px 40px; display: flex; flex-direction: column; gap: 0; flex: 1; position: relative; }
.phase-num { font-size: 56px; font-weight: 800; color: var(--black); letter-spacing: -3px; line-height: 1; opacity: 0.06; position: absolute; top: 24px; right: 28px; }
.phase-tag { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.phase-title { font-size: 18px; font-weight: 800; color: var(--black); letter-spacing: -0.6px; line-height: 1.15; margin-bottom: 16px; }
.phase-desc { font-size: 14px; color: var(--muted); line-height: 1.75; flex: 1; }

.pricing-academic-strip { margin-top: 24px; padding: 28px 32px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.pricing-academic-strip p { font-size: 15px; color: var(--muted); margin: 0; }
.pricing-academic-strip a { color: var(--blue); text-decoration: none; font-weight: 600; }
.pricing-academic-strip a:hover { text-decoration: underline; }
.pricing-academic-link { background: none; border: none; padding: 0; color: var(--blue); font-weight: 600; font-size: inherit; cursor: pointer; font-family: var(--font); }
.pricing-academic-link:hover { text-decoration: underline; }
.phase-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--black); transition: gap .18s; margin-top: 20px; }

/* ─── PROGRAM MODAL ─── */
.prog-modal-hdr {
  height: 110px; background: #0a0a0a;
  display: flex; align-items: flex-end; padding: 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative; flex-shrink: 0;
}
.prog-modal-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.prog-modal-cta-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 32px;
  padding: 13px 28px; background: var(--blue); color: white; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.2px;
  transition: opacity .18s; text-decoration: none;
}
.prog-modal-cta-btn:hover { opacity: 0.85; }

/* ─── ABOUT (LIGHT) ─── */
.about { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.about .sec-tag { color: var(--blue); }
.about .sec-h2 { color: var(--black); }
.about .sec-p { color: var(--muted); }
.about-head { margin-bottom: 48px; text-align: center; }
.about-head .sec-h2 { margin: 0 auto 14px; }
@media (min-width: 900px) {
  .about-head .sec-h2 { white-space: nowrap; }
}
.about-head .sec-p { max-width: 1100px; margin: 0 auto; }
/* Desktop nowrap variant: the text is wider than the 580px reading
   cap above, and text-align:center doesn't actually center overflow
   in Chrome — it left-anchors to the box and spills right. Let the
   box hug the text so margin:auto can center it for real. */
@media (min-width: 900px) {
  .about-head .sec-p.is-nowrap { max-width: 100%; width: max-content; }
}

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
.team-cta { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 48px; }
@media (max-width: 640px) {
  .team-cta { flex-direction: column; gap: 16px; text-align: center; }
}
.team-card { background: var(--white); display: flex; flex-direction: column; transition: background .18s; text-decoration: none; color: inherit; }
.team-card:hover { background: #f8f8f8; }
.team-card:hover .team-photo img { filter: grayscale(0%); transform: scale(1.03); }
/* Square aspect across breakpoints so faces stay visible regardless of card
   width. max-height caps the photo on very large screens. */
.team-photo { aspect-ratio: 1; max-height: 380px; overflow: hidden; background: #e8e8e8; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(20%) saturate(0.6) brightness(0.9); transition: filter .4s, transform .5s cubic-bezier(0.16,1,0.3,1); display: block; }
.team-photo-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 8px); }
.team-photo-ph span { font-size: 3rem; font-weight: 700; color: rgba(0,0,0,0.08); letter-spacing: -0.04em; }
.team-info { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.team-role { font-size: 10px; font-weight: 700; color: var(--blue); letter-spacing: 0.12em; text-transform: uppercase; height: 32px; overflow: hidden; }
.team-name { font-size: 13px; font-weight: 700; color: var(--black); letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-phd { font-size: 7.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; line-height: 1; position: relative; top: 0.5px; }
.team-bio { font-size: 13px; color: var(--muted); line-height: 1.65; height: 66px; overflow: hidden; flex: none; }
.team-li { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1; color: #aaa; margin-top: auto; padding-top: 10px; transition: color .15s; text-decoration: none; }
.team-li:hover { color: var(--black); }
.team-li svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; overflow: visible; }

.press-section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.press-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.press-item { background: var(--white); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background .18s; overflow: hidden; }
.press-item:hover { background: #f8f8f8; }
.press-item:hover .press-thumb img { transform: scale(1.04); }
.press-thumb { aspect-ratio: 16/9; overflow: hidden; background: #e8e8e8; }
.press-thumb-text { background: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.press-thumb-text span { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: rgba(255,255,255,0.75); text-transform: uppercase; }
.press-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) brightness(0.9); transition: transform .4s cubic-bezier(0.16,1,0.3,1), filter .3s; display: block; }
.press-item:hover .press-thumb img { filter: brightness(1) saturate(1); }
.press-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.press-pub { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.press-title { font-size: 12.5px; color: var(--black); line-height: 1.5; flex: 1; }
.press-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.press-date { font-size: 10px; color: #bbb; }
.press-arrow { font-size: 13px; color: #ccc; transition: transform .2s, color .2s; }
.press-item:hover .press-arrow { transform: translateX(2px) translateY(-2px); color: var(--muted); }

/* ─── COMMUNITY ─── */
/* ─── PROGRAMS ─── */
.programs { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.programs-head { text-align: center; margin-bottom: 52px; }
.programs-inner { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; max-width: 900px; margin: 0 auto; }
.program-card { padding: 0 56px; }
.program-card:first-child { padding-left: 0; }
.program-card:last-child { padding-right: 0; }
.program-card .sec-tag { display: inline-block; margin-bottom: 14px; }
.program-card .sec-h2 { margin-bottom: 16px; font-size: clamp(18px, 1.9vw, 24px); }
.program-card .sec-p { color: var(--muted); margin-bottom: 28px; }
.program-divider { background: var(--border); width: 1px; margin: 0 0; }
@media (max-width: 700px) {
  .programs-inner { grid-template-columns: 1fr; }
  .program-divider { width: 100%; height: 1px; margin: 40px 0; }
  .program-card { padding: 0; }
}

/* ─── EXPLORE ─── */
.explore-sec { background: var(--white); }

.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--black); }
.explore-grid-3 { grid-template-columns: repeat(3, 1fr); }
.explore-grid-3 .explore-card { height: clamp(300px, 26vw, 420px); }
.explore-card {
  position: relative; display: block; overflow: hidden;
  height: clamp(340px, 34vw, 480px);
  text-decoration: none; color: var(--white);
}
.explore-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .6s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
.explore-card:hover .explore-card-img { transform: scale(1.05); }
.explore-card-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0) 68%);
}
.explore-card-arrow {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--white); font-size: 17px;
  transition: transform .25s cubic-bezier(0.16,1,0.3,1), background .2s;
}
.explore-card:hover .explore-card-arrow { transform: translate(3px, -3px); background: #1526c9; }
.explore-card-text { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 2; }
.explore-card-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.explore-card-sub { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.75); max-width: 360px; }

@media (max-width: 768px) {
  .explore-grid, .explore-grid-3 { grid-template-columns: 1fr; }
  .explore-card, .explore-grid-3 .explore-card { height: 320px; }
}
@media (max-width: 480px) {
  .explore-card-text { left: 22px; right: 22px; bottom: 22px; }
  .explore-card-arrow { top: 16px; right: 16px; width: 38px; height: 38px; }
}

.cta-video {
  display: block;
  max-width: 760px; width: 100%;
  margin: 48px auto 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: box-shadow .25s, transform .25s;
}
.cta-video:hover { box-shadow: 0 20px 80px rgba(0,0,0,0.6); transform: translateY(-3px); }
.cta-video:hover .demo-thumb img { transform: scale(1.03); }
.cta-video .demo-play svg { width: 52px; height: 52px; }
.cta-video:hover .demo-play { background: rgba(28,51,255,0.4); }

/* ─── RESPONSIVE ─── */

/* Universal safety: images, videos, SVGs never overflow. */
img, video, svg { max-width: 100%; height: auto; }
.hero-bg-video { height: 100%; } /* preserve hero cover */
.plat-col-img img, .plat-col-img video,
.case-img img,
.trusted-logo img,
.team-photo img,
.press-thumb img { height: 100%; }

/* ── Tablet wide (≤1200px) ── */
@media (max-width: 1200px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .plat-stats { grid-template-columns: repeat(3, 1fr); }
  .compat-os { grid-template-columns: repeat(2, 1fr); }
  .hero-content { width: 62%; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .community-inner { gap: 48px; }
}

/* ── Tablet portrait (≤900px) ── */
@media (max-width: 900px) {
  .plat-cols { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .env-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }

  .community-grid { grid-template-columns: 1fr; }
  .community-inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .community-visual { justify-content: flex-start; }
  .cases-head { align-items: center; }
  .phases { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); }

  /* tech octopus: stack cards, hide connector lines */
  .tech-core { padding: 24px 20px; max-width: 100%; }
  .tech-core::after { display: none; }
  .tech-connector { display: none; }
  .products-grid { grid-template-columns: 1fr; }

  /* platform teaser stacks */
  .plat-teaser { flex-direction: column; align-items: flex-start; padding: 20px 22px; }
  .plat-col { padding: 28px 24px; }

  /* trusted-by: smaller label gap, smaller logos */
  .trusted { padding: 16px 20px; }
  .trusted-label { margin-right: 24px; }
  .trusted-logo { padding: 0 24px; }
  .trusted-logo img { height: 28px; max-width: 80px; }

  /* cases-head CTA row */
  .cases-head { flex-direction: column; gap: 14px; }

  /* CTA */
  .cta-sec { padding: 72px 20px; }
  .cta-sec h2 { font-size: clamp(21px, 4vw, 34px); }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  /* hero: full-width dark overlay, content full width */
  .hero { height: auto; min-height: 100svh; align-items: flex-end; }
  .hero-bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(5,5,15,0.55) 0%,
      rgba(5,5,15,0.72) 55%,
      rgba(5,5,15,0.92) 100%
    );
  }
  .hero-content {
    width: 100%; max-width: 100%; min-width: 0;
    margin-left: var(--px);
    padding: 100px 18px 60px;
  }
  h1.hero-h1 { font-size: clamp(26px, 5.6vw, 45px); letter-spacing: -1.5px; white-space: normal; }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-scroll { display: none; }
  .hero-envs { gap: 6px; grid-template-columns: repeat(2, max-content); }
  .hero-env { font-size: 10px; padding: 4px 10px; }
  .hero-btns { gap: 10px; }

  /* sections */
  .sec { padding: 64px 18px; }
  .trusted { padding: 16px 18px; flex-wrap: wrap; gap: 8px; }
  .trusted-label { margin-right: 0; margin-bottom: 6px; flex-basis: 100%; }
  .trusted-logo { padding: 0 20px; }
  .trusted-logo img { height: 26px; max-width: 72px; }
  .cta-sec { padding: 56px 18px; }

  /* grids */
  .products-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }

  .compat-os { grid-template-columns: repeat(2, 1fr); }
  /* minmax(0, 1fr) instead of plain 1fr so the long label text
     "Changing environment" can't push the column wider than 50% of
     the grid (which used to crop the right column on narrow phones). */
  .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
  .env-grid { grid-template-columns: repeat(2, 1fr); }
  /* Labels: switch from a fixed 3-col grid to a flex-wrap row so long
     pills wrap inside the card instead of forcing it wider. */
  .sol-labels { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
  .plat-stats { grid-template-columns: repeat(2, 1fr); }
  .plat-stat { padding: 28px 16px; }
  .plat-stat-val { font-size: 40px; letter-spacing: -1.5px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .press-grid { grid-template-columns: 1fr; }

  /* platform teaser */
  .plat-teaser { flex-direction: column; align-items: flex-start; }

  /* case modal: full width slide-over */
  .case-modal-panel { width: 100vw; }
  .case-modal-content { padding: 24px 20px 40px; }

  /* buttons: allow full wrap */
  .btn { padding: 12px 22px; font-size: 14px; }

  /* section titles: tighter */
  .sec-h2 { letter-spacing: -1px; }

  /* community visual */
  .community-inner { gap: 32px; }
  .community-grid { max-width: 100%; }
}

/* ── Mobile small (≤640px) ── */
@media (max-width: 640px) {
  /* Drop industries to a single column on phones — at 2-col widths
     below this, the hero photo shrinks to an unreadable thumbnail
     and the cards aren't pulling their weight. 1-col gives each
     industry a proper full-width image. */
  .solutions-grid { grid-template-columns: 1fr; max-width: 100%; }
  .plat-stats { grid-template-columns: repeat(2, 1fr); }
  .compat-os { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-info { padding: 16px 16px 20px; }

  /* hero buttons stack full-width */
  .hero-btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-trial { padding: 12px 16px; gap: 10px; }
  .hero-env { font-size: 10px; padding: 4px 9px; }

  /* CTA buttons stack */
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; justify-content: center; }

  /* case cards tighter */
  .case-body { padding: 18px; }

  /* platform cols tighter */
  .plat-col { padding: 24px 18px; }
  .plat-col-name { font-size: 18px; }

  /* phase illos smaller */
  .phase-illo { height: 130px; }
  .phase-body { padding: 24px 22px 28px; }

  /* tech-core tighter */
  .tech-core { padding: 20px 16px; }

  /* case modal header tighter */
  .prog-modal-hdr { padding: 18px 20px; }
}


/* ── EDGE CASES ── */
.edge-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.edge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.edge-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.edge-card:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.edge-icon {
  width: 36px; height: 36px;
  background: var(--bg-alt); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: var(--blue);
}
.edge-icon svg { width: 18px; height: 18px; }
.edge-name { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.edge-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
@media (max-width: 1024px) { .edge-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .edge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .edge-grid { grid-template-columns: 1fr; } }

/* ── DEMOS ── */
.demos-strip {
  overflow: hidden;
  /* negative margin pulls the strip flush with the viewport edges by
     cancelling the parent section's horizontal padding. The fallback
     value matches the desktop --px; the mobile rules below match the
     actual .sec padding at each breakpoint. */
  margin: 0 calc(-1 * var(--px));
  padding: 4px 0 8px;
  /* edge fade */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.demos-strip-dark { margin-top: 48px; }
.demos-strip:hover .demos-strip-inner { animation-play-state: paused; }
.demos-strip-inner {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: demos-scroll 40s linear infinite;
}
@keyframes demos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .demos-strip-inner { animation: none; }
}
.demo-card {
  width: 290px;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #111;
  text-decoration: none;
  transition: box-shadow .22s, transform .22s;
  cursor: pointer;
}
.demo-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.5); transform: translateY(-3px); border-color: #3a3a3a; }
.demo-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: #0d0d1a; flex-shrink: 0;
}
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.6) brightness(0.9); transition: transform .5s cubic-bezier(0.16,1,0.3,1); }
.demo-card:hover .demo-thumb img { transform: scale(1.04); }
/* slicing shine on hover */
.demo-thumb::before {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.13) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .55s ease;
  z-index: 4; pointer-events: none;
}
.demo-card:hover .demo-thumb::before { left: 130%; }
.demo-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background .2s;
  z-index: 2;
}
.demo-card:hover .demo-play { background: rgba(28,51,255,0.3); }
.demo-play svg { width: 36px; height: 36px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.demo-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 5px; }
.demo-tag { display: none; }
.demo-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); line-height: 1.35; }

/* ── TEAM PLACEHOLDER ── */
.team-photo-empty {
  background: #1a1a2e;
  display: flex; align-items: center; justify-content: center;
}

/* ── Mobile small (≤480px) ── */
@media (max-width: 480px) {
  .sec { padding: 52px 16px; }
  h1.hero-h1 { font-size: clamp(21px, 6.8vw, 30px); }
  .sec-h2 { font-size: clamp(19px, 5.6vw, 27px); }
  /* mobile hero: fill the viewport edge-to-edge with consistent side padding.
     min-width:0 + width:100% kill the desktop 320px floor that was forcing
     horizontal scroll on iPhone SE / narrow Android. */
  .hero-content {
    margin-left: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 100px 16px 48px;
  }
  /* keep .demos-strip flush with viewport edges (matches .sec padding) */
  .demos-strip { margin: 0 -16px; }
  .hero-envs { gap: 6px; grid-template-columns: repeat(2, max-content); }
  .hero-env { font-size: 10px; padding: 4px 8px; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .btn { min-height: 44px; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; justify-content: center; }
  .plat-stats { grid-template-columns: 1fr; }
  .compat-os { grid-template-columns: 1fr; }
  .pricing-card { padding: 24px 20px; }
  .plat-stat-val { font-size: 36px; }
  .trusted { padding: 14px 16px; }
  .trusted-logo { padding: 0 16px; }
  .trusted-logo img { height: 24px; max-width: 64px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .case-modal-content { padding: 22px 16px 36px; }
  .prog-modal-hdr { padding: 16px 18px; height: 96px; }
}

/* ── Ultra-narrow (≤360px): 320px safety pass ── */
@media (max-width: 360px) {
  .solutions-grid { grid-template-columns: 1fr; max-width: 100%; }
  .sec { padding: 48px 14px; }
  .hero-content { margin-left: 0; width: 100%; min-width: 0; max-width: 100%; padding: 96px 14px 40px; }
  .demos-strip { margin: 0 -14px; }
  h1.hero-h1 { font-size: clamp(19px, 7.2vw, 26px); letter-spacing: -0.5px; }
  .hero-sub { font-size: 14px; }
  .trusted { padding: 12px 14px; }
  .trusted-logo { padding: 0 12px; }
  .tech-core { padding: 18px 14px; }
  .plat-col { padding: 22px 16px; }
  .case-body { padding: 16px; }
  .team-info { padding: 14px 14px 18px; }
}

/* ─── SCROLL REVEAL ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger inside specific containers — replaces inline transition-delay attrs.
   Order matches DOM order; tweak per-container if items are reordered. */
.community-grid .comm-pill[data-reveal]:nth-child(1) { transition-delay: 0s; }
.community-grid .comm-pill[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.community-grid .comm-pill[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.community-grid .comm-pill[data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.phases .phase[data-reveal]:nth-child(1) { transition-delay: 0s; }
.phases .phase[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.phases .phase[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ─── FAQ ─── */
.faq { background: var(--white); border-bottom: 1px solid var(--border); }
.faq-head { max-width: var(--w); margin: 0 auto 56px; text-align: center; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font-size: 16px; font-weight: 600; color: var(--black);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  position: relative;
  transition: border-color .2s, background .2s;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--black);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(0.16,1,0.3,1), opacity .2s;
}
.faq-icon::before { width: 8px; height: 1.5px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.5px; height: 8px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

.faq-item[open] .faq-icon { border-color: var(--blue); background: var(--blue); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
  padding: 0 0 24px;
  animation: faqOpen .25s cubic-bezier(0.16,1,0.3,1);
}
.faq-a p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: var(--black); font-weight: 600; }

.faq-inline-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--blue);
  transition: opacity .15s;
}
.faq-inline-link:hover { opacity: 0.75; }

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .faq-head { margin-bottom: 36px; }
  .faq-q { font-size: 15px; padding: 18px 0; }
  .faq-a p { font-size: 14px; }
}

/* ─── FROM THE FIELD ─── */
.field-notes { background: var(--bg-alt); border-bottom: 1px solid var(--border); overflow: hidden; }
.field-head { max-width: var(--w); margin: 0 auto 40px; }

.field-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--px) 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.field-track::-webkit-scrollbar { display: none; }

.field-card {
  flex: 0 0 300px; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: box-shadow .22s, transform .22s;
}
.field-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); transform: translateY(-3px); }

.field-card-img {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: #111; flex-shrink: 0;
}
.field-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.6) brightness(0.9);
  transition: transform .5s cubic-bezier(0.16,1,0.3,1);
}
.field-card:hover .field-card-img img { transform: scale(1.04); }

.field-card-img--follow {
  display: flex; align-items: center; justify-content: center;
  background: #0a66c2; color: #fff;
}

.field-card-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.field-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.field-card-title { font-size: 15px; font-weight: 600; color: var(--black); line-height: 1.4; flex: 1; margin: 0; }
.field-card-link { font-size: 13px; font-weight: 600; color: var(--muted); transition: color .15s; }
.field-card:hover .field-card-link { color: var(--black); }

@media (max-width: 640px) {
  .field-card { flex: 0 0 260px; }
  .field-head { margin-bottom: 28px; }
}
