/* Slidr homepage. One dark stage, the app's teal-indigo-violet gradient, and a gold spark. */

:root {
  --bg: #070815;
  --bg-2: #0c0e22;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --fg: #f4f3fb;
  --fg-2: rgba(236, 234, 250, 0.72);
  --fg-3: rgba(236, 234, 250, 0.5);
  --teal: #2dd4bf;
  --teal-deep: #087e8b;
  --indigo: #6366f1;
  --indigo-deep: #4c50c8;
  --violet: #a855f7;
  --violet-deep: #8534d5;
  --gold: #ffc94d;
  --grad: linear-gradient(110deg, #19a7b3 0%, #6366f1 48%, #a855f7 100%);
  --grad-text: linear-gradient(100deg, #5eead4 0%, #a5b4fc 45%, #e9b8ff 80%, #ffd88a 100%);
  --radius: 22px;
  --sans: 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

/* ---------- Aurora ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  animation: drift 26s var(--ease) infinite alternate;
}
.b1 {
  background: radial-gradient(circle, #0f8f9c 0%, transparent 62%);
  top: -30vmax;
  inset-inline-start: -18vmax;
}
.b2 {
  background: radial-gradient(circle, #5b3fd6 0%, transparent 62%);
  top: -22vmax;
  inset-inline-end: -24vmax;
  animation-duration: 32s;
  animation-delay: -8s;
}
.b3 {
  background: radial-gradient(circle, #8f2fc9 0%, transparent 60%);
  top: 40vh;
  inset-inline-start: 20vw;
  opacity: 0.18;
  animation-duration: 40s;
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6vw, 4vh, 0) scale(1.12);
  }
  100% {
    transform: translate3d(-4vw, 8vh, 0) scale(0.95);
  }
}
.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  opacity: 0.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow:
    0 10px 40px -10px rgba(99, 102, 241, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  box-shadow:
    0 16px 50px -10px rgba(168, 85, 247, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost {
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}
.btn-light {
  background: #fff;
  color: #11122a;
}
.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 8, 21, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  padding: 3px;
  border-radius: 10px;
  background: linear-gradient(135deg, #087e8b, #4c50c8 55%, #8534d5);
  box-shadow: 0 6px 20px -6px rgba(99, 102, 241, 0.9);
}
.links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--fg-2);
}
.links a:hover {
  color: var(--fg);
}
.nav-end {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font: 500 14px var(--sans);
  cursor: pointer;
}
.lang-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.lang-btn .chev {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  width: 330px;
  max-height: min(70vh, 520px);
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(16, 18, 40, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.lang-menu[hidden] {
  display: none;
}
.lang-menu li {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  color: var(--fg-2);
}
.lang-menu li:hover,
.lang-menu li:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}
.lang-menu li[aria-selected='true'] {
  color: var(--fg);
  background: rgba(99, 102, 241, 0.25);
}

/* ---------- Type ---------- */
.display {
  font-weight: 700;
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display em,
.h2 em,
.display-2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 0.06em;
}
.h2 {
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 em,
.display-2 em {
  font-size: 1.08em;
}
.display-2 {
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--fg-2);
  max-width: 640px;
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.sec-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.sec-lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 96px);
}
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--fg-2);
  margin-bottom: 28px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 201, 77, 0.18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 201, 77, 0);
  }
}
.hero .display {
  max-width: 1000px;
}
.hero .lead {
  margin-top: 26px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--fg-3);
}

/* the stage: the app window */
.stage {
  position: relative;
  width: min(1200px, 100% - 32px);
  margin: 72px auto 0;
  perspective: 1800px;
}
.stage-tilt {
  position: relative;
  transform: rotateX(calc(var(--tilt, 1) * 16deg)) scale(calc(0.94 + (1 - var(--tilt, 1)) * 0.06));
  transform-origin: 50% 0;
  transition: transform 0.1s linear;
}
.window {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0e1024;
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 50px 120px -30px rgba(76, 80, 200, 0.55),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.clip {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: #0e1024;
}
.hero-window::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(94, 234, 212, 0.7), transparent 30%, transparent 70%, rgba(233, 184, 255, 0.7));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes bob {
  50% {
    translate: 0 -14px;
  }
}
.prompt-pill {
  position: absolute;
  z-index: 3;
  inset-inline-start: 4%;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(560px, 80%);
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(20, 22, 48, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.typed {
  overflow: hidden;
  text-overflow: clip;
}
.spark-ico {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2q1 7 8 8-7 1-8 8-1-7-8-8 7-1 8-8z'/%3E%3C/svg%3E") center/14px no-repeat,
    var(--grad);
}
.caret {
  flex: none;
  width: 2px;
  height: 18px;
  background: var(--gold);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(20, 22, 48, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.8);
  animation: bob 7s ease-in-out infinite;
}
.chip-b {
  inset-inline-end: 6%;
  bottom: 18%;
  animation-delay: -4s;
}
.chip .ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

/* ---------- Showcase ---------- */
.showcase {
  margin-top: 150px;
}
.player {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 40px;
  align-items: start;
}
.chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.chapters button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  text-align: start;
  padding: 18px 20px 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.chapters button:hover {
  background: rgba(255, 255, 255, 0.03);
}
.chapters button[aria-selected='true'] {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--fg);
}
.num {
  font: 600 13px var(--sans);
  color: var(--fg-3);
  padding-top: 3px;
}
[aria-selected='true'] .num {
  color: var(--gold);
}
.ch-text strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.ch-text span {
  display: grid;
  grid-template-rows: 0fr;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.4s,
    margin 0.4s;
}
[aria-selected='true'] .ch-text span {
  max-height: 140px;
  opacity: 1;
  margin-top: 8px;
}
.bar {
  position: absolute;
  inset-inline: 20px;
  bottom: 10px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
}
[aria-selected='true'] .bar {
  opacity: 1;
}
.bar span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--grad);
  border-radius: inherit;
}
.player-screen {
  position: relative;
  aspect-ratio: 5 / 3;
}
.player-screen .clip {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}
.player-screen .clip.on {
  opacity: 1;
}

