:root {
  --brand: #6c63ff;
  --brand-dark: #4b44c8;
  --brand-soft: #ecebff;
  --ink: #1f1f39;
  --muted: #6f6f8a;
  --bg: #f7f7fc;
  --card: #ffffff;
  --border: #e9e9f4;
  --green: #2ecc8f;
  --amber: #f5a524;
  --pink: #ff5c7a;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(31, 31, 57, .06);
  --shadow-md: 0 18px 40px -22px rgba(31, 31, 57, .35);
  --shadow-lg: 0 40px 80px -40px rgba(58, 51, 146, .55);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .88em; }

.aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(45% 55% at 18% 30%, rgba(108, 99, 255, .24), transparent 70%),
    radial-gradient(40% 50% at 78% 12%, rgba(255, 92, 122, .16), transparent 72%),
    radial-gradient(45% 45% at 62% 42%, rgba(46, 204, 143, .14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(247, 247, 252, .72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

.nav.scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, .82); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 18px -8px rgba(108, 99, 255, .9);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-size: 1.12rem; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: .93rem; font-weight: 600;
  color: var(--muted); transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(108, 99, 255, .09); }
.nav-links .nav-cta {
  color: #fff; background: var(--ink); padding: 10px 18px;
  box-shadow: var(--shadow-sm);
}
.nav-links .nav-cta:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; border: 1px solid var(--border); background: #fff;
  width: 40px; height: 40px; border-radius: 12px; color: var(--ink);
  cursor: pointer; place-items: center;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 64px) clamp(48px, 7vw, 104px);
  max-width: 1240px;
  margin: 0 auto;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 700; color: var(--brand-dark);
  letter-spacing: .01em; box-shadow: var(--shadow-sm);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 204, 143, .18);
}

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 22px 0 18px;
  font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--brand), #8f6bff 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1rem, 1.15vw, 1.09rem); color: var(--muted); max-width: 54ch; margin: 0 0 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 32px -18px rgba(108, 99, 255, 1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -16px rgba(108, 99, 255, .95); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #d6d4f0; }

.hero-stats {
  display: flex; gap: 30px; list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--border); padding-top: 22px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; letter-spacing: -.02em; }
