/* ── Restyle (proposal, 2026-11-19) ─────────────────────────────────────────
   Loaded last, so the whole look change is this one file and can be judged, tuned
   or dropped without touching the rest. Every section, demo and script stays.

   What it changes, from the research on the leading developer-tool sites (Cursor,
   Zed, Devin Desktop): confidence comes from the type and the grounds, not from
   effects.
   - Headlines in a display serif at a regular weight, not 650–700 Geist: Zed sets
     its headline in a light serif, Cursor and Devin at weight 400.
   - Grounds tinted toward Uniloom's green, not neutral grey: Cursor's black is warm.
   - The memory graph behind the page is calmer, so the product reads first.
   - Light theme: the screenshots are dark captures, so on a light page they sit in a
     dark bezel instead of as bare black blocks; a story step waiting its turn is
     dimmed less, so it no longer reads as broken on white. */

/* Headlines: the display serif, regular weight, a little larger to carry it. */
.hero h1,
h2.big,
h2.mid,
.v2h {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.012em;
}
.hero h1 { font-size: clamp(44px, 5.2vw, 70px); line-height: 1; }
/* The second line keeps the mark's colour (organic identity), in the serif's italic. */
.hero h1 .grad { font-style: italic; }
h2.big { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; }
h2.mid { font-size: clamp(32px, 3.8vw, 44px); line-height: 1.04; }
.v2h { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; }

/* The graph is atmosphere: calmer, so a sentence or a screen always wins. */
#graph { opacity: .32; }
:root[data-theme="light"] #graph { opacity: .2; }

/* Light theme: dark captures in a dark bezel, like a device on a desk. */
:root[data-theme="light"] .shot,
:root[data-theme="light"] .shot-hero {
  background: rgb(18 21 19);
  padding: 6px;
  border-radius: 16px;
  box-shadow: 0 30px 80px -34px rgb(18 21 19 / .45), 0 0 0 1px rgb(18 21 19 / .08);
}
:root[data-theme="light"] .shot img,
:root[data-theme="light"] .shot-hero img { border-radius: 11px; }
:root[data-theme="light"] .step { opacity: .6; }
:root[data-theme="light"] .step.now,
:root[data-theme="light"] .step.seen { opacity: 1; }

/* The live window: the tour's app, scaled to fit, with a quiet hint that it is real. */
.live-app { position: relative; overflow: hidden; padding: 0 !important; aspect-ratio: 1320 / 860; }
.live-app iframe {
  position: absolute; top: 0; left: 0; width: 1320px; height: 860px; border: 0;
  transform-origin: 0 0; background: #0a0c10;
}
.live-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: rgb(0 0 0 / .55); color: rgb(237 237 239); backdrop-filter: blur(6px);
}

/* ── The world hero ────────────────────────────────────────────────────────
   One deliberate look in both themes: Uniloom's greens, Uniloom Bot in Mint's colours. */
