/* Colour tokens copied from app/renderer/src/styles.css */
:root {
  --bg: #060b1a;
  --bg-2: #0a1128;
  --panel: rgba(17, 25, 54, 0.62);
  --panel-2: rgba(28, 38, 78, 0.55);
  --line: rgba(118, 136, 255, 0.14);
  --line-2: rgba(118, 136, 255, 0.26);
  --text: #eef1ff;
  --muted: #98a2c9;
  --dim: #66709a;
  --accent: #7b5cff;
  --grad: linear-gradient(135deg, #8a5cff 0%, #5a6dff 55%, #3f86ff 100%);
  --grad-text: linear-gradient(90deg, #b18cff 0%, #8f7dff 45%, #6aa1ff 100%);
  --accent-soft: rgba(123, 92, 255, 0.16);
  --ok: #2fd58b;
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, 0.14);
  --gold: #e9c46f;
  --gold-line: rgba(233, 196, 111, 0.5);
  --radius: 16px;
  --shadow: 0 10px 40px rgba(2, 6, 23, 0.45);
  --sans: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --bar: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  position: relative; z-index: 0;
  margin: 0; color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 900px);
  background-color: var(--bg);
}
/* soft light behind the page, like the app's window */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 82% -8%, rgba(110, 80, 255, 0.22), transparent 62%),
    radial-gradient(800px 520px at 6% 44%, rgba(63, 134, 255, 0.09), transparent 62%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
/* copy guard (site.js has the rest): pictures take no pointer, so no save menu, drag or extension button */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { pointer-events: none; -webkit-user-drag: none; }
.brand { display: inline-block; }
body.shield > * { visibility: hidden; }
@media print { body { display: none; } }
a:focus-visible, .strip:focus-visible { outline: 2px solid #b18cff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 680px; }
.section { padding-top: 104px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.18; letter-spacing: -0.015em; }
.sub { color: var(--muted); margin-top: 6px; }
.section > .grid, .section > .steps, .section > .embed, .section > .specs { margin-top: 32px; }
.narrow p:not(.eyebrow) { color: var(--muted); margin-top: 14px; }

.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #a996ff; }

/* same pill as the app */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(140, 150, 255, 0.5); color: #b9c2ff; font-size: 13.5px; font-weight: 600; background: rgba(90, 100, 255, 0.10); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(6, 11, 26, 0.6); border-bottom: 1px solid transparent; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s, border-color .2s; }
.topbar.scrolled { background: rgba(6, 11, 26, 0.88); border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--bar); }
.brand img { width: 170px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav .nav-cta { margin-left: 6px; color: #fff; font-weight: 600; background: var(--grad); }
.nav .nav-cta:hover { background: var(--grad); filter: brightness(1.08); }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 16px; text-align: center; text-decoration: none; transition: filter .15s, background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-primary { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(123, 92, 255, 0.35); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); box-shadow: 0 12px 32px rgba(123, 92, 255, 0.5); }

/* hero: one large app-style panel with the art fading in from the right */
.hero-wrap { padding-top: 24px; }
.hero { position: relative; display: flex; align-items: center; min-height: 600px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(17, 25, 54, 0.92), rgba(12, 16, 44, 0.8)); box-shadow: var(--shadow); overflow: hidden; }
.hero-text { position: relative; z-index: 2; width: 54%; padding: 56px 0 56px 56px; }
.hero h1 { margin-top: 18px; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
.hero h1 .grad { display: block; padding-bottom: .08em; }
.lead { color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; margin-top: 14px; max-width: 23em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; color: var(--muted); font-size: 15px; }
.hero-facts li, .built li, .float-tags li { position: relative; padding-left: 20px; }
.hero-facts li::before, .built li::before, .float-tags li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 10px; height: 5px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 14%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.float-tags { list-style: none; position: absolute; right: 22px; bottom: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; }
.float-tags li { padding: 5px 12px 5px 28px; border-radius: 20px; font-size: 13.5px; font-weight: 600; background: rgba(6, 11, 26, 0.72); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.float-tags li::before { left: 11px; top: .82em; }

/* mentor: gold, the one place on the page that is not violet */
.mentor-wrap { padding-top: 20px; }
.mentor { display: flex; align-items: center; gap: 36px; padding: 24px 40px 24px 28px; border-radius: 24px; border: 1px solid var(--gold-line); background: radial-gradient(520px 280px at 0 50%, rgba(233, 196, 111, 0.16), transparent 70%), linear-gradient(120deg, rgba(36, 30, 26, 0.72), rgba(12, 16, 44, 0.86)); box-shadow: 0 10px 40px rgba(233, 196, 111, 0.1), var(--shadow); }
.mentor-photo { flex: none; width: 168px; height: 200px; margin: 0; padding: 3px; border-radius: 18px; background: linear-gradient(145deg, #f6dfa0, #b58a35 55%, #f0d48c); }
.mentor-photo img { width: 100%; height: 100%; border-radius: 15px; object-fit: cover; object-position: 50% 10%; }
.mentor-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold); }
.mentor h2 { margin-top: 4px; }
.mentor blockquote { margin: 10px 0 0; max-width: 44em; }
.mentor blockquote p { color: var(--text); font-size: 18px; line-height: 1.5; }
.mentor blockquote footer { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* the two kinds of video */
.kind { display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--gold); background: var(--panel); overflow: hidden; box-shadow: 0 0 0 1px rgba(233, 196, 111, 0.25), 0 0 26px rgba(233, 196, 111, 0.38), 0 0 70px rgba(233, 196, 111, 0.16); }
.kind img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.kind div { padding: 20px 22px 24px; }
.kind h3 { font-size: 21px; }
.kind p { color: var(--muted); margin-top: 6px; }

/* style strip */
.styles { padding-top: 88px; }
.strip-h { margin-top: 28px; font-size: 18px; }
.strip { margin-top: 12px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip::-webkit-scrollbar { display: none; }
.strip.run { overflow: hidden; }
.strip-track { display: flex; gap: 20px; width: max-content; padding: 16px 0 18px; }
.strip-track figure { position: relative; flex: none; width: 300px; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--gold-line); background: var(--bg-2); box-shadow: 0 0 14px rgba(233, 196, 111, 0.3); }
.strip-track img { width: 100%; }
.strip-track figcaption { position: absolute; left: 10px; bottom: 10px; padding: 2px 9px; border-radius: 8px; font-size: 13px; background: rgba(6, 11, 26, 0.82); }

/* app window */
.shot-img { display: block; width: 100%; margin: 32px auto 0; border: 1px solid var(--gold); border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(233, 196, 111, 0.25), 0 0 26px rgba(233, 196, 111, 0.38), 0 0 70px rgba(233, 196, 111, 0.16); }

/* grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sample { margin: 0; }
.poster { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold); background: var(--bg-2); box-shadow: 0 0 0 1px rgba(233, 196, 111, 0.25), 0 0 26px rgba(233, 196, 111, 0.38), 0 0 70px rgba(233, 196, 111, 0.16); }
.poster video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sample figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }
.sample figcaption b { display: block; color: var(--text); font-size: 17px; }

/* card glow that follows the pointer (set in site.js) */
.steps > li, .plan, .specs > div { position: relative; background: radial-gradient(260px 200px at var(--mx, 50%) var(--my, -40%), rgba(123, 92, 255, 0.13), transparent 70%), var(--panel); }

/* how it works: three inputs flow into the finished video */
.steps { list-style: none; counter-reset: s; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.08fr); row-gap: 16px; }
.steps::before { content: ""; grid-column: 2; grid-row: 1 / 4; justify-self: center; width: 2px; margin: 62px 0; background: linear-gradient(180deg, var(--accent), #3f86ff, var(--accent)); background-size: 100% 200%; border-radius: 2px; }
.steps > li { counter-increment: s; grid-column: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 72px; }
.steps > li::before { content: counter(s); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; }
.steps > li::after { content: ""; position: absolute; top: 50%; left: 100%; width: 28px; height: 2px; background: var(--accent); }
.steps > li:last-child { grid-column: 3; grid-row: 1 / 4; padding: 24px; border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--panel)); }
.steps > li:last-child::before { position: static; margin-bottom: 14px; }
.steps > li:last-child::after { left: auto; right: 100%; }
.steps b { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }

.out { position: relative; margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.out img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--grad); box-shadow: 0 8px 24px rgba(123, 92, 255, 0.45); }
.play::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent #fff; }
.built { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 14px 0 0; padding: 0; font-size: 15.5px; }

.embed { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold); background: var(--panel); box-shadow: 0 0 0 1px rgba(233, 196, 111, 0.25), 0 0 26px rgba(233, 196, 111, 0.38), 0 0 70px rgba(233, 196, 111, 0.16); }
#tutorial .embed { max-width: 960px; }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-empty { height: 100%; display: grid; place-items: center; color: var(--muted); padding: 16px; text-align: center; }

