:root {
  --bg: #050507;
  --bg-elev: #0c0c10;
  --surface: #1c1c1e;
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.68);
  --faint: rgba(255, 255, 255, 0.38);
  --magenta: #e23cff;
  --cyan: #2ce4ff;
  --red: #e53935;
  --green: #2e7d32;
  --gold: #ffc107;
  --ring: rgba(255, 255, 255, 0.12);
  --max: 1120px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-ui: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

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

[hidden] {
  display: none !important;
}

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

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88em;
  color: var(--cyan);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  z-index: 0;
}

.orb-magenta {
  top: -160px;
  left: -120px;
  background: var(--magenta);
}

.orb-cyan {
  right: -180px;
  bottom: 10%;
  background: var(--cyan);
  opacity: 0.16;
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ring);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ring);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.btn-primary {
  color: #07070a;
  background: linear-gradient(120deg, var(--magenta), var(--cyan));
  box-shadow: 0 0 28px rgba(226, 60, 255, 0.28);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 48px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  line-height: 1.45;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 800;
}

h1 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
}

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

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

.hero-pills li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 60, 255, 0.35), rgba(44, 228, 255, 0.12) 55%, transparent 70%);
  filter: blur(12px);
  top: 18%;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 36px;
  padding: 0 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.section-head p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

.demo {
  padding: 48px 0 24px;
}

.demo-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 40px;
  align-items: center;
}

.demo-player {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-video {
  width: min(100%, 320px);
  border-radius: 28px;
  border: 10px solid #16161a;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.demo-progress {
  width: min(100%, 280px);
  height: 3px;
  margin-top: 18px;
  background: var(--ring);
  border-radius: 99px;
  overflow: hidden;
}

.demo-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
}

.demo-captions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.demo-captions li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--ring);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.demo-captions li span {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--faint);
}

.demo-captions li.is-active {
  color: var(--text);
  border-color: rgba(44, 228, 255, 0.45);
  background: rgba(44, 228, 255, 0.06);
}

.demo-captions li.is-active span {
  background: linear-gradient(110deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.demo-note {
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 0 28px;
  color: var(--faint);
  font-size: 0.88rem;
}

.steps,
.config,
.features,
.audience,
.download {
  padding: 56px 0;
}

.steps-grid,
.config-grid,
.feature-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  gap: 16px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-card,
.config-grid article,
.feature-grid article {
  padding: 24px;
  border-radius: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--ring);
}

.step-card:hover,
.config-grid article:hover,
.feature-grid article:hover {
  border-color: rgba(226, 60, 255, 0.35);
}

.frame-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  background: linear-gradient(110deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-card h3,
.config-grid h3,
.feature-grid h3 {
  margin: 10px 0 8px;
  font-size: 1.25rem;
}

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

.config-grid,
.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(44, 228, 255, 0.08);
  color: var(--cyan);
}

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

.audience-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.audience-list li {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: var(--surface);
  font-weight: 600;
}

.download {
  padding-bottom: 80px;
}

.download-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--ring);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(226, 60, 255, 0.18), transparent 60%),
    var(--bg-elev);
}

.download-card img {
  margin: 0 auto 16px;
  border-radius: 18px;
}

.download-card h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.download-card p {
  color: var(--muted);
}

.download-card .hero-actions {
  justify-content: center;
}

