:root {
  --bg: #0d0e11;
  --bg-elevated: rgba(21, 22, 27, 0.9);
  --bg-card: rgba(21, 22, 27, 0.87);
  --border: #2c2d35;
  --border-soft: #25262d;
  --text: #f4f5f7;
  --text-muted: #858792;
  --text-dim: #6f717a;
  --text-faint: #565861;
  --purple: #8b75ff;
  --purple-deep: #7058e7;
  --purple-soft: rgba(126, 104, 243, 0.14);
  --purple-glow: rgba(104, 80, 225, 0.22);
  --green: #47d697;
  --green-soft: rgba(71, 214, 151, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1280px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-synthesis: none;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 12, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 12px rgba(67, 43, 230, 0.3));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 10px 28px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-secondary {
  color: #ddd;
  background: #202127;
  border-color: transparent;
}

.btn-secondary:hover {
  background: #2a2b32;
  color: #fff;
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 14px;
  border-radius: 12px;
}

/* Hero */
.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 788px;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(126, 104, 243, 0.1);
  color: #c9c0ff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(71, 214, 151, 0.12), 0 0 12px rgba(71, 214, 151, 0.35);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--text-dim);
  font-size: 12px;
}

.hero-meta span + span::before {
  content: "·";
  margin-right: 16px;
  color: var(--text-faint);
}

/* Screenshots — 2x assets at 1× CSS size, organic animated blobs behind */
.hero-shot {
  justify-self: center;
}

.shots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.shot {
  position: relative;
  margin: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  isolation: isolate;
}

.shot-blob {
  position: absolute;
  z-index: -1;
  inset: 8% 4% 10% 4%;
  background: rgba(103, 76, 255, 0.28);
  filter: blur(28px);
  border-radius: 58% 42% 48% 52% / 52% 44% 56% 48%;
  animation: blob-morph 14s ease-in-out infinite;
  pointer-events: none;
  will-change: border-radius, transform;
}

.shot-blob--b {
  inset: 10% 6% 8% 5%;
  background: rgba(112, 88, 231, 0.26);
  animation-duration: 16s;
  animation-direction: reverse;
  animation-delay: -4s;
  border-radius: 44% 56% 62% 38% / 48% 58% 42% 52%;
}

.shot-blob--c {
  inset: 6% 8% 12% 3%;
  background: rgba(126, 104, 243, 0.24);
  animation-duration: 18s;
  animation-delay: -8s;
  border-radius: 62% 38% 44% 56% / 40% 52% 48% 60%;
}

@keyframes blob-morph {
  0%,
  100% {
    border-radius: 58% 42% 48% 52% / 52% 44% 56% 48%;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  25% {
    border-radius: 42% 58% 55% 45% / 48% 60% 40% 52%;
    transform: translate3d(2%, -1.5%, 0) scale(1.04) rotate(2deg);
  }
  50% {
    border-radius: 50% 50% 38% 62% / 58% 42% 58% 42%;
    transform: translate3d(-1.5%, 2%, 0) scale(0.98) rotate(-1.5deg);
  }
  75% {
    border-radius: 64% 36% 52% 48% / 44% 54% 46% 56%;
    transform: translate3d(1%, 1%, 0) scale(1.03) rotate(1deg);
  }
}

.shot img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  background: transparent;
  /* soft lift without rectangular frame */
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

/* intrinsic px ÷ 2 for retina */
.shot img[data-shot="s02"],
.hero-shot img {
  width: 788px;
  height: 553px;
}

.shot img[data-shot="s01"] {
  width: 832px;
  height: 670px;
}

.shot img[data-shot="s00"] {
  width: 832px;
  height: 724px;
}

/* Sections */
section {
  padding: 56px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  margin: 0 0 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  border: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #c9c0ff;
  background: var(--purple-soft);
  border: 0;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Download */
.download {
  padding-top: 24px;
}

.download-panel {
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 20%, rgba(139, 117, 255, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(31, 28, 48, 0.95), rgba(16, 17, 22, 0.98));
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 36px);
}

.download-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
}

.download-panel p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

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

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 28px 0 40px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 13px;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    margin: 0 auto;
  }

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

  .hero {
    padding-top: 48px;
  }
}

/* Below native 1× width: scale down only */
@media (max-width: 860px) {
  .hero-shot img,
  .shot img[data-shot="s02"],
  .shot img[data-shot="s01"],
  .shot img[data-shot="s00"] {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .hero-shot,
  .shot {
    width: min(100%, 832px);
  }

  .shot-blob {
    filter: blur(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-blob {
    animation: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 28px);
  }

  .nav-links a:not(.btn) {
    display: none;
  }

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

  .hero h1 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 14px;
  }

  section {
    padding: 48px 0;
  }
}
