@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --line-strong: #d2d2d7;
  --lime: #c4f566;
  --green: #3c7a12;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--sans); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 980px; border: 1px solid transparent; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 17px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333336; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.link { color: var(--green); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .8); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid rgb(0 0 0 / .08); }
.nav { height: 52px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brand img { border-radius: 6px; }
.brand-sm { font-size: 14px; }
.brand-sm img { border-radius: 5px; }
.nav-links { display: flex; gap: 32px; font-size: 13px; color: var(--ink-2); letter-spacing: -0.01em; }
.nav-links a, .nav-signin { transition: color .2s; }
.nav-links a:hover, .nav-signin:hover, .footer-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 13px; color: var(--ink-2); }

/* Hero */
.hero { padding: 72px 0 0; overflow: hidden; background: radial-gradient(ellipse 50% 34% at 50% 76%, #f1f8e6 0%, rgb(255 255 255 / 0) 72%); }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { text-wrap: balance; max-width: 15ch; font-size: clamp(44px, 5.8vw, 76px); line-height: 1.04; letter-spacing: -0.036em; font-weight: 700; }
.lede { margin-top: 20px; max-width: 34em; font-size: 21px; line-height: 1.45; color: var(--muted); letter-spacing: -0.02em; }
.hero-text > * { animation: rise .9s var(--ease) both; }
.hero-text > .lede { animation-delay: .08s; }
.hero-text > .repo-form { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.repo-form { margin-top: 36px; width: min(560px, 100%); }
.repo-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; background: #fff; border: 1px solid var(--line-strong); border-radius: 980px; box-shadow: 0 2px 6px rgb(0 0 0 / .04), 0 12px 32px -12px rgb(0 0 0 / .12); transition: border-color .2s, box-shadow .2s; }
.repo-field:focus-within { border-color: #0071e3; box-shadow: 0 0 0 4px rgb(0 113 227 / .15), 0 12px 32px -12px rgb(0 0 0 / .12); }
.repo-icon { color: var(--muted); flex-shrink: 0; }
.repo-field input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 4px; font: 15px var(--mono); letter-spacing: 0; outline: none; }
.repo-field input::placeholder { color: #a1a1a6; }
.repo-field input[aria-invalid=true] { color: #c0392b; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.form-error { margin-top: 12px; font-size: 14px; color: #c0392b; }
.form-error:empty { display: none; }

/* Hero scene: isometric phone with a floating commit card.
   --s scales the whole scene; the unscaled scene is 700px tall with the phone centred 350px down. */
.scene { --s: .72; position: relative; height: calc(700px * var(--s)); margin-top: 32px; animation: rise 1.1s .22s var(--ease) both; }
.iso { position: absolute; left: 50%; top: calc(350px * var(--s)); width: 0; height: 0; transform: scale(var(--s)) rotate(-30deg) skewX(30deg); }
.iso-float { z-index: 5; transform: translateY(calc(-56px * var(--s))) scale(var(--s)) rotate(-30deg) skewX(30deg); animation: hover 6s var(--ease) infinite; }
@keyframes hover { 50% { transform: translateY(calc(-70px * var(--s))) scale(var(--s)) rotate(-30deg) skewX(30deg); } }
.float-shadow { position: absolute; z-index: 5; left: 92px; top: -46px; width: 320px; height: 128px; background: rgb(0 0 0 / .14); border-radius: 26px; filter: blur(20px); }
.update-card { position: absolute; left: 150px; top: -96px; width: 320px; padding: 22px 24px; background: rgb(255 255 255 / .97); border-radius: 26px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.uc-head { display: flex; align-items: center; gap: 10px; font: 500 15px var(--mono); }
.uc-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #c4f566, #5ea82a); }
.uc-branch { padding: 3px 10px; background: #eef7df; color: #3c6e15; border-radius: 980px; }
.uc-sha { margin-left: auto; color: var(--muted); }
.uc-title { margin-top: 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.uc-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 16px; color: var(--muted); }
.uc-dot { width: 9px; height: 9px; border-radius: 50%; background: #5ea82a; }

/* Desktop: size the phone by viewport height so the whole scene sits above the fold. */
@media (min-width: 1061px) and (max-height: 1100px) { .scene { --s: .66; } }
@media (min-width: 1061px) and (max-height: 980px) { .hero { padding-top: 56px; } .scene { --s: .6; } }
@media (min-width: 1061px) and (max-height: 860px) { .hero { padding-top: 36px; } .hero h1 { font-size: 58px; } .lede { font-size: 19px; } .repo-form { margin-top: 28px; } .scene { --s: .46; margin-top: 20px; } }

/* Framework strip */
.stack { padding: 32px 0 36px; border-block: 1px solid var(--line); }
.stack-label { margin-bottom: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
.marquee ul { display: flex; flex-shrink: 0; align-items: flex-start; gap: 56px; margin: 0; padding: 8px 56px 8px 0; list-style: none; animation: marquee 45s linear infinite; }
.marquee li { display: flex; }
.marquee a { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 72px; border-radius: 12px; }
.logo-name { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s var(--ease); }
.logo { display: block; width: 40px; height: 40px; background: #a1a1a6; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.marquee a:hover .logo, .marquee a:focus-visible .logo { background: var(--brand); transform: scale(1.1); }
.marquee a:hover .logo-name, .marquee a:focus-visible .logo-name { color: var(--ink); }
.marquee:has(a:focus-visible) ul { animation-play-state: paused; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Scroll reveal (class added by landing.js, so content stays visible without JS) */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; text-wrap: balance; }
.hero-text, .flow-copy, .mode p { text-wrap: pretty; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -0.04em; font-weight: 700; }
.section-head p { margin-top: 12px; font-size: 21px; line-height: 1.45; color: var(--muted); letter-spacing: -0.02em; }

/* Workflow */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 32px 28px 28px; background: var(--tint); border-radius: 28px; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; z-index: 1; top: 44px; right: -24px; width: 28px; height: 28px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d1d1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 4 4 4-4 4'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgb(0 0 0 / .06); }
.flow-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.flow-copy h3 { margin-top: 20px; font-size: 24px; letter-spacing: -0.03em; }
.flow-copy p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.mock { margin-top: auto; display: grid; gap: 10px; padding: 18px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 10px 30px -14px rgb(0 0 0 / .18); font-size: 14px; }
.mock-field { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; overflow: hidden; white-space: nowrap; }
.mock-field svg { flex-shrink: 0; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px; color: var(--muted); }
.mock-select { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--tint); border-radius: 8px; color: var(--ink); font-size: 13px; }
.mock-select::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.mock-value { color: var(--ink); font-weight: 500; }
.mock-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #eef7df; border-radius: 10px; color: #3c6e15; font-size: 13px; }
.mock-ok .mono { font-weight: 500; }
.tick { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #5ea82a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mock-app { display: flex; align-items: center; gap: 12px; padding: 2px; }
.mock-app b { display: block; font-size: 15px; }
.mock-app small { display: block; font-size: 12px; color: var(--muted); }
.mock-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(180deg, #7fb8e6 0 45%, #5f9a5c 45% 70%, #2f6a3a 70%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.mock-segment { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--tint); border-radius: 10px; font-size: 13px; font-weight: 500; text-align: center; }
.mock-segment span { padding: 6px; border-radius: 8px; color: var(--muted); }
.mock-segment .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.mock-log { display: grid; gap: 10px; margin: 0; padding: 4px 2px; list-style: none; }
.mock-log li { display: flex; align-items: center; gap: 10px; }
.mock-log .mono { font-size: 13px; }
.mock-file { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--tint); border-radius: 12px; }
.mock-file b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; }
.mock-file small { display: block; font-size: 12px; color: var(--muted); }
.mock-file-icon { flex-shrink: 0; width: 34px; height: 40px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; }
.mock-file-icon::after { content: 'APK'; position: absolute; left: 4px; right: 4px; bottom: 6px; padding: 2px 0; background: #5ea82a; color: #fff; border-radius: 3px; font: 600 8px/1 var(--sans); letter-spacing: .02em; text-align: center; }
.mock-download { margin-left: auto; padding: 6px 12px; background: var(--ink); color: #fff; border-radius: 980px; font-size: 12px; font-weight: 500; }

/* Live vs pinned */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mode { display: flex; flex-direction: column; padding: 36px; background: #fff; border-radius: 28px; }
.mode h3 { font-size: 28px; letter-spacing: -0.03em; }
.mode p { margin-top: 10px; color: var(--muted); max-width: 42ch; }
.mode .link { margin-top: auto; padding-top: 24px; font-size: 17px; }

.timeline { position: relative; height: 120px; margin-bottom: 28px; background: var(--tint); border-radius: 18px; }
.track { position: absolute; left: 10%; right: 10%; top: 72px; height: 2px; background: var(--line-strong); }
.commit { position: absolute; top: 66px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid #a1a1a6; }
.c1 { left: 10%; } .c2 { left: 30%; } .c3 { left: 50%; } .c4 { left: 70%; } .c5 { left: 90%; }
.marker { position: absolute; top: 20px; transform: translateX(-50%); padding: 5px 11px; background: var(--ink); color: #fff; border-radius: 980px; font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.marker::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 2px; height: 12px; margin-left: -1px; background: var(--ink); }
.pinned .marker { left: 50%; }
.pinned .c3 { background: var(--ink); border-color: var(--ink); }
.pinned .c4, .pinned .c5 { border-color: #d2d2d7; background: var(--tint); }
.tl-note { position: absolute; top: 90px; transform: translateX(-50%); font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.tl-note.new { left: 90%; color: #3c7a12; animation: new-commit 5s var(--ease) infinite; }
.tl-note.ignored { left: 80%; color: #a1a1a6; }
/* Live: a new commit lands and the app moves to it. */
.live .marker { left: 70%; animation: follow 5s var(--ease) infinite; }
.live .c4 { background: var(--ink); border-color: var(--ink); animation: was-head 5s var(--ease) infinite; }
.live .c5 { background: #5ea82a; border-color: #5ea82a; animation: new-commit 5s var(--ease) infinite; }
@keyframes follow { 0%, 45% { left: 70%; } 60%, 100% { left: 90%; } }
@keyframes was-head { 0%, 45% { background: var(--ink); border-color: var(--ink); } 60%, 100% { background: #fff; border-color: #a1a1a6; } }
@keyframes new-commit { 0%, 15% { opacity: 0; transform: scale(.4); } 30%, 100% { opacity: 1; transform: scale(1); } }

/* Details */
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.details article { padding: 32px 28px; background: var(--tint); border-radius: 24px; }
.details svg { color: var(--ink); }
.details h3 { margin-top: 20px; font-size: 19px; letter-spacing: -0.02em; }
.details p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 36px 32px; background: #fff; border-radius: 28px; }
.plan-featured { box-shadow: 0 0 0 2px var(--ink); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 19px; letter-spacing: -0.02em; }
.tag { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 980px; background: #eef7df; color: #3c6e15; letter-spacing: 0; }
.plan-price { margin-top: 16px; font-size: 48px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.plan-price small { font-size: 17px; font-weight: 400; letter-spacing: -0.02em; color: var(--muted); }
.plan-desc { margin-top: 12px; color: var(--muted); font-size: 15px; min-height: 2.9em; }
.plan .btn { margin-top: 24px; width: 100%; }
.plan ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li::before { content: ''; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233c7a12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plans-note { margin-top: 24px; font-size: 14px; color: var(--muted); text-align: center; }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq-title { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.04em; font-weight: 700; text-align: center; margin-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { position: relative; padding: 24px 48px 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); border-radius: 1px; transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); }

/* CTA */
.cta { padding: 96px 0; text-align: center; background: var(--tint); }
.cta h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.045em; font-weight: 700; }
.cta p { margin-top: 12px; font-size: 21px; color: var(--muted); }
.cta .btn { margin-top: 32px; }

/* Footer */
.site-footer { background: var(--tint); }
.footer { display: flex; align-items: center; gap: 40px; padding: 24px 0 32px; border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.legal { margin-left: auto; font-size: 12px; }

@media (max-width: 1060px) {
  .scene { --s: .62; }
  .details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .flow { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .flow-step:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: -24px; margin-left: -14px; transform: rotate(90deg); }
  .modes, .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-desc { min-height: 0; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .nav { gap: 16px; }
  .nav-signin { display: none; }
  .hero { padding-top: 56px; }
  .lede { font-size: 18px; }
  .repo-field { flex-wrap: wrap; padding: 8px; border-radius: 22px; }
  .repo-icon { margin-left: 10px; }
  .repo-field .btn { width: 100%; }
  .scene { --s: .44; margin-top: 16px; }
  .stack { padding: 28px 0 30px; }
  .marquee ul { gap: 32px; padding-right: 32px; }
  .logo { width: 32px; height: 32px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 18px; }
  .flow-step { padding: 28px 22px 22px; border-radius: 24px; }
  .mode, .plan { padding: 28px 24px; border-radius: 24px; }
  .details { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
  .cta { padding: 64px 0; }
  .footer { flex-wrap: wrap; gap: 16px 24px; }
  .legal { margin-left: 0; width: 100%; }
}

@media (max-width: 420px) {
  .scene { --s: .32; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .live .marker { left: 90%; }
  .live .c4 { background: #fff; border-color: #a1a1a6; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 28px 32px; padding: 0; flex-shrink: 1; }
  .marquee ul[aria-hidden] { display: none; }
}
