/* ══════════════════════════════════════════════
   IMMERSERVENTS — styles.css
   ══════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_100.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_100_Italic.otf') format('opentype'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_300.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_300_Italic.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_500.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_500_Italic.otf') format('opentype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_700.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_700_Italic.otf') format('opentype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_900.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Museo Sans'; src: url('assets/fonts/MuseoSans_900_Italic.otf') format('opentype'); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Museo Sans Rounded'; src: url('assets/fonts/MuseoSansRounded-500.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }


/* ── Tokens ── */
:root {
  --white: #ffffff;
  --bg: #ffffff;
  --text: #1E1C21;
  --text-muted: #9a9a9a;
  --accent: #EE293A;
  --card-bg: #E8E8E8;
  --dark-bg: #3D3D3F;
  --dark-text: #ffffff;

  --radius-card: 20px;
  --radius-btn: 100px;
  --radius-video: 14px;

  --tracking-ui: 0.04em;

  --sp-4: 4px;
  --sp-8: 8px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;
  --sp-128: 128px;

  --font: 'Museo Sans', sans-serif;
  --max-w: 1500px;
  --pad-x: clamp(20px, 4vw, 64px);
  --hero-height: calc(100svh - clamp(24px, 4svh, 48px));
  --hero-content-pad: clamp(34px, 4vw, 64px);
  --header-pad: clamp(12px, 1.3vw, 20px);
  --radius-hero: clamp(18px, 2vw, 28px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 300ms;
  --duration-med: 500ms;
  --duration-slow: 700ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  background: #f7f7f5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #111 transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #111;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #000; }


img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
a:focus-visible,
button:focus-visible,
.video-controls__track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.video-controls__track:focus-visible {
  border-radius: 999px;
}

/* ── Reveal — base (párrafos, items secundarios) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Títulos — más movimiento, más lento */
[data-reveal="title"] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}

/* Vídeos / media — fade puro, sin movimiento */
[data-reveal="media"] {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 900ms var(--ease-out);
}

/* Cards — entrada con ligera escala */
[data-reveal="card"] {
  opacity: 0;
  transform: translateY(20px) scale(0.995);
  transition:
    opacity 750ms var(--ease-out),
    transform 750ms var(--ease-out);
}
[data-reveal="card"].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="title"],
  [data-reveal="media"],
  [data-reveal="card"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero {
    min-height: 100svh;
  }
  .hero-video-inner {
    position: relative;
  }
  .hero-video {
    filter: brightness(0.72) saturate(1);
    transform: scale(1.04);
  }
  .hero-content {
    position: absolute;
    inset: 0;
    height: auto;
    margin: 0 auto;
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 16px;
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 100;
  pointer-events: none;
}
.site-header__inner {
  width: min(100%, var(--max-w));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 22px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  background: rgba(30,28,33,0.62);
  box-shadow: 0 20px 70px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px) saturate(1.12);
  transition:
    background 360ms var(--ease-out),
    border-color 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out),
    transform 360ms var(--ease-out);
  pointer-events: auto;
}
.site-header.is-scrolled .site-header__inner {
  background: rgba(30,28,33,0.76);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 18px 54px rgba(0,0,0,0.22);
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
}
.site-header__logo {
  flex: 0 0 auto;
}
.logo-img {
  height: 30px;
  width: auto;
  display: block;
  filter: none;
}

