:root {
  --bg: #050a18;
  --bg-2: #091127;
  --panel: rgba(20, 29, 54, 0.84);
  --panel-2: rgba(17, 26, 48, 0.92);
  --text: #eef2ff;
  --muted: #a6b0c8;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #6c63ff;
  --primary-2: #8f8aff;
  --teal: #2dd4bf;
  --rose: #f973a8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-blur {
  position: fixed;
  pointer-events: none;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .3;
  z-index: 0;
}
.bg-blur--one {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(108,99,255,.95) 0%, rgba(108,99,255,0) 70%);
}
.bg-blur--two {
  top: 120px;
  right: -100px;
  background: radial-gradient(circle, rgba(45,212,191,.95) 0%, rgba(45,212,191,0) 70%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  background: rgba(5, 10, 24, 0.70);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.03);
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #cdd6ff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 0 18px rgba(108,99,255,.4);
}
.eyebrow--teal::before { background: var(--teal); }
.eyebrow--violet::before { background: var(--primary); }

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero__subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
  line-height: 1.65;
}
.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 28px rgba(108,99,255,.35);
}
.btn--primary:hover {
  box-shadow: 0 14px 36px rgba(108,99,255,.5);
}
.btn--ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.02);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
}
.hero__chips {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero__chips li {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: #d7def5;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-stack {
  position: relative;
  width: min(100%, 460px);
  height: 580px;
}
.phone-card {
  position: absolute;
  width: 270px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  background: #0a1228;
  transition: transform .4s ease, box-shadow .4s ease;
}
.phone-card--front {
  right: 12px;
  top: 20px;
  transform: rotate(4deg);
  z-index: 2;
}
.phone-stack:hover .phone-card--front {
  transform: rotate(2deg) translateY(-6px);
  box-shadow: 0 36px 80px rgba(0,0,0,.5);
}
.phone-card--back {
  left: 8px;
  bottom: 12px;
  transform: rotate(-5deg);
  opacity: .92;
}
.phone-stack:hover .phone-card--back {
  transform: rotate(-3deg) translateY(-4px);
}

.section {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.section__heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.section__heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(108,99,255,.08);
  border: 1px solid rgba(108,99,255,.18);
  font-size: 22px;
}
.feature-card h3 {
  margin: 12px 0 6px;
  font-size: 17px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.platform-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.platform-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 12px;
}
.platform-card--android .platform-card__icon {
  background: rgba(45,212,191,.1);
  border: 1px solid rgba(45,212,191,.2);
}
.platform-card--ios .platform-card__icon {
  background: rgba(108,99,255,.1);
  border: 1px solid rgba(108,99,255,.2);
}
.platform-card h3 {
  margin: 0;
  font-size: 18px;
}
.platform-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.screens-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.screen-card {
  margin: 0;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
}
.screen-card img {
  width: 100%;
  border-radius: 14px;
  display: block;
  border: 1px solid rgba(255,255,255,.08);
  background: #0a1228;
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
}
.screen-card figcaption {
  margin-top: 8px;
  color: #d6dcf0;
  font-size: 13px;
}

/* ─── Screenshot gallery ─── */
.screens-gallery {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.screens-gallery::-webkit-scrollbar { height: 6px; }
.screens-gallery::-webkit-scrollbar-track { background: transparent; }
.screens-gallery::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 10px;
}
.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
}
.gallery-item img {
  width: 280px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: #0a1228;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
}
.gallery-item img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 24px 56px rgba(0,0,0,.45);
}
.gallery-item figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .01em;
}

.screens-text-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.story-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
    radial-gradient(circle at top right, rgba(108,99,255,.10), transparent 50%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  min-height: 168px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
}
.story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.12);
}

.story-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -24px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45,212,191,.10) 0%, rgba(45,212,191,0) 70%);
  pointer-events: none;
}

.story-card--hero {
  grid-column: span 2;
  min-height: 196px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    radial-gradient(circle at 85% 20%, rgba(45,212,191,.14), transparent 45%),
    radial-gradient(circle at 10% 0%, rgba(108,99,255,.16), transparent 50%);
}

.story-card__eyebrow {
  margin: 0;
  color: #cfd8ff;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}

.story-card h3 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 52ch;
}

.story-card strong {
  color: var(--text);
  font-weight: 700;
}

.story-pills {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-pills li {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: #dbe3ff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
}

.story-pills--premium li {
  border-color: rgba(108,99,255,.20);
  background: rgba(108,99,255,.09);
}

.story-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.story-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d5def7;
  font-size: 13px;
}

.story-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  flex: none;
}

