/* Thanwise: glassmorphism + CSS 3D motion */
:root {
  --night: #0F1838;
  --iris: #4F5DF0;
  --ember: #FF8F5E;
  --ember-light: #FFB08A;
  --mist: #EEF1FF;
  --haze: #B4BCE0;
  --soft: #C9CFEE;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", sans-serif;
  --glass-bg: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.16);
  --ease: cubic-bezier(.2,.7,.2,1);
  /* 3D ring size */
  --r: 330px; --cw: 250px; --ch: 310px;
}
@media (max-width: 760px) { :root { --r: 170px; --cw: 170px; --ch: 230px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--mist);
  font: 17px/1.5 var(--body); position: relative; overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: var(--mist); }
a:hover { color: var(--ember-light); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ember-light); outline-offset: 3px; border-radius: 12px; }
h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; }

/* Background orbs */
.orbs { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.orb { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(120px); animation: drift 20s ease-in-out infinite; }
.orb-iris { background: var(--iris); opacity: .5; }
.orb-ember { background: var(--ember); opacity: .32; animation-duration: 26s; animation-direction: reverse; }
@keyframes drift { 50% { transform: translate3d(60px,-40px,0) scale(1.1); } }

/* Glass */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Ribbon + nav */
.ribbon { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 20px; font-size: 14px; color: #D9DEF7; text-align: center; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); }
.ribbon a { color: var(--ember-light); font-weight: 600; text-decoration: none; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(15,24,56,0.55); border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.nav { max-width: 1180px; margin: 0 auto; padding: 0 20px; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 20px var(--display); letter-spacing: -0.02em; min-height: 44px; }
.brand-logo {
  display: inline-block;
  width: 124px;
  height: 31px;
  /* White wordmark with a light sweep moving through it (see logo-shine below) */
  background: linear-gradient(100deg, #fff 40%, #FFB08A 48%, #fff 50%, #fff 52%, #fff 60%) 0 0 / 300% 100%;
  -webkit-mask: url('../img/wordmark.png') no-repeat center / contain;
  mask: url('../img/wordmark.png') no-repeat center / contain;
  transition: transform .25s ease, opacity .25s ease;
}
.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.03);
  opacity: 0.9;
}
img.brand-logo {
  filter: none;
}
.nav-links, .nav-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-actions { gap: 8px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 12px 10px; border: 0; border-radius: 10px; background: transparent; color: #D9DEF7; font: 14px var(--body); text-decoration: none; cursor: pointer; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.chevron { transition: transform .3s ease; }
[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.flyout { border-top: 1px solid rgba(255,255,255,0.08); background: rgba(20,30,70,0.7); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); animation: flyin .35s var(--ease); }
@keyframes flyin { from { opacity: 0; transform: translateY(-8px); } }
.flyout-inner { max-width: 1180px; margin: 0 auto; padding: 32px 20px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.flyout-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.flyout-col a { text-decoration: none; }
.flyout-heading { font-size: 12px; color: var(--haze); }
.flyout-main a { font: 600 26px var(--display); letter-spacing: -0.02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 980px; font-weight: 600; font-size: 15px; text-decoration: none; color: #fff; transition: transform .25s ease, background .25s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn-primary { background: var(--iris); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); }
.btn-glass { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-lg { min-height: 48px; padding: 0 26px; font-size: 17px; }
.btn-sm { font-size: 14px; padding: 0 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row.center { justify-content: center; margin-top: 32px; }

/* Hero + 3D ring */
.hero { max-width: 1180px; margin: 0 auto; padding: 96px 20px 40px; text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto; font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: -0.035em; }
.hero-sub { max-width: 34em; margin: 24px auto 0; font-size: clamp(18px, 2vw, 22px); color: var(--soft); line-height: 1.45; }
/* Hero Interactive Showcase: numbered tab rail on the left, live window on the right */
.hero-showcase {
  --cycle: 6s;
  margin: 56px auto 0;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  text-align: left;
}
.showcase-tabs { display: flex; flex-direction: column; gap: 10px; }
.showcase-tab {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.showcase-tab:hover { background: rgba(255, 255, 255, 0.08); transform: translateX(4px); }
.showcase-tab.active {
  background: linear-gradient(120deg, rgba(79, 93, 240, 0.4), rgba(255, 143, 94, 0.14));
  border-color: rgba(255, 176, 138, 0.55);
  transform: translateX(8px);
  box-shadow: 0 16px 40px rgba(79, 93, 240, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.tab-num { font-size: 12px; font-weight: 700; color: var(--haze); letter-spacing: .04em; transition: color .3s; }
.showcase-tab.active .tab-num { color: var(--ember-light); }
.tab-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); transition: background .35s, transform .35s var(--ease); }
.showcase-tab svg { width: 26px; height: 26px; }
.showcase-tab.active .tab-icon { background: rgba(79, 93, 240, 0.55); transform: rotate(-6deg) scale(1.06); }
.tab-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tab-title { font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; }
.tab-sub { font-size: 13px; color: var(--haze); }
.showcase-tab.active .tab-sub { color: #FFE3D6; }
/* Progress bar: its animation end drives the autoplay in main.js */
.tab-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--iris), var(--ember)); transform: scaleX(0); transform-origin: left; }
.showcase-tab.active .tab-progress { animation: tab-progress var(--cycle) linear forwards; }
.hero-showcase:hover .tab-progress { animation-play-state: paused; }
@keyframes tab-progress { to { transform: scaleX(1); } }

/* Showcase Screen Display */
.showcase-display {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 80px rgba(5, 10, 35, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  perspective: 1400px;
}
.showcase-display::before {
  content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(79, 93, 240, 0.35), transparent 30%, rgba(255, 143, 94, 0.25), transparent 60%);
  animation: display-glow 14s linear infinite;
}
@keyframes display-glow { to { transform: rotate(1turn); } }
.showcase-pane { display: none; flex-direction: column; gap: 22px; height: 100%; }
.showcase-pane.active { display: flex; }
.pane-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pane-title-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.pane-badge { font-family: var(--display); font-weight: 700; font-size: 28px; color: #fff; letter-spacing: -0.02em; }
.pane-tagline { font-size: 16px; color: var(--ember-light); }
.pane-link { color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s ease; }
.pane-link:hover { color: #fff; }
.pane-body { display: flex; flex-direction: column; gap: 22px; }
.showcase-mock { width: 100%; max-width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); transform-origin: 50% 100%; }
.pane-desc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pane-desc p { flex: 1 1 320px; color: var(--soft); font-size: 16px; line-height: 1.6; margin: 0; }
.pane-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Entrance choreography each time a pane becomes active */
.showcase-pane.active .pane-header { animation: rise .5s var(--ease) both; }
.showcase-pane.active .showcase-mock { animation: mock-in .8s var(--ease) .08s both; }
.showcase-pane.active .pane-desc { animation: rise .6s var(--ease) .35s both; }
.showcase-pane.active :is(.cal-day, .inc, .video-track) { animation: rise .5s var(--ease) both; }
.showcase-pane.active .bar { transform-origin: bottom; animation: bar-grow .9s var(--ease) both; }
.showcase-pane.active .mock-note { animation: rise .5s var(--ease) .7s both; }
.showcase-pane.active :is(.cal-day, .inc, .video-track, .bar):nth-child(1) { animation-delay: .3s; }
.showcase-pane.active :is(.cal-day, .inc, .video-track, .bar):nth-child(2) { animation-delay: .38s; }
.showcase-pane.active :is(.cal-day, .inc, .video-track, .bar):nth-child(3) { animation-delay: .46s; }
.showcase-pane.active :is(.cal-day, .inc, .video-track, .bar):nth-child(4) { animation-delay: .54s; }
.showcase-pane.active :is(.cal-day, .inc, .video-track, .bar):nth-child(5) { animation-delay: .62s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mock-in { from { opacity: 0; transform: rotateX(18deg) translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 900px) {
  .hero-showcase { grid-template-columns: 1fr; }
  .showcase-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .showcase-tab { flex: 0 0 auto; scroll-snap-align: start; grid-template-columns: auto 1fr; }
  .showcase-tab .tab-num { display: none; }
  .showcase-tab:hover, .showcase-tab.active { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-display::before, .showcase-pane.active * { animation: none !important; }
}

/* Platforms strip */
.platforms { padding-top: 96px; }
.platforms-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.platforms-copy .section-title { margin-bottom: 16px; }
.platforms-body { margin: 0 auto; color: var(--soft); font-size: 18px; line-height: 1.6; max-width: 40em; }
.platform-groups { margin-top: 48px; padding: 8px clamp(20px, 4vw, 48px); border-radius: 32px; counter-reset: plat; }
.platform-group { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 16px 32px; padding: 26px 0; counter-increment: plat; }
.platform-group + .platform-group { border-top: 1px solid var(--glass-border); }
.platform-group .tile-label { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-size: 20px; font-weight: 600; color: #fff; }
.platform-group .tile-label::before { content: counter(plat, decimal-leading-zero); font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--ember-light); }
.platform-marquee { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.platform-track { display: flex; width: max-content; animation: platform-scroll 40s linear infinite; }
.platform-track.reverse { animation-direction: reverse; }
.platform-marquee:hover .platform-track { animation-play-state: paused; }
@keyframes platform-scroll { to { transform: translateX(-50%); } }
.platform-list { list-style: none; margin: 0; padding: 0; display: flex; flex: none; }
.platform { display: inline-flex; align-items: center; gap: 10px; margin-right: 44px; white-space: nowrap; color: var(--haze); font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; transition: color .3s; }
.platform:hover { color: #fff; }
.platform-logo { width: 24px; height: 24px; display: block; flex: none; opacity: .75; transition: opacity .3s; }
.platform:hover .platform-logo { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .platform-track { animation: none; } }
@media (max-width: 760px) {
  .platform-group { grid-template-columns: 1fr; padding: 22px 0; }
  .platform { font-size: 17px; margin-right: 32px; }
}

/* Product panels */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.products { padding-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.panel { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(32px, 5vw, 64px); border-radius: 36px; }
.panel-reverse { flex-direction: row-reverse; flex-wrap: wrap-reverse; }
.panel-copy { flex: 1 1 340px; min-width: 0; }
.panel-copy h2 { font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.tagline { margin: 10px 0 0; font-size: clamp(22px, 2.4vw, 28px); color: #fff; line-height: 1.2; }
.body { margin: 16px 0 0; color: var(--soft); max-width: 30em; }
.panel-visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }

.mock { width: 100%; max-width: 480px; padding: 20px; border-radius: 22px; font-size: 13px; background: rgba(12,20,52,0.6); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 40px 80px rgba(3,8,30,0.5); }
.tilt { transform: perspective(1200px) rotateY(-14deg) rotateX(7deg); transition: transform .7s var(--ease); }
.tilt-left { transform: perspective(1200px) rotateY(14deg) rotateX(7deg); }
.panel:hover .tilt { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock-head { display: flex; justify-content: space-between; color: var(--soft); margin-bottom: 14px; }
.mock-head strong { color: #fff; }
.mock-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.08); color: #E3E7FB; }
.mock-alert { background: rgba(255,143,94,0.16); border: 1px solid rgba(255,143,94,0.4); color: #FFE3D6; }
.cal { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; font-size: 12px; }
.cal-day { display: flex; flex-direction: column; gap: 6px; color: var(--haze); }
.chip { padding: 8px; border-radius: 10px; min-height: 54px; color: #fff; }
.chip-iris { background: rgba(79,93,240,0.45); }
.chip-ember { background: rgba(255,143,94,0.4); }
.chip-empty { background: rgba(255,255,255,0.08); color: var(--soft); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 140px; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,0.18); }
.bar { flex: 1; border-radius: 8px 8px 0 0; background: rgba(79,93,240,0.7); }
.bar-hot { background: var(--ember); }
.bar-labels { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-top: 8px; font-size: 11px; color: var(--haze); text-align: center; }
.inc { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.inc:last-child { border-bottom: 0; }
.inc-id { color: var(--haze); min-width: 72px; }
.inc-desc { flex: 1; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge-high { background: rgba(255,143,94,0.22); color: #FFC7AE; }
.badge-progress { background: rgba(79,93,240,0.3); color: #D4D9FF; }
.badge-resolved { background: rgba(120,220,180,0.18); color: #B8F0D8; }
.badge-ember { background: rgba(255,143,94,0.3); color: #FFE3D6; }

.cinema-viewport {
  position: relative;
  height: 110px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 40%, rgba(35,45,100,0.7), rgba(8,12,32,0.95));
  border: 1px solid rgba(79,93,240,0.35);
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 12px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.7), 0 8px 24px rgba(79,93,240,0.25);
}
.cinema-hud {
  display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; color: var(--haze); letter-spacing: 0.05em; z-index: 2;
}
.hud-rec { display: inline-flex; align-items: center; gap: 5px; color: #FF6B6B; font-weight: 700; }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: #FF4D4D; animation: rec-blink 1s steps(2, start) infinite; box-shadow: 0 0 8px #FF4D4D; }
@keyframes rec-blink { to { opacity: 0; } }

.cinema-reticle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 44px;
  border: 1px dashed rgba(255,176,138,0.4);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
  animation: reticle-pulse 3.5s ease-in-out infinite alternate;
}
@keyframes reticle-pulse {
  0% { transform: translate(-50%, -50%) scale(0.94); border-color: rgba(79,93,240,0.6); box-shadow: 0 0 14px rgba(79,93,240,0.3); }
  100% { transform: translate(-50%, -50%) scale(1.06); border-color: rgba(255,176,138,0.85); box-shadow: 0 0 20px rgba(255,143,94,0.4); }
}
.reticle-corner {
  position: absolute; width: 6px; height: 6px; border-color: var(--ember-light); border-style: solid;
}
.reticle-corner.tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.reticle-corner.tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.reticle-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.reticle-corner.br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }
.reticle-label { font-size: 8px; font-family: ui-monospace, monospace; color: #FFE3D6; letter-spacing: 0.12em; background: rgba(5,10,30,0.7); padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(255,176,138,0.3); }

.cinema-waveform {
  display: flex; align-items: flex-end; gap: 3px; height: 16px; margin-top: auto; z-index: 2;
}
.cinema-waveform span {
  flex: 1; background: linear-gradient(180deg, var(--ember-light), var(--iris)); border-radius: 2px;
  animation: wave-anim 1.4s ease-in-out infinite alternate;
}
.cinema-waveform span:nth-child(2n) { animation-delay: 0.2s; }
.cinema-waveform span:nth-child(3n) { animation-delay: 0.45s; }
.cinema-waveform span:nth-child(4n) { animation-delay: 0.65s; }
.cinema-waveform span:nth-child(5n) { animation-delay: 0.15s; }
@keyframes wave-anim {
  0% { height: 15%; opacity: 0.4; }
  50% { height: 95%; opacity: 0.95; }
  100% { height: 30%; opacity: 0.6; }
}

.video-preview { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.video-track { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.video-play { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--iris), var(--ember)); color: #fff; font-size: 10px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(79,93,240,0.4); }
.video-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.video-info strong { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-info span { color: var(--haze); font-size: 11px; }
.video-timeline { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; margin-top: 4px; }
.video-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--iris), var(--ember-light)); animation: pulse-video-bar 3s ease-in-out infinite alternate; }
@keyframes pulse-video-bar { 0% { width: 50%; } 100% { width: 94%; } }

/* Tiles */
.section { padding-top: 120px; }
.section-title { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 32px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.link-accent { color: var(--ember-light); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.tile { min-height: 280px; padding: 36px; border-radius: 28px; display: flex; flex-direction: column; gap: 10px; color: #fff; text-decoration: none; transition: transform .4s var(--ease), border-color .4s ease; }
.tile:hover { color: #fff; transform: translateY(-4px); border-color: rgba(255,255,255,0.32); }
.tile-label { font-size: 14px; color: var(--haze); }
.tile-title { font: 700 32px/1.1 var(--display); letter-spacing: -0.02em; }
.tile-text { color: var(--soft); max-width: 22em; }
.tile-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.tile-link { color: var(--ember-light); font-weight: 600; }
.tile-link.light { color: #fff; }
.tile-foundation { background: linear-gradient(160deg, rgba(255,143,94,0.22), rgba(255,255,255,0.05)); border: 1px solid rgba(255,176,138,0.35); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.tile-foundation .tile-label { color: #FFD3BF; }
.stats { display: flex; flex-wrap: wrap; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font: 700 40px/1 var(--display); letter-spacing: -0.02em; }
.stat-lab { font-size: 14px; font-weight: 500; color: #FFE3D6; }
.cube-wrap { perspective: 400px; padding: 8px; }
.cube { display: block; width: 64px; height: 64px; position: relative; transform-style: preserve-3d; animation: cube 12s linear infinite; }
.cube span { position: absolute; inset: 0; border: 1px solid rgba(255,176,138,0.75); background: rgba(255,143,94,0.08); }
@keyframes cube { from { transform: rotateX(-20deg) rotateY(0); } to { transform: rotateX(-20deg) rotateY(360deg); } }

/* News */
.news-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.news-card { flex: 0 0 min(300px, 80%); scroll-snap-align: start; min-height: 210px; padding: 26px; border-radius: 24px; display: flex; flex-direction: column; gap: 12px; color: #fff; text-decoration: none; transition: transform .4s var(--ease); }
.news-card:hover { color: #fff; transform: translateY(-4px); }
.news-title { font-size: 20px; line-height: 1.3; font-weight: 500; }

/* Footer */
.site-footer { margin-top: 120px; border-top: 1px solid rgba(255,255,255,0.12); background: rgba(10,16,40,0.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 56px 20px 32px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--soft); text-decoration: none; }
.footer-brand { gap: 14px; }
.footer-logo { display: block; width: 150px; height: 38px; background: #fff; -webkit-mask: url('../img/wordmark.png') no-repeat left center / contain; mask: url('../img/wordmark.png') no-repeat left center / contain; transition: opacity .25s; }
.footer-brand a:hover .footer-logo { opacity: .8; }
.footer-tagline { margin: 0; max-width: 16em; color: var(--haze); line-height: 1.5; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.copyright { margin: 0; color: var(--haze); font-size: 13px; }
.cookie-settings-btn {
  background: none;
  border: none;
  color: var(--ember-light);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-settings-btn:hover { color: #fff; }
.footer-socials { display: flex; align-items: center; gap: 10px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--soft);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all .25s var(--ease);
  text-decoration: none;
}
.social-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  padding: 22px 24px;
  border-radius: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(5, 10, 35, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 176, 138, 0.3);
  background: rgba(15, 24, 56, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cookie-content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cookie-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 143, 94, 0.15);
  border: 1px solid rgba(255, 176, 138, 0.3);
  color: var(--ember-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cookie-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cookie-text strong {
  color: #fff;
  font-size: 15px;
}
.cookie-text p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Content sheet page */
.sheet { padding-top: 80px; display: flex; flex-direction: column; gap: 56px; }
.sheet-head h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1; }
.sheet-head p { max-width: 40em; color: var(--soft); font-size: 18px; }
.sheet h2 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 20px; }
.sheet-card { padding: 32px; border-radius: 28px; }
.sheet-card.plain { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); }
.sheet-card p { color: var(--soft); }
.check { color: var(--ember-light); }
.table-scroll { overflow-x: auto; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.sheet-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--haze); padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.18); }
.sheet-table td { padding: 14px; vertical-align: top; color: #E3E7FB; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sheet-table td:first-child { color: #fff; font-weight: 600; white-space: nowrap; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.swatch { display: flex; flex-direction: column; gap: 8px; }
.swatch span { color: var(--haze); font-size: 14px; }
.swatch-chip { height: 96px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); }
.type-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.type-row:last-child { border-bottom: 0; }
.type-row > span:first-child { flex: 0 0 220px; color: var(--haze); font-size: 14px; }
.type-hero { font: 700 56px/1 var(--display); letter-spacing: -0.035em; }
.type-section { font: 700 40px/1 var(--display); letter-spacing: -0.03em; }
.type-tagline { font-size: 26px; line-height: 1.2; }
.type-body { color: var(--soft); }
.sheet-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
pre { margin: 0; padding: 16px; border-radius: 14px; background: rgba(5,10,30,0.55); font-size: 13px; line-height: 1.6; overflow-x: auto; color: #E3E7FB; }

/* Use Than Suite Page */
.use-than-page { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.use-than-hero { text-align: center; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 99px; background: rgba(255,143,94,0.15); border: 1px solid rgba(255,176,138,0.35); color: #FFD3BF; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.use-than-hero h1 { font-size: clamp(38px, 5.5vw, 68px); letter-spacing: -0.035em; line-height: 1.05; }
.hero-lead { font-size: clamp(17px, 2vw, 21px); color: var(--soft); line-height: 1.5; max-width: 36em; margin: 0; }

.product-nav-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.nav-pill-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 980px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: all .25s ease; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-pill-item svg { width: 22px; height: 22px; }
.nav-pill-item:hover { background: rgba(79,93,240,0.35); border-color: rgba(255,176,138,0.5); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,93,240,0.3); }

.use-than-products { gap: 40px; }
.use-than-panel { border-radius: 36px; scroll-margin-top: 100px; }
.panel-badge-row { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-tag svg { width: 26px; height: 26px; }
.panel-id-label { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember-light); }

.feature-bullets { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 24px; font-size: 15px; color: #E3E7FB; }
.feat-item { display: flex; align-items: baseline; gap: 10px; line-height: 1.45; }
.feat-bullet { color: var(--ember-light); font-size: 13px; }

.bundle-card { margin-top: 40px; padding: clamp(36px, 5vw, 64px); border-radius: 36px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(79,93,240,0.25), rgba(15,24,56,0.5)); border: 1px solid rgba(255,176,138,0.35); }
.bundle-content { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bundle-content h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; }
.bundle-content p { color: var(--soft); font-size: 18px; line-height: 1.5; margin: 0; }
.bundle-content .btn-row { justify-content: center; margin-top: 12px; }

/* Showcase Page */
.showcase-page { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 64px; }
.showcase-hero { text-align: center; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.showcase-hero h1 { font-size: clamp(38px, 5.5vw, 68px); letter-spacing: -0.035em; line-height: 1.05; }
.showcase-subhead { font-size: clamp(17px, 2vw, 21px); color: var(--soft); line-height: 1.5; max-width: 38em; margin: 0; }
.showcase-jump-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.jump-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; transition: all .25s ease; }
.jump-pill svg { width: 18px; height: 18px; }
.jump-pill:hover { background: rgba(79,93,240,0.35); border-color: rgba(255,176,138,0.5); transform: translateY(-2px); }

/* Showcase Sections */
.showcase-section { padding: clamp(28px, 4vw, 48px); border-radius: 36px; display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 90px; }
.showcase-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.head-left { max-width: 700px; display: flex; flex-direction: column; gap: 8px; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ember-light); text-transform: uppercase; letter-spacing: 0.05em; }
.section-tag svg { width: 20px; height: 20px; }
.showcase-section-head h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.025em; }
.showcase-section-head p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.45; }

/* 1. Video Scroll Slideshow */
.video-scroll-container { display: flex; flex-direction: column; gap: 12px; }
.video-scroll-strip { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.video-slide-card { flex: 0 0 clamp(280px, 30vw, 340px); scroll-snap-align: start; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s ease, border-color .3s ease; }
.video-slide-card:hover { transform: translateY(-4px); border-color: rgba(255,176,138,0.4); }
.slide-video-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-family: ui-monospace, monospace; color: var(--haze); }
.slide-player-mock { height: 170px; border-radius: 16px; overflow: hidden; position: relative; }
.player-visual-bg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; position: relative; }
.ads-bg { background: linear-gradient(135deg, rgba(79,93,240,0.4), rgba(15,24,56,0.9)); }
.movie-bg { background: linear-gradient(135deg, rgba(255,143,94,0.35), rgba(15,24,56,0.9)); }
.vfx-bg { background: linear-gradient(135deg, rgba(120,220,180,0.3), rgba(15,24,56,0.9)); }
.publish-bg { background: linear-gradient(135deg, rgba(180,120,255,0.35), rgba(15,24,56,0.9)); }
.play-pulse-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.overlay-title { font-size: 13px; font-weight: 600; color: #FFE3D6; }
.slide-footer strong { display: block; font-size: 15px; color: #fff; margin-bottom: 4px; }
.slide-footer p { margin: 0; font-size: 13px; color: var(--soft); line-height: 1.4; }
.scroll-hint { font-size: 12px; color: var(--haze); text-align: center; }

/* 2, 3, 4. Video Demo Players */
.demo-player-wrapper { width: 100%; }
.demo-screen-shell { border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 30px 80px rgba(5,10,35,0.6); }
.player-top-hud { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(10,16,40,0.85); border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 12px; font-family: ui-monospace, monospace; color: var(--haze); }
.hud-live-tag { display: inline-flex; align-items: center; gap: 6px; color: #FF6B6B; font-weight: 700; }
.hud-title { color: #fff; font-weight: 600; }
.hud-quality { color: var(--ember-light); }

.demo-canvas { min-height: 250px; padding: 28px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, rgba(30,40,90,0.6), rgba(8,12,32,0.95)); }

/* Retail Canvas */
.retail-live-widget { display: flex; flex-direction: column; gap: 18px; max-width: 640px; margin: 0 auto; width: 100%; }
.widget-header { display: flex; justify-content: space-between; color: var(--soft); font-size: 14px; }
.widget-header strong { color: #fff; }
.retail-bars-interactive { display: flex; align-items: flex-end; justify-content: space-between; height: 110px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-fill { width: 100%; max-width: 44px; border-radius: 8px 8px 0 0; background: rgba(79,93,240,0.75); }
.bar-fill.hot { background: var(--ember); box-shadow: 0 0 16px rgba(255,143,94,0.5); }
.bar-col span { font-size: 11px; color: var(--haze); }
.demo-alert-pill { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,143,94,0.16); border: 1px solid rgba(255,143,94,0.35); font-size: 13px; color: #FFE3D6; }

/* Workspace Canvas */
.feed-incident-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; width: 100%; }
.inc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.inc-code { font-family: ui-monospace, monospace; color: var(--haze); font-weight: 700; }
.inc-assigned { color: var(--soft); margin-left: auto; font-size: 12px; }
.inc-summary { color: #fff; font-size: 15px; margin: 0; }
.ai-diagnosis-box { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: rgba(79,93,240,0.2); border: 1px solid rgba(79,93,240,0.4); }
.ai-spark { font-size: 12px; font-weight: 700; color: #D4D9FF; }
.ai-diagnosis-box code { font-family: ui-monospace, monospace; color: #FFE3D6; font-size: 12px; }

/* Marketing Canvas */
.marketing-viewport-hud { height: 110px; display: flex; align-items: center; justify-content: center; position: relative; }
.reticle-target-box { width: 320px; height: 54px; border: 1px dashed rgba(255,176,138,0.5); border-radius: 10px; display: flex; align-items: center; justify-content: center; position: relative; }
.target-title { font-size: 11px; font-family: ui-monospace, monospace; color: #FFE3D6; background: rgba(5,10,30,0.8); padding: 4px 10px; border-radius: 6px; letter-spacing: 0.05em; }
.marketing-stats-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 14px; }
.stat-pill { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.stat-pill strong { font-size: 18px; color: var(--ember-light); }
.stat-pill span { font-size: 11px; color: var(--haze); }

/* Controls Bar */
.player-controls-bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: rgba(10,16,40,0.9); border-top: 1px solid rgba(255,255,255,0.1); }
.play-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px; }
.timeline-scrubber { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,0.15); position: relative; cursor: pointer; }
.scrub-progress { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--iris), var(--ember-light)); }
.scrub-handle { width: 14px; height: 14px; border-radius: 50%; background: #fff; position: absolute; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 8px rgba(255,143,94,0.8); }
.time-display { font-size: 12px; font-family: ui-monospace, monospace; color: var(--soft); }
.res-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(79,93,240,0.3); border: 1px solid rgba(79,93,240,0.5); color: #D4D9FF; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .floor, .orb, .cube, .flyout { animation: none; }
  .tilt, .tile, .btn, .news-card { transition: none; }
}

/* Anchor jumps land below the sticky header */
section[id], [id="foundation"] { scroll-margin-top: 90px; }

/* Phone: brand and actions on one row, links underneath */
@media (max-width: 600px) {
  .nav { padding-top: 6px; padding-bottom: 6px; row-gap: 0; }
  .nav-actions { order: 2; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.08); }
  .stage { margin-top: 24px; }
}

/* White star mark beside the nav "Book a demo" button */
.nav-star { color: #fff; flex: none; margin-right: 4px; transition: transform .6s var(--ease); }
.nav-actions:hover .nav-star { transform: rotate(90deg); }

/* Notification bell in the nav, with an unread dot */
.nav-bell { position: relative; color: #fff; }
.nav-bell svg { transform-origin: 50% 10%; }
.nav-bell:hover svg { animation: bell-ring .8s var(--ease); }
.bell-dot { position: absolute; top: 10px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 2px var(--night); }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }

/* Feature gallery: large peeking carousel + scrolling card row */
.gallery { padding-top: 110px; }
.gallery-title { text-align: center; padding: 0 20px; }
.feature-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 max(16px, calc((100% - min(1000px, 84vw)) / 2)); scrollbar-width: none;
}
.feature-track::-webkit-scrollbar { display: none; }
.feature-slide {
  position: relative; flex: 0 0 min(1000px, 84vw); aspect-ratio: 16 / 8.5; scroll-snap-align: center;
  border-radius: 24px; overflow: hidden; background-size: cover; background-position: center;
  opacity: .45; transform: scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.feature-slide.active { opacity: 1; transform: none; }
.feature-slide.has-media { aspect-ratio: 16 / 9; }
.feature-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,10,35,.6)); pointer-events: none; }
.feature-brand { position: absolute; top: 24px; right: 28px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font: 700 20px var(--display); color: #fff; }
.feature-brand img { filter: brightness(0) invert(1); }
.feature-poster {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 6%;
  font: 800 clamp(48px, 10vw, 140px)/0.9 var(--display); letter-spacing: -0.05em; text-transform: uppercase; color: #fff;
  text-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.feature-caption { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: #fff; transition: opacity .4s; }
.feature-caption p { margin: 0; font-size: 16px; }
.feature-slide:not(.active) .feature-caption { opacity: 0; }
.feature-btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: #fff; color: #0F1838; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .25s var(--ease); }
.feature-btn:hover { transform: scale(1.05); }
.feature-btn-sm { padding: 7px 14px; font-size: 13px; }
.feature-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.feature-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .4s var(--ease), background .4s; }
.feature-dot.active { width: 28px; background: #fff; }

.card-marquee { margin-top: 28px; overflow: hidden; }
.card-track { display: flex; width: max-content; animation: card-scroll 50s linear infinite; }
.card-marquee:hover .card-track { animation-play-state: paused; }
.card-list { list-style: none; margin: 0; padding: 0 12px 0 0; display: flex; gap: 12px; }
.feature-card {
  position: relative; width: 340px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px;
}
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,10,35,.65)); }
.feature-card > * { position: relative; z-index: 1; }
.feature-card .feature-card-label { position: absolute; top: 14px; right: 16px; font: 700 14px var(--display); color: #fff; }
.feature-card-title { color: #fff; font-weight: 600; font-size: 14px; }
@keyframes card-scroll { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .feature-slide:not(.has-media) { aspect-ratio: 4 / 5; }
  .feature-card { width: 260px; }
}
@media (prefers-reduced-motion: reduce) { .card-track { animation: none; } .feature-track { scroll-behavior: auto; } }

/* Nav wordmark: slides in on load, then a light sweep passes through it */
.brand .brand-logo { animation: logo-in .8s var(--ease) .25s backwards, logo-shine 6s ease-in-out 1.2s infinite; }
.brand:hover .brand-logo { animation: logo-shine 1.2s ease-in-out infinite; }
@keyframes logo-shine { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0 0; } }
@keyframes logo-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .brand .brand-logo, .brand:hover .brand-logo { animation: none; } }

/* News page (Thanwise Foundation) */
.news-page { padding-bottom: 40px; }
.news-hero { padding-top: 96px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.news-hero h1 { max-width: 18ch; font-size: clamp(40px, 6.5vw, 84px); line-height: 1; letter-spacing: -0.035em; }
.news-accent { background: linear-gradient(90deg, var(--ember-light), var(--ember) 40%, var(--iris)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.news-lead { max-width: 40em; margin: 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--soft); }
.news-section { padding-top: 110px; }
.news-section > .section-tag { margin-bottom: 10px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 26px; color: inherit; text-decoration: none; transition: transform .4s var(--ease), border-color .4s; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(255,176,138,.5); }
.news-card h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.news-card p { margin: 0; color: var(--soft); line-height: 1.6; }
.news-card-link .tile-link { margin-top: auto; }
.news-num { font-size: 13px; font-weight: 700; color: var(--ember-light); }
.news-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-radius: 28px; overflow: hidden; }
.news-stat { display: flex; flex-direction: column; gap: 6px; padding: 32px 28px; }
.news-stat + .news-stat { border-left: 1px solid var(--glass-border); }
.news-stat-num { font: 800 clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: -0.04em; color: #fff; }
.news-stat-label { color: var(--haze); }
.news-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.news-body { color: var(--soft); font-size: 17px; line-height: 1.65; max-width: 36em; }
.news-quotes { display: flex; flex-direction: column; gap: 16px; }
.news-quote { margin: 0; padding: 28px 30px; border-radius: 24px; font: 600 clamp(20px, 2.4vw, 26px)/1.3 var(--display); color: #fff; border-left: 3px solid var(--ember); }
.news-quote + .news-quote { margin-left: 32px; border-left-color: var(--iris); }
.news-partner { padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: linear-gradient(135deg, rgba(79,93,240,.28), rgba(255,143,94,.12)); }
.news-sub { margin: 24px 0 12px; font-size: 18px; }
.news-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; }
.news-checks li { position: relative; padding-left: 30px; color: var(--mist); line-height: 1.5; }
.news-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ember); color: var(--night); }
@media (max-width: 760px) {
  .news-stat + .news-stat { border-left: 0; border-top: 1px solid var(--glass-border); }
  .news-quote + .news-quote { margin-left: 0; }
}
/* Fade-up as items scroll into view (main.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Careers page (reuses the news-* layout above) */
.roles { list-style: none; margin: 0; padding: 8px clamp(16px, 3vw, 32px); border-radius: 28px; }
.roles li + li { border-top: 1px solid var(--glass-border); }
.role { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 28px; padding: 22px 4px; color: inherit; text-decoration: none; }
.role-title { font: 600 20px var(--display); color: #fff; letter-spacing: -0.01em; }
.role-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.role-meta span { padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--soft); background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); }
.role-arrow { font-size: 20px; color: var(--ember-light); transition: transform .3s var(--ease); }
.role:hover .role-title { color: var(--ember-light); }
.role:hover .role-arrow { transform: translateX(6px); }
.perks .news-card { padding: 24px; }
.perks .news-card h3 { font-size: 19px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: none; }
.step { position: relative; padding: 26px 24px; border-top: 2px solid var(--glass-border); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--ember); }
.step-num { font: 800 44px/1 var(--display); color: var(--iris); }
.step h3 { margin: 14px 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--soft); line-height: 1.6; }
.careers-cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.careers-cta .section-title { margin-bottom: 8px; }
@media (max-width: 760px) {
  .role { grid-template-columns: 1fr auto; }
  .role-meta { grid-column: 1 / -1; grid-row: 2; }
}

/* Home product stack: sticky cards that pile up as you scroll.
   main.js sets --cover (0 to 1) as the next card slides over, shrinking and dimming this one. */
.stack { padding-top: 64px; display: flex; flex-direction: column; gap: 48px; }
.stack-card {
  --cover: 0;
  position: sticky; top: calc(88px + var(--i) * 14px);
  min-height: min(560px, 78vh);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px); border-radius: 36px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    linear-gradient(160deg, #1C2558, #111A44 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, rgba(255,255,255,.12));
  box-shadow: 0 -20px 60px rgba(5,10,35,.55), inset 0 1px 0 rgba(255,255,255,.18);
  transform: scale(calc(1 - var(--cover) * .06));
  filter: brightness(calc(1 - var(--cover) * .45));
  transform-origin: 50% 0;
  scroll-margin-top: 100px;
}
.stack-card:nth-child(even) .stack-copy { order: 2; }
.stack-num {
  position: absolute; z-index: -1; right: -2%; bottom: -14%;
  font: 800 clamp(180px, 26vw, 360px)/1 var(--display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 40%, transparent);
  pointer-events: none;
}
.stack-card:nth-child(even) .stack-num { right: auto; left: -2%; }
.stack-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.stack-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.stack-icon svg { width: 28px; height: 28px; }
.stack-copy h2 { margin-top: 18px; font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: -0.04em; }
.stack-tagline { margin: 12px 0 0; font: 600 clamp(20px, 2.2vw, 26px)/1.25 var(--display); color: var(--accent); }
.stack-body { margin: 16px 0 26px; color: var(--soft); max-width: 30em; line-height: 1.6; }
.stack-visual { display: flex; justify-content: center; perspective: 1200px; }
.stack-float { width: 100%; max-width: 500px; animation: stack-float 7s ease-in-out infinite; }
.stack-card:nth-child(even) .stack-float { animation-delay: -3.5s; }
.stack-mock { max-width: none; box-shadow: 0 40px 90px rgba(3,8,30,.6), 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 80px color-mix(in srgb, var(--accent) 22%, transparent); transition: transform .6s var(--ease); }
.stack-card:hover .stack-mock { transform: rotateX(4deg) rotateY(-6deg) scale(1.02); }
.stack-card:nth-child(even):hover .stack-mock { transform: rotateX(4deg) rotateY(6deg) scale(1.02); }
@keyframes stack-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Mock contents build in once the card's preview scrolls into view */
.stack-visual.in :is(.cal-day, .inc, .video-track, .mock-note) { animation: rise .6s var(--ease) both; }
.stack-visual.in .bar { transform-origin: bottom; animation: bar-grow 1s var(--ease) both; }
.stack-visual.in :is(.cal-day, .inc, .video-track, .bar):nth-child(1) { animation-delay: .25s; }
.stack-visual.in :is(.cal-day, .inc, .video-track, .bar):nth-child(2) { animation-delay: .35s; }
.stack-visual.in :is(.cal-day, .inc, .video-track, .bar):nth-child(3) { animation-delay: .45s; }
.stack-visual.in :is(.cal-day, .inc, .video-track, .bar):nth-child(4) { animation-delay: .55s; }
.stack-visual.in :is(.cal-day, .inc, .video-track, .bar):nth-child(5) { animation-delay: .65s; }
.stack-visual.in .mock-note { animation-delay: .8s; }

@media (max-width: 860px) {
  .stack-card { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; transform: none; filter: none; }
  .stack-card:nth-child(even) .stack-copy { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-float, .stack-visual.in * { animation: none !important; }
  .stack-card { transform: none; filter: none; }
}

/* Product logo images (e.g. Thaneo) used in place of the line icons */
.product-logo { display: block; width: 34px; height: auto; max-height: 28px; object-fit: contain; }

/* Gallery manual controls: side arrows, drag, clickable side slides */
.feature-carousel { position: relative; }
/* position: relative makes slide offsetLeft measure from the track, which main.js relies on */
.feature-track { position: relative; cursor: grab; user-select: none; }
.feature-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.feature-track img, .feature-track video { -webkit-user-drag: none; pointer-events: none; }
.feature-slide:not(.active) { cursor: pointer; }
.feature-arrow {
  position: absolute; top: calc(50% - 30px); z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff;
  background: rgba(15,24,56,.55); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .25s, transform .25s var(--ease);
}
.feature-arrow:hover { background: rgba(255,255,255,.9); color: var(--night); transform: scale(1.08); }
.feature-arrow.prev { left: max(12px, calc((100% - min(1000px, 84vw)) / 2 - 26px)); }
.feature-arrow.next { right: max(12px, calc((100% - min(1000px, 84vw)) / 2 - 26px)); }
@media (max-width: 760px) { .feature-arrow { display: none; } }

/* More from Thanwise: bento grid. main.js feeds --mx/--my for the cursor spotlight. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); gap: 18px; }
.bento-tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 28px;
  color: #fff; text-decoration: none;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--glass-border);
  transition: transform .5s var(--ease), border-color .4s;
}
.bento-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,143,94,.18), transparent 60%);
}
.bento-tile:hover { transform: translateY(-4px); border-color: rgba(255,176,138,.45); color: #fff; }
.bento-tile:hover::before { opacity: 1; }
.bento-1 { grid-column: span 2; background: radial-gradient(90% 120% at 0% 0%, rgba(79,93,240,.45), transparent 60%), linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.bento-1 .bento-title { font-size: clamp(32px, 3.6vw, 46px); max-width: 12ch; }
.bento-3 { grid-row: span 2; grid-column: 4; grid-row-start: 1; }
.bento-foundation { grid-column: 1 / 4; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  background: linear-gradient(120deg, rgba(255,143,94,.25), rgba(122,46,82,.25) 50%, rgba(255,255,255,.03)); border-color: rgba(255,176,138,.35); }
.bento-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ember-light); }
.bento-title { font: 700 clamp(26px, 2.6vw, 32px)/1.05 var(--display); letter-spacing: -0.03em; }
.bento-text { color: var(--soft); max-width: 26em; line-height: 1.55; }
.bento-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ember-light); }
.bento-arrow { display: inline-block; transition: transform .35s var(--ease); }
.bento-tile:hover .bento-arrow, .nl-lead:hover .bento-arrow { transform: translateX(6px); }
.bento-foundation-head { display: flex; flex-direction: column; gap: 10px; }
.bento-foundation-head .bento-link { margin-top: 6px; color: #fff; }
.bento-stats { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.bento-stat { display: flex; flex-direction: column; }
.bento-stat-num { font: 800 clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bento-stat-lab { color: #FFE3D6; font-size: 14px; }

/* Research node graph: links draw on, nodes pulse */
.bento-graph { width: 100%; max-width: 260px; margin-top: 6px; }
.graph-links path { fill: none; stroke: rgba(180,188,224,.45); stroke-width: 1.2; stroke-dasharray: 6 5; animation: graph-flow 3s linear infinite; }
.graph-nodes circle { fill: var(--ember-light); transform-box: fill-box; transform-origin: center; animation: graph-pulse 2.4s ease-in-out infinite; }
.graph-nodes circle:nth-child(2n) { fill: #7C8BFF; animation-delay: -.8s; }
.graph-nodes circle:nth-child(3n) { animation-delay: -1.6s; }
@keyframes graph-flow { to { stroke-dashoffset: -22; } }
@keyframes graph-pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.5); opacity: 1; } }

/* Quantiom: big rotating cube with a glow under it */
.bento-cube { flex: 1; display: grid; place-items: center; perspective: 500px; min-height: 180px; }
.bento-cube { background: radial-gradient(50% 18% at 50% 85%, rgba(255,143,94,.3), transparent 70%); }
.cube-scale { display: block; transform: scale(1.8); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-3 { grid-column: auto; grid-row: span 2; grid-row-start: auto; }
  .bento-foundation { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-1, .bento-3 { grid-column: auto; grid-row: auto; }
}

/* News: featured story + numbered list */
.nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; }
.nl-lead {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; min-height: 340px; padding: 34px; border-radius: 28px;
  color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(80% 90% at 100% 100%, rgba(255,143,94,.45), transparent 60%), linear-gradient(150deg, #3A47C9, #1B2463 70%);
  transition: transform .5s var(--ease);
}
.nl-lead::after { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.08), transparent 25%); animation: display-glow 10s linear infinite; z-index: 0; }
.nl-lead > * { position: relative; z-index: 1; }
.nl-lead:hover { transform: translateY(-4px); color: #fff; }
.nl-lead .bento-link { color: #fff; }
.nl-lead-title { font: 700 clamp(28px, 3.2vw, 40px)/1.08 var(--display); letter-spacing: -0.03em; max-width: 14ch; }
.nl-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ember-light); }
.nl-lead .nl-tag { color: #FFE3D6; }
.nl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nl-list li + li { border-top: 1px solid var(--glass-border); }
.nl-item { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px 8px; color: #fff; text-decoration: none; }
.nl-item::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--ember), var(--iris)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nl-item:hover::before { transform: scaleX(1); }
.nl-num { font: 800 32px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(180,188,224,.5); transition: color .3s; }
.nl-item:hover .nl-num { color: var(--ember-light); -webkit-text-stroke-color: transparent; }
.nl-body { display: flex; flex-direction: column; gap: 6px; }
.nl-title { font-size: 19px; line-height: 1.35; font-weight: 500; transition: transform .4s var(--ease); }
.nl-item:hover .nl-title { transform: translateX(6px); }
.nl-go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--glass-border); color: var(--ember-light); transition: background .3s, color .3s, transform .4s var(--ease); }
.nl-item:hover .nl-go { background: var(--ember); color: var(--night); transform: rotate(-45deg); }
@media (max-width: 860px) { .nl { grid-template-columns: 1fr; } .nl-lead { min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .graph-links path, .graph-nodes circle, .nl-lead::after { animation: none; } }

/* Keep hover lift working after the scroll-reveal has finished (.js .reveal.in sets transform: none) */
.js .bento-tile.reveal.in:hover, .js .nl-lead.reveal.in:hover { transform: translateY(-4px); }

/* Showcase video demos: live animation (driven by main.js) */
.demo-screen-shell .bar-fill { transition: height 1.1s var(--ease), background .6s, box-shadow .6s; }
.demo-screen-shell .timeline-scrubber { cursor: pointer; }
.demo-screen-shell .play-btn { transition: background .2s, transform .2s var(--ease); }
.demo-screen-shell .play-btn:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }
.demo-screen-shell.is-paused .rec-dot { animation-play-state: paused; opacity: .4; }
.demo-screen-shell.is-paused .audio-spectrum-bar span, .demo-screen-shell.is-paused .canvas-grid-overlay { animation-play-state: paused; }

/* Thanet: grid drifts, alert pops in when it changes */
.retail-demo-canvas { position: relative; }
.retail-demo-canvas > :not(.canvas-grid-overlay) { position: relative; }
.canvas-grid-overlay { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; animation: demo-grid 8s linear infinite; }
@keyframes demo-grid { to { background-position: 0 40px, 40px 0; } }
.demo-pop { animation: demo-pop .6s var(--ease); }
@keyframes demo-pop { 0% { opacity: 0; transform: translateY(8px) scale(.98); } 100% { opacity: 1; transform: none; } }

/* Thanmind: card glows red while critical, green once resolved */
.feed-incident-card { transition: border-color .6s, box-shadow .6s; box-shadow: 0 0 0 1px rgba(255,107,107,.15), 0 0 40px rgba(255,107,107,.08); }
.feed-incident-card.is-resolved { border-color: rgba(61,220,151,.45); box-shadow: 0 0 0 1px rgba(61,220,151,.25), 0 0 40px rgba(61,220,151,.15); }
.feed-incident-card .badge { transition: background .4s, color .4s; }

/* ThanSence: reticle breathes and sweeps when the target changes, stats flash on update */
.audio-spectrum-bar { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 36px; margin-top: 18px; }
.audio-spectrum-bar span { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(var(--ember-light), var(--iris)); transform-origin: bottom; animation: demo-eq 1s ease-in-out infinite; }
.audio-spectrum-bar span:nth-child(3n) { animation-duration: .7s; }
.audio-spectrum-bar span:nth-child(4n+1) { animation-duration: 1.3s; animation-delay: -.4s; }
.audio-spectrum-bar span:nth-child(5n+2) { animation-duration: .9s; animation-delay: -.2s; }
@keyframes demo-eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.reticle-target-box { overflow: hidden; animation: demo-breathe 3s ease-in-out infinite; }
.reticle-target-box::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255,176,138,.25), transparent); }
.reticle-target-box.scan::after { animation: demo-sweep .9s var(--ease); }
@keyframes demo-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes demo-sweep { to { left: 100%; } }
.stat-pill strong.tick { animation: demo-tick .5s var(--ease); }
@keyframes demo-tick { 0% { color: #fff; transform: translateY(-3px); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .canvas-grid-overlay, .audio-spectrum-bar span, .reticle-target-box, .reticle-target-box.scan::after, .demo-pop, .stat-pill strong.tick { animation: none; }
}

/* ===== Use Than cinematic: 3D motion graphics layer ===== */

.use-than-page.cine { overflow-x: clip; }

/* Film overlay: letterbox opens on load, grain jitters, vignette frames the screen */
.cine-fx { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.cine-bar { position: absolute; left: 0; right: 0; height: 13vh; background: #02040c; animation: cine-bar 1.6s cubic-bezier(.7,0,.2,1) .5s forwards; }
.cine-bar.top { top: 0; }
.cine-bar.bottom { bottom: 0; animation-name: cine-bar-b; }
@keyframes cine-bar { to { transform: translateY(-100%); } }
@keyframes cine-bar-b { to { transform: translateY(100%); } }
.cine-grain {
  position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: cine-grain .8s steps(4) infinite;
}
@keyframes cine-grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(0,0); } }
.cine-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(2,4,12,.55) 100%); }

/* Hero stage: 3D grid floor, light beams, orbiting rings, anamorphic flare */
.use-than-hero { position: relative; isolation: isolate; padding-block: 40px 20px; }
.cine-stage { position: absolute; inset: -80px -30vw -60px; z-index: -1; perspective: 700px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 70%, transparent); }
.cine-floor { position: absolute; left: -50%; right: -50%; bottom: -40%; height: 90%; transform: rotateX(72deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(124,139,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(124,139,255,.35) 1px, transparent 1px);
  background-size: 60px 60px; animation: cine-floor 4s linear infinite;
  -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); }
@keyframes cine-floor { to { background-position: 0 60px, 0 0; } }
.cine-beam { position: absolute; top: -20%; width: 18vw; height: 140%; background: linear-gradient(rgba(124,139,255,.25), transparent 70%); filter: blur(20px); transform-origin: top center; animation: cine-beam 9s ease-in-out infinite; }
.cine-beam.b1 { left: 20%; transform: rotate(18deg); }
.cine-beam.b2 { left: 45%; background: linear-gradient(rgba(255,143,94,.22), transparent 70%); animation-delay: -3s; transform: rotate(-4deg); }
.cine-beam.b3 { left: 68%; transform: rotate(-20deg); animation-delay: -6s; }
@keyframes cine-beam { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.cine-orbit { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(70deg); }
.cine-orbit span { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255,176,138,.35); transform: translate(-50%,-50%); animation: cine-spin 18s linear infinite; }
.cine-orbit span:nth-child(1) { width: 520px; height: 520px; }
.cine-orbit span:nth-child(2) { width: 760px; height: 760px; border-color: rgba(124,139,255,.3); border-style: dashed; animation-duration: 30s; animation-direction: reverse; }
.cine-orbit span:nth-child(3) { width: 1000px; height: 1000px; border-color: rgba(255,255,255,.08); animation-duration: 45s; }
.cine-orbit span::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--ember-light); box-shadow: 0 0 16px 4px rgba(255,143,94,.7); }
@keyframes cine-spin { to { transform: translate(-50%,-50%) rotate(1turn); } }
.cine-flare { position: absolute; top: 38%; left: -40%; width: 60%; height: 2px; background: linear-gradient(90deg, transparent, rgba(160,200,255,.9), #fff, rgba(160,200,255,.9), transparent);
  box-shadow: 0 0 30px 6px rgba(124,139,255,.5); filter: blur(.5px); opacity: 0; animation: cine-flare 2.4s cubic-bezier(.5,0,.2,1) 1.3s forwards; }
@keyframes cine-flare { 0% { left: -60%; opacity: 0; } 30% { opacity: 1; } 100% { left: 110%; opacity: 0; } }

/* Title: words rise out of depth, blur-to-sharp, staggered (main.js wraps each word) */
.cine-title { perspective: 900px; }
.cine-word { display: inline-block; transform-origin: 50% 100%; animation: cine-word 1.2s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(1.1s + var(--w) * .09s); }
@keyframes cine-word { from { opacity: 0; transform: translateY(40px) translateZ(-200px) rotateX(-70deg); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
.use-than-hero .hero-pill { animation: rise .8s var(--ease) .9s both; }
.use-than-hero .hero-lead { animation: rise .9s var(--ease) 1.8s both; }
.use-than-hero .product-nav-pills { animation: rise .9s var(--ease) 2s both; }

/* Panels: scroll drives --p from 0 (entering) to 1 (centred). Depth, tilt and focus pull. */
.cine-panel { --p: 1; position: relative; overflow: hidden;
  transform: perspective(1600px) translateY(calc((1 - var(--p)) * 80px)) rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(.9 + var(--p) * .1));
  filter: blur(calc((1 - var(--p)) * 5px)) brightness(calc(.55 + var(--p) * .45));
  opacity: calc(.2 + var(--p) * .8); transform-origin: 50% 100%; will-change: transform, filter; }
.cine-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); }
.cine-panel.lit::after { animation: cine-sweep 1.4s cubic-bezier(.4,0,.2,1); }
@keyframes cine-sweep { to { transform: translateX(120%) skewX(-20deg); } }
.cine-panel .feat-item { opacity: 0; transform: translateX(-16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.cine-panel.lit .feat-item { opacity: 1; transform: none; }
.cine-panel.lit .feat-item:nth-child(2) { transition-delay: .12s; }
.cine-panel.lit .feat-item:nth-child(3) { transition-delay: .24s; }

/* Product mock as a layered 3D card that follows the mouse (--rx/--ry from main.js) */
.cine .panel-visual { perspective: 1100px; }
.cine .mock.tilt, .cine .panel:hover .mock.tilt { transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); transform-style: preserve-3d; transition: transform .25s ease-out; animation: cine-float 7s ease-in-out infinite; }
.cine .mock.tilt-left { --ry: 14deg; }
.cine .mock > * { transform: translateZ(28px); }
.cine .mock .mock-note, .cine .mock .cinema-viewport { transform: translateZ(60px); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.cine .mock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.14), transparent 50%); transform: translateZ(80px); }
.cine .mock { position: relative; }
@keyframes cine-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Bundle: rotating light border + slow 3D drift */
.cine-bundle { position: relative; overflow: hidden; isolation: isolate; }
.cine-bundle::before { content: ""; position: absolute; inset: -60%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,143,94,.5) 80%, rgba(124,139,255,.5) 90%, transparent 100%); animation: display-glow 6s linear infinite; }
.cine-bundle::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: radial-gradient(ellipse at 50% 0%, #26307a, #0F1838 70%); }
.cine-bundle .bundle-content h2 { background: linear-gradient(90deg, #fff 30%, var(--ember-light) 50%, #fff 70%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cine-shine 5s ease-in-out infinite; }
@keyframes cine-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .cine-fx { display: none; }
  .cine-stage *, .cine-word, .use-than-hero .hero-pill, .use-than-hero .hero-lead, .use-than-hero .product-nav-pills,
  .cine .mock.tilt, .cine-bundle::before, .cine-bundle .bundle-content h2, .cine-panel.lit::after { animation: none !important; }
  .cine-panel { --p: 1 !important; filter: none; }
  .cine-panel .feat-item { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .cine-bar { height: 8vh; }
  .cine-orbit span:nth-child(3) { display: none; }
}

/* Gallery cinematic autoplay: coverflow depth, Ken Burns push-in, caption reveal, light sweep, dot countdown */
.feature-track { perspective: 1600px; }
.feature-track.gliding { scroll-snap-type: none; scroll-behavior: auto; }
.feature-slide { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); isolation: isolate; }
.feature-slide.is-prev { transform: rotateY(14deg) scale(.9); transform-origin: 100% 50%; filter: brightness(.6) saturate(.8); }
.feature-slide.is-next { transform: rotateY(-14deg) scale(.9); transform-origin: 0% 50%; filter: brightness(.6) saturate(.8); }
.feature-slide.active { filter: none; box-shadow: 0 40px 100px rgba(3,8,30,.7), 0 0 0 1px rgba(255,255,255,.08); }

/* Ken Burns: the image lives on the slide, so a ::before copy of it does the slow push-in and pan */
.feature-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; background-size: cover; background-position: center; transform-origin: 60% 40%; }
.feature-slide.active.enter::before { animation: kenburns 9s cubic-bezier(.25,.1,.25,1) forwards; }
.feature-slide.active.enter .feature-media { animation: kenburns 16s cubic-bezier(.25,.1,.25,1) forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }

/* Light sweep + soft exposure flash as each slide arrives */
.feature-slide.active.enter { animation: slide-flash 1.2s ease-out; }
@keyframes slide-flash { 0% { filter: brightness(1.35) contrast(.9); } 100% { filter: none; } }

/* Caption: rises out of a blur, button first then text */
.feature-slide.active.enter .feature-caption > * { animation: caption-in .9s cubic-bezier(.2,.8,.2,1) both; }
.feature-slide.active.enter .feature-caption > :nth-child(1) { animation-delay: .5s; }
.feature-slide.active.enter .feature-caption > :nth-child(2) { animation-delay: .65s; }
@keyframes caption-in { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Dots: the active dot fills left-to-right as the countdown to the next slide */
.feature-dot { position: relative; overflow: hidden; }
.feature-dot.active { width: 44px; background: rgba(255,255,255,.3); }
.feature-dot.active::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(var(--fill, 0)); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .feature-slide, .feature-slide.is-prev, .feature-slide.is-next { transform: none; transition: none; }
  .feature-slide.active.enter, .feature-slide.active.enter::before, .feature-slide.active.enter .feature-media,
  .feature-slide.active.enter .feature-caption > * { animation: none; }
  .feature-dot.active::after { transform: scaleX(1); }
}

/* Thaneo scene cards with real video (showcase page) */
.player-visual-bg.has-video { cursor: pointer; }
.slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-visual-bg.has-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,40,.15), rgba(10,16,40,.65)); transition: opacity .4s; }
.player-visual-bg.has-video > :not(video) { position: relative; z-index: 1; }
.player-visual-bg.has-video .play-pulse-btn { cursor: pointer; padding: 0; transition: opacity .3s, transform .3s var(--ease); }
.player-visual-bg.has-video .play-pulse-btn:hover { transform: scale(1.1); }
.player-visual-bg.is-playing::after { opacity: .3; }
.player-visual-bg.is-playing .play-pulse-btn, .player-visual-bg.is-playing .overlay-title { opacity: 0; }
.player-visual-bg.is-playing:hover .play-pulse-btn { opacity: 1; }
/* Slim themed scrollbar instead of the default white one */
.video-scroll-strip { scrollbar-width: thin; scrollbar-color: rgba(255,176,138,.5) rgba(255,255,255,.06); }
.video-scroll-strip::-webkit-scrollbar { height: 6px; }
.video-scroll-strip::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 99px; }
.video-scroll-strip::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--iris), var(--ember-light)); border-radius: 99px; }

/* Hero showcase: Than Agent tab and its live task-run mock */
.tab-new { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font: 700 10px var(--body); letter-spacing: .04em; vertical-align: middle; color: var(--night); background: linear-gradient(90deg, var(--ember-light), var(--ember)); }
.tab-agent .tab-icon { background: linear-gradient(135deg, rgba(79,93,240,.6), rgba(255,143,94,.45)); }
.tab-agent.active .tab-icon svg { animation: agent-star 8s linear infinite; }
@keyframes agent-star { to { transform: rotate(1turn); } }
.agent-live { display: inline-flex; align-items: center; gap: 6px; color: #9FF0C9; }
.agent-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; animation: graph-pulse 1.6s ease-in-out infinite; }
.agent-brief { padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; font-style: italic; color: #E3E7FB; background: rgba(79,93,240,.18); border: 1px solid rgba(124,139,255,.3); }
.agent-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agent-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 34px; border-radius: 10px; background: rgba(255,255,255,.04); color: #E3E7FB; }
.agent-steps li::before { content: ""; position: absolute; left: 10px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--ember-light); }
.agent-steps li::after { content: "✓"; position: absolute; left: 13px; font-size: 10px; font-weight: 800; color: var(--night); opacity: 0; }
.agent-tool { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ember-light); background: rgba(255,143,94,.14); }
/* Steps appear, each spinner turns, then ticks green, one after another (delays: row, spinner, tick) */
.showcase-pane.active .agent-steps li { animation: rise .5s var(--ease) both; }
.showcase-pane.active .agent-steps li::before { animation: agent-spin .6s linear 0s 3, agent-done .3s ease 1.8s forwards; }
.showcase-pane.active .agent-steps li::after { animation: agent-tick .3s ease forwards; }
.showcase-pane.active .agent-steps li:nth-child(1) { animation-delay: .3s; }
.showcase-pane.active .agent-steps li:nth-child(2) { animation-delay: .45s; }
.showcase-pane.active .agent-steps li:nth-child(3) { animation-delay: .6s; }
.showcase-pane.active .agent-steps li:nth-child(4) { animation-delay: .75s; }
.showcase-pane.active .agent-steps li:nth-child(5) { animation-delay: .9s; }
.showcase-pane.active .agent-steps li:nth-child(1)::before { animation-delay: .4s, 2.2s; }
.showcase-pane.active .agent-steps li:nth-child(2)::before { animation-delay: 1.3s, 3.1s; }
.showcase-pane.active .agent-steps li:nth-child(3)::before { animation-delay: 2.2s, 4.0s; }
.showcase-pane.active .agent-steps li:nth-child(4)::before { animation-delay: 3.1s, 4.9s; }
.showcase-pane.active .agent-steps li:nth-child(5)::before { animation-delay: 4.0s, 5.8s; }
.showcase-pane.active .agent-steps li:nth-child(1)::after { animation-delay: 2.2s; }
.showcase-pane.active .agent-steps li:nth-child(2)::after { animation-delay: 3.1s; }
.showcase-pane.active .agent-steps li:nth-child(3)::after { animation-delay: 4.0s; }
.showcase-pane.active .agent-steps li:nth-child(4)::after { animation-delay: 4.9s; }
.showcase-pane.active .agent-steps li:nth-child(5)::after { animation-delay: 5.8s; }
.showcase-pane.active .agent-done { animation: rise .5s var(--ease) 6.1s both; }
@keyframes agent-spin { to { transform: rotate(1turn); } }
@keyframes agent-done { to { border-color: #3DDC97; background: #3DDC97; transform: none; } }
@keyframes agent-tick { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .showcase-pane.active .agent-steps li::before { animation: none; border-color: #3DDC97; background: #3DDC97; }
  .showcase-pane.active .agent-steps li::after { animation: none; opacity: 1; }
}
/* The agent run takes ~6.5s to finish, so its tab stays open longer than the 6s product tabs */
.tab-agent.active .tab-progress { animation-duration: 10s; }

/* Than Agent: accounting steps get a teal tag to tell them apart from sales */
.agent-tool.tool-acc { color: #7FE6D3; background: rgba(44,201,176,.15); }