/* ── One-page nav ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-btn);
  color: rgba(255,255,255,0.74);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-ui);
  text-transform: uppercase;
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.site-nav__cta {
  min-height: 46px;
  margin-left: 4px;
  padding: 0 22px !important;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.site-nav__cta:hover {
  background: #d4212f !important;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  --hero-progress: 0;
  min-height: 190svh;
  padding: 0;
  position: relative;
  z-index: 1;
  overflow: clip;
  background: var(--text);
}
.hero-video-inner {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  border-radius: 0;
  overflow: hidden;
  background: var(--text);
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: clamp(0, calc((var(--hero-progress) - 0.16) * 3.2), 1);
  filter:
    brightness(calc(0.72 + (var(--hero-progress) * 0.24)))
    saturate(calc(0.98 + (var(--hero-progress) * 0.08)));
  transform: scale(calc(1.10 - (var(--hero-progress) * 0.10)));
  transform-origin: center;
  will-change: opacity, transform, filter;
}
.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: clamp(0, calc(1.15 - (var(--hero-progress) * 2.8)), 1);
  filter: brightness(0.76) saturate(0.98);
  transform: scale(calc(1.025 - (var(--hero-progress) * 0.035)));
  scale: 1;
  transform-origin: center;
  pointer-events: none;
  animation: heroPosterSettle 14s var(--ease-out) forwards;
  will-change: opacity, transform, scale;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: calc(1 - (var(--hero-progress) * 0.72));
  background:
    linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0.08) 42%, rgba(0,0,0,0.58)),
    radial-gradient(circle at 50% 42%, rgba(0,0,0,0.04), rgba(0,0,0,0.48) 72%);
  transition: opacity 120ms linear;
}
.hero-rotate-hint {
  display: none;
}
.hero-content {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 100svh;
  width: min(100%, var(--max-w));
  margin: -100svh auto 0;
  padding: clamp(112px, 12vw, 170px) var(--pad-x) clamp(44px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  gap: 12px;
  text-align: center;
  pointer-events: auto;
  opacity: clamp(0, calc(1 - (var(--hero-progress) * 1.85)), 1);
  transform:
    translateY(calc(var(--hero-progress) * -58px))
    scale(calc(1 - (var(--hero-progress) * 0.035)));
  transform-origin: center;
  will-change: opacity, transform;
}
.hero.is-video-focus .hero-content {
  pointer-events: none;
}
.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: inherit;
}
.overline {
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: var(--tracking-ui);
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  font-size: clamp(40px, 5.2vw, 80px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}
.hero-title span {
  display: block;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: clamp(0, calc(1 - (var(--hero-progress) * 2.4)), 1);
  transition: opacity 120ms linear;
}
.hero-scroll-hint i {
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: rgba(255,255,255,0.22);
}
.hero-scroll-hint i::before {
  content: '';
  display: block;
  width: 1px;
  height: 18px;
  background: var(--accent);
  animation: heroScrollHint 1.7s var(--ease-out) infinite;
}

@keyframes heroScrollHint {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  32% {
    opacity: 1;
  }
  100% {
    transform: translateY(42px);
    opacity: 0;
  }
}

@keyframes heroPosterSettle {
  from { scale: 1.065; }
  to { scale: 1.006; }
}

/* ── Button ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background var(--duration-fast) var(--ease-out);
  will-change: background;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #d4212f;
}
.btn-primary:active {
  background: #bc1d2a;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { will-change: auto; transform: none; }
  .hero-poster { opacity: 1; transform: none; scale: 1; animation: none; will-change: auto; }
}

/* ════════════════════════════════════════
   FEATURES
════════════════════════════════════════ */
#home, #features, #sales, #operations, #credibility, #demo { scroll-margin-top: 64px; }
#operations,
#credibility { scroll-margin-top: 36px; }

