:root {
  --purple: #a821e6;
  --purple-deep: #8514c9;
  --purple-grad: linear-gradient(135deg, #b83bff 0%, #8f1fd6 100%);
  --gold: #f5a623;
  --ink: #1b1b20;
  --muted: #63636e;
  --line: rgba(20, 16, 30, 0.10);
  --bg: #ffffff;
  --bg-alt: #f7f5fb;
  --card: #ffffff;
  --shadow-lg: 0 40px 80px -24px rgba(120, 30, 190, 0.35), 0 12px 28px -12px rgba(20, 16, 30, 0.18);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: 11px;
  padding: 11px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple-grad);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(150, 40, 210, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(150, 40, 210, 0.62); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { border-radius: 8px; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--purple);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 30em; }
.cta-row { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { color: var(--muted); font-size: 14px; }

/* ---------- Hero art / window mockup ---------- */
.hero-art { position: relative; }
.glow {
  position: absolute;
  inset: -18% -12% -22% -12%;
  background: radial-gradient(60% 60% at 60% 40%, rgba(184, 59, 255, 0.28), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.window {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: linear-gradient(#fbfbfd, #f2f1f5);
  border-bottom: 1px solid var(--line);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.titlebar-title { margin-left: auto; margin-right: auto; font-size: 13px; font-weight: 600; color: #86868b; transform: translateX(-18px); }

.app-body { padding: 16px; }
.preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 20% 10%, #6a4bd6 0%, transparent 55%),
    linear-gradient(140deg, #241d3a 0%, #3a2a63 55%, #542a86 100%);
}
.preview-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.overlay-emoji {
  font-size: clamp(64px, 11vw, 108px);
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  animation: pop 3.6s ease-in-out infinite;
  transform-origin: center;
}
.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; animation: pulse 1.6s ease-in-out infinite; }

.reactions { display: flex; gap: 10px; margin-top: 14px; }
.reaction {
  flex: 1;
  aspect-ratio: 1;
  min-width: 0;
  font-size: clamp(20px, 3.4vw, 30px);
  border: 1px solid var(--line);
  background: #f7f6fa;
  border-radius: 13px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.reaction:hover { transform: translateY(-2px); }
.reaction.is-active {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 33, 230, 0.18);
  background: #fff;
}

@keyframes pop {
  0%   { transform: scale(0.5); opacity: 0; }
  10%  { transform: scale(1.12); opacity: 1; }
  18%  { transform: scale(1); opacity: 1; }
  72%  { transform: scale(1); opacity: 1; }
  85%  { transform: scale(1); opacity: 0; }
  100% { transform: scale(0.5); opacity: 0; }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
}

.features { padding: 96px 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(20, 16, 30, 0.28); }
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(184, 59, 255, 0.14), rgba(143, 31, 214, 0.10));
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- How ---------- */
.how { padding: 96px 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-grad);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  font-size: 15px;
}
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Download band ---------- */
.download { padding: 100px 0; text-align: center; background:
    radial-gradient(80% 130% at 50% 0%, rgba(184, 59, 255, 0.12), transparent 60%); }
.download-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.download-mark { border-radius: 20px; box-shadow: var(--shadow-lg); }
.download h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; font-weight: 800; margin-top: 8px; }
.download p { color: var(--muted); font-size: 17px; }
.download .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand-name { font-size: 15px; }
.footer-note { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 60px 0 72px; }
  h1 br { display: none; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .lede { font-size: 17px; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f5;
    --muted: #9a9aa6;
    --line: rgba(255, 255, 255, 0.12);
    --bg: #0f0e13;
    --bg-alt: #16141d;
    --card: #1a1822;
    --shadow-lg: 0 40px 80px -24px rgba(120, 30, 190, 0.45), 0 12px 28px -12px rgba(0, 0, 0, 0.5);
  }
  body { background: var(--bg); }
  .nav { background: rgba(15, 14, 19, 0.72); }
  .window { background: #1a1822; }
  .titlebar { background: linear-gradient(#22202b, #1a1822); }
  .titlebar-title { color: #8a8a94; }
  .reaction { background: #221f2c; }
  .reaction.is-active { background: #2a2636; }
  .download-mark { background: transparent; }
}