header.hero.hero-world { position: relative; z-index: 1; padding: 0; text-align: left; background: #2b4d3f; color: #f5f3ec; overflow: hidden; }
.world { position: relative; height: clamp(360px, 52vw, 640px); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .sky { fill: #dfeee2; }
.scene .clouds ellipse { fill: #f5f3ec; opacity: .85; }
.scene .hill.far { fill: #93b29e; }
.scene .hill.mid { fill: #5c8a6a; }
.scene .hill.near { fill: #2b4d3f; }
.scene .trees path { fill: #3f6b55; }
.scene .shadow { fill: #163d34; opacity: .28; }
.scene .tile { fill: #f5f3ec; stroke: #163d34; stroke-opacity: .12; }
.scene .stone use { color: #1b1b1f; }
.scene .stone { animation: bob 6s ease-in-out infinite; }
.scene .stones > g:nth-child(2n) .stone { animation-delay: -3s; }
.scene .b-body { fill: #3f6b55; }
.scene .b-face { fill: #f5f3ec; }
.scene .b-leaf { fill: #c9e3cd; transform-origin: 27px 19px; animation: sway 5s ease-in-out infinite; }
.scene .b-eyes { fill: #3f6b55; transition: transform .25s ease-out; }
.scene .drift { fill: #c9e3cd; stroke: #3f6b55; stroke-width: 1.2; offset-rotate: auto; animation: drift 9s linear infinite; opacity: 0; }
.scene .d1 { offset-path: path("M250 520C400 380 620 360 790 430"); }
.scene .d2 { offset-path: path("M420 455C540 340 680 340 790 420"); animation-delay: -1.8s; }
.scene .d3 { offset-path: path("M1185 450C1060 340 920 340 810 420"); animation-delay: -3.6s; }
.scene .d4 { offset-path: path("M1350 515C1180 380 960 360 810 430"); animation-delay: -5.4s; }
.scene .d5 { offset-path: path("M1500 585C1300 420 980 380 815 440"); animation-delay: -7.2s; }
@keyframes drift { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .scene * { animation: none !important; } .scene .drift { opacity: 0; } }

.world-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; padding-block: 8px 72px; }
.world-copy h1 { color: #f5f3ec; margin: 14px 0 0; font-size: clamp(46px, 6vw, 84px); }
.world-copy h1 .grad { color: #c9e3cd; -webkit-text-fill-color: #c9e3cd; }
.world-copy .lede { color: rgb(245 243 236 / .82); font-size: 19px; margin: 0 0 22px; }
.world-copy .lede strong { color: #f5f3ec; }
.world-copy .rel { color: rgb(245 243 236 / .7); }
.world-copy .dl-meta, .world-copy .dl-cli span { color: rgb(245 243 236 / .6); }
.world-copy .dl-meta a { color: rgb(245 243 236 / .8); }
.world-copy .btn-ghost { color: #f5f3ec; border-color: rgb(245 243 236 / .35); }
.world-copy .dl-btn { background: #c9e3cd; color: #163d34; }
.world-copy .cmd { background: rgb(0 0 0 / .22); border-color: rgb(245 243 236 / .14); color: #f5f3ec; }
.with { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; color: rgb(245 243 236 / .7); }
.with span { display: inline-flex; gap: 6px; }
.with svg { width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: #f5f3ec; color: #1b1b1f; }
@media (max-width: 900px) { .world-copy { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* The product slides up over the world on a light sheet, as Clay's content card does. */
.sheet { background: rgb(var(--ground)); color: rgb(var(--text)); border-radius: 36px 36px 0 0; padding-block: 56px 24px; }

/* The hero is one look in both themes: its chip and its second button carry their own
   colours, or the light theme paints them white with white words on them. */
.world-copy .rel { background: rgb(0 0 0 / .2); border-color: rgb(245 243 236 / .16); color: rgb(245 243 236 / .75); }
.world-copy .rel * { color: inherit; }
.world-copy .btn-ghost { background: transparent; color: #f5f3ec; border: 1px solid rgb(245 243 236 / .35); }
.world-copy .btn-ghost:hover { background: rgb(245 243 236 / .08); color: #f5f3ec; }
.world-copy .cmd code { color: #f5f3ec; }

/* ── The rest of the page: one landscape, walked through ─────────────────── */
:root { --band: 236 238 232; }
:root[data-theme="dark"] { --band: 20 24 21; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band: 20 24 21; } }

/* Bands meet at hills, not lines: a soft horizon above and below. */
.problem, .how, .faq {
  position: relative; background: rgb(var(--band)); border: 0 !important;
  margin-block: 90px; padding-block: 96px !important;
}
.problem::before, .how::before, .faq::before,
.problem::after, .how::after, .faq::after {
  content: ""; position: absolute; left: 0; right: 0; height: 70px; background: rgb(var(--band));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V44C220 6 470 0 760 30C1040 58 1300 10 1600 34V70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 70' preserveAspectRatio='none'%3E%3Cpath d='M0 70V44C220 6 470 0 760 30C1040 58 1300 10 1600 34V70Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.problem::before, .how::before, .faq::before { top: -69px; }
.problem::after, .how::after, .faq::after { bottom: -69px; transform: scaleY(-1) scaleX(-1); }

/* Paper and cards: white, rounded, a soft shadow, the way Clay lays content on cream. */
.pain, .how-steps li, .tg, .ag, .tile, .trio-card {
  border-radius: 18px !important; background: rgb(var(--surface)) !important;
  border: 1px solid rgb(var(--edge)) !important;
  box-shadow: 0 1px 0 rgb(var(--lit)) inset, 0 14px 34px -22px rgb(18 21 19 / .35) !important;
}

/* Each place, a scene: Uniloom Bot doing that place's job on its own island. */
.place-stack { width: 300px; height: 300px; }
.scene-place use { transform-box: fill-box; }
.pillar-k .mk.fam { display: none; }

/* The end returns to the world: the call to action on green, the bot waving from a hill. */
.close.close-world { background: #2b4d3f; color: #f5f3ec; padding: 110px 0 0 !important; margin-top: 120px; position: relative; overflow: hidden; }
.close-world h2.big { color: #f5f3ec; }
.close-world .lede { color: rgb(245 243 236 / .78); }
.close-world .cmd { background: rgb(0 0 0 / .22); border-color: rgb(245 243 236 / .14); color: #f5f3ec; }
.close-world .cmd code { color: #f5f3ec; }
.close-world .btn-ghost { background: transparent; color: #f5f3ec; border: 1px solid rgb(245 243 236 / .35); }
.close-world::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 70px; background: rgb(var(--ground));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1600V30C1300 6 1040 54 760 26C470 -2 220 2 0 40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1600V30C1300 6 1040 54 760 26C470 -2 220 2 0 40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.farewell { display: block; width: 100%; height: clamp(160px, 18vw, 260px); margin-top: 40px; }
.farewell .wave { transform-origin: 800px 120px; animation: hello 4s ease-in-out infinite; }
@keyframes hello { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-5deg); } 86% { transform: rotate(4deg); } 94% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .farewell .wave { animation: none; } }

/* ── Night: the world in the dark theme ─────────────────────────────────── */
.scene .night { display: none; }
:root[data-theme="dark"] .scene .night { display: inline; }
:root[data-theme="dark"] .scene .sky { fill: #0e1713; }
:root[data-theme="dark"] .scene .stars circle { fill: #dfeee2; opacity: .8; }
:root[data-theme="dark"] .scene .moon { fill: #f5f3ec; }
:root[data-theme="dark"] .scene .moon-cut { fill: #0e1713; }
:root[data-theme="dark"] .scene .clouds ellipse { fill: #2b3a33; opacity: .55; }
:root[data-theme="dark"] .scene .hill.far { fill: #2f4a3d; }
:root[data-theme="dark"] .scene .hill.mid { fill: #24392f; }
:root[data-theme="dark"] .scene .hill.near,
:root[data-theme="dark"] header.hero.hero-world { fill: #18271f; background: #18271f; }
:root[data-theme="dark"] .scene .trees path { fill: #1d3128; }
:root[data-theme="dark"] .scene .tile { fill: #e6e4dc; }
:root[data-theme="dark"] .scene .shadow { fill: #000; opacity: .4; }
:root[data-theme="dark"] .close.close-world { background: #18271f; }
:root[data-theme="dark"] .farewell path:first-of-type { fill: #24392f; }
:root[data-theme="dark"] .farewell path:nth-of-type(2) { fill: #0e1713; }
:root[data-theme="dark"] .farewell .trees { fill: #2f4a3d; }
/* The place islands at night. */
:root[data-theme="dark"] .scene-place > ellipse:first-child { fill: #2f4a3d; }
:root[data-theme="dark"] .scene-place > path:nth-child(2) { fill: #3f5f4f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene .night { display: inline; }
  :root:not([data-theme="light"]) .scene .sky { fill: #0e1713; }
  :root:not([data-theme="light"]) .scene .stars circle { fill: #dfeee2; opacity: .8; }
  :root:not([data-theme="light"]) .scene .moon { fill: #f5f3ec; }
  :root:not([data-theme="light"]) .scene .moon-cut { fill: #0e1713; }
  :root:not([data-theme="light"]) .scene .clouds ellipse { fill: #2b3a33; opacity: .55; }
  :root:not([data-theme="light"]) .scene .hill.far { fill: #2f4a3d; }
  :root:not([data-theme="light"]) .scene .hill.mid { fill: #24392f; }
  :root:not([data-theme="light"]) .scene .hill.near { fill: #18271f; }
  :root:not([data-theme="light"]) header.hero.hero-world,
  :root:not([data-theme="light"]) .close.close-world { background: #18271f; }
  :root:not([data-theme="light"]) .scene .trees path { fill: #1d3128; }
  :root:not([data-theme="light"]) .scene .tile { fill: #e6e4dc; }
  :root:not([data-theme="light"]) .farewell path:first-of-type { fill: #24392f; }
  :root:not([data-theme="light"]) .farewell path:nth-of-type(2) { fill: #0e1713; }
  :root:not([data-theme="light"]) .scene-place > ellipse:first-child { fill: #2f4a3d; }
  :root:not([data-theme="light"]) .scene-place > path:nth-child(2) { fill: #3f5f4f; }
}
.scene .stars circle { animation: twinkle 4s ease-in-out infinite; }
.scene .stars circle:nth-child(3n) { animation-delay: -1.3s; }
.scene .stars circle:nth-child(3n+1) { animation-delay: -2.6s; }
@keyframes twinkle { 0%, 100% { opacity: .85; } 50% { opacity: .35; } }

/* ── The hero is the first screen ─────────────────────────────────────────
   Edge to edge (the body's 24px gutter is undone), exactly one screen under the bar:
   the world fills what the words leave, its near hill running into the green they sit
   on, so the scene is the background and the headline is on it from the first frame.
   A short screen shows less sky, a tall one more; the bot and the hills always show. */
header.hero.hero-world, .close.close-world, .problem, .how, .faq { margin-inline: -24px; }
header.hero.hero-world {
  display: grid; grid-template-rows: minmax(260px, 1fr) auto;
  min-height: calc(100svh - 55px);
}
.world { height: auto; min-height: 260px; }
.world-copy { padding-block: 0 44px; gap: 40px; }
.world-copy h1 { margin-top: 10px; font-size: clamp(44px, 5.4vw, 76px); }
.world-copy .lede { font-size: 18px; margin-bottom: 18px; }
.world-copy .dl-cli { margin-top: 10px; }
.world-copy .with { margin-top: 14px; }
/* The first screen is the world and the words only; the live app's sheet comes after it. */
header.hero.hero-world { display: block; min-height: 0; }
.first { display: grid; grid-template-rows: minmax(320px, 1fr) auto; min-height: calc(100svh - 55px); }
.world-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.world-copy .dl-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* The first screen is the whole window now; the bar sits on the sky. */
.first { min-height: 100svh; }
.world { min-height: 380px; }

/* ── Hero details ───────────────────────────────────────────────────────── */
/* Both columns stand on the same line at the bottom, as Clay's do. */
.world-copy { align-items: end; }
.world-copy h1 { margin-bottom: -6px; }
/* The command explains itself; the system line is a footnote, not a row. */
.world-copy .dl-cli > span { display: none; }
.world-copy .dl-cli { margin-top: 14px; }
.world-copy .dl-meta { font-size: 12.5px; margin-top: 10px; }
/* One Download at a time: the bar's waits until the hero's has scrolled away. */
.topnav .nav-cta { transition: opacity .25s ease, transform .25s ease; }
.topnav.hero-in-view .nav-cta { opacity: 0; transform: translateY(-4px); pointer-events: none; }
/* No seam where the scene meets the green it sits on: the scene's last row of pixels
   and the green below are one colour, and the scene overlaps it by a pixel. */
.world { background: #2b4d3f; }
.scene { height: calc(100% + 1px) !important; }
:root[data-theme="dark"] .world { background: #18271f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .world { background: #18271f; } }
/* The sky stops above the near hill, so no sliver of it shows at the scene's bottom edge. */
.scene { height: 100% !important; }
/* Room between the world and the words. */
.world-copy { padding-top: 36px; }
/* Say it once: the version is the footnote under Download, not a chip above the headline. */
.world-copy .rel { display: none !important; }
/* Three things on the right, as Clay has: the sentence, the two buttons, who it works
   with. The install command is the closing section's; the button already says Mac and free. */
.world-copy .dl-cli, .world-copy .dl-meta { display: none !important; }
.world-copy .lede { font-size: 20px; max-width: 30ch; }
/* ── Phones ────────────────────────────────────────────────────────────────
   Last in the file, so no earlier hero rule can bring the second column back. */
@media (max-width: 900px) {
  .world-copy { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
  .world-copy .lede { max-width: none; }
}
@media (max-width: 640px) {
  .world-copy { padding-bottom: 32px; }
  .world-copy .lede { font-size: 17px; }
  .with { flex-wrap: wrap; }
}
/* Two agent tiles to a row on a phone leave no room for a name and its Beta side by
   side, so the Beta goes under the name. */
@media (max-width: 480px) {
  .ag { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 0; padding: 10px 12px; font-size: 14px; }
  .ag svg { grid-row: span 2; }
  .ag span { white-space: normal; overflow: visible; line-height: 1.25; }
  .ag small { grid-column: 2; margin-left: 0; font-size: 10.5px; }
}
@media (max-width: 360px) {
  .ag { grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; padding: 10px 8px; font-size: 13px; }
  .ag svg { width: 18px; height: 18px; }
}