.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(112px, 12vw, 176px) var(--pad-x) clamp(56px, 6vw, 96px);
  position: relative;
}
.features-intro {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.section-eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.features-title {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 88px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-align: center;
  color: var(--text);
}
.features-title span {
  position: relative;
  display: inline-block;
}

.scroll-fill {
  --fill: 0%;
  --fill-angle: 108deg;
  --fill-color: var(--text);
  --fill-empty: rgba(30,28,33,0.18);
  color: var(--fill-color);
  background: linear-gradient(var(--fill-angle), var(--fill-color) 0 var(--fill), var(--fill-empty) var(--fill) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}
.scroll-fill-accent {
  --fill-angle: 104deg;
  --fill-color: var(--accent);
  --fill-empty: rgba(238,41,58,0.20);
}

.product-section {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) var(--pad-x);
}
.product-section-sales {
  width: 100%;
  max-width: none;
  padding-top: 0;
}
.product-section-sales > * {
  width: min(100%, var(--max-w));
  margin-left: auto;
  margin-right: auto;
}
.product-section-dark {
  width: 100%;
  max-width: none;
  margin: clamp(20px, 4vw, 56px) 0 0;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  color: #fff;
  background: var(--text);
}
.product-section-dark > * {
  width: min(100%, var(--max-w));
  margin-left: auto;
  margin-right: auto;
}

/* ── Feature Card base ── */
.feature-card {
  --scroll-y: 0px;
  --scroll-scale: 1;
  position: relative;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(30,28,33,0.10);
  border-radius: 28px;
  padding: clamp(30px, 4vw, 56px);
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  overflow: visible;
  transition:
    transform 500ms var(--ease-out),
    box-shadow 500ms var(--ease-out);
  translate: 0 var(--scroll-y);
  scale: var(--scroll-scale);
  will-change: transform, translate, scale;
  box-shadow: 0 1px 0 rgba(255,255,255,0.80) inset;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 80px rgba(30,28,33,0.10);
}

/* Card 1: text left, media right */
.card-sales {
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  grid-template-rows: auto;
  align-items: center;
}
.card-sales .card-text-col  { grid-column: 1; grid-row: 1; }
.card-sales .card-media-col { grid-column: 2; grid-row: 1; }

/* Card 2: media left, text right */
.card-ops {
  grid-template-columns: minmax(520px, 1.2fr) minmax(320px, 0.8fr);
  grid-template-rows: auto;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-color: rgba(255,255,255,0.10);
  color: #fff;
  box-shadow: none;
}
.card-ops .card-media-col { grid-column: 1; grid-row: 1; }
.card-ops .card-text-col  { grid-column: 2; grid-row: 1; }

.card-media-col,
.card-text-col {
  position: relative;
  z-index: 1;
}
.card-media-col {
  --halo-x: 68%;
  --halo-y: 22%;
  --halo-alpha: 0.20;
  min-height: clamp(430px, 34vw, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: visible;
}
.card-media-col::before {
  content: '';
  position: absolute;
  left: var(--halo-x);
  top: var(--halo-y);
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(238,41,58,var(--halo-alpha));
  filter: blur(58px);
  opacity: 0.76;
  transform: translate(-50%, -50%) scale(0.94);
  transition:
    left 320ms var(--ease-out),
    top 320ms var(--ease-out),
    opacity 320ms var(--ease-out),
    transform 320ms var(--ease-out);
  animation: cardHaloPulse 3.8s var(--ease-out) infinite;
}
.card-media-col::after {
  content: '';
  position: absolute;
  left: var(--halo-x);
  top: var(--halo-y);
  z-index: 0;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: rgba(238,41,58,0.24);
  filter: blur(22px);
  opacity: 0.72;
  transform: translate(-50%, -50%);
  transition:
    left 220ms var(--ease-out),
    top 220ms var(--ease-out),
    opacity 220ms var(--ease-out);
}
.card-media-col:hover {
  --halo-alpha: 0.26;
}
.card-ops .card-media-col {
  --halo-alpha: 0.23;
}

@keyframes cardHaloPulse {
  0%, 100% {
    opacity: 0.60;
    transform: translate(-50%, -50%) scale(0.92);
  }
  42% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1.04);
  }
  62% {
    opacity: 0.66;
    transform: translate(-50%, -50%) scale(0.96);
  }
}

/* ── Card video ── */
.card-video-wrap {
  position: relative;
  z-index: 1;
  width: min(94%, 900px);
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #09090a;
  border: 10px solid #111114;
  box-shadow:
    0 32px 90px rgba(30,28,33,0.18),
    0 0 0 1px rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-ops .card-video-wrap {
  box-shadow: 0 32px 110px rgba(0,0,0,0.35);
}
.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  border-radius: 13px;
  transition: opacity 400ms var(--ease-in-out);
}
.card-video.fade-out { opacity: 0; }

.video-variant-tabs {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(30,28,33,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 14px 36px rgba(30,28,33,0.08);
  backdrop-filter: blur(14px) saturate(1.1);
}
.video-variant-tab {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(30,28,33,0.56);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-ui);
  text-transform: uppercase;
  transition:
    background 220ms var(--ease-out),
    color 220ms var(--ease-out);
}
.video-variant-tab:hover {
  color: var(--text);
  background: rgba(30,28,33,0.05);
}
.video-variant-tab.active {
  color: #fff;
  background: var(--accent);
}
.card-ops .video-variant-tabs {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}
.card-ops .video-variant-tab {
  color: rgba(255,255,255,0.58);
}
.card-ops .video-variant-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.card-ops .video-variant-tab.active {
  color: #fff;
  background: rgba(238,41,58,0.92);
}

/* ── Card text ── */
.card-heading {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-24);
  color: var(--text);
}
.card-ops .card-heading {
  color: #fff;
}