.hint {
  font-size: 0.85rem;
  color: var(--faint) !important;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid var(--ring);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-brand span {
  display: block;
  color: var(--faint);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

/* Phone mockup. mirrors activity_main.xml */
.phone {
  width: 280px;
  position: relative;
  z-index: 2;
}

[data-phone-mount="demo"] .phone {
  width: 300px;
}

.phone-bezel {
  background: #121214;
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(226, 60, 255, 0.12);
}

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 10px;
  border-radius: 99px;
  background: #000;
  z-index: 8;
}

.preview {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 36%, #5a2a6e 0%, transparent 42%),
    radial-gradient(ellipse at 72% 58%, #16475a 0%, transparent 46%),
    linear-gradient(180deg, #1c1424 0%, #0a0a0c 100%);
  animation: preview-pan 14s ease-in-out infinite;
}

@keyframes preview-pan {
  0%, 100% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.12) translate(-2%, 2%); }
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: opacity 0.35s ease;
}

.idle-hint {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 42%;
  text-align: center;
  z-index: 3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.idle-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.idle-sub {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.idle-arrow {
  width: 28px;
  height: 28px;
  margin-top: 8px;
  opacity: 0.85;
  animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.overlay-top {
  position: absolute;
  top: 28px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}

.icon-bubble {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  padding: 7px;
}

.icon-bubble svg {
  width: 18px;
  height: 18px;
}

.status-pill {
  max-width: 58%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9e9e9e;
  flex-shrink: 0;
}

.waves {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  display: none;
  gap: 4px;
  align-items: flex-end;
  height: 28px;
  z-index: 3;
}

.waves i {
  width: 3px;
  background: var(--cyan);
  border-radius: 99px;
  animation: wave 0.9s ease-in-out infinite;
}

.waves i:nth-child(1) { height: 8px; animation-delay: 0s; }
.waves i:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.waves i:nth-child(3) { height: 26px; animation-delay: 0.18s; }
.waves i:nth-child(4) { height: 14px; animation-delay: 0.08s; }
.waves i:nth-child(5) { height: 10px; animation-delay: 0.22s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.overlay-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shutter-label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.shutter-row {
  position: relative;
  width: 100%;
  height: 72px;
}

.shutter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #000;
}

.clip-btn {
  position: absolute;
  left: calc(50% + 52px);
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(28, 28, 30, 0.8);
  display: grid;
  place-items: center;
  opacity: 0.4;
}

.clip-btn svg {
  width: 20px;
  height: 20px;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 10px 16px 18px;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  max-height: 72%;
  overflow: hidden;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 auto 10px;
}

.sheet-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.95rem;
}

.sheet-label {
  margin: 8px 0 4px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.sheet-help {
  margin: 0;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.5);
}

.field {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.field.muted {
  color: rgba(255, 255, 255, 0.55);
}

.chip,
.chips span,
.chips b {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  margin: 2px 2px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.chips b {
  background: rgba(44, 228, 255, 0.18);
  border-color: var(--cyan);
  color: var(--cyan);
}

.sheet-block {
  padding: 4px;
  border-radius: 10px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.phone[data-highlight="commands"] .sheet-block[data-hl="commands"],
.phone[data-highlight="duration"] .sheet-block[data-hl="duration"],
.phone[data-highlight="trigger"] .sheet-block[data-hl="trigger"] {
  background: rgba(44, 228, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(44, 228, 255, 0.35);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(20, 20, 22, 0.92);
  border: 1px solid var(--ring);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0;
  z-index: 7;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Scene states */
.phone[data-scene="settings"] .sheet {
  transform: translateY(0);
}

.phone[data-scene="recording"] .scrim,
.phone[data-scene="listening"] .scrim,
.phone[data-scene="heard"] .scrim,
.phone[data-scene="saving"] .scrim,
.phone[data-scene="saved"] .scrim,
.phone[data-scene="recording"] .idle-hint,
.phone[data-scene="listening"] .idle-hint,
.phone[data-scene="heard"] .idle-hint,
.phone[data-scene="saving"] .idle-hint,
.phone[data-scene="saved"] .idle-hint {
  opacity: 0;
  pointer-events: none;
}

.phone[data-scene="recording"] .shutter,
.phone[data-scene="listening"] .shutter,
.phone[data-scene="heard"] .shutter,
.phone[data-scene="saving"] .shutter,
.phone[data-scene="saved"] .shutter {
  background: var(--red);
}

.phone[data-scene="recording"] .clip-btn,
.phone[data-scene="listening"] .clip-btn,
.phone[data-scene="heard"] .clip-btn,
.phone[data-scene="saving"] .clip-btn,
.phone[data-scene="saved"] .clip-btn {
  opacity: 1;
}

.phone[data-scene="recording"] .rec-dot,
.phone[data-scene="listening"] .rec-dot,
.phone[data-scene="heard"] .rec-dot,
.phone[data-scene="saving"] .rec-dot,
.phone[data-scene="saved"] .rec-dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: recpulse 1s ease-in-out infinite;
}

@keyframes recpulse {
  50% { opacity: 0.35; }
}

.phone[data-scene="listening"] .waves,
.phone[data-scene="heard"] .waves {
  display: flex;
}

.phone[data-scene="heard"] .clip-btn,
.phone[data-scene="saving"] .clip-btn {
  box-shadow: 0 0 0 2px var(--cyan);
}

.phone.is-toasting .toast {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.demo-player.is-video .demo-mockup,
.demo-player.is-video .demo-progress {
  display: none;
}

@media (max-width: 900px) {
  .hero,
  .demo-layout,
  .steps-grid,
  .config-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
    text-align: center;
  }

  .eyebrow {
    letter-spacing: 0.08em;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-pills {
    justify-content: center;
  }

  .hero-stage {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    padding: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    background: rgba(5, 5, 7, 0.96);
    border-bottom: 1px solid var(--ring);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

.premium-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--ring);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.premium-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
}
.premium-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.premium-card input {
  border: 1px solid var(--ring);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.pix-code {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: #07070a;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preview, .idle-arrow, .waves i, .rec-dot { animation: none; }
}
