Skip to content
TypeScript
54.4 KB
Raw Blame
---
import { getImage } from "astro:assets";
import desktopScreenshot from "../assets/app-desktop.webp";
import Layout from "../layouts/Layout.astro";
import {
  ANDROID_PLAY_STORE_URL,
  GITHUB_REPOSITORY_URL,
  IOS_APP_STORE_URL,
  MARKETING_STATS,
} from "../lib/site";
import { tweets } from "../lib/tweets";
import { softwareJsonLd } from "../lib/seo";

const screenshot = await getImage({
  src: desktopScreenshot,
  widths: [864, 1180, 1728, 2360],
  format: "webp",
  quality: 90,
});

const desktopEndorsementRows = [
  tweets.filter((_, index) => index % 2 === 0),
  tweets.filter((_, index) => index % 2 === 1),
];

const mobileEndorsementRows = [
  tweets.filter((_, index) => index % 3 === 0),
  tweets.filter((_, index) => index % 3 === 1),
  tweets.filter((_, index) => index % 3 === 2),
];
---

<Layout
  title="T3 Code | The open-source control plane for coding agents"
  jsonLd={[softwareJsonLd()]}
>
  <section class="hero">
    <div class="hero-grid" aria-hidden="true"></div>

    <div class="hero-float" aria-hidden="true">
      {[
        { key: "opencode", icon: "/harnesses/opencode-dark.svg", cls: "hf-opencode" },
        { key: "antigravity", icon: "/harnesses/antigravity.svg", cls: "hf-antigravity" },
        { key: "claude", icon: "/harnesses/claude-ai-icon.svg", cls: "hf-claude" },
        { key: "codex", icon: "/harnesses/openai_dark.svg", cls: "hf-codex" },
        { key: "grok", icon: "/harnesses/grok-dark.svg", cls: "hf-grok" },
        { key: "cursor", icon: "/harnesses/cursor_light.svg", cls: "hf-cursor" },
      ].map((m) => (
        <span class:list={["hero-float-mark", m.cls]}>
          <span class="hero-float-card"><img src={m.icon} alt="" /></span>
        </span>
      ))}
    </div>

    <div class="container hero-inner">
      <h1 class="hero-title display">
        <span data-rise>The open-source</span><br /><span data-rise style="--d:90ms">control plane</span><br /><span data-rise style="--d:180ms">for coding agents.</span>
      </h1>

      <p class="hero-sub" data-rise style="--d:300ms">
        Orchestrate Claude Code, Codex, Antigravity, OpenCode, Cursor, and Grok from one surface.
        Bring your own subscription. Fork the whole thing.
      </p>

      <div class="hero-actions" data-rise style="--d:400ms">
        <a
          id="download-btn"
          href="https://github.com/pingdotgg/t3code/releases"
          class="btn btn-primary btn-lg"
        >
          <svg class="dl-icon dl-icon--apple" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 814 1000" aria-hidden="true"><path fill="currentColor" d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"/></svg>
          <svg class="dl-icon dl-icon--windows" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 88" aria-hidden="true"><path fill="currentColor" d="m0 12.402 35.687-4.86.016 34.423-35.67.203zm35.67 33.529.028 34.453L.028 75.48.026 45.7zm4.326-39.025L87.314 0v41.527l-47.318.376zm47.329 39.349-.011 41.34-47.318-6.678-.066-34.739z"/></svg>
          <svg class="dl-icon dl-icon--linux" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292.2.68.467 1.167.467.485 0 1.053-.267 1.398-.466.195-.135.445-.334.648-.467.156-.136.149-.267.279-.267.128.016.034.134-.147.332a8.097 8.097 0 01-.69.468zm-1.082-1.583V5.64c-.006-.02.013-.042.029-.05.074-.043.18-.027.26.004.063 0 .16.067.15.135-.006.049-.085.066-.135.066-.055 0-.092-.043-.141-.068-.052-.018-.146-.008-.163-.065zm-.551 0c-.02.058-.113.049-.166.066-.047.025-.086.068-.14.068-.05 0-.13-.02-.136-.068-.01-.066.088-.133.15-.133.08-.031.184-.047.259-.005.019.009.036.03.03.05v.02h.003z"/></svg>
          <span id="download-label">Download for macOS</span>
        </a>
        <a class="hero-source-link" href={GITHUB_REPOSITORY_URL} target="_blank" rel="noopener noreferrer">
          <svg class="hero-source-mark" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
            <path d="M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 007.86 10.93c.58.1.79-.25.79-.56v-2c-3.2.69-3.88-1.37-3.88-1.37-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.76 2.68 1.25 3.33.96.1-.75.4-1.25.72-1.54-2.55-.29-5.24-1.27-5.24-5.67 0-1.25.45-2.28 1.18-3.08-.12-.29-.51-1.45.11-3.02 0 0 .96-.31 3.15 1.18a10.96 10.96 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.57.23 2.73.11 3.02.74.8 1.18 1.83 1.18 3.08 0 4.41-2.7 5.38-5.27 5.66.41.36.78 1.06.78 2.13v3.16c0 .31.21.67.8.56A11.5 11.5 0 0023.5 12C23.5 5.65 18.35.5 12 .5z"/>
          </svg>
          <span>Steal our code (legally)</span>
          <svg class="hero-source-arrow" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17L17 7M8 7h9v9"/></svg>
        </a>
        <p class="hero-mobile-line">
          Also on your phone:
          <a href={IOS_APP_STORE_URL} target="_blank" rel="noopener noreferrer">iOS</a>
          <span aria-hidden="true">·</span>
          <a href={ANDROID_PLAY_STORE_URL} target="_blank" rel="noopener noreferrer">Android</a>
        </p>
      </div>

      <!-- The rise wrapper is separate so its animated transform does not override the preview tilt. -->
      <div data-rise style="--d:520ms">
        <div class="hero-preview">
          <figure class="hero-screenshot-frame">
            <picture>
              <img
                src={desktopScreenshot.src}
                srcset={`${screenshot.srcSet.attribute}, ${desktopScreenshot.src} ${desktopScreenshot.width}w`}
                sizes="(max-width: 960px) min(864px, calc(100vw - 20px)), min(1180px, calc(100vw - 60px))"
                alt="T3 Code running Claude, Codex, Muse, and Gemini subagents in one thread"
                width={desktopScreenshot.width}
                height={desktopScreenshot.height}
                loading="eager"
                decoding="async"
              />
            </picture>
          </figure>
        </div>
      </div>
    </div>
  </section>

  <section id="endorsements" class="sec-endorsements" aria-labelledby="endorsements-title">
    <div class="container">
      <div class="endorsements-head">
        <h2 id="endorsements-title">Tolerated by over <span class="endorsements-count">{MARKETING_STATS.users}</span> devs</h2>
        <p>Some of them even tweeted about it.</p>
      </div>
    </div>

    <div class="endorsement-carousel endorsement-carousel--desktop" aria-label="Developer endorsements">
        {
          desktopEndorsementRows.map((row, rowIndex) => (
            <div class:list={["endorsement-row", rowIndex === 1 && "is-reverse"]}>
              <div class="endorsement-track">
                {[0, 1].map((groupIndex) => (
                  <div class="endorsement-track-group" aria-hidden={groupIndex === 1 ? "true" : undefined}>
                    {row.map((tweet) => (
                      <a
                        class="endorsement-card"
                        href={tweet.link}
                        target="_blank"
                        rel="noopener noreferrer"
                        aria-label={`Read ${tweet.handle}'s post on X`}
                        tabindex={groupIndex === 1 ? "-1" : undefined}
                      >
                        <div class="endorsement-author">
                          <img
                            src={`/pfps/${tweet.handle}.webp`}
                            alt=""
                            width="28"
                            height="28"
                            loading="lazy"
                            decoding="async"
                          />
                          <div class="endorsement-handle">@{tweet.handle}</div>
                        </div>
                        <p>{tweet.excerpt ?? tweet.content}</p>
                      </a>
                    ))}
                  </div>
                ))}
              </div>
            </div>
          ))
        }
    </div>

    <div class="endorsement-carousel endorsement-carousel--mobile" aria-label="Developer endorsements">
        {
          mobileEndorsementRows.map((row, rowIndex) => (
            <div class:list={["endorsement-row", rowIndex === 1 && "is-reverse"]}>
              <div class="endorsement-track">
                {[0, 1].map((groupIndex) => (
                  <div class="endorsement-track-group" aria-hidden={groupIndex === 1 ? "true" : undefined}>
                    {row.map((tweet) => (
                      <a
                        class="endorsement-card"
                        href={tweet.link}
                        target="_blank"
                        rel="noopener noreferrer"
                        aria-label={`Read ${tweet.handle}'s post on X`}
                        tabindex={groupIndex === 1 ? "-1" : undefined}
                      >
                        <div class="endorsement-author">
                          <img
                            src={`/pfps/${tweet.handle}.webp`}
                            alt=""
                            width="28"
                            height="28"
                            loading="lazy"
                            decoding="async"
                          />
                          <div class="endorsement-handle">@{tweet.handle}</div>
                        </div>
                        <p>{tweet.excerpt ?? tweet.content}</p>
                      </a>
                    ))}
                  </div>
                ))}
              </div>
            </div>
          ))
        }
    </div>
  </section>

  <section id="harnesses" class="sec-harness">
    <div class="container">
      <div class="section-head">
        <h2>Bring your own sub</h2>
        <p>
          T3 Code doesn't resell tokens. Plug in Claude Code, Codex, Antigravity,
          OpenCode, Cursor, or Grok with the credentials you already have. We
          orchestrate them, you keep your plan.
        </p>
      </div>

      <div class="harness-grid">
        <div class="harness">
          <div class="harness-mark"><img src="/harnesses/claude-ai-icon.svg" alt="" /></div>
          <div class="harness-meta">
            <div class="harness-name">Claude Code</div>
            <div class="harness-tag">claude auth login</div>
          </div>
        </div>
        <div class="harness">
          <div class="harness-mark"><img src="/harnesses/openai_dark.svg" alt="" /></div>
          <div class="harness-meta">
            <div class="harness-name">Codex CLI</div>
            <div class="harness-tag">codex login</div>
          </div>
        </div>
        <div class="harness">
          <div class="harness-mark"><img src="/harnesses/opencode-dark.svg" alt="" /></div>
          <div class="harness-meta">
            <div class="harness-name">OpenCode</div>
            <div class="harness-tag">opencode auth</div>
          </div>
        </div>
        <div class="harness">
          <div class="harness-mark"><img src="/harnesses/cursor_light.svg" alt="" /></div>
          <div class="harness-meta">
            <div class="harness-name">Cursor</div>
            <div class="harness-tag">@cursor/sdk</div>
          </div>
        </div>
        <div class="harness">
          <div class="harness-mark"><img src="/harnesses/grok-dark.svg" alt="" /></div>
          <div class="harness-meta">
            <div class="harness-name">Grok CLI</div>
            <div class="harness-tag">grok login</div>
          </div>
        </div>
        <div class="harness">
          <div class="harness-mark"><img src="/harnesses/antigravity.svg" alt="" /></div>
          <div class="harness-meta">
            <div class="harness-name">Antigravity</div>
            <div class="harness-tag">Google sign-in</div>
          </div>
        </div>
      </div>

      <div class="harness-footer">
        <div class="harness-footer-item"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> No keys resold. No quota caps.</div>
        <div class="harness-footer-item"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Switch models mid-thread.</div>
        <div class="harness-footer-item"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> More harnesses shipping weekly.</div>
      </div>
    </div>
  </section>

  <section id="git" class="sec-git">
    <div class="container git-inner">
      <div
        class="git-visual"
        role="img"
        aria-label="Illustration of the T3 Code Git workflow: review a diff, commit and push changes, and open a pull request."
      >
        <div class="pr-card tile">
          <div class="pr-head">
            <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="2.2"/><circle cx="6" cy="18" r="2.2"/><circle cx="18" cy="6" r="2.2"/><path d="M6 8v8M18 8v5a3 3 0 01-3 3h-3M13 13l-2 3 2 3"/></svg>
            <span class="pr-title">Add marketing hero animation</span>
            <span class="pr-status">Ready</span>
          </div>
          <div class="pr-meta">
            <span><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="2.2"/><circle cx="6" cy="18" r="2.2"/><circle cx="18" cy="6" r="2.2"/><path d="M6 8v8M6 12a6 6 0 006-6h6"/></svg> feat/marketing-hero → main</span>
            <span>+142 −38</span>
            <span>3 commits</span>
          </div>
          <div class="pr-files">
            <div><code>apps/marketing/src/pages/index.astro</code> <span>+14 −2</span></div>
            <div><code>apps/marketing/src/layouts/Layout.astro</code> <span>+8 −0</span></div>
            <div><code>apps/marketing/public/hero.css</code> <span>+120 −36</span></div>
          </div>
          <div class="pr-foot">
            <span class="btn btn-ghost" style="font-size:12px;padding:6px 10px">View diff</span>
            <span class="btn btn-ghost" style="font-size:12px;padding:6px 12px">
              <svg width="12" height="12" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 007.86 10.93c.58.1.79-.25.79-.56v-2c-3.2.69-3.88-1.37-3.88-1.37-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.76 2.68 1.25 3.33.96.1-.75.4-1.25.72-1.54-2.55-.29-5.24-1.27-5.24-5.67 0-1.25.45-2.28 1.18-3.08-.12-.29-.51-1.45.11-3.02 0 0 .96-.31 3.15 1.18a10.96 10.96 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.57.23 2.73.11 3.02.74.8 1.18 1.83 1.18 3.08 0 4.41-2.7 5.38-5.27 5.66.41.36.78 1.06.78 2.13v3.16c0 .31.21.67.8.56A11.5 11.5 0 0023.5 12C23.5 5.65 18.35.5 12 .5z"/></svg>
              Open pull request
            </span>
          </div>
        </div>
        <div class="pr-trail">
          <div class="pr-trail-dot"></div>
          <div class="pr-trail-line"></div>
          <div class="pr-trail-dot"></div>
        </div>
        <div class="pr-button-shell">
          <span class="pr-button">
            <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="2.2"/><circle cx="6" cy="18" r="2.2"/><circle cx="18" cy="6" r="2.2"/><path d="M6 8v8M18 8v5a3 3 0 01-3 3h-3M13 13l-2 3 2 3"/></svg>
            Commit &amp; push
            <span id="pr-button-kbd" class="pr-button-kbd">⌘⏎</span>
          </span>
        </div>
      </div>

      <div class="git-copy">
        <div class="section-head" style="margin-bottom:0">
          <h2>One button to commit, push, and make a PR.</h2>
          <p>
            Every agent thread writes to its own branch. When it's good, one
            button opens the PR on GitHub with a generated title, body and
            changelog. No terminal dance required.
          </p>
          <ul class="checklist" style="margin-top:24px">
            <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Auto-generated PR titles &amp; bodies</li>
            <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Inline diff review before you push</li>
            <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Draft PRs, stack PRs, amend PRs</li>
            <li><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l5 5L20 6"/></svg> Works with your existing GitHub auth</li>
          </ul>
        </div>
      </div>
    </div>
  </section>

  <section id="open" class="sec-open">
    <div class="container">
      <div class="section-head open-head">
        <h2>If you don't like something, fork it.</h2>
      </div>

      <div class="open-grid">
        <div class="tile open-term">
          <div class="open-term-head">
            <span></span><span></span><span></span>
            <span class="open-term-title">~/code</span>
          </div>
          <div class="open-term-body">
            <div><span class="prompt">$</span> gh repo fork pingdotgg/t3code --clone</div>
            <div class="dim">✓ Cloned t3code into ./t3code</div>
            <div><span class="prompt">$</span> cd t3code &amp;&amp; vp install</div>
            <div class="dim">✓ 1 284 packages installed in 4.2s</div>
            <div><span class="prompt">$</span> vp run dev</div>
            <div class="dim">▲ T3 Code dev server → <span class="accent">http://localhost:4001</span></div>
            <div class="cursor"><span class="prompt">$</span><span class="caret"></span></div>
          </div>
        </div>

        <div class="tile open-pitch">
          <div class="open-pitch-copy">
            <ul class="open-pitch-list">
              <li>
                <span class="open-pitch-mark" aria-hidden="true"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></span>
                <span><strong>Change the UI.</strong> Restyle every surface to match your taste.</span>
              </li>
              <li>
                <span class="open-pitch-mark" aria-hidden="true"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></span>
                <span><strong>Add an agent.</strong> Wire in your own tools, models, and flows.</span>
              </li>
              <li>
                <span class="open-pitch-mark" aria-hidden="true"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg></span>
                <span><strong>Ship your own build.</strong> Self-host it or distribute it as your own.</span>
              </li>
            </ul>
          </div>

          <div class="open-pitch-footer">
            <div class="open-pitch-meta">
              <span>MIT licensed</span>
              <span aria-hidden="true">·</span>
              <span>{MARKETING_STATS.githubStars} stars</span>
            </div>

            <div class="open-pitch-actions">
              <a class="btn btn-primary" href="https://github.com/pingdotgg/t3code/fork" target="_blank" rel="noopener noreferrer">
                <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="6" cy="5" r="2.2"/><circle cx="18" cy="5" r="2.2"/><circle cx="12" cy="19" r="2.2"/><path d="M6 7.2v2A3 3 0 009 12.2h6A3 3 0 0018 9.2v-2M12 14v2.8"/></svg>
                Fork on GitHub
              </a>
              <a class="open-source-link" href={GITHUB_REPOSITORY_URL} target="_blank" rel="noopener noreferrer">
                Browse source
                <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 17L17 7M8 7h9v9"/></svg>
              </a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>

  <section id="download" class="sec-cta">
    <div class="container cta-inner">
      <h2 class="display cta-title">
        Your agents deserve better than a terminal.
      </h2>
      <p class="cta-sub">
        T3 Code is free, open source and fast. Install it, plug in the harness
        you already pay for, and let your agents get to work.
      </p>
      <div class="cta-actions">
        <a id="cta-download-btn" class="btn btn-primary btn-lg" href="https://github.com/pingdotgg/t3code/releases">
          <svg class="dl-icon dl-icon--apple" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 814 1000" aria-hidden="true"><path fill="currentColor" d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"/></svg>
          <svg class="dl-icon dl-icon--windows" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 88" aria-hidden="true"><path fill="currentColor" d="m0 12.402 35.687-4.86.016 34.423-35.67.203zm35.67 33.529.028 34.453L.028 75.48.026 45.7zm4.326-39.025L87.314 0v41.527l-47.318.376zm47.329 39.349-.011 41.34-47.318-6.678-.066-34.739z"/></svg>
          <svg class="dl-icon dl-icon--linux" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292.2.68.467 1.167.467.485 0 1.053-.267 1.398-.466.195-.135.445-.334.648-.467.156-.136.149-.267.279-.267.128.016.034.134-.147.332a8.097 8.097 0 01-.69.468zm-1.082-1.583V5.64c-.006-.02.013-.042.029-.05.074-.043.18-.027.26.004.063 0 .16.067.15.135-.006.049-.085.066-.135.066-.055 0-.092-.043-.141-.068-.052-.018-.146-.008-.163-.065zm-.551 0c-.02.058-.113.049-.166.066-.047.025-.086.068-.14.068-.05 0-.13-.02-.136-.068-.01-.066.088-.133.15-.133.08-.031.184-.047.259-.005.019.009.036.03.03.05v.02h.003z"/></svg>

          <span id="cta-download-label">Download for macOS</span>
        </a>
        <a class="btn btn-ghost btn-lg" href="/download">Other platforms</a>
      </div>
    </div>
  </section>
