/* Hallmark · shape: a trail followed down the page, station by station · genre: modern-minimal · theme: custom · job: try · idea: "the page is the map: the brand's trail runs from the hero mascot through one real click, down to the hole it ends in" · vibe: "night map of your own code, playful"
 * paper: oklch(15.5% 0.016 172) · accent: oklch(86% 0.15 160) · display: Outfit (the brand's own face, logo and app) · body: Outfit · hero: the brand trail drawn huge over Codumi's real call graph, ending in the waving mascot · nav: wordmark, three anchors, language switch, quiet download · footer: one line, mark, licence, GitHub · imagery: the brand mascot renders (the user's own character), Codumi's real call graph, real CLI output from examples/demo · signature: the logo's trail in 3D draws itself and ends in the waving mascot, a glint running along it
 * axes: dark/grotesk-round/chromatic-green · posture: full palette (field petrol, signal mint, spark yellow, ink) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 · weakest: E, three looping mascots on one page; each sits in its own screen and falls back to a still under reduced motion */
/* Hallmark · waive 79 · the band under the actions shows the real call graph of Codumi, captioned at the hero foot · the map is the picture this hero is about */
/* Hallmark · dismissed 58 · 82 words at the last station, most of them the real codumi audit output it shows */
/* Hallmark · answered F7 · .skip and .film-play are controls, .rail is the brand trail drawn as a rounded line, .cmd is the command bar that holds its copy button */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Outfit"; src: url("fonts/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root { --hero-visual: min(50vw, 760px); }

body { font-weight: 400; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* ---- nav ------------------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 82%, transparent); backdrop-filter: blur(12px); border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-rule) 60%, transparent); }
.nav-row { display: flex; align-items: center; gap: var(--space-xl); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.02em; color: var(--color-ink); }
.brand .mark { width: 44px; height: 20px; flex-shrink: 0; }
.mark path { fill: none; stroke: var(--color-trail); stroke-width: 95; stroke-linecap: round; stroke-linejoin: round; }
.mark circle { fill: var(--color-trail); }
.links { display: flex; gap: var(--space-lg); margin-left: auto; }
.links a, .textlink { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-md); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.links a:hover, .textlink:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav-end { display: flex; align-items: center; gap: var(--space-md); }
.lang { background: none; border: 0; color: var(--color-muted); cursor: pointer; padding: var(--space-xs); border-radius: 8px; font-size: var(--text-sm); white-space: nowrap; }
.lang:hover { color: var(--color-ink); }
.lang:active { opacity: 0.8; }

/* ---- buttons --------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-weight: 700; font-size: var(--text-md); text-decoration: none; white-space: nowrap; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn.primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn.primary:hover { background: var(--color-ink); }
.btn.ghost { border: var(--rule-hair) solid var(--color-muted); color: var(--color-ink); min-height: 44px; }
.btn.ghost:hover { border-color: var(--color-ink); background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.nav .btn.ghost { min-height: 44px; }

/* ---- hero ------------------------------------------------------------------------------------ */
.hero { position: relative; min-height: calc(100svh - 72px); display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: clip; isolation: isolate; }
.map { position: absolute; inset: 0; margin: 0; z-index: -1; }
.map img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--color-paper) 0%, color-mix(in oklab, var(--color-paper) 70%, transparent) 42%, transparent 75%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; align-self: center; gap: var(--space-3xl); padding-block: var(--space-2xl); }
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); min-width: 0; }
h1 { font-size: clamp(3rem, 7vw + 0.25rem, 7.25rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; max-width: 11ch; color: var(--color-ink); }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }
.textlink { font-weight: 700; }
.hero-visual { display: block; width: var(--hero-visual); justify-self: end; }
.hero-visual img { width: 100%; height: auto; }
.mascot { display: block; margin: 0; }
.mascot img { width: 100%; height: auto; }
.map-cap { padding-bottom: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
  .hero-text > :nth-child(2) { --i: 1; } .hero-text > :nth-child(3) { --i: 2; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---- the launch film --------------------------------------------------------------------------- */
.film { padding-block: var(--section-gap-s) 0; }
.film-grid { display: grid; gap: var(--space-xl); }
.film-frame { position: relative; margin: 0 auto; width: min(100%, 1080px); }
.film-frame video { width: 100%; height: auto; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; background: var(--color-code); }
.film-play { position: absolute; left: var(--space-lg); bottom: var(--space-lg); min-height: 52px; padding: 0 var(--space-lg) 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 700; font-size: var(--text-md); white-space: nowrap; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.film-play svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.film-play:hover { background: var(--color-ink); }
.film-play:active { transform: scale(0.98); }
.film-play:disabled { opacity: 0.55; cursor: not-allowed; }
.film-frame.playing .film-play { display: none; }

/* ---- the app on video ------------------------------------------------------------------------ */
.demo { padding-block: var(--section-gap-s) var(--section-gap-s); }
.demo-grid { display: grid; gap: var(--space-xl); }
.demo-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: end; }
.demo-head p { color: var(--color-ink-2); font-size: var(--text-lg); max-width: 44ch; }
.demo-video { margin: 0 auto; width: min(100%, 1080px); display: grid; gap: var(--space-sm); }
.demo-video video { width: 100%; height: auto; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; background: var(--color-code); }
.demo-video figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
.vbtn { flex-shrink: 0; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); cursor: pointer; font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out); }
.vbtn:hover { background: var(--color-paper-3); }
.vbtn:active { transform: translateY(1px); }
.vbtn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- the path: stations down the trail ------------------------------------------------------- */
.path { padding-block: var(--section-gap) var(--section-gap-s); }
.path-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-3xl); }
h2 { font-size: var(--text-section); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; max-width: 22ch; color: var(--color-ink); }
.intro { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 52ch; }
.path-body { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-xl); }
.rail { position: relative; justify-self: center; width: 14px; border-radius: var(--radius-pill); background: var(--color-trail); }
.rail-dot { position: absolute; left: 50%; top: 0; width: 44px; height: 44px; translate: -50% 0; border-radius: 50%; background: var(--color-trail); border: 6px solid var(--color-paper); transform: translateY(var(--dot-y, 0px)); transition: transform var(--dur-long) var(--ease-out); }
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); }
.station { min-height: min(70svh, 620px); align-content: center; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.st-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); min-width: 0; }
h3 { font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: var(--color-ink); }
.st-text p { color: var(--color-ink-2); font-size: var(--text-lg); max-width: 34ch; }
.think-mascot { width: min(300px, 80%); margin-top: var(--space-lg); }
.term { margin: 0; background: var(--color-code); border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; overflow: hidden; }
.term figcaption { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-accent); padding: var(--space-sm) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.term figcaption::before { content: "$ "; color: var(--color-muted); }
.term pre { margin: 0; padding: var(--space-lg); overflow-x: auto; font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.7; color: var(--color-ink-2); }
.term mark { background: none; color: var(--color-spark); }
.term .high { color: var(--color-high); font-weight: 700; }
.station.last .term { outline-color: color-mix(in oklab, var(--color-high) 55%, transparent); }