.embed video { display: block; width: 100%; height: 100%; }
.guide { display: flex; gap: 22px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1px solid var(--gold); background: var(--panel); box-shadow: 0 0 0 1px rgba(233, 196, 111, 0.25), 0 0 26px rgba(233, 196, 111, 0.38), 0 0 70px rgba(233, 196, 111, 0.16); }
.guide-cover { flex: 0 0 150px; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); transition: transform .2s; }
.guide-cover:hover { transform: translateY(-3px); }
.guide-cover img { width: 100%; }
.guide h3 { font-size: 21px; }
.guide p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.guide .guide-meta { color: var(--dim); font-size: 14px; margin-bottom: 14px; }
.plans { max-width: 960px; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.plan:hover { transform: translateY(-3px); border-color: var(--line-2); }
.plan-top, .plan-top:hover { border-color: var(--accent); }
.plan-top { background: radial-gradient(260px 200px at var(--mx, 50%) var(--my, -40%), rgba(123, 92, 255, 0.16), transparent 70%), linear-gradient(180deg, var(--accent-soft), var(--panel)); box-shadow: 0 12px 44px rgba(123, 92, 255, 0.18); }
.plan h3 { font-size: 21px; }
.price { font-size: 48px; font-weight: 700; line-height: 1.1; margin-top: 10px; }
.price small { font-size: 17px; font-weight: 400; color: var(--muted); }
.offer { align-self: flex-start; margin-top: 10px; padding: 3px 11px; border-radius: 8px; color: var(--warn); background: var(--warn-soft); font-size: 15px; font-weight: 600; }
.plan ul { list-style: none; margin: 20px 0 24px; padding: 0; flex: 1; }
.plan li { position: relative; padding: 5px 0 5px 26px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 12px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 0; }
.specs > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.specs dt { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.specs dd { margin: 6px 0 0; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: center; }
.founder { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.founder img { width: 100%; }
.founder figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 20px 16px; background: linear-gradient(180deg, transparent, rgba(6, 11, 26, 0.95) 50%); }
.founder figcaption b { display: block; color: #fff; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.founder figcaption span { display: block; margin-top: 4px; color: var(--gold); font-size: 15.5px; font-weight: 700; }
.about-text { max-width: 620px; }
.about-text p:not(.eyebrow) { color: var(--muted); margin-top: 14px; }
.about-list { grid-template-columns: minmax(0, 1fr); margin-top: 16px; font-size: 16px; }

.contact { list-style: none; margin: 18px 0 0; padding: 4px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.contact li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact li:last-child { border-bottom: 0; }
.contact span { color: var(--muted); width: 96px; flex: none; }
.contact a { color: #b18cff; overflow-wrap: anywhere; }

.final { margin-top: 104px; padding: 52px 24px; border-radius: 24px; text-align: center; border: 1px solid var(--line-2); background: radial-gradient(600px 300px at 50% 0, rgba(123, 92, 255, 0.26), transparent 70%), var(--panel); }
.final img { width: 64px; margin: 0 auto 16px; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.footer { margin-top: 72px; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.footer b { color: var(--text); font-weight: 600; }
.copy { margin-top: 8px; color: var(--dim); }

/* motion, only when the viewer has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }

  .hero-text > * { animation: rise .6s ease both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .hero-text > :nth-child(5) { animation-delay: .24s; }
  .hero-art img { animation: settle 1.2s ease both; }
  .float-tags li { animation: bob 5s ease-in-out infinite; }
  .float-tags li:nth-child(2) { animation-delay: -1.2s; }
  .float-tags li:nth-child(3) { animation-delay: -2.4s; }
  .float-tags li:nth-child(4) { animation-delay: -3.6s; }
  .dot { animation: blink 2.4s ease-in-out infinite; }
  .strip.run .strip-track { animation: slide 70s linear infinite; }
  .strip.run.back .strip-track { animation-direction: reverse; }
  .strip.run:hover .strip-track, .strip.run:focus .strip-track { animation-play-state: paused; }
  .steps::before { animation: flow 3s linear infinite; }
  .play { animation: glow 2.6s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes slide { to { transform: translateX(calc(-50% - 10px)); } }
@keyframes flow { to { background-position: 0 -200%; } }
@keyframes glow { 50% { box-shadow: 0 8px 36px rgba(123, 92, 255, 0.8); } }

/* tablet */
@media (max-width: 1040px) {
  .hero { display: block; min-height: 0; }
  .hero-text { width: auto; padding: 44px 32px 8px; }
  .hero-art { position: relative; width: auto; height: 420px; }
  .hero-art img { object-position: 50% 16%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .steps::before { display: none; }
  .steps > li, .steps > li:last-child { grid-column: 1; grid-row: auto; }
  .steps > li::after { left: 50%; right: auto; top: 100%; width: 2px; height: 24px; }
  .steps > li:last-child::after { display: none; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .founder { max-width: 340px; }
}

/* phone: logo and Download on the first line, the other links on the second */
@media (max-width: 720px) {
  :root { --bar: 106px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar-in { flex-wrap: wrap; gap: 0; padding-top: 8px; padding-bottom: 6px; position: relative; }
  .brand img { width: 136px; }
  .nav { width: 100%; justify-content: space-between; gap: 0; margin-top: 8px; }
  .nav a { padding: 7px 8px; font-size: 14.5px; }
  .nav a:first-child { padding-left: 0; }
  .nav .nav-cta { position: absolute; right: 16px; top: 8px; margin: 0; padding: 7px 14px; }
  .section { padding-top: 72px; }
  .styles { padding-top: 64px; }
  .hero-wrap { padding-top: 12px; }
  .mentor-wrap { padding-top: 12px; }
  .mentor { flex-direction: column; gap: 16px; padding: 22px 20px; border-radius: 18px; text-align: center; }
  .mentor blockquote p { font-size: 17px; }
  .hero { border-radius: 18px; }
  .hero-text { padding: 28px 20px 4px; }
  .hero-art { height: 340px; }
  .float-tags { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .g2, .specs { grid-template-columns: minmax(0, 1fr); }
  .guide { flex-direction: column; text-align: center; }
  .hero-actions .btn, .final-actions .btn { flex: 1 1 100%; }
  .strip-track figure { width: 220px; }
  .steps > li { padding: 18px 18px 18px 66px; }
  .steps > li::before { left: 18px; top: 18px; }
  .steps > li:last-child { padding: 20px; }
  .final { margin-top: 72px; padding: 40px 20px; border-radius: 18px; }
  .footer { margin-top: 56px; }
}