.hero-stats span { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- phone frame ---------- */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: min(300px, 78vw); border-radius: 46px;
  padding: 11px; background: linear-gradient(160deg, #23233a, #14141f 55%, #2b2b46);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone::after {
  content: ''; position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
  width: 88px; height: 20px; border-radius: 999px; background: #0d0d16;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.phone-screen { border-radius: 36px; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: auto; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px); animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .84rem; letter-spacing: -.01em; }
.float-card span:not(.fc-icon) { font-size: .72rem; color: var(--muted); font-weight: 600; }
.fc-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.fc-icon svg { width: 18px; height: 18px; }
.fc-green { background: rgba(46, 204, 143, .16); color: #1f9d6c; }
.fc-violet { background: rgba(108, 99, 255, .16); color: var(--brand-dark); }
.fc-one { left: -14px; top: 16%; animation-delay: -1.5s; }
.fc-two { right: -22px; bottom: 18%; animation-delay: -3s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- generic section ---------- */
section { position: relative; z-index: 1; }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-dark); margin-bottom: 12px;
}
.section-head h2, .run h2, .download h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.14;
  letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.01rem; }

/* ---------- screens ---------- */
.screens { padding: clamp(40px, 6vw, 80px) clamp(18px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.screens-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}
.shot {
  all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s cubic-bezier(.22, .8, .3, 1);
}
.shot-frame {
  display: block; padding: 8px; border-radius: 26px; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease;
}
.shot-frame img { border-radius: 19px; aspect-ratio: 1170 / 2532; object-fit: cover; object-position: top; }
.shot:hover { transform: translateY(-6px); }
.shot:hover .shot-frame { box-shadow: var(--shadow-md); border-color: #d9d6f7; }
.shot-meta { display: flex; flex-direction: column; padding-left: 4px; }
.shot-meta strong { font-size: .95rem; letter-spacing: -.01em; }
.shot-meta small { color: var(--muted); font-size: .79rem; font-weight: 600; }

/* ---------- features ---------- */
.features { padding: clamp(40px, 6vw, 80px) clamp(18px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.feature {
  background: rgba(255, 255, 255, .78); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #dcd9f8; }
.feature h3 { font-size: 1.06rem; margin: 0 0 8px; letter-spacing: -.015em; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.feature code { background: var(--brand-soft); color: var(--brand-dark); padding: 1px 5px; border-radius: 5px; }
.f-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 16px; color: var(--brand-dark);
  background: linear-gradient(140deg, rgba(108, 99, 255, .16), rgba(108, 99, 255, .05));
  border: 1px solid rgba(108, 99, 255, .18);
}
.f-icon svg { width: 20px; height: 20px; }

/* ---------- tech ---------- */
.tech { padding: clamp(40px, 6vw, 80px) clamp(18px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.tech-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(18px, 3vw, 30px); align-items: start; }
.tree-card {
  background: #14141f; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.tree-head {
  display: flex; align-items: center; gap: 9px; padding: 14px 20px;
  color: #b7b3e8; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.tree-head svg { width: 16px; height: 16px; }
.tree {
  margin: 0; padding: 20px; overflow-x: auto; font-size: .82rem; line-height: 1.85;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; color: #ecebff;
}
.tree .c { color: #9f9bc4; }
.tree .d { color: #8f86ff; font-weight: 600; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease;
}
.checks li:hover { transform: translateX(3px); border-color: #d5f2e4; }
.checks svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; margin-top: 2px; }
.checks strong { display: block; font-size: .93rem; }
.checks span { font-size: .84rem; color: var(--muted); }

/* ---------- run ---------- */
.run { padding: clamp(40px, 6vw, 80px) clamp(18px, 5vw, 64px); }
.run-inner {
  max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px); align-items: center;
  background: linear-gradient(150deg, #ffffff, #f4f3ff);
  border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(26px, 4vw, 52px); box-shadow: var(--shadow-md);
}
.steps { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li > span {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: .85rem;
}
.steps strong { font-size: .95rem; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.steps code { background: #fff; border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.note {
  display: flex; gap: 10px; align-items: flex-start; margin: 0;
  font-size: .82rem; color: var(--muted); background: rgba(108, 99, 255, .07);
  border: 1px dashed rgba(108, 99, 255, .3); border-radius: 14px; padding: 13px 15px;
}
.note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--brand-dark); }

.code-card { background: #14141f; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.code-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: #9f9bc4;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a52; }
.dots i:first-child { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:last-child { background: #28c840; }
.code {
  margin: 0; padding: 18px; font-size: .82rem; line-height: 1.95; color: #d9d6f7;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; overflow-x: auto;
}
.code .prompt { color: var(--green); font-weight: 700; }
.code .ok { color: #8fe3bd; }

/* ---------- download + footer ---------- */
.download { padding: 0 clamp(18px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.download-card {
  max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap;
  gap: 24px; align-items: center; justify-content: space-between;
  padding: clamp(26px, 4vw, 44px); border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 12% 0%, #7d74ff, #4b44c8 55%, #322c8f);
  box-shadow: var(--shadow-lg);
}
.download-card h2 { color: #fff; margin-bottom: 8px; }
.download-card p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .92rem; max-width: 46ch; }
.download-card code { background: rgba(255, 255, 255, .16); padding: 1px 6px; border-radius: 5px; }
.download-card .eyebrow { color: rgba(255, 255, 255, .7); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.dl-list li { display: flex; align-items: center; gap: 10px; font-size: .89rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.dl-list svg { width: 17px; height: 17px; opacity: .85; }

.foot {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 64px) 40px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .85rem;
}
.foot .brand { color: var(--ink); }
.foot p { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: none; place-items: center;
  padding: 24px; background: rgba(16, 16, 28, .82); backdrop-filter: blur(6px);
}
.lightbox.open { display: grid; animation: fade .22s ease; }
.lb-figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lb-figure img {
  max-height: 78vh; width: auto; border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.lb-figure figcaption { color: rgba(255, 255, 255, .82); font-size: .88rem; font-weight: 600; }
.lb-close {
  position: absolute; top: 20px; right: 20px; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .2s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, .22); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; }
  .phone { width: min(260px, 62vw); }
  .fc-one { left: 2%; }
  .fc-two { right: 0; }
  .tech-split, .run-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 100%; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 10px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; animation: fade .18s ease; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: grid; }
  .float-card { display: none; }
  .download-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .screens-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .shot-meta small { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 14px 26px; }
  .hero-stats strong { font-size: 1.25rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
