/* ShortTrust luxury atmosphere   firm, durable, trustworthy type */
@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap');

html {
  overflow-x: clip;
  scrollbar-gutter: auto;
}
html, body {
  max-width: 100%;
}
:root {
  --st-ink: #050508;
  --st-ink-2: #0c0a12;
  --st-violet: #7c3aed;
  --st-violet-soft: #a78bfa;
  --st-glow: rgba(124, 58, 237, 0.45);
  --st-font: "Sora", "Bai Jamjuree", system-ui, sans-serif;
  --st-font-th: "Bai Jamjuree", "Sora", system-ui, sans-serif;
}

html, body {
  background: var(--st-ink) !important;
  color: #f4f0ff;
  font-family: var(--st-font-th);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-headline-xl, .font-headline-lg, .font-title-md,
.font-headline-lg-mobile, [class*="font-headline"] {
  font-family: var(--st-font) !important;
  letter-spacing: -0.03em;
}

button, input, select, textarea, .btn {
  font-family: var(--st-font-th) !important;
  border-radius: 999px;
}

/* Fixed atmosphere layer */
.st-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 120%, rgba(88, 28, 135, 0.22), transparent 55%),
    linear-gradient(180deg, #050508 0%, #0a0814 60%, #0e0a18 100%);
}

.st-atmosphere canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.st-atmosphere-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.15) 0%, transparent 35%, rgba(5, 5, 8, 0.55) 100%);
}

/* Page content stays above atmosphere without forcing position on every child */
body.st-has-atmosphere > header,
body.st-has-atmosphere > main,
body.st-has-atmosphere > footer,
body.st-has-atmosphere > .layout,
body.st-has-atmosphere > .modal-overlay {
  position: relative;
  z-index: 1;
}

.st-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--st-font);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  color: #f4f0ff;
}
.st-brand-lockup img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 8px 24px rgba(124,58,237,.35);
}

.st-footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  width: 100%;
}
.st-footer-center .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Carousel */
.st-loop-carousel {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.st-loop-carousel .track-wrap {
  overflow: hidden;
  flex: 1;
}
.st-loop-carousel .track {
  display: flex;
  gap: 1.15rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.st-loop-carousel .card {
  flex: 0 0 clamp(180px, 20vw, 260px);
  aspect-ratio: 9/16;
  border-radius: 1.1rem;
  border: 1px solid rgba(210, 187, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(124,58,237,.25), rgba(15,10,30,.9)),
    repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(255,255,255,.03) 8px, rgba(255,255,255,.03) 9px);
  display: grid;
  place-items: center;
  color: rgba(244, 240, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.st-loop-carousel .card:hover,
.st-loop-carousel .card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(210, 187, 255, 0.7);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.35);
  outline: none;
}
.st-loop-carousel .nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.92);
  color: #1a0b2e;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .2s ease;
}
.st-loop-carousel .nav:hover { transform: scale(1.06); }

.st-hero-motion {
  position: absolute;
  inset: -10% -5% 10%;
  width: 110%;
  height: 120%;
  margin: 0 auto;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.st-hero-copy { position: relative; z-index: 1; }

.st-tool-preview {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  background: #120a22;
  margin-top: 1rem;
}
.st-tool-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform .5s ease, opacity .3s ease;
}
.group:hover .st-tool-preview img { transform: scale(1.05); opacity: 1; }

/* Full-bleed top bars */
header.fixed,
.st-topbar,
header[class*="fixed"] {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
header > div,
.st-topbar > div {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: clamp(1rem, 3vw, 2rem) !important;
  padding-right: clamp(1rem, 3vw, 2rem) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Luxury hero (image-3 style): soft aqua/white glows + light pillars */
.st-hero-luxury {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.st-hero-luxury::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 40% at 78% 18%, rgba(200, 230, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 35% 35% at 18% 70%, rgba(120, 180, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 50% 100%, rgba(124, 58, 237, 0.18), transparent 55%);
}
.st-hero-luxury::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: min(420px, 70vw);
  height: 28%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(255,255,255,.08) 30%, transparent),
    repeating-linear-gradient(90deg,
      transparent 0 38px,
      rgba(255,255,255,.16) 38px 39px,
      transparent 39px 76px);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  opacity: 0.55;
}
@keyframes st-glow-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.04); }
}

/* After hero: purple ↔ black fade loop */
.st-section-purple-fade {
  position: relative;
  isolation: isolate;
}
.st-section-purple-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(88, 28, 135, 0.45), transparent 70%),
    linear-gradient(180deg, #050508 0%, #1a0b2e 45%, #050508 100%);
  animation: st-purple-black 10s ease-in-out infinite;
}
.st-section-purple-fade > * { position: relative; z-index: 1; }
@keyframes st-purple-black {
  0%, 100% { opacity: 0.55; filter: saturate(0.9); }
  50% { opacity: 1; filter: saturate(1.15); }
}

/* Light purple hover for primary interactive controls */
[data-action="start"]:hover,
.btn-primary:hover,
.st-confirm .btn-go:hover {
  background-color: #e9ddff !important;
  color: #3f008e !important;
  border-color: #d2bbff !important;
}
.st-loop-carousel .card:hover {
  background:
    linear-gradient(160deg, rgba(210,187,255,.55), rgba(124,58,237,.35)),
    repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(255,255,255,.05) 8px, rgba(255,255,255,.05) 9px) !important;
  color: #1a0b2e !important;
}

/* Timeline CTA backdrop + yellow playhead sweep */
.st-cta-timeline {
  position: relative;
  overflow: hidden;
}
.st-cta-timeline .st-cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,8,.72), rgba(5,5,8,.9)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,.07) 42px 43px),
    linear-gradient(180deg, #24183c 0%, #12101c 100%);
  filter: saturate(0.85) brightness(0.55);
  transform: scale(1.04);
}
.st-cta-timeline .st-cta-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.85);
  animation: st-playhead-sweep 4.5s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes st-playhead-sweep {
  0% { left: 8%; opacity: 0.65; }
  50% { left: 88%; opacity: 1; }
  100% { left: 8%; opacity: 0.65; }
}

/* Editor mock playhead left↔right */
.st-playhead-move {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.9);
  animation: st-playhead-sweep 3.6s ease-in-out infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .st-hero-luxury::before,
  .st-section-purple-fade::before,
  .st-cta-timeline .st-cta-playhead,
  .st-playhead-move { animation: none; }
}