/* ---------- Features ---------- */
.features {
  margin-top: 160px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  grid-column: span 2;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.14), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}
.c-select,
.c-objects {
  grid-column: span 3;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 24px;
}
.card p {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--fg-2);
}
.art {
  position: relative;
  height: 180px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  overflow: hidden;
}
.c-select .art,
.c-objects .art {
  height: auto;
  aspect-ratio: 16 / 9;
}
.art-select img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.sel-box {
  position: absolute;
  left: 4.4%;
  top: 34.5%;
  width: 43.5%;
  height: 27%;
  border: 2px solid #a78bfa;
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(7, 8, 21, 0.28);
  animation: sel 6s var(--ease) infinite;
}
.sel-box i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 2px solid #a78bfa;
  border-radius: 2px;
}
.sel-box i:nth-child(1) {
  left: -6px;
  top: -6px;
}
.sel-box i:nth-child(2) {
  right: -6px;
  top: -6px;
}
.sel-box i:nth-child(3) {
  left: -6px;
  bottom: -6px;
}
.sel-box i:nth-child(4) {
  right: -6px;
  bottom: -6px;
}
@keyframes sel {
  0%,
  12% {
    opacity: 0;
    transform: scale(1.06);
  }
  22%,
  88% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
  }
}
.sel-chip {
  position: absolute;
  left: 49%;
  top: 40%;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.92);
  font-size: 13px;
  font-weight: 600;
  animation: sel 6s var(--ease) infinite;
  animation-delay: 0.25s;
}
.art-objects video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4f2fb;
}
.art-check {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}
.art-check .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  opacity: 0;
  animation: rowin 6s var(--ease) infinite;
}
.art-check .row:nth-child(2) {
  animation-delay: 0.35s;
}
.art-check .row:nth-child(3) {
  animation-delay: 0.7s;
}
.art-check .row i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #34d399
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304291d' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E")
    center/12px no-repeat;
}
.art-check .row b {
  font-weight: 500;
}
.art-check .row em {
  margin-inline-start: auto;
  font-style: normal;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
@keyframes rowin {
  0%,
  8% {
    opacity: 0;
    transform: translateY(8px);
  }
  16%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
.art-chart {
  display: flex;
  align-items: flex-end;
  gap: 8%;
  padding: 26px 26px 0;
}
.art-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #a5b4fc, #6366f1);
  transform-origin: bottom;
  animation: grow 5s var(--ease) infinite;
}
.art-chart span:nth-child(even) {
  background: linear-gradient(180deg, #5eead4, #0f8f9c);
}
.art-chart span:last-child {
  background: linear-gradient(180deg, #ffe08a, #f59e0b);
}
.art-chart span:nth-child(2) {
  animation-delay: 0.08s;
}
.art-chart span:nth-child(3) {
  animation-delay: 0.16s;
}
.art-chart span:nth-child(4) {
  animation-delay: 0.24s;
}
.art-chart span:nth-child(5) {
  animation-delay: 0.32s;
}
.art-chart span:nth-child(6) {
  animation-delay: 0.4s;
}
@keyframes grow {
  0% {
    transform: scaleY(0.05);
  }
  25%,
  90% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0.05);
  }
}
/* HTML in, HTML out: markup types itself into a code window and lands as a finished slide. */
.art-html {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background:
    radial-gradient(120% 90% at 85% 60%, rgba(99, 102, 241, 0.2), transparent 60%),
    rgba(0, 0, 0, 0.25);
}
.code-win {
  flex: none;
  border-radius: 10px;
  background: #0b0d1c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.code-bar b {
  margin-inline-start: 6px;
  font:
    500 10px ui-monospace,
    'Cascadia Code',
    monospace;
  color: var(--fg-3);
}
.code-lines {
  display: grid;
  padding: 8px 12px 10px;
  font:
    500 11px/1.6 ui-monospace,
    'Cascadia Code',
    monospace;
  color: #e7e5f7;
  white-space: nowrap;
}
.code-lines span {
  animation: typeline 7s steps(12, end) infinite;
}
.code-lines span:nth-child(2) {
  animation-delay: 0.25s;
}
.code-lines span:nth-child(3) {
  animation-delay: 0.5s;
}
.code-lines span:nth-child(4) {
  animation-delay: 0.75s;
}
.code-lines span:nth-child(5) {
  animation-delay: 1s;
}
.code-lines span:nth-child(6) {
  animation-delay: 1.25s;
}
.code-lines em {
  font-style: normal;
  color: #f0abfc;
}
@keyframes typeline {
  0%,
  3% {
    clip-path: inset(0 100% 0 0);
  }
  9%,
  92% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}
.html-slide {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 300px;
  margin-inline-start: -10px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 36px -10px rgba(99, 102, 241, 0.75);
  animation: slidein 7s var(--ease) infinite;
}
.html-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@keyframes slidein {
  0%,
  34% {
    opacity: 0.12;
    transform: scale(0.9);
  }
  44%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0.12;
    transform: scale(0.9);
  }
}