</Layout>

<script>
  import { fetchLatestRelease, RELEASES_URL, type ReleaseAsset } from "../lib/releases";
  import { startHomeMotion } from "../lib/homeMotion";

  type Platform = { os: "mac" | "win" | "linux"; label: string };

  function detectPlatform(): Platform | null {
    const ua = navigator.userAgent;
    if (/Win/i.test(ua)) return { os: "win", label: "Download for Windows" };
    if (/Mac/i.test(ua)) return { os: "mac", label: "Download for macOS" };
    if (/Linux/i.test(ua)) return { os: "linux", label: "Download for Linux" };
    return null;
  }

  // Browser architecture hints are unreliable; serve arm64 and let Intel users choose on /download.
  function pickAsset(assets: ReleaseAsset[], platform: Platform): string | null {
    if (platform.os === "win") {
      return assets.find((a) => a.name.endsWith("-x64.exe"))?.browser_download_url ?? null;
    }
    if (platform.os === "mac") {
      return assets.find((a) => a.name.endsWith("-arm64.dmg"))?.browser_download_url ?? null;
    }
    if (platform.os === "linux") {
      return assets.find((a) => a.name.endsWith("-x86_64.AppImage"))?.browser_download_url ?? null;
    }
    return null;
  }

  async function init() {
    const btn = document.getElementById("download-btn") as HTMLAnchorElement | null;
    const label = document.getElementById("download-label");
    const ctaBtn = document.getElementById("cta-download-btn") as HTMLAnchorElement | null;
    const ctaLabel = document.getElementById("cta-download-label");
    const kbd = document.getElementById("pr-button-kbd");

    const platform = detectPlatform();
    if (!platform) return;
    document.documentElement.dataset.platform = platform.os;
    if (label) label.textContent = platform.label;
    if (ctaLabel) ctaLabel.textContent = platform.label;
    if (kbd && platform.os !== "mac") kbd.textContent = "Ctrl ⏎";

    try {
      const release = await fetchLatestRelease();
      const url = pickAsset(release.assets ?? [], platform);
      if (url) {
        if (btn) {
          btn.href = url;
          btn.removeAttribute("target");
          btn.removeAttribute("rel");
        }
        if (ctaBtn) {
          ctaBtn.href = url;
          ctaBtn.removeAttribute("target");
          ctaBtn.removeAttribute("rel");
        }
      }
    } catch {
      if (btn) btn.href = RELEASES_URL;
      if (ctaBtn) ctaBtn.href = RELEASES_URL;
    }
  }

  init();

  const hero = document.querySelector<HTMLElement>(".hero");
  const field = document.querySelector<HTMLElement>(".hero-float");
  const tracks = Array.from(document.querySelectorAll<HTMLElement>(".endorsement-track"));
  const caret = document.querySelector<HTMLElement>(".caret");
  if (hero && field && caret) {
    startHomeMotion({ hero, field, tracks, caret });
  }