/* ── Feature list (buttons) ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.feature-item {
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 16px 18px;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.42;
  color: var(--text-muted);
  border-radius: 14px;
  transition:
    background 220ms var(--ease-out),
    color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    transform 220ms var(--ease-out);
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  cursor: pointer;
}
.feature-item:hover:not(.active) {
  color: var(--text);
}
.feature-item.active {
  background: #fff;
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 16px 42px rgba(30,28,33,0.08);
}
.feature-item-title {
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
}
.feature-item-desc {
  color: currentColor;
  font-weight: 400;
  line-height: 1.36;
}

/* ── Card marker ── */
.card-marker {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: var(--tracking-ui);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-16);
}
.card-ops .card-marker {
  color: var(--accent);
}
.card-ops .feature-item {
  color: rgba(255,255,255,0.50);
}
.card-ops .feature-item:hover:not(.active) {
  color: rgba(255,255,255,0.76);
}
.card-ops .feature-item.active {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
  box-shadow: none;
}
.card-ops .feature-item-title {
  color: #fff;
}

/* ════════════════════════════════════════
   CREDIBILITY
════════════════════════════════════════ */
.credibility {
  padding: clamp(96px, 11vw, 168px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.credibility-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 80px);
}

.cred-statement {
  max-width: 980px;
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--text);
}

.cred-right {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.cred-block {
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(30,28,33,0.10);
  border-radius: 18px;
  background: #fff;
}
.cred-stat {
  margin-bottom: auto;
  font-family: 'Museo Sans Rounded', var(--font);
  color: var(--accent);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.cred-block h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.1;
  color: var(--text);
}
.cred-block p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fill {
    --fill: 100%;
    -webkit-text-fill-color: currentColor;
    text-fill-color: currentColor;
  }
  .feature-card,
  .device {
    --scroll-x: 0px;
    --scroll-y: 0px;
    --scroll-scale: 1;
    will-change: auto;
  }
  .hero-rotate-hint svg {
    animation: none;
  }
}

/* ════════════════════════════════════════
   FINAL CTA
════════════════════════════════════════ */
.final-cta {
  position: relative;
  min-height: 780px;
  background: var(--text);
  border-radius: 0;
  margin-top: clamp(28px, 5vw, 72px);
  padding: clamp(88px, 10vw, 150px) 0 var(--sp-48);
  overflow: hidden;
  color: #fff;
}
.final-cta::before {
  content: '';
  position: absolute;
  right: -16%;
  bottom: -18%;
  width: 54vw;
  height: 54vw;
  border-radius: 999px;
  background: rgba(238,41,58,0.22);
  filter: blur(110px);
  pointer-events: none;
}
.final-cta-inner {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  position: relative;
  z-index: 1;
  padding-inline: var(--pad-x);
}
.final-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-24);
  text-align: left;
  position: relative;
  z-index: 2;
}
.final-cta-copy .logo-img {
  height: 30px;
}
.cta-title {
  max-width: 720px;
  font-size: clamp(38px, 4.8vw, 76px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--dark-text);
}
.cta-text {
  max-width: 520px;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255,255,255,0.62);
}
.device-showcase {
  position: relative;
  min-height: clamp(460px, 46vw, 680px);
  width: 100%;
  isolation: isolate;
}
.device {
  --scroll-x: 0px;
  --scroll-y: 0px;
  --scroll-scale: 1;
  position: absolute;
  overflow: hidden;
  background: #09090a;
  box-shadow: 0 32px 110px rgba(0,0,0,0.35);
  will-change: transform;
}
.device video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.94;
}
.device-tablet {
  left: 48%;
  top: 0;
  width: min(62%, 460px);
  aspect-ratio: 3 / 4;
  border: 10px solid #151518;
  border-radius: 34px;
  transform: translate3d(calc(-58% + var(--scroll-x)), var(--scroll-y), 0) rotate(-2deg) scale(var(--scroll-scale));
  z-index: 2;
}
.device-phone {
  right: 6%;
  bottom: 2%;
  width: min(26%, 170px);
  aspect-ratio: 9 / 19;
  border: 8px solid #151518;
  border-radius: 28px;
  z-index: 4;
  transform: translate3d(var(--scroll-x), var(--scroll-y), 0) rotate(4deg) scale(var(--scroll-scale));
}
.device-phone::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 1;
  width: 34px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