/* Every turn can be undone: the history of AI turns, and one click takes the newest back. */
.art-undo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}
.turn {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}
.turn img {
  flex: none;
  width: 54px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  object-fit: cover;
}
.turn b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--fg-2);
}
.turn-last {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(99, 102, 241, 0.16);
  animation: turnback 7s var(--ease) infinite;
}
.turn-last b {
  color: var(--fg);
}
.undo-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  animation: undopress 7s var(--ease) infinite;
}
.undo-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir='rtl'] .undo-btn svg {
  scale: -1 1;
}
.turn .cursor {
  position: absolute;
  inset-inline-end: 22px;
  top: 26px;
  width: 16px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M1 1v15l4-4 3 7 3-1.4-3-6.6h6z' fill='%23fff' stroke='%23111' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  animation: cursorgo 7s var(--ease) infinite;
}
@keyframes cursorgo {
  0%,
  18% {
    opacity: 0;
    transform: translate(26px, 40px);
  }
  24% {
    opacity: 1;
  }
  34%,
  44% {
    opacity: 1;
    transform: none;
  }
  40% {
    transform: scale(0.85);
  }
  50%,
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes undopress {
  0%,
  36% {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
  }
  40% {
    background: #6366f1;
    transform: scale(0.92);
  }
  46%,
  100% {
    background: #6366f1;
    transform: none;
  }
}
@keyframes turnback {
  0%,
  44% {
    opacity: 1;
    height: 46px;
    margin-bottom: 0;
    transform: none;
  }
  54% {
    opacity: 0;
    height: 46px;
    margin-bottom: 0;
    transform: scale(0.94);
  }
  62%,
  86% {
    opacity: 0;
    height: 0;
    margin-bottom: -6px;
    transform: scale(0.94);
  }
  96%,
  100% {
    opacity: 1;
    height: 46px;
    margin-bottom: 0;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art-html *,
  .art-undo * {
    animation: none !important;
  }
  .turn .cursor {
    display: none;
  }
}

/* ---------- Templates marquee ---------- */
.templates {
  margin-top: 160px;
  overflow: hidden;
}
.marquee {
  display: grid;
  gap: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  transform: rotate(-2deg);
  margin-top: 10px;
  padding-block: 20px;
}
.track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: slide 70s linear infinite;
}
.track.t2 {
  animation-direction: reverse;
  animation-duration: 80s;
}
.track img {
  width: 330px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
.marquee:hover .track {
  animation-play-state: paused;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
[dir='rtl'] .track {
  animation-name: slide-rtl;
}
@keyframes slide-rtl {
  to {
    transform: translateX(50%);
  }
}

/* ---------- Templates shown whole ---------- */
.tpl-whole .lib-sub {
  margin-top: 70px;
}
.sc-window {
  margin-top: 34px;
}
.sc-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.sc-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.sc-bar span {
  margin-inline: auto;
  padding-inline-end: 50px;
  font: 600 13px var(--sans);
  color: var(--fg-3);
}
.sc-body {
  display: grid;
  grid-template-columns: 270px 1fr;
}
.sc-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-inline-end: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.sc-tabs button {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px 10px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.sc-tabs button:hover {
  background: rgba(255, 255, 255, 0.03);
}
.sc-tabs button[aria-selected='true'] {
  background: var(--panel-2);
  border-color: var(--line-2);
  color: var(--fg);
}
.sc-tabs img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--line);
  opacity: 0.55;
  transition: opacity 0.3s;
}
.sc-tabs button:hover img,
.sc-tabs [aria-selected='true'] img {
  opacity: 1;
}
.sc-tab-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.sc-tab-text span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-3);
}
.sc-tabs .bar {
  inset-inline: 10px;
  bottom: 7px;
}
.sc-running [aria-selected='true'] .bar span {
  animation: sc-fill 2.5s linear forwards;
}
@keyframes sc-fill {
  to {
    width: 100%;
  }
}
.sc-main {
  min-width: 0;
  padding: 18px 22px 24px;
}
.sc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 16px;
}
.sc-name {
  font-size: 18px;
  font-weight: 700;
}
.sc-tag {
  font-size: 14px;
  color: var(--fg-3);
}
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-grid li {
  min-width: 0;
}
.sc-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease);
}
.sc-grid li:hover img {
  transform: scale(1.04);
}
.sc-grid span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--fg-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sc-grid b {
  margin-inline-end: 6px;
  font-weight: 600;
  color: var(--fg-3);
}
.sc-grid.swap li {
  animation: sc-in 0.35s var(--ease) both;
  animation-delay: calc(var(--i) * 14ms);
}
@keyframes sc-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (max-width: 1020px) {
  .sc-body {
    grid-template-columns: 1fr;
  }
  .sc-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
  .sc-tab-text span {
    display: none;
  }
}
@media (max-width: 680px) {
  .sc-tabs {
    gap: 6px;
    padding: 10px;
  }
  .sc-tabs button {
    padding: 6px 6px 12px;
    gap: 6px;
  }
  .sc-tab-text strong {
    font-size: 14px;
  }
  .sc-tag,
  .sc-grid li:nth-child(n + 9) {
    display: none;
  }
  .sc-main {
    padding: 14px;
  }
  .sc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
}

/* ---------- Languages ---------- */
.languages {
  margin-top: 160px;
}
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}
.lang-count {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--fg-2);
  font-size: 15px;
}
.lang-count strong {
  font: 400 64px/1 var(--serif);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lang-chips {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lang-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--fg-2);
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.lang-chips li.lit {
  border-color: rgba(165, 180, 252, 0.5);
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}
.lang-window {
  transform: rotate(1.5deg);
}

/* ---------- Enterprise ---------- */
.enterprise {
  position: relative;
  margin-top: 150px;
  padding-block: 130px 110px;
  background:
    radial-gradient(900px 500px at 85% 40%, rgba(99, 102, 241, 0.2), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(15, 143, 156, 0.18), transparent 60%),
    linear-gradient(180deg, #05060f, #090b1d);
  border-block: 1px solid var(--line);
}
.enterprise::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0/48px 48px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000, transparent 70%);
  pointer-events: none;
}
.ent-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.ent-copy .eyebrow {
  color: var(--gold);
}
.pillars {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  gap: 26px;
}
.pillars li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}
.p-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(168, 85, 247, 0.18));
  border: 1px solid var(--line-2);
}
.p-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #c7d2fe;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillars h3 {
  font-size: 18px;
  font-weight: 600;
}
.pillars p {
  margin-top: 4px;
  font-size: 15.5px;
  color: var(--fg-2);
}