</script>

<style>
  section {
    position: relative;
    padding: 80px 0;
    border-top: 1px solid var(--border);
  }

  .section-head {
    margin-bottom: 40px;
    max-width: 720px;
  }

  .section-head .eyebrow {
    margin-bottom: 14px;
    display: block;
  }

  .section-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 18px;
  }

  .section-head p {
    color: var(--fg-muted);
    font-size: 18px;
    max-width: 620px;
    letter-spacing: -0.005em;
  }

  .checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg-muted);
    font-size: 15px;
  }

  .checklist li svg {
    color: var(--ok);
    flex-shrink: 0;
  }

  .hero {
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
    border-top: 0;
  }

  .hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  }

  .hero-inner {
    position: relative;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(38px, 5.6vw, 76px);
    margin: 48px auto 22px;
    max-width: 20ch;
    text-wrap: balance;
  }
  /* Inline boxes ignore transforms, so each rising line needs its own block. */
  .hero-title span { display: inline-block; }

  .hero-sub {
    color: var(--fg-muted);
    font-size: clamp(16px, 1.4vw, 19px);
    max-width: 720px;
    margin: 0 auto 36px;
    letter-spacing: -0.005em;
    line-height: 1.55;
    text-wrap: balance;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
  }

  .hero-source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.18s ease;
  }

  .hero-source-link:hover {
    color: var(--fg);
  }

  .hero-source-mark {
    flex-shrink: 0;
  }

  .hero-source-arrow {
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .hero-source-link:hover .hero-source-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
  }

  .hero-mobile-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fg-muted);
    font-size: 13px;
    letter-spacing: -0.005em;
  }

  .hero-mobile-line a {
    color: var(--fg-muted);
    text-decoration: underline;
    text-decoration-color: rgba(163, 163, 163, 0.4);
    text-underline-offset: 3px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
  }

  .hero-mobile-line a:hover {
    color: var(--fg);
    text-decoration-color: var(--fg);
  }

  .dl-icon {
    display: none;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  :global([data-platform="mac"]) .dl-icon--apple { display: block; }
  :global([data-platform="win"]) .dl-icon--windows { display: block; }
  :global([data-platform="linux"]) .dl-icon--linux { display: block; }
  :global(html:not([data-platform])) .dl-icon--apple { display: block; }

  /* Marks enter once, then drift while visible and lean toward the pointer. */
  .hero-float {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    --px: 0px;
    --py: 0px;
  }

  .hero-float-mark {
    position: absolute;
    left: calc(50% + var(--x));
    top: var(--y);
    width: var(--s);
    height: var(--s);
    margin-left: calc(var(--s) / -2);
    translate: calc(var(--px) * var(--depth)) calc(var(--py) * var(--depth));
    transition: translate var(--parallax-duration, 0s) cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .hero-float-card {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 25%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.65);
    animation: mark-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) both;
  }

  .hero-float-card img {
    width: 56%;
    height: 56%;
    display: block;
    object-fit: contain;
  }

  @keyframes mark-in {
    from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--rot) + 24deg)) scale(0.6); }
    to { opacity: 1; transform: translate(0, 0) rotate(var(--rot)) scale(1); }
  }

  .hf-opencode    { --x: max(-300px, -19vw); --y: 20px; --s: 64px; --rot: 6deg; --depth: 0.6; --d: 620ms; --fx: -40px; --fy: -80px; }
  .hf-antigravity { --x: min(300px, 19vw); --y: 20px; --s: 64px; --rot: -5deg; --depth: 0.6; --d: 580ms; --fx: 40px; --fy: -80px; }
  .hf-claude   { --x: max(-560px, -38vw); --y: 128px; --s: 96px; --rot: -8deg; --depth: 1.2; --d: 380ms; --fx: -160px; --fy: -40px; }
  .hf-codex    { --x: min(560px, 38vw); --y: 128px; --s: 96px; --rot: 7deg; --depth: 1.2; --d: 460ms; --fx: 160px; --fy: -40px; }
  .hf-grok     { --x: max(-440px, -30vw); --y: 440px; --s: 80px; --rot: 4deg; --depth: 0.9; --d: 540ms; --fx: -120px; --fy: 80px; }
  .hf-cursor   { --x: min(440px, 30vw); --y: 440px; --s: 80px; --rot: -5deg; --depth: 0.9; --d: 700ms; --fx: 120px; --fy: 80px; }

  @media (prefers-reduced-motion: reduce) {
    .hero-float-card { animation: none; transform: rotate(var(--rot)); }
    .hero-float-mark { translate: none; transition: none; }
  }

  @media (max-width: 1180px) {
    .hf-claude, .hf-codex { --s: 80px; }
    .hf-grok, .hf-cursor { --s: 68px; --y: 420px; }
  }

  @media (max-width: 820px) {
    .hero {
      padding-top: 132px;
      padding-bottom: 32px;
    }

    .hero-title {
      font-size: clamp(32px, 9.2vw, 56px);
      margin-top: 14px;
    }

    .hero-actions {
      margin-bottom: 40px;
    }

    /* Four above the headline, two beside the CTA. Keeps the copy clear. */
    .hf-claude      { --x: -37vw; --y: 44px; --s: 64px; --rot: -10deg; }
    .hf-opencode    { --x: -12vw; --y: 52px; --s: 56px; --rot: -4deg; }
    .hf-antigravity { --x: 12vw; --y: 52px; --s: 56px; --rot: 5deg; }
    .hf-codex       { --x: 37vw; --y: 44px; --s: 64px; --rot: 8deg; }
    .hf-grok     { --x: -36vw; --y: 474px; --s: 64px; --rot: -6deg; }
    .hf-cursor   { --x: 36vw; --y: 474px; --s: 64px; --rot: 7deg; }
  }

  @media (max-width: 340px) {
    .hf-opencode, .hf-antigravity, .hf-grok, .hf-cursor { --s: 48px; }
    .hf-grok, .hf-cursor { --y: 580px; }
  }

  .hero-preview {
    max-width: 1180px;
    margin: 0 auto;
  }

  .hero-screenshot-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2880 / 1800;
    border-radius: 12px;
    background: #000;
    /* The screenshot is true black like the page, so this edge defines the window. */
    box-shadow: 0 0 0 1px var(--border-strong);
  }

  .hero-screenshot-frame picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-screenshot-frame img {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    margin: -2px;
    object-fit: cover;
    object-position: center top;
  }

  .harness-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .harness {
    padding: 22px 20px;
    display: flex; align-items: center; gap: 14px;
    border-right: 1px solid var(--border);
    transition: background 0.2s ease;
  }
  .harness:last-child { border-right: 0; }
  .harness:hover { background: rgba(255, 255, 255, 0.025); }

  .harness-mark {
    color: var(--fg); opacity: 0.95;
    flex-shrink: 0; width: 28px; height: 28px;
    display: grid; place-items: center;
  }
  .harness-mark img { width: 22px; height: 22px; object-fit: contain; }

  .harness-meta { flex: 1; min-width: 0; }
  .harness-name {
    font-size: 14px; font-weight: 500;
    letter-spacing: -0.01em; margin-bottom: 2px;
  }
  .harness-tag {
    font-family: var(--font-mono);
    font-size: 11px; color: var(--fg-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .harness-footer {
    display: flex; gap: 24px; flex-wrap: wrap;
    margin-top: 28px; padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--fg-muted);
  }
  .harness-footer-item {
    display: inline-flex; gap: 8px; align-items: center;
    color: var(--fg-muted);
  }
  .harness-footer-item svg { color: var(--ok); }

  .sec-endorsements {
    overflow: hidden;
  }

  .endorsements-head {
    max-width: 720px;
    margin-bottom: 40px;
  }

  .endorsements-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 18px;
  }

  .endorsements-count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .endorsements-head p {
    color: var(--fg-muted);
    font-size: 18px;
    max-width: 620px;
    letter-spacing: -0.005em;
  }

  /* Two marquee rows scrolling in opposite directions. Each track holds the
     row twice so a -50% translate loops seamlessly. The animation only runs
     while a track is on screen (see homeMotion), and pauses on hover/focus. */
  .endorsement-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .endorsement-carousel--mobile {
    display: none;
  }

  .endorsement-carousel::before,
  .endorsement-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: max(48px, calc((100vw - 1240px) / 2 + 56px));
    pointer-events: none;
  }

  .endorsement-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
  }

  .endorsement-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg), transparent);
  }

  .endorsement-row {
    overflow: hidden;
  }

  .endorsement-track {
    width: max-content;
    display: flex;
    animation: endorsementMarquee 76s linear infinite;
    animation-play-state: var(--home-motion-state, paused);
    will-change: transform;
  }

  .endorsement-track-group {
    display: flex;
    gap: 12px;
    padding-right: 12px;
  }

  .endorsement-row.is-reverse .endorsement-track {
    animation-direction: reverse;
    animation-duration: 84s;
  }

  .endorsement-carousel:hover .endorsement-track,
  .endorsement-carousel:focus-within .endorsement-track {
    animation-play-state: paused;
  }

  @media (prefers-reduced-motion: reduce) {
    .endorsement-track { animation: none; }
  }

  @keyframes endorsementMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .endorsement-card {
    position: relative;
    width: clamp(264px, 22vw, 308px);
    height: 132px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elev);
    transition:
      border-color 0.18s ease,
      background 0.18s ease;
  }

  .endorsement-card:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
  }

  .endorsement-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .endorsement-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .endorsement-handle {
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .endorsement-card p {
    color: var(--fg);
    font-size: 13.5px;
    line-height: 1.4;
    letter-spacing: -0.003em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .git-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px; align-items: center;
  }

  .git-visual {
    position: relative;
    display: flex; flex-direction: column;
    align-items: stretch; gap: 20px;
  }

  .git-visual .btn {
    line-height: normal;
    pointer-events: none;
  }

  .pr-card { padding: 20px; }
  .pr-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
  }
  .pr-head svg { color: var(--ok); }
  .pr-title { font-weight: 500; font-size: 15px; flex: 1; }
  .pr-status { font-size: 12px; font-weight: 500; color: var(--ok); }
  .pr-meta {
    display: flex; gap: 14px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--fg-muted); margin-bottom: 14px; flex-wrap: wrap;
  }
  .pr-meta span { display: inline-flex; align-items: center; gap: 5px; }
  .pr-files {
    border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; margin-bottom: 16px;
  }
  .pr-files > div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 12px; font-family: var(--font-mono);
    font-size: 11px; border-top: 1px solid var(--border);
    color: var(--fg-muted);
  }
  .pr-files > div:first-child { border-top: 0; }
  .pr-files code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pr-files span { flex: none; color: var(--fg-dim); }
  .pr-foot { display: flex; justify-content: flex-end; gap: 8px; }

  .pr-trail {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0; margin: -4px 0;
  }
  .pr-trail-dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: var(--border-strong);
  }
  .pr-trail-line {
    width: 1px; height: 28px;
    background: var(--border-strong);
  }

  .pr-button-shell { display: flex; justify-content: center; }
  .pr-button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    background: var(--fg); color: #000;
    font-weight: 600; font-size: 13px;
    line-height: normal;
    border-radius: 10px;
  }
  .pr-button-kbd {
    font-family: var(--font-mono); font-size: 10px;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px; border-radius: 4px;
  }

  .open-head {
    text-align: center;
    margin: 0 auto 40px;
  }

  .open-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
  }

  .open-term { padding: 0; overflow: hidden; }
  .open-term-head {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
  }
  .open-term-head span {
    width: 10px; height: 10px; border-radius: 999px;
    background: #262626; display: block;
  }
  .open-term-title {
    margin-left: 10px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--fg-dim); flex: 1; text-align: center;
    background: transparent !important;
    width: auto !important; height: auto !important;
    border-radius: 0 !important;
  }

  .open-term-body {
    padding: 20px 22px;
    font-family: var(--font-mono); font-size: 13px;
    line-height: 1.7; color: var(--fg);
  }
  .open-term-body > div {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .open-term-body .prompt { color: var(--accent); margin-right: 8px; }
  .open-term-body .dim { color: var(--fg-dim); }
  .open-term-body .accent { color: var(--accent); }
  .open-term-body .cursor { display: flex; align-items: center; }
  .caret {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--fg);
    margin-left: 4px;
    animation: blink 1s steps(2) infinite;
    animation-play-state: var(--home-motion-state, paused);
  }

  @keyframes blink {
    50% { opacity: 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    .caret { animation: none; }
  }

  .open-pitch {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
  }

  .open-pitch-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .open-pitch-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--fg-muted);
  }

  .open-pitch-list strong {
    color: var(--fg);
    font-weight: 600;
  }

  .open-pitch-mark {
    flex: none;
    margin-top: 5px;
    color: var(--ok);
  }

  .open-pitch-footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .open-pitch-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 11px;
  }

  .open-pitch-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .open-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fg-muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.18s ease;
  }

  .open-source-link:hover {
    color: var(--fg);
  }

  .sec-cta {
    text-align: center;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
  }
  .cta-inner { position: relative; }
  .cta-title {
    font-size: clamp(40px, 6vw, 72px);
  }
  .open-head h2,
  .cta-title {
    text-wrap: balance;
  }
  .cta-sub {
    color: var(--fg-muted);
    font-size: 18px;
    max-width: 560px;
    margin: 20px auto 36px;
    line-height: 1.55;
    letter-spacing: -0.005em;
  }
  .cta-actions {
    display: flex; gap: 10px;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 24px;
  }

  @media (max-width: 960px) {
    .hero-preview {
      width: min(860px, calc(100vw - 24px));
      margin-left: 50%;
      transform: translateX(-50%);
    }
    .harness-grid { grid-template-columns: 1fr 1fr; }
    .harness { border-right: 0; border-bottom: 1px solid var(--border); }
    .harness:nth-child(odd) { border-right: 1px solid var(--border); }
    .harness:nth-child(even) { border-right: 0; }
    .git-inner { grid-template-columns: 1fr; gap: 40px; }
    .open-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 820px) {
    section { padding: 56px 0; }
    .sec-cta { padding: 80px 0; }
    .container { padding-left: 20px; padding-right: 20px; }
    .endorsements-head {
      margin-bottom: 40px;
    }
    .endorsement-carousel--desktop {
      display: none;
    }
    .endorsement-carousel--mobile {
      display: flex;
    }
    .endorsement-carousel::before,
    .endorsement-carousel::after {
      width: 28px;
    }
    .endorsement-track {
      animation-duration: 68s;
    }
    .endorsement-row.is-reverse .endorsement-track {
      animation-duration: 76s;
    }
    .endorsement-card {
      width: 268px;
      padding: 14px;
    }
    .endorsement-card p {
      font-size: 13px;
    }
    .open-term-body {
      padding: 16px;
      font-size: 11px;
    }
  }
</style>