/* ── Footer ── */
.site-footer {
  width: 100%;
  margin: clamp(54px, 7vw, 90px) auto 0;
  padding-inline: var(--pad-x);
  padding-top: var(--sp-24);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-16);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.62);
}
.footer-links {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  justify-self: start;
}
.footer-credit {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.75rem;
  font-weight: 400;
}
.footer-credit__brand {
  color: var(--accent);
  font-family: 'Museo Sans Rounded', var(--font);
  font-weight: 700;
}
.site-footer a {
  color: rgba(255,255,255,0.62);
  font-weight: 400;
  transition: color var(--duration-fast);
}
.site-footer .footer-credit__brand {
  color: var(--accent);
}
.site-footer a:hover { color: #fff; }
.site-footer .footer-credit__brand:hover { color: #ff4b59; }

/* Language Switcher */
.language-switcher {
  grid-column: 2;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-self: center;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}
.lang-btn {
  min-width: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--tracking-ui);
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}
.lang-btn:hover {
  color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.06);
}
.lang-btn.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 960px) {
  :root {
    --hero-height: calc(100svh - 34px);
    --hero-content-pad: 32px;
    --header-pad: 12px;
    --radius-hero: 22px;
  }
  .card-sales,
  .card-ops {
    grid-template-columns: 1fr;
  }
  .card-sales .card-media-col { grid-column: 1; grid-row: 1; }
  .card-sales .card-text-col  { grid-column: 1; grid-row: 2; }
  .card-ops .card-text-col    { grid-column: 1; grid-row: 2; }
  .card-ops .card-media-col   { grid-column: 1; grid-row: 1; }
  .feature-card { padding: 46px; gap: 46px; }
  .card-media-col { min-height: 440px; }
  .card-video-wrap { border-width: 8px; border-radius: 22px; }
  .card-video { border-radius: 12px; }
  .final-cta-inner {
    grid-template-columns: 1fr;
  }
  .device-showcase {
    min-height: 560px;
  }
  .device-tablet {
    width: min(62%, 390px);
    left: 48%;
    top: 0;
    bottom: auto;
    transform: translateX(-58%) rotate(-2deg);
  }
  .device-phone {
    width: min(26%, 150px);
    right: 8%;
    bottom: 4%;
  }
}


