/* Home page: real Frontmost AI screens, from the hero to the platform rows. Loads after styles.css and uses its tokens.
   The screens are images of the app with Daytona's data from Oct 17, 2026, each labeled as an example. */

/* ---------- Hero: copy over the yellow, the real app rising past its bottom edge ---------- */
.home-hero { overflow: visible; padding-bottom: 0; }
.home-hero::before { border-radius: 0 0 40px 40px; -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 75%); }
.hero-stack { position: relative; display: grid; justify-items: center; text-align: center; }
.hero-stack .hero-copy { display: grid; justify-items: center; max-width: 980px; }
/* The category in one pill. The AI apps' marks are in the headline now (founder, November 11, 2026). */
.home-hero .category { order: 0; text-wrap: wrap; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.55); font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); letter-spacing: -0.005em; }
/* Headline: one fixed line, then the seven AI apps in turn. Every app sits in the same grid cell, so the slot is as wide
   as the longest name and never changes size. The app before leaves upward while the next arrives from below. */
.home-hero .hero-title { display: grid; justify-items: center; margin: 0; font-weight: 700; font-size: clamp(42px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.hero-apps { display: grid; justify-items: center; align-items: center; height: 1.3em; margin-top: .04em; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.hero-app { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .2em; white-space: nowrap; line-height: 1.3; opacity: 0; transform: translateY(85%); filter: blur(4px); }
.hero-app[data-s="on"], .hero-app[data-s="out"] { transition: transform .6s var(--ease-out), opacity .4s var(--ease-in-out), filter .4s var(--ease-out); }
.hero-app[data-s="on"] { opacity: 1; transform: none; filter: none; }
.hero-app[data-s="out"] { opacity: 0; transform: translateY(-85%); filter: blur(4px); }
.hero-app-mark { flex: none; display: grid; place-items: center; width: .86em; height: .86em; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-1); }
.hero-app-mark img { width: 58%; height: 58%; }
/* Each sentence of the promise stays whole, so a line break falls between sentences. */
.home-hero .hero-sub { max-width: 30em; text-wrap: balance; }
.hero-sub .beat { display: inline-block; }
.home-hero .check-form { width: 100%; text-align: left; }
/* The second way in, under the trial form: a plain ink link to the product demo, never a second button. */
.hero-demo { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(17,17,17,.35); transition: text-decoration-color .2s var(--ease-out); }
.hero-demo:hover { text-decoration-color: var(--ink); }
.hero-demo .arrow { transition: transform .35s var(--ease-out); }
.hero-demo:hover .arrow { transform: translateX(3px); }
.hero-demo:focus-visible { outline: none; box-shadow: inset 0 -2px 0 0 currentColor; }
.hero-shot { position: relative; width: 100%; margin: 64px 0 -300px; }
.hero-frame { position: relative; max-height: 660px; overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-3); }
.hero-frame img { display: block; width: 100%; height: auto; }
.hero-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(rgba(255,255,255,0), var(--paper)); pointer-events: none; }

/* The hero's screens: one still frame, the views stacked in one grid cell. Every 5 seconds the next view fades in and
   settles; the others wait at zero opacity. Each view is the whole app, so the sidebar's own highlight names the screen
   and no other indicator is needed (founder chose the still frame, October 20, 2026). */
.hero-frame { display: grid; }
/* A short fade with a small blur: two whole screens at half strength read as a smudge, and the blur bridges them. */
.hero-view { grid-area: 1 / 1; opacity: 0; filter: blur(4px); transform: translateY(6px); transition: opacity .45s var(--ease-in-out), filter .45s var(--ease-out), transform .6s var(--ease-out); }
.hero-view[data-on] { opacity: 1; filter: none; transform: none; }
.hero-view img { display: block; width: 100%; height: auto; }
/* One pause button inside the frame, on its white fade at the lower right. */
.hero-pause { position: absolute; z-index: 2; right: 22px; bottom: 22px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: var(--chalk); color: var(--ink); cursor: pointer; transition: background-color .2s ease; }
.hero-pause:hover { background: var(--chalk-2); }
.hero-pause:focus-visible { outline: none; box-shadow: inset 0 -2px 0 0 currentColor; }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: inline; }
@media (prefers-reduced-motion: reduce) {
  .hero-view { transition: opacity .2s linear; transform: none; filter: none; }
}

.hero-shot figcaption { margin-top: 16px; text-align: left; font: 400 13px/1.4 "Geist Mono", monospace; color: var(--ink-3); }

/* The hero screenshot hangs 300px below the yellow hero (96px on phones). The dark section starts below it, after a
   white gap. */
.home-hero + .mcp-band { margin-top: 356px; }

