:root {
  --ink: #07111f;
  --muted: #5d6a7d;
  --paper: #f7fbff;
  --line: rgba(11, 28, 48, .12);
  --navy: #081525;
  --navy-2: #0f2136;
  --cyan: #17d5e6;
  --blue: #1687ff;
  --green: #19d88f;
  --gold: #ffd35a;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(8, 21, 37, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body.demo-dark {
  background: #07111f;
  color: #f8fbff;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }

.demo-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 21, 37, .88);
  backdrop-filter: blur(16px);
}

.demo-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.demo-nav__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 950;
  letter-spacing: .01em;
}

.demo-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.demo-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
  font-size: .92rem;
  font-weight: 850;
}

.demo-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
}

.demo-links a:hover,
.demo-links a.active {
  background: rgba(23, 213, 230, .14);
  color: #fff;
}

.demo-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(7, 17, 31, .98), rgba(8, 21, 37, .88)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.demo-hero__grid {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 42px;
  padding: 54px 0 42px;
}

.demo-hero__grid > * { min-width: 0; }

.demo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 950;
  margin-bottom: 16px;
}

.demo-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.demo-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.45rem, 6vw, 5.6rem);
  line-height: .95;
  letter-spacing: 0;
}

.demo-lead {
  max-width: 680px;
  margin: 0;
  color: #c8d4e6;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.demo-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  font-weight: 950;
}

.demo-btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #04111e;
  box-shadow: 0 18px 44px rgba(23, 213, 230, .22);
}

.demo-btn.secondary { background: rgba(255, 255, 255, .08); }

.hero-showcase {
  align-self: end;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(5, 12, 24, .7);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .48);
}

.hero-showcase img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.demo-stat {
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 15px;
  background: rgba(255, 255, 255, .075);
}

.demo-stat strong {
  display: block;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.1;
}

.demo-stat span {
  display: block;
  margin-top: 6px;
  color: #b7c4d8;
  font-size: .86rem;
}

.demo-band {
  padding: 82px 0;
  background: #fff;
}

.demo-band.dark {
  background: var(--navy);
  color: #f8fbff;
}

.demo-band.soft {
  background: #eef6fb;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.dark .section-head p { color: #b8c5d9; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(8, 21, 37, .06);
}

.dark .feature-card {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  color: #04111e;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 950;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.dark .feature-card p { color: #b8c5d9; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.story-panel {
  position: sticky;
  top: 96px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-panel img,
.story-panel video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #020617;
}

.story-steps {
  display: grid;
  gap: 12px;
  counter-reset: demo-step;
}

.story-step {
  counter-increment: demo-step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.story-step::before {
  content: counter(demo-step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e8fbff;
  color: #057487;
  font-weight: 950;
}

.story-step h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.story-step p {
  margin: 0;
  color: var(--muted);
}

.screen-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 390px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.screen-card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(8, 21, 37, .08);
}

.screen-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screen-caption {
  padding: 16px;
}

.screen-caption strong { display: block; }
.screen-caption span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .92rem;
}

.demo-cta {
  border-radius: 24px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #07111f, #0f2c3d 55%, #07424a);
  color: #fff;
  box-shadow: var(--shadow);
}

.demo-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.demo-cta p {
  max-width: 680px;
  margin: 0;
  color: #c5d3e4;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(23, 213, 230, .22);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(23, 213, 230, .09);
  color: #dff9ff;
  font-weight: 900;
  font-size: .9rem;
}

.demo-footer {
  padding: 32px 0;
  color: #b8c5d9;
  background: #07111f;
  text-align: center;
}

@media (max-width: 920px) {
  .demo-nav__inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .demo-links {
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .demo-links a { white-space: nowrap; }

  .demo-hero__grid,
  .section-head,
  .story-grid,
  .demo-cta {
    grid-template-columns: 1fr;
  }

  .demo-hero__grid {
    min-height: auto;
    gap: 26px;
    padding: 32px 0 38px;
  }

  .hero-showcase { order: -1; }

  .story-panel {
    position: relative;
    top: auto;
  }

  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .demo-wrap { width: min(100% - 28px, 1180px); }
  .demo-nav__inner {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
    overflow: hidden;
  }
  .demo-nav__inner > * { min-width: 0; }
  .demo-brand img { width: 38px; height: 38px; }
  .demo-brand span { font-size: .98rem; }
  .demo-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    overflow: hidden;
    font-size: .72rem;
  }
  .demo-links a[href^="https"] { display: none; }
  .demo-links a {
    min-height: 34px;
    justify-content: center;
    padding: 0 6px;
    text-align: center;
    white-space: normal;
    min-width: 0;
  }
  .demo-hero__grid { padding-top: 22px; }
  .hero-showcase {
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
    background: #020617;
  }
  .hero-showcase img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
  .demo-kicker {
    margin-bottom: 12px;
    font-size: .68rem;
  }
  .demo-hero h1 {
    max-width: 320px;
    font-size: clamp(1.42rem, 6.4vw, 1.72rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .demo-lead {
    max-width: 330px;
    font-size: .94rem;
  }
  .demo-actions { display: grid; grid-template-columns: 1fr; }
  .demo-btn { width: 100%; }
  .demo-stats { grid-template-columns: 1fr 1fr; }
  .demo-stat { min-height: 84px; padding: 13px; }
  .demo-band { padding: 56px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .story-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .screen-rail {
    grid-auto-columns: minmax(250px, 86vw);
    gap: 12px;
  }
  .demo-cta { padding: 24px; }
}