@media (max-width: 680px) {
  .card-sales,
  .card-ops {
    grid-template-columns: 1fr;
  }
  .card-sales .card-media-col { grid-column: 1; grid-row: 1; }
  .card-sales .card-text-col  { grid-column: 1; grid-row: 2; }
  .card-ops .card-text-col    { grid-column: 1; grid-row: 2; }
  .card-ops .card-media-col   { grid-column: 1; grid-row: 1; }

  .credibility-inner {
    gap: var(--sp-48);
  }
  .cred-statement {
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
  }
  .cred-right {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card { padding: 22px 14px 28px; gap: 28px; }
  .card-media-col {
    --halo-x: 54%;
    --halo-y: 62%;
    --halo-alpha: 0.18;
    min-height: auto;
    overflow: visible;
    border-radius: 22px;
    gap: 10px;
  }
  .card-media-col::before {
    width: 190px;
    height: 190px;
    filter: blur(44px);
    opacity: 0.58;
  }
  .card-media-col::after {
    display: none;
  }
  .card-heading { font-size: clamp(28px, 9vw, 38px); }
  .card-video-wrap { width: 100%; border-width: 6px; border-radius: 18px; }
  .card-video { border-radius: 10px; }
  .video-variant-tabs {
    max-width: 100%;
    overflow-x: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .video-variant-tab {
    min-height: 28px;
    padding: 0 12px;
    font-size: 0.64rem;
    white-space: nowrap;
    color: rgba(30,28,33,0.52);
    background: transparent;
  }
  .video-variant-tab.active {
    color: #fff;
    background: var(--accent);
  }
}


@media (max-width: 760px) {
  :root {
    --hero-height: calc(100svh - 30px);
    --hero-content-pad: 28px;
    --header-pad: 10px;
    --radius-hero: 18px;
  }
  .site-header {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .site-header__inner {
    min-height: 56px;
    padding: 8px 8px 8px 14px;
    border-radius: 999px;
    gap: 10px;
  }
  .logo-img { height: 24px; }
  .site-nav { gap: 2px; }
  .site-nav a:not(.site-nav__cta) { display: none; }
  .site-nav__cta {
    min-height: 36px;
    padding: 0 15px !important;
    font-size: 0.6875rem !important;
  }
  .hero-content {
    gap: 10px;
    padding: 104px var(--pad-x) 48px;
  }
  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
    line-height: 0.98;
  }
  .features-title {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1;
  }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.12) 42%, rgba(0,0,0,0.62)),
      radial-gradient(circle at 50% 42%, rgba(0,0,0,0.08), rgba(0,0,0,0.58) 72%);
  }
  .hero-rotate-hint {
    position: absolute;
    right: 18px;
    bottom: 88px;
    z-index: 5;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    background: rgba(30,28,33,0.34);
    color: rgba(255,255,255,0.78);
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    backdrop-filter: blur(14px) saturate(1.1);
    pointer-events: none;
    transition:
      opacity 360ms var(--ease-out),
      transform 360ms var(--ease-out);
  }
  .hero-rotate-hint svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    animation: rotateHintNudge 2.8s var(--ease-out) infinite;
  }
  .hero.is-video-revealed .hero-rotate-hint {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .hero-scroll-hint {
    width: min(260px, calc(100vw - 48px));
    bottom: 26px;
    font-size: 0.66rem;
  }
  .final-cta {
    min-height: auto;
    padding: var(--sp-96) var(--sp-24) var(--sp-32);
  }
  .final-cta::before {
    right: 50%;
    bottom: 18%;
    width: 78vw;
    height: 78vw;
    transform: translateX(50%);
    background: rgba(238,41,58,0.26);
    filter: blur(78px);
  }
  .final-cta-copy {
    align-items: center;
    text-align: center;
  }
  .cta-text {
    max-width: 320px;
  }
  .cta-title {
    font-size: clamp(36px, 11vw, 52px);
    line-height: 1;
  }
  .device-showcase {
    min-height: 430px;
  }
  .device-tablet {
    width: 64%;
    left: 46%;
    top: 2%;
    border-width: 7px;
    border-radius: 24px;
  }
  .device-phone {
    width: 28%;
    right: 4%;
    bottom: 18%;
    border-width: 6px;
    border-radius: 22px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    text-align: center;
  }
  .footer-links {
    grid-column: 1;
    order: 1;
    justify-content: center;
    justify-self: center;
    flex-wrap: wrap;
  }
  .language-switcher {
    grid-column: 1;
    order: 2;
    justify-self: center;
  }
  .footer-credit {
    grid-column: 1;
    order: 3;
    justify-self: center;
    font-size: 0.7rem;
  }
}

@keyframes rotateHintNudge {
  0%, 100% {
    transform: rotate(0deg);
  }
  36% {
    transform: rotate(0deg);
  }
  62% {
    transform: rotate(90deg);
  }
  82% {
    transform: rotate(90deg);
  }
}

/* ════════════════════════════════════════
   VIDEO CONTROLS (hover)
════════════════════════════════════════ */
.card-video-wrap {
  isolation: isolate;
}
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
  pointer-events: none;
}
.card-video-wrap:hover .video-controls,
.card-video-wrap:focus-within .video-controls,
.card-video-wrap.is-controls-visible .video-controls,
.card-video-wrap.is-video-paused .video-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.video-controls__btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 200ms;
}
.video-controls__btn:hover { background: rgba(255,255,255,0.35); }
.video-controls__btn svg { width: 12px; height: 12px; }
.video-controls__fullscreen svg { width: 13px; height: 13px; }
.video-controls .icon-play { display: none; }
.video-controls .icon-pause { display: block; }
.video-controls.is-paused .icon-play { display: block; }
.video-controls.is-paused .icon-pause { display: none; }
.video-controls.is-paused {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.video-controls__track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.video-controls__progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 200ms linear;
}

@media (max-width: 760px) {
  .video-controls {
    gap: 9px;
    padding: 9px 11px;
    background: linear-gradient(to top, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.10) 72%, transparent 100%);
  }
  .video-controls__btn {
    width: 28px;
    height: 28px;
  }
  .video-controls__btn svg {
    width: 12px;
    height: 12px;
  }
  .video-controls__fullscreen svg {
    width: 13px;
    height: 13px;
  }
  .video-controls__track {
    height: 3px;
  }
}