/* ---- numbers --------------------------------------------------------------------------------- */
.numbers { padding-block: var(--section-gap); background: var(--color-paper-2); }
.num-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--space-3xl); align-items: end; }
.num-big { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 13vw, 12rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.figure-cap { color: var(--color-ink-2); font-size: var(--text-lg); max-width: 36ch; }
.tasks { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.tasks th { text-align: left; font-weight: 400; color: var(--color-muted); font-size: var(--text-sm); padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.tasks td { padding: var(--space-md) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); }
.tasks .num { text-align: right; }
.tasks td:last-child { color: var(--color-accent); font-weight: 700; }
.num-foot { grid-column: 2; color: var(--color-muted); font-size: var(--text-sm); }

/* ---- agents ---------------------------------------------------------------------------------- */
.agents { padding-block: var(--section-gap-l) var(--section-gap); }
.ag-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.ag-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); min-width: 0; }
.ag-text p { color: var(--color-ink-2); font-size: var(--text-lg); max-width: 40ch; }
.cmd { display: flex; align-items: center; gap: var(--space-sm); background: var(--color-code); border-radius: var(--radius-pill); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; max-width: 100%; }
.cmd code { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink); overflow-x: auto; white-space: nowrap; min-width: 0; flex: 1; }
.copy { flex-shrink: 0; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); cursor: pointer; font-size: var(--text-sm); transition: background-color var(--dur-short) var(--ease-out); }
.copy:hover { background: var(--color-paper-3); }
.copy:active { transform: translateY(1px); }
.copy:disabled { opacity: 0.55; cursor: not-allowed; }
.agent-names { list-style: none; margin: 0; padding: 0; display: grid; }
.agent-names li { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--color-ink); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); }
.agent-names li:first-child { color: var(--color-accent); }

/* ---- get it ---------------------------------------------------------------------------------- */
.get { padding-block: var(--section-gap-s) var(--section-gap-l); }
.get-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.jump-mascot { width: min(420px, 100%); justify-self: center; }
.get-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); min-width: 0; }
.get-text p { color: var(--color-ink-2); font-size: var(--text-lg); max-width: 40ch; }

/* ---- footer ---------------------------------------------------------------------------------- */
.foot { border-top: var(--rule-hair) solid var(--color-rule); }
.foot-row { display: flex; align-items: center; gap: var(--space-xl); padding-block: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); }
.foot-row p { margin-right: auto; }
.foot-row > a:last-child { color: var(--color-ink-2); }
.brand.small { font-size: var(--text-lg); }

/* ---- small screens --------------------------------------------------------------------------- */
@media (max-width: 60rem) {
  .links { display: none; }
  .nav-end { margin-left: auto; }
  .hero-grid, .station, .num-grid, .ag-grid, .get-grid, .demo-head { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: 100%; justify-self: start; }
  .hero::after { background: linear-gradient(180deg, var(--color-paper) 0%, color-mix(in oklab, var(--color-paper) 70%, transparent) 55%, transparent 100%); }
  .path-body { grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-md); }
  .rail { width: 8px; }
  .rail-dot { width: 28px; height: 28px; border-width: 4px; }
  .num-foot { grid-column: 1; }
  .foot-row { flex-wrap: wrap; gap: var(--space-md); }
}
@media (max-width: 40rem) {
  .nav .btn.ghost { display: none; }
  .tasks th, .tasks td { padding-inline: var(--space-2xs); }
}

/* o mapa de chamadas continua por trás do caminho e do download, em outros recortes */
.path, .get { position: relative; isolation: isolate; }
.path::before, .get::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/mapa.svg") center / 140% auto no-repeat; opacity: 0.55; pointer-events: none; }
.path::before { background-position: 30% 20%; background-size: 180% auto; }
.get::before { background-position: 80% 60%; background-size: 120% auto; opacity: 0.7; }
.path::after, .get::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--color-paper) 0%, transparent 30%, transparent 70%, var(--color-paper) 100%); pointer-events: none; }