.story-metric {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.story-metric__label {
  color: var(--muted);
  font-size: 12px;
}

.story-metric__value {
  color: var(--teal);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
}

.story-platforms {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-platform {
  display: block;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.story-platform--android {
  background: rgba(45,212,191,.08);
  border-color: rgba(45,212,191,.18);
  color: #aaf2e8;
}

.story-platform--ios {
  background: rgba(108,99,255,.08);
  border-color: rgba(108,99,255,.18);
  color: #d8d3ff;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(108,99,255,.06), rgba(45,212,191,.04)),
    var(--panel);
  border-color: rgba(108,99,255,.15);
}
.cta-panel__copy h2 {
  margin: 0;
  font-size: 28px;
}
.cta-panel__copy p {
  color: var(--muted);
}

.store-links {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.store-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.store-btn:hover:not(.is-placeholder) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.store-btn--android {
  border-color: rgba(45,212,191,.25);
  background: rgba(45,212,191,.08);
}
.store-btn--android:hover {
  border-color: rgba(45,212,191,.45);
  box-shadow: 0 10px 28px rgba(45,212,191,.15);
}
.store-btn.is-placeholder {
  opacity: .82;
  cursor: default;
}
.store-btn__label {
  font-weight: 700;
}
.store-btn__sub {
  font-size: 12px;
  color: var(--muted);
}
.download-note {
  margin-top: 10px;
  font-size: 12px;
}
.download-note code {
  color: #dbe6ff;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  padding: 3px 6px;
  border-radius: 8px;
}

.cta-panel__card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}
.cta-panel__card img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow);
}
.cta-panel__card h3 {
  margin: 10px 0 4px;
}
.cta-panel__card p {
  margin: 0;
  color: var(--muted);
}
.cta-panel__card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}
.cta-panel__card li {
  margin: 0 0 8px;
  color: #d2daf1;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 24px 24px 48px;
}
.footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.footer__brand strong {
  font-size: 15px;
}
.footer__inner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.footer__copy {
  margin-top: 10px;
  color: rgba(166,176,200,.5);
  font-size: 12px;
}
.footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s ease;
}
.footer__links a:hover { color: var(--text); }


@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 28px 24px; }
  .hero__visual { margin-top: 8px; }
  .phone-stack { height: 420px; }
  .phone-card { width: 200px; }
  .screens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens-text-grid { grid-template-columns: 1fr; }
  .story-card--hero { grid-column: span 1; }
  .cta-panel { grid-template-columns: 1fr; }
  .gallery-item img { width: 240px; }
  .steps-row { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 680px) {
  /* Nav: single row, scrollable */
  .topbar {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
  }
  .nav {
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 12px; padding: 6px 8px; white-space: nowrap; }
  .brand span { font-size: 15px; }
  .brand__icon { width: 28px; height: 28px; }

  /* Container */
  .container { padding: 20px 16px 60px; }

  /* Hero */
  .hero { padding: 20px 16px; gap: 20px; border-radius: 20px; }
  .hero h1 { font-size: 28px; }
  .hero__subtitle { font-size: 14px; margin-top: 12px; }
  .hero__cta { margin-top: 18px; }
  .btn { padding: 12px 20px; font-size: 14px; border-radius: 12px; }
  .hero__chips { gap: 6px; margin-top: 14px; }
  .hero__chips li { padding: 6px 8px; font-size: 11px; }

  /* Hero phones - larger and better positioned for mobile */
  .hero__visual { margin-top: 4px; }
  .phone-stack { height: 340px; width: 100%; }
  .phone-card { width: 180px; border-radius: 18px; }
  .phone-card--front { right: 5%; top: 0; }
  .phone-card--back { left: 5%; bottom: 0; }

  /* Sections */
  .section { padding: 20px 16px; margin-top: 18px; border-radius: 18px; }
  .section__heading h2 { font-size: 24px; }
  .section__heading p { font-size: 14px; }

  /* Feature/platform/story grids */
  .feature-grid,
  .platform-grid,
  .screens-grid,
  .screens-text-grid,
  .store-links {
    grid-template-columns: 1fr;
  }
  .feature-card { padding: 16px; }
  .feature-card h3 { font-size: 16px; }
  .platform-card { padding: 18px; }

  /* Gallery */
  .gallery-item img { width: 240px; }

  /* Story cards */
  .story-card { padding: 16px; min-height: auto; }
  .story-card h3 { font-size: 18px; }
  .story-card--hero { min-height: auto; }

  /* Step cards */
  .step-card { padding: 18px 16px; }

  /* CTA */
  .cta-panel__copy h2 { font-size: 24px; }
  .cta-panel__card { padding: 16px; }
  .cta-panel__card img { width: 56px; height: 56px; }
  .store-btn { padding: 12px 14px; }

  /* Footer */
  .footer { padding: 20px 16px 32px; }
  .footer__inner { flex-direction: column; gap: 14px; }
  .footer__links { gap: 10px; }
  .footer__links a { font-size: 12px; }
}