/* ---------- Final CTA ---------- */
.final {
  margin-top: 160px;
}
.final-card {
  position: relative;
  text-align: center;
  padding: 220px 32px 80px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(99, 102, 241, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-slides {
  position: absolute;
  top: 40px;
  left: 50%;
  translate: -50% 0;
  width: 520px;
  height: 160px;
}
.final-slides img {
  position: absolute;
  width: 240px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.9);
  left: 140px;
  transition: transform 0.8s var(--ease);
}
.final-slides img:nth-child(1) {
  transform: translateX(-130px) rotate(-10deg) translateY(16px);
}
.final-slides img:nth-child(3) {
  transform: translateX(130px) rotate(10deg) translateY(16px);
}
.final-slides img:nth-child(2) {
  z-index: 1;
}
.final-card.in .final-slides img:nth-child(1) {
  transform: translateX(-170px) rotate(-12deg) translateY(22px);
}
.final-card.in .final-slides img:nth-child(3) {
  transform: translateX(170px) rotate(12deg) translateY(22px);
}
.final .lead {
  margin: 22px auto 0;
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 100px;
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  color: var(--fg-3);
  font-size: 14px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-brand .brand {
  color: var(--fg);
  font-size: 18px;
}
.foot-links {
  display: flex;
  gap: 24px;
}
.foot-links a:hover {
  color: var(--fg);
}
.foot-legal {
  grid-column: 1 / -1;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Scripts: per-language faces ---------- */
:lang(he),
:lang(ar),
:lang(hi),
:lang(ja),
:lang(ko),
:lang(zh-CN),
:lang(ru),
:lang(vi) {
  --sans: var(--script-sans), 'Inter', system-ui, sans-serif;
  --serif: var(--script-serif), Georgia, serif;
}
:lang(he) :is(.display, .h2, .display-2),
:lang(ar) :is(.display, .h2, .display-2),
:lang(hi) :is(.display, .h2, .display-2),
:lang(ja) :is(.display, .h2, .display-2),
:lang(ko) :is(.display, .h2, .display-2),
:lang(zh-CN) :is(.display, .h2, .display-2) {
  letter-spacing: -0.01em;
  line-height: 1.15;
}
:lang(ar) :is(.display, .h2, .display-2),
:lang(hi) :is(.display, .h2, .display-2) {
  line-height: 1.3;
  letter-spacing: 0;
}
:lang(he) .eyebrow,
:lang(ar) .eyebrow,
:lang(hi) .eyebrow,
:lang(ja) .eyebrow,
:lang(ko) .eyebrow,
:lang(zh-CN) .eyebrow {
  letter-spacing: 0.04em;
}
:is(:lang(he), :lang(ar), :lang(hi), :lang(ja), :lang(ko), :lang(zh-CN)) :is(.display, .h2, .display-2, .lib-sub) em {
  font-style: normal;
  font-size: 1em;
}
:lang(ja) .display,
:lang(ko) .display,
:lang(zh-CN) .display {
  font-size: clamp(38px, 6.4vw, 84px);
}

/* CJK headings break between phrases, never inside the highlighted one. */
:lang(ja) :is(.display, .h2, .display-2) em,
:lang(zh-CN) :is(.display, .h2, .display-2) em {
  display: inline-block;
}
:lang(ko) {
  word-break: keep-all;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .links {
    display: none;
  }
  .player {
    grid-template-columns: 1fr;
  }
  .player-window {
    order: -1;
  }
  .lang-grid,
  .ent-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .card,
  .c-select,
  .c-objects {
    grid-column: span 1;
  }
}
@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .nav-inner {
    gap: 12px;
    height: 64px;
  }
  .lang-current {
    display: none;
  }
  .nav-end .btn-sm {
    padding: 0 14px;
  }
  .hero .actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero .actions {
    width: 100%;
  }
  .stage {
    margin-top: 56px;
  }
  .chip-b {
    bottom: auto;
    top: -9%;
    inset-inline-end: auto;
    inset-inline-start: 0;
  }
  .prompt-pill {
    inset-inline-start: 0;
    bottom: -34px;
    font-size: 13px;
    padding: 10px 14px;
    max-width: 92%;
  }
  .showcase,
  .features,
  .templates,
  .languages,
  .final {
    margin-top: 110px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .track img {
    width: 230px;
  }
  .final-card {
    padding: 170px 20px 56px;
    border-radius: 24px;
  }
  .final-slides {
    width: 320px;
    height: 120px;
    top: 30px;
  }
  .final-slides img {
    width: 160px;
    left: 80px;
  }
  .final-card .actions .btn {
    width: 100%;
    justify-content: center;
  }
  .foot {
    grid-template-columns: 1fr;
  }
  .lang-menu {
    width: min(330px, calc(100vw - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- On-prem in the nav and the hero ---------- */
:root {
  --shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.4 3 8.3 7 10 4-1.7 7-5.6 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
.links .nav-onprem {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  margin-block: -6px;
  border-radius: 999px;
  color: #fde7a8;
  background: rgba(255, 201, 77, 0.1);
  border: 1px solid rgba(255, 201, 77, 0.35);
}
.links .nav-onprem:hover {
  color: #fff;
  background: rgba(255, 201, 77, 0.18);
}
.shield {
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--shield) center/contain no-repeat;
  mask: var(--shield) center/contain no-repeat;
}
.btn svg.stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero .btn-ghost {
  border-color: rgba(255, 201, 77, 0.45);
  background: rgba(255, 201, 77, 0.07);
}
.hero .btn-ghost svg {
  color: var(--gold);
}
.trust {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 14.5px;
  color: var(--fg-2);
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.t-ico {
  width: 18px;
  height: 18px;
  background: var(--grad);
  -webkit-mask: var(--i) center/contain no-repeat;
  mask: var(--i) center/contain no-repeat;
}
.t-server {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='4' width='16' height='6' rx='2'/%3E%3Crect x='4' y='14' width='16' height='6' rx='2'/%3E%3Cpath d='M8 7h.01M8 17h.01'/%3E%3C/svg%3E");
}
.t-chip {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='5' width='14' height='14' rx='3'/%3E%3Cpath d='M9 9h6v6H9zM9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3'/%3E%3C/svg%3E");
}
.t-eye {
  --i: var(--shield);
}

/* ---------- Enterprise: stats and steps ---------- */
.enterprise {
  margin-top: 150px;
  padding-block: 130px 110px;
}
.ent-stats {
  list-style: none;
  margin: 90px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.ent-stats li {
  padding: 30px 28px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.ent-stats li + li {
  border-inline-start: 1px solid var(--line);
}
.ent-stats strong {
  font: 400 clamp(44px, 4.6vw, 64px) / 1 var(--serif);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ent-stats span {
  font-size: 15px;
  color: var(--fg-2);
}
.steps-title {
  margin-top: 80px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
:lang(he) .steps-title,
:lang(ar) .steps-title,
:lang(ja) .steps-title,
:lang(ko) .steps-title,
:lang(zh-CN) .steps-title,
:lang(hi) .steps-title {
  letter-spacing: 0.04em;
}
.steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps li {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50px;
  inset-inline-end: -18px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 201, 77, 0.6), transparent);
}
.step-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font: 600 18px var(--sans);
  color: #1a1203;
  background: linear-gradient(135deg, #ffe08a, #f59e0b);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.8);
}
.steps h4 {
  margin: 20px 0 6px;
  font-size: 19px;
  font-weight: 600;
}
.steps p {
  margin: 0;
  font-size: 15.5px;
  color: var(--fg-2);
}

/* ---------- Designs ---------- */
.designs {
  position: relative;
  margin-top: 150px;
}
.wall {
  position: relative;
  height: 760px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 50%, transparent 80%);
  perspective: 1400px;
  /* The plane keeps the geometry of a 560px wall, so a taller wall shows more rows, not bigger slides */
  perspective-origin: 50% 280px;
  margin-bottom: -170px;
}
.wall-tilt {
  position: absolute;
  inset: -224px -10% auto;
  height: 1500px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  transform: rotateX(38deg) rotateZ(-14deg) scale(1.05);
  transform-origin: 50% 403px;
}
.wall-col {
  display: grid;
  gap: 18px;
  align-content: start;
  animation: rise 60s linear infinite;
}
.wall-col:nth-child(even) {
  animation-direction: reverse;
  animation-duration: 75s;
}
.wall-col img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
}
@keyframes rise {
  to {
    transform: translateY(-50%);
  }
}
.designs .sec-head {
  position: relative;
}
/* ---------- Final: the organisation card ---------- */
.final-ent {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 201, 77, 0.35);
  background:
    radial-gradient(500px 200px at 0% 50%, rgba(255, 201, 77, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
[dir='rtl'] .final-ent {
  background:
    radial-gradient(500px 200px at 100% 50%, rgba(255, 201, 77, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.03);
}
.final-ent > div {
  flex: 1;
}
.final-ent h3 {
  font-size: 22px;
  font-weight: 600;
}
.final-ent p {
  margin-top: 4px;
  color: var(--fg-2);
}
.fe-ico {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffe08a, #f59e0b);
  position: relative;
}
.fe-ico::after {
  content: '';
  position: absolute;
  inset: 14px;
  background: #1a1203;
  -webkit-mask: var(--shield) center/contain no-repeat;
  mask: var(--shield) center/contain no-repeat;
}

@media (max-width: 1020px) {
  .ent-stats {
    grid-template-columns: 1fr 1fr;
  }
  .ent-stats li:nth-child(3) {
    border-inline-start: 0;
  }
  .ent-stats li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li::after {
    display: none;
  }
}
@media (max-width: 680px) {
  .trust {
    font-size: 13px;
    gap: 8px 16px;
  }
  .enterprise {
    margin-top: 110px;
    padding-block: 80px;
  }
  .ent-stats li {
    padding: 22px 18px;
  }
  .wall {
    height: 440px;
    perspective-origin: 50% 170px;
    margin-bottom: -60px;
  }
  .wall-tilt {
    top: -136px;
    height: 900px;
    transform-origin: 50% 245px;
    grid-template-columns: repeat(4, 1fr);
  }
  .final-ent {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .final-ent .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Editing bento: five cards ---------- */
.c-undo2 .art-undo {
  height: 180px;
}

/* ---------- Why Slidr ---------- */
.why {
  margin-top: 170px;
  text-align: center;
}
.why-head {
  margin-inline: auto;
}
.why-head .eyebrow {
  justify-content: center;
}
.why-nav {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1100px;
}
.why-nav a {
  display: grid;
  justify-items: center;
  gap: 12px;
  height: 100%;
  padding: 22px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s;
}
.why-nav a:hover {
  transform: translateY(-4px);
  border-color: rgba(165, 180, 252, 0.5);
}
.why-nav span {
  font: 400 44px/1 var(--serif);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-nav b {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
}
.adv-num {
  font: 400 clamp(90px, 12vw, 160px) / 0.8 var(--serif);
  background: linear-gradient(180deg, rgba(165, 180, 252, 0.55), rgba(165, 180, 252, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: -18px;
  user-select: none;
}

/* ---------- 1. Models ---------- */
.models {
  margin-top: 140px;
}
.model-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.model {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    'logo plan'
    'text text';
  gap: 22px 12px;
  align-content: start;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(260px 120px at 0% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s;
}
.model:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c1) 60%, transparent);
}
.model > div {
  grid-area: text;
}
.m-logo {
  grid-area: logo;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font: 700 26px var(--sans);
  color: #0b0d24;
  background: linear-gradient(135deg, var(--c2), var(--c1));
  box-shadow: 0 12px 30px -12px var(--c1);
}
.m-local {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1203' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E") center/28px no-repeat,
    linear-gradient(135deg, var(--c2), var(--c1));
}
.model b {
  display: block;
  font-size: 21px;
  font-weight: 600;
}
.model small {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--fg-3);
}
.m-plan {
  grid-area: plan;
  justify-self: end;
  align-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  background: color-mix(in srgb, var(--c1) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent);
}
.model-local {
  border-style: dashed;
  border-color: rgba(255, 201, 77, 0.4);
}
.ai-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.ai-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 15px;
}
.ai-steps li + li::before {
  content: '';
  width: 40px;
  height: 2px;
  margin-inline-end: 16px;
  background: linear-gradient(90deg, rgba(165, 180, 252, 0.1), rgba(165, 180, 252, 0.7));
}
[dir='rtl'] .ai-steps li + li::before {
  background: linear-gradient(270deg, rgba(165, 180, 252, 0.1), rgba(165, 180, 252, 0.7));
}
.ai-steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: var(--grad);
}

/* ---------- 2. The fortress ---------- */
.fortress {
  position: relative;
  margin: 0 -40px 0 0;
  width: calc(100% + 40px);
  max-width: 720px;
  justify-self: center;
}
/* On a wide screen the title keeps to one line, over the drawing's column if it must */
@media (min-width: 1021px) {
  .ent-copy .h2 {
    width: max-content;
    position: relative;
    z-index: 1;
  }
}
/* The drawing ends with the last point: above the button (52px) and the gap before it (40px),
   less the empty foot of the drawing (36px) */
.ent-grid .fortress {
  align-self: end;
  margin-bottom: 56px;
}
.fort {
  width: 100%;
  height: auto;
  overflow: visible;
}
.fort .ring {
  fill: none;
  stroke: #818cf8;
  stroke-opacity: 0.25;
  stroke-dasharray: 3 9;
}
.fort .r1 {
  animation: spin-dash 40s linear infinite;
}
.fort .r2 {
  stroke-opacity: 0.14;
  animation: spin-dash 60s linear infinite reverse;
}
@keyframes spin-dash {
  to {
    stroke-dashoffset: -600;
  }
}
.fort .edge-run {
  fill: none;
  stroke: #a5f3fc;
  stroke-width: 2;
  stroke-dasharray: 60 520;
  filter: drop-shadow(0 0 6px #5eead4);
  animation: spin-dash 5s linear infinite;
}
.fort .lane {
  stroke: #a5b4fc;
  stroke-opacity: 0.35;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  fill: none;
}
.fort .pkt {
  fill: var(--gold);
  filter: drop-shadow(0 0 6px var(--gold));
}
.fort .leds circle {
  fill: #34d399;
  animation: led 1.6s steps(2) infinite;
}
.fort .leds circle:nth-child(2n) {
  fill: #5eead4;
  animation-delay: 0.4s;
}
.fort .leds circle:nth-child(3n) {
  animation-delay: 0.9s;
}
.fort .l2 circle {
  fill: #a5b4fc;
}
@keyframes led {
  50% {
    opacity: 0.25;
  }
}
.fort .core-pulse {
  fill: none;
  stroke: #a5b4fc;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.fort .dome {
  fill: none;
  stroke: url(#fg-dome);
  stroke-width: 3;
  filter: drop-shadow(0 0 14px rgba(129, 140, 248, 0.8));
}
.fort .dome-back {
  fill: none;
  stroke: #818cf8;
  stroke-opacity: 0.3;
  stroke-width: 1.5;
}
.fort .dome-front {
  fill: none;
  stroke: url(#fg-dome);
  stroke-width: 2;
  stroke-opacity: 0.7;
}
.fort .dome-meridian {
  fill: none;
  stroke: #a5b4fc;
  stroke-opacity: 0.18;
}
.fort .scan {
  animation: scan 4.5s ease-in-out infinite;
}
@keyframes scan {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(340px);
  }
  100% {
    transform: translateY(0);
  }
}
.fort .cloud path {
  fill: rgba(248, 113, 113, 0.12);
  stroke: rgba(248, 113, 113, 0.55);
  stroke-width: 1.5;
}
.fort .threat-path {
  stroke: rgba(248, 113, 113, 0.35);
  stroke-dasharray: 3 5;
  fill: none;
}
.fort .threat {
  fill: #f87171;
  filter: drop-shadow(0 0 6px #f87171);
}
.fort .impact {
  fill: none;
  stroke: #fca5a5;
  stroke-width: 2.5;
}
.fort .lock {
  filter: drop-shadow(0 0 18px rgba(255, 201, 77, 0.55));
}
.f-tag,
.f-block,
.f-oss {
  position: absolute;
  translate: -50% -50%;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(14, 16, 40, 0.92);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.9);
}
.ft-models {
  left: 31.25%;
  top: 46%;
}
.ft-lib {
  left: 68.75%;
  top: 49%;
}
.ft-core {
  left: 50%;
  top: 88.5%;
  border-color: rgba(165, 180, 252, 0.6);
}
.ft-net {
  left: 50%;
  top: 25%;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11.5px;
}
.f-block {
  left: 14%;
  top: 17%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fecaca;
  background: rgba(60, 14, 20, 0.9);
  border-color: rgba(248, 113, 113, 0.45);
}
.f-block .x {
  width: 11px;
  height: 11px;
  background:
    linear-gradient(45deg, transparent 42%, #f87171 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #f87171 42% 58%, transparent 58%);
}
.f-oss {
  left: 86%;
  top: 92%;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  color: #1a1203;
  background: linear-gradient(135deg, #ffe08a, #f59e0b);
  border: 0;
}

/* ---------- 4. Library ---------- */
.library {
  margin-top: 150px;
  overflow: hidden;
}
.lib-counts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lib-counts li {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.lib-counts strong {
  display: block;
  font: 400 clamp(40px, 4vw, 56px) / 1 var(--serif);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.lib-counts span {
  font-size: 14.5px;
  color: var(--fg-2);
}
.lib-rails {
  margin-top: 56px;
  display: grid;
  gap: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rail {
  overflow: hidden;
  direction: ltr;
}
.rail-track {
  display: flex;
  width: max-content;
  animation: slide 50s linear infinite;
}
.rail-track img {
  height: 84px;
  width: auto;
  max-width: none;
  margin-right: 22px;
}
.rail-art .rail-track {
  animation-direction: reverse;
  animation-duration: 60s;
}
.rail-art img {
  height: 92px;
}
.rail-stickers .rail-track {
  animation-duration: 70s;
}
.rail-stickers img {
  height: 104px;
}
.rail-frames .rail-track {
  animation-direction: reverse;
  animation-duration: 55s;
  gap: 20px;
  padding-right: 20px;
}
.frames-track img {
  height: 150px;
  margin: 0;
  border-radius: 10px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.6));
}
.rail:hover .rail-track {
  animation-play-state: paused;
}
.lib-sub {
  margin-top: 90px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lib-sub em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.library .designs {
  margin-top: 0;
}
.library .wall {
  margin-top: -30px;
  margin-bottom: 0;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}

/* ---------- 5. Media ---------- */
.media {
  margin-top: 150px;
}
.media-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 18px;
}
.media-window {
  grid-row: span 3;
  align-self: start;
}
.media-grid .card {
  grid-column: auto;
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  padding: 18px;
  align-items: start;
}
.media-grid .card .art {
  grid-row: span 2;
  height: 96px;
}
.media-grid .card h3 {
  margin-top: 0;
  font-size: 17px;
}
.media-grid .card p {
  margin-top: 4px;
  font-size: 14.5px;
}
.media-grid .art-chart {
  padding: 14px 14px 0;
}
.art-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.art-video .play {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 34px;
  height: 34px;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") 55% 50%/18px no-repeat,
    rgba(99, 102, 241, 0.9);
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25);
  animation: pulse 2.4s infinite;
}
.art-video .scrub {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.art-video .scrub i {
  display: block;
  height: 100%;
  background: var(--gold);
  animation: scrub 6s linear infinite;
}
@keyframes scrub {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.art-anim span {
  position: absolute;
  border-radius: 6px;
  animation: build 4.5s var(--ease) infinite both;
}
.art-anim .a1 {
  left: 12%;
  top: 18%;
  width: 60%;
  height: 14%;
  background: #fff;
}
.art-anim .a2 {
  left: 12%;
  top: 42%;
  width: 40%;
  height: 34%;
  background: linear-gradient(135deg, #5eead4, #6366f1);
  animation-delay: 0.35s;
}
.art-anim .a3 {
  left: 58%;
  top: 42%;
  width: 30%;
  height: 34%;
  background: linear-gradient(135deg, #ffe08a, #f472b6);
  animation-delay: 0.7s;
}
@keyframes build {
  0%,
  8% {
    opacity: 0;
    transform: translateY(14px);
  }
  20%,
  85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 1020px) {
  .fortress {
    margin: 0;
    width: 100%;
  }
  .why-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .model-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lib-counts {
    grid-template-columns: 1fr 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .media-window {
    grid-row: auto;
  }
}
@media (max-width: 680px) {
  .why {
    margin-top: 110px;
  }
  .why-nav {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .why-nav li:last-child {
    grid-column: 1 / -1;
  }
  .why-nav a {
    padding: 16px 10px;
  }
  .why-nav span {
    font-size: 34px;
  }
  .models,
  .library,
  .media {
    margin-top: 100px;
  }
  .model-grid {
    grid-template-columns: 1fr;
  }
  .ai-steps li + li::before {
    width: 16px;
    margin-inline-end: 8px;
  }
  .ai-steps li {
    padding: 8px;
    font-size: 14px;
  }
  .f-tag,
  .f-block,
  .f-oss {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .lib-counts li {
    padding: 16px;
  }
  .rail-track img {
    height: 60px;
  }
  .rail-stickers img {
    height: 74px;
  }
  .frames-track img {
    height: 110px;
  }
  .media-grid .card {
    grid-template-columns: 110px 1fr;
  }
}

/* ---------- Hero v2: a full-screen opening ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: 40px 0 80px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -72px 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* dissolve into the aurora, so no edge shows above the stage */
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
  mask-image: linear-gradient(180deg, #000 75%, transparent);
}
.hero-wall {
  position: absolute;
  inset: 0;
  perspective: 1600px;
  opacity: 0.55;
}
.hero-wall-tilt {
  position: absolute;
  inset: -30% -20% -30% 20%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  transform: rotateX(18deg) rotateY(-28deg) rotateZ(8deg);
  transform-origin: 70% 50%;
}
[dir='rtl'] .hero-wall-tilt {
  inset: -30% 20% -30% -20%;
  transform: rotateX(18deg) rotateY(28deg) rotateZ(-8deg);
  transform-origin: 30% 50%;
}
.hero-wall-tilt .wall-col {
  animation-duration: 90s;
}
.hero-wall-tilt .wall-col:nth-child(even) {
  animation-duration: 110s;
}
.hero-wall-tilt img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 8, 21, 0.92) 34%, rgba(7, 8, 21, 0.55) 62%, rgba(7, 8, 21, 0.75) 100%),
    linear-gradient(180deg, rgba(7, 8, 21, 0.6) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
[dir='rtl'] .hero-veil {
  background:
    linear-gradient(270deg, var(--bg) 0%, rgba(7, 8, 21, 0.92) 34%, rgba(7, 8, 21, 0.55) 62%, rgba(7, 8, 21, 0.75) 100%),
    linear-gradient(180deg, rgba(7, 8, 21, 0.6) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 45%), rgba(124, 92, 255, 0.22), transparent 60%);
  transition: background 0.2s;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  text-align: start;
  align-items: flex-start;
}
.hero .display {
  font-size: clamp(48px, 6.6vw, 104px);
  line-height: 0.95;
  max-width: none;
}
.hero .display em {
  display: inline-block;
  font-size: 1.12em;
  filter: drop-shadow(0 0 30px rgba(165, 180, 252, 0.35));
}
.hero .lead {
  margin-top: 28px;
  max-width: 560px;
}
.hero .actions {
  justify-content: flex-start;
}
.hero .trust {
  justify-content: flex-start;
}

/* the prompt-to-deck demo */
.hero-demo {
  position: relative;
  height: 520px;
  perspective: 1400px;
}
.demo-deck {
  position: absolute;
  inset: 40px 0 120px;
  transform-style: preserve-3d;
}
.demo-deck img {
  position: absolute;
  inset-inline-end: 0;
  top: 40px;
  width: 92%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translate3d(0, 160px, 120px) scale(0.6) rotateX(30deg);
  filter: blur(8px);
  transition:
    transform 0.9s var(--ease),
    opacity 0.7s var(--ease),
    filter 0.7s var(--ease);
  will-change: transform, opacity;
}
.demo-deck img[data-d] {
  opacity: calc(1 - var(--d) * 0.22);
  filter: blur(calc(var(--d) * 0.6px)) brightness(calc(1 - var(--d) * 0.14));
  transform: translate3d(calc(var(--d) * var(--dx, -62px)), calc(var(--d) * -48px), calc(var(--d) * -90px))
    rotateY(calc(var(--d) * var(--ry, 4deg))) rotateZ(calc(var(--d) * var(--rz, -2deg)));
}
[dir='rtl'] .demo-deck img {
  --dx: 62px;
  --ry: -4deg;
  --rz: 2deg;
}
.demo-deck img[data-d='0'] {
  border-color: rgba(165, 180, 252, 0.7);
  box-shadow:
    0 0 0 1px rgba(165, 180, 252, 0.3),
    0 0 60px -10px rgba(129, 140, 248, 0.6),
    0 40px 80px -30px rgba(0, 0, 0, 0.95);
}
.demo-deck img.gone {
  opacity: 0;
  transform: translate3d(0, -120px, -300px) scale(0.8);
}
.demo-prompt {
  position: absolute;
  inset-inline: 0 12%;
  bottom: 54px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 20px;
  border-radius: 20px;
  background: rgba(18, 20, 46, 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(165, 180, 252, 0.35);
  box-shadow:
    0 0 0 6px rgba(99, 102, 241, 0.08),
    0 30px 60px -20px rgba(0, 0, 0, 0.9);
  font-size: 16px;
  font-weight: 500;
}
.demo-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.demo-text .caret {
  display: inline-block;
  margin-inline-start: 1px;
  vertical-align: -0.2em;
}
.demo-send {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center/18px no-repeat,
    var(--grad);
  transition:
    transform 0.2s,
    box-shadow 0.3s;
}
.hero-demo.sent .demo-send {
  transform: scale(0.88);
  box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.25);
}
.demo-status {
  position: absolute;
  inset-inline: 0 12%;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--fg-2);
  opacity: 0;
  transition: opacity 0.4s;
}
.hero-demo.building .demo-status,
.hero-demo.done .demo-status {
  opacity: 1;
}
.demo-spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(165, 180, 252, 0.25);
  border-top-color: #a5b4fc;
  animation: spin 0.8s linear infinite;
}
.hero-demo.done .demo-spin {
  border: 0;
  animation: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304291d' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat,
    #34d399;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.demo-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.demo-bar i {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: var(--grad);
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}
.demo-count {
  font-variant-numeric: tabular-nums;
}
.demo-count b {
  color: var(--fg);
}
.hero-demo .chip-b {
  inset-inline-end: -10px;
  bottom: auto;
  top: 30px;
  opacity: 0;
  transition: opacity 0.5s;
}
.hero-demo.done .chip-b {
  opacity: 1;
}
.demo-pick {
  position: absolute;
  inset-inline-start: 0;
  bottom: -30px;
  display: flex;
  gap: 6px;
}
.demo-pick button {
  width: 22px;
  height: 22px;
  padding: 9px 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.4s var(--ease);
}
.demo-pick button.on {
  width: 44px;
}
.demo-pick i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #a5b4fc calc(var(--p, 0) * 100%), rgba(255, 255, 255, 0.22) 0);
  transition: background 0.6s var(--ease);
}
[dir='rtl'] .demo-pick i {
  background: linear-gradient(270deg, #a5b4fc calc(var(--p, 0) * 100%), rgba(255, 255, 255, 0.22) 0);
}
.demo-pick button:not(.on):hover i {
  background: rgba(255, 255, 255, 0.45);
}
.stage-sec .stage {
  margin-top: 0;
}
.stage-title {
  max-width: 900px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}

@media (max-width: 1020px) {
  .hero {
    min-height: 0;
    padding-top: 30px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-demo {
    height: 460px;
    max-width: 640px;
  }
  .hero-veil,
  [dir='rtl'] .hero-veil {
    background: linear-gradient(180deg, rgba(7, 8, 21, 0.85), rgba(7, 8, 21, 0.7) 50%, var(--bg));
  }
}
@media (max-width: 680px) {
  .hero-demo {
    height: 330px;
  }
  .demo-deck {
    inset: 10px 0 110px;
  }
  .demo-deck img {
    top: 20px;
  }
  .demo-prompt,
  .demo-status {
    inset-inline: 0;
  }
  .demo-prompt {
    font-size: 14px;
    padding: 12px 12px 12px 14px;
    bottom: 44px;
  }
  .hero .display {
    font-size: clamp(42px, 12vw, 60px);
  }
}
@media (max-width: 680px) {
  .hero-demo .chip-b {
    inset-inline-start: auto;
    inset-inline-end: 0;
    top: -6px;
    bottom: auto;
  }
}
@media (max-width: 680px) {
  .hero-demo {
    margin-top: 70px;
  }
}