/* ---------- Platform ---------- */
/* One row per job in the app: copy beside a real screen, sides alternating. */
.ft-head { display: grid; justify-items: center; gap: 22px; max-width: 1100px; margin: 0 auto 112px; text-align: center; }
.ft-pill { margin: 0; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-2); font: 500 12.5px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ft-head h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -0.045em; }
.ft-line { display: block; }
.ft-rows { display: grid; gap: 136px; }
.ft-row { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: center; }
.ft-row.flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.ft-row.flip .ft-copy { order: 2; }
.ft-copy .ft-label { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 600 15px/1 "Geist", sans-serif; letter-spacing: -0.01em; color: var(--ink); }
.ft-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #FAFCE6; box-shadow: inset 0 0 0 1px rgba(17,17,17,.06); }
.ft-ico svg { width: 22px; height: 22px; }
.ft-copy h3 { margin: 0; font-size: 40px; line-height: 1.06; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.ft-copy p { margin: 18px 0 0; max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.ft-copy ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.ft-copy li { position: relative; padding-left: 32px; }
.ft-copy li b { font-weight: 600; color: var(--ink); }
.ft-check { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); }
.ft-check svg { width: 12px; height: 12px; }
/* The screen runs off the stage's far edge so its text stays readable. */
.ft-stage { overflow: hidden; padding: 40px 0 40px 40px; border-radius: 24px; background-color: #FAFCE6; background-image: radial-gradient(rgba(17,17,17,.10) 1px, transparent 1.2px); background-size: 18px 18px; box-shadow: inset 0 0 0 1px rgba(17,17,17,.04); }
.ft-shot { display: block; width: 128%; overflow: hidden; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgba(17,17,17,.07), var(--shadow-3); }
.ft-shot.ft-shot-fit { width: 108%; }
.ft-shot img { width: 100%; height: auto; }

/* ---------- MCP band ---------- */
.mcp-inner { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 48px 56px; align-items: center; }
/* The heading scales with its column, so it always sets in four lines and the copy block stands as tall as the terminal. */
.mcp-band h2 { font-size: clamp(34px, 10.6cqw, 54px); line-height: 1.1; }
/* Heading, line, and button are one block with fixed gaps. The block centers on the terminal. */
.mcp-copy { display: flex; flex-direction: column; align-items: flex-start; container-type: inline-size; }
.mcp-copy .lede { margin: 24px 0 0; font-size: 20px; }
.mcp-copy .button { margin-top: 40px; }
/* The terminal session and the install command read as one unit: an agent at work, then how to get it. */
.mcp-live { min-width: 0; align-self: center; font: 400 13px/1.6 "Geist Mono", monospace; }
.mcp-live p { margin: 0; }
.mcp-term { background: #191918; border: 1px solid rgba(255,255,255,.10); border-radius: 16px 16px 4px 4px; overflow: hidden; }
.mt-bar { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.10); color: #C9C9C2; font-size: 12px; }
.mt-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 20px; }
.mt-dim { color: #8C8C84; }
.mt-ln { transition: opacity .32s var(--ease-out), filter .32s var(--ease-out), transform .32s var(--ease-out); }
.mt-ln.off { opacity: 0; filter: blur(6px); transform: translateY(4px); transition: none; }
.mt-prompt { color: var(--paper); }
.mt-prompt .mt-rest { opacity: 0; }
.mt-call { display: grid; grid-template-columns: 1.4ch minmax(0, 1fr); column-gap: 10px; }
.mt-mark { color: var(--yellow); }
.mt-name { color: var(--paper); }
.mt-res { grid-column: 2; color: #C9C9C2; overflow-wrap: anywhere; }
.mt-res br { display: block; content: ""; margin-top: 6px; }
.mt-big { display: block; margin: 2px 0; font: 600 34px/1.15 Geist, sans-serif; letter-spacing: -0.04em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.mt-caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: var(--yellow); animation: mt-blink 1.1s steps(1) infinite; }
@keyframes mt-blink { 50% { opacity: 0; } }
.mcp-band .mcp-install { max-width: none; height: auto; min-height: 52px; flex-wrap: nowrap; margin-top: 4px; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid rgba(255,255,255,.10); border-radius: 4px 4px 16px 16px; background: #212120; }
.mcp-band .mcp-install code { flex: 1 1 0; color: var(--paper); font-size: 13px; }
/* Copy and Check share one cell and swap in place, so the button never changes size. */
.mcp-copy-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #C9C9C2; cursor: pointer; transition: background-color .15s, color .15s, transform .12s var(--ease-out); }
.mcp-copy-btn:hover { background: rgba(255,255,255,.08); color: var(--paper); }
.mcp-copy-btn:active { transform: scale(.92); }
.mcp-copy-btn svg { grid-area: 1 / 1; transition: opacity .18s, transform .18s var(--ease-out), filter .18s; }
.mcp-copy-btn .i-check { opacity: 0; transform: scale(.6); filter: blur(3px); color: var(--yellow); }
.mcp-copy-btn[data-copied] .i-copy { opacity: 0; transform: scale(.6); filter: blur(3px); }
.mcp-copy-btn[data-copied] .i-check { opacity: 1; transform: none; filter: none; }
@media (max-width: 980px) {
  .mcp-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mcp-band h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; }
  .mcp-copy .lede { margin-top: 20px; font-size: 19px; }
  .mcp-copy .button { margin-top: 32px; }
}
@media (max-width: 640px) {
  .mcp-band .mcp-install > .mt-dim { display: none; }
  .mcp-band .mcp-install code { white-space: normal; overflow: visible; overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-caret { animation: none; }
  .mt-ln, .mcp-copy-btn, .mcp-copy-btn svg { transition: none; }
}
.mcp-kicker { margin: 0 0 14px; font: 500 12px/1.4 "Geist Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: #C9C9C2; }


/* ---------- Top AI Mentions ---------- */
.lb { margin-top: 40px; max-width: 760px; }
.lb-meta { margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.lb-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); min-height: 290px; }
.lb-rows li a { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(80px, 1fr) 132px; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background-color .2s ease; }
.lb-rows li a:hover { background: var(--chalk); }
.lb-rows li a:focus-visible { outline: none; box-shadow: inset 0 -2px 0 0 currentColor; }
.lb-rank { font: 500 12px "Geist Mono", monospace; color: var(--ink-4); }
.lb-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-name img, .lb-name .lb-init { flex: none; width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: var(--chalk); }
.lb-init { display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.lb-bar { height: 8px; border-radius: 4px; background: var(--chalk-2); position: relative; overflow: hidden; }
.lb-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--ink); transform-origin: left; }
.lb-val { white-space: nowrap; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-val b { font-weight: 600; }
.lb-val span { color: var(--ink-3); }
.lb-state { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-3); }
.lb-state[data-kind="error"] { color: var(--ink-2); }
/* Waiting: five rows in the real layout (rank, logo and name, bar, value) breathe until the names arrive. No numbers. */
.lb-wait { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(80px, 1fr) 132px; align-items: center; gap: 14px; height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.lb-wait span { height: 10px; border-radius: 5px; background: var(--chalk-2); animation: lb-breathe 1.4s var(--ease-in-out) infinite; }
.lb-wait span:nth-child(1) { width: 12px; }
.lb-wait span:nth-child(2) { width: 46%; height: 14px; }
.lb-wait span:nth-child(4) { width: 70%; justify-self: end; }
.lb-wait:nth-child(2) span { animation-delay: .12s; }
.lb-wait:nth-child(3) span { animation-delay: .24s; }
.lb-wait:nth-child(4) span { animation-delay: .36s; }
.lb-wait:nth-child(5) span { animation-delay: .48s; }
@keyframes lb-breathe { 50% { opacity: .45; } }
/* Arrival: each real row rises in 60ms after the one above it, and its bar grows from zero. */
.lb-rows li a { height: 52px; padding-top: 0; padding-bottom: 0; }
.lb-in li { animation: lb-rise .42s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.lb-in .lb-bar::after { animation: lb-grow .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + .12s); }
@keyframes lb-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes lb-grow { from { transform: scaleX(0); } }
.lb-more { display: inline-block; margin-top: 20px; color: var(--ink); font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; }


.close .form-note { color: #A3A39B; }

@media (max-width: 1080px) {
  .ft-rows { gap: 96px; }
  .ft-row, .ft-row.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ft-row.flip .ft-copy { order: 0; }
  .ft-copy { max-width: 640px; }
}
/* Phones: headline, promise, then the field, in reading order. The hero keeps the laptop screens, whole and small:
   buyers use the app on a laptop, so that is what a phone shows (founder, October 20, 2026). */
@media (max-width: 720px) {
  .home-hero .hero-copy { display: grid; }
  /* The lead line stays on one line, so the headline is always two lines. */
  .home-hero .hero-title { order: 1; font-size: clamp(28px, 9.2vw, 42px); }
  .home-hero .hero-lead { white-space: nowrap; }
  .home-hero .hero-sub { order: 1; margin-top: 16px; }
  .home-hero .check-form { order: 3; margin-top: 24px; }
  .home-hero .hero-demo { order: 4; justify-self: center; margin-top: 12px; }
  .home-hero .category { font-size: 13.5px; justify-self: center; }
  .hero-shot { margin: 36px 0 -96px; }
  .hero-frame { border-radius: 10px; }
  .hero-frame::after { height: 40px; }
  .hero-pause { right: 8px; bottom: 8px; width: 28px; height: 28px; }
  .hero-shot figcaption { justify-self: stretch; }
  .home-hero + .mcp-band { margin-top: 132px; }
  .ft-head { margin-bottom: 64px; gap: 18px; }
  .ft-line { display: inline; }
  .ft-rows { gap: 80px; }
  .ft-row, .ft-row.flip { gap: 28px; }
  .ft-copy h3 { font-size: 30px; }
  .ft-copy p { font-size: 17px; }
  .ft-copy ul { font-size: 16px; }
  .ft-stage { margin-right: calc(var(--gutter) * -1); padding: 20px 0 20px 20px; border-radius: 20px 0 0 20px; }
  .ft-shot, .ft-shot.ft-shot-fit { width: auto; border-radius: 12px 0 0 12px; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
  .lb-rows li a, .lb-wait { grid-template-columns: 22px minmax(0, 1fr) 118px; }
  .lb-wait span:nth-child(3) { display: none; }
  .lb-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-wait span, .lb-in li, .lb-in .lb-bar::after { animation: none; }
}
