/* cifera.ai — the brand kit in CSS. Night ground, one typeface (Sora), five sizes, thin lines.
   The four lane colours (finance, data, code, AI) are the only accents. */
@font-face { font-family: "Sora"; src: url(/fonts/sora-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url(/fonts/sora-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sora"; src: url(/fonts/sora-600.woff) format("woff"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0e; --panel: #111115; --line: #212127; --line-2: #33333a;
  --ink: #eeeae3; --ink-2: #c9c3b9; --muted: #8f8a82;
  --fin: #FF6A1A; --data: #FF8A22; --code: #FFB02E; --ai: #FFD23F;
  --on-gold: #17110a;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* the whole type scale */
  --t-s: 13px; --t-b: 16px; --t-l: clamp(18px, 1.5vw, 20px); --t-h2: clamp(30px, 3.4vw, 44px); --t-h1: clamp(40px, 5.8vw, 72px);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-b)/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
::selection { background: rgba(255, 176, 46, .35); }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 50; background: var(--ai); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }
.eyebrow { font-size: var(--t-s); font-weight: 500; line-height: 1.4; color: var(--code); }
.g { background: linear-gradient(90deg, var(--fin), var(--data) 35%, var(--code) 65%, var(--ai)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: var(--t-l); line-height: 1.3; letter-spacing: -.02em; }
.lead { font-size: var(--t-l); line-height: 1.55; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.btn-gold { color: var(--on-gold); background: linear-gradient(90deg, var(--ai), var(--code)); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -12px rgba(255, 176, 46, .7); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: var(--t-s); }

/* header */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 14, .8); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 22px; letter-spacing: -.035em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } .hdr .btn { margin-left: auto; } }

/* hero: the four lanes wrap around the text block, as the C wraps finance (site.js draws them to fit the text) */
.hero { position: relative; min-height: calc(100svh - 68px); display: grid; align-items: center; padding: 128px 0; overflow: hidden; }
.hero-txt { position: relative; z-index: 1; }
@media (min-width: 700px) { .hero-txt { padding-left: 120px; } }
@media (min-width: 1100px) { .hero-txt { padding-left: 216px; } }
/* phones: a compact C sits above the text instead of around it */
@media (max-width: 699px) { .hero { min-height: 0; align-items: start; padding: 28px 0 56px; } .hero-txt { padding-top: 168px; } .hero .cta .btn { padding: 0 18px; } }
.hero h1 { margin: 20px 0 0; font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.hero .lead { margin-top: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.lanes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lanes .lane { fill: none; stroke-width: 7; stroke-dasharray: 1000; animation: draw 2.6s cubic-bezier(.3, .6, .2, 1) both; }
.lanes .lane.l2 { animation-delay: .12s; } .lanes .lane.l3 { animation-delay: .24s; } .lanes .lane.l4 { animation-delay: .36s; }
.lanes .pulses { animation: show 1s 2.4s both; }
.lanes .pulse { fill: none; stroke: #fff4d6; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 9 1000; stroke-dashoffset: 9; animation: run 13s linear infinite; filter: drop-shadow(0 0 5px rgba(255, 200, 80, .9)); }
.lanes .pulse.l2 { animation-delay: -3.7s; animation-duration: 15s; } .lanes .pulse.l3 { animation-delay: -7.9s; animation-duration: 11.5s; } .lanes .pulse.l4 { animation-delay: -1.6s; animation-duration: 17s; }
.lanes text { font: 500 var(--t-s) var(--sans); paint-order: stroke; stroke: var(--bg); stroke-width: 12px; stroke-linejoin: round; }
@keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes run { from { stroke-dashoffset: 9; } to { stroke-dashoffset: -1000; } }
@keyframes show { from { opacity: 0; } }

/* sections */
.sec { padding: clamp(96px, 11vw, 144px) 0 0; }
.sec-h { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(40px, 5vw, 56px); }
.sec-h .lead { color: var(--muted); }
.card-p, .lanes4 p, .agent p, .steps p { color: var(--muted); }

/* four lanes */
.lanes4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lanes4 article { padding: 28px 24px 4px 0; display: grid; gap: 12px; align-content: start; }
.lanes4 article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.lanes4 svg { width: 40px; height: 40px; margin-bottom: 8px; }
.tag { font-size: var(--t-s); font-weight: 600; }
@media (max-width: 960px) { .lanes4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lanes4 article:nth-child(3) { padding-left: 0; border-left: 0; } .lanes4 article:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .lanes4 { grid-template-columns: minmax(0, 1fr); } .lanes4 article, .lanes4 article + article { padding-left: 0; border-left: 0; } .lanes4 article + article { border-top: 1px solid var(--line); } }

/* impact: the same four columns, words instead of marks */
.lanes4.plain article { padding-top: 24px; gap: 8px; }
@media (max-width: 560px) { .lanes4.plain article, .lanes4.plain article + article { grid-template-columns: minmax(0, 1fr); } .lanes4.plain article > * { grid-column: auto; } }

/* the value chain: four stages, each under its lane colour */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .chain { grid-template-columns: minmax(0, 1fr); } }
.chain > li { padding-top: 22px; border-top: 2px solid; display: grid; gap: 12px; align-content: start; }
.chain > li:nth-child(1) { border-color: var(--fin); } .chain > li:nth-child(2) { border-color: var(--data); } .chain > li:nth-child(3) { border-color: var(--code); } .chain > li:nth-child(4) { border-color: var(--ai); }
.chain p { color: var(--muted); }
.base { margin-top: 48px; font-size: var(--t-l); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.why .sec-h { max-width: 820px; }
.why .sec-h .lead { color: var(--ink-2); max-width: 64ch; }

/* agents */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .agents { grid-template-columns: minmax(0, 1fr); } }
.agents.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .agents.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .agents.four { grid-template-columns: minmax(0, 1fr); } }
.agent { padding: 24px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; transition: box-shadow .2s ease; }
.agent:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.agent .tag { color: var(--c); }
.agent-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.mk { width: 30px; height: 30px; flex: none; }
.mk path { fill: none; stroke: var(--line-2); stroke-width: 3; }
.mk .on.f { stroke: var(--fin); } .mk .on.d { stroke: var(--data); } .mk .on.c { stroke: var(--code); } .mk .on.a { stroke: var(--ai); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: var(--t-s); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 2px; border-radius: 1px; }

/* the working example */
.work { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 960px) { .work { grid-template-columns: minmax(0, 1fr); } }
.work-text { display: grid; gap: 16px; }
.work-text .lead { color: var(--muted); }
.hood { list-style: none; margin: 12px 0 8px; padding: 0; border-top: 1px solid var(--line); }
.hood li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.hood b { font-size: var(--t-s); font-weight: 600; line-height: 1.6rem; }
.app { margin: 0; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .8); overflow: hidden; font-variant-numeric: tabular-nums; }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.app-bar b { font-weight: 600; }
.app-bar span, .app-head, .row small, .sample { font-size: var(--t-s); color: var(--muted); }
.app-head, .row { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px 88px; gap: 8px; align-items: center; padding: 0 20px; }
.app-head { padding-top: 12px; padding-bottom: 8px; }
.app-head span:nth-child(n+2) { text-align: center; } .app-head span:last-child { text-align: right; }
.row { padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line); }
.row .asset { font-weight: 500; line-height: 1.35; }
.row small { display: block; font-weight: 400; }
.ic { width: 20px; height: 20px; justify-self: center; }
.ic.r { color: var(--data); } .ic.c { color: var(--code); } .ic.x { color: var(--fin); }
.res { justify-self: end; font-size: var(--t-s); color: var(--muted); }
.res.warn { color: var(--fin); font-weight: 600; }
.finding { margin: 4px 20px 16px; padding: 16px 18px; border-radius: 12px; background: rgba(255, 106, 26, .07); box-shadow: inset 2px 0 0 var(--fin); display: grid; gap: 6px; }
.finding b { font-weight: 600; }
.finding p { color: var(--ink-2); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.acts span { font-size: var(--t-s); font-weight: 600; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.acts .a { color: var(--on-gold); background: linear-gradient(90deg, var(--ai), var(--code)); }
.acts .q { box-shadow: inset 0 0 0 1px var(--line-2); }
.sample { padding: 0 20px 16px; }
@media (max-width: 560px) { .app-head, .row { grid-template-columns: minmax(0, 1fr) 40px 44px 76px; padding-left: 16px; padding-right: 16px; } .app-bar { padding: 14px 16px; } .finding { margin-left: 16px; margin-right: 16px; } .sample { padding-left: 16px; } }
/* the agent at work: rows are read, then checked, then the finding comes up */
.js .app .ic, .js .app .res, .js .app .finding { opacity: 0; }
.js .app.in .ic, .js .app.in .res { animation: pop .45s cubic-bezier(.2, .7, .2, 1) both; }
.js .app.in .ic.r { animation-delay: calc(.5s + var(--i) * .5s); }
.js .app.in .ic.c, .js .app.in .ic.x { animation-delay: calc(.75s + var(--i) * .5s); }
.js .app.in .res { animation-delay: calc(.95s + var(--i) * .5s); }
.js .app.in .finding { animation: rise .6s 2.9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { padding-top: 22px; border-top: 2px solid; display: grid; gap: 8px; align-content: start; }
.steps li:nth-child(1) { border-color: var(--fin); } .steps li:nth-child(2) { border-color: var(--code); } .steps li:nth-child(3) { border-color: var(--ai); }
.when { font-size: var(--t-s); color: var(--muted); }
.note { margin-top: 32px; color: var(--muted); }

/* security */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split .sec-h { margin-bottom: 0; }
.split .sec-h .lead { margin-top: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.checks li:first-child { padding-top: 4px; }
.checks .ic { color: var(--code); margin-top: 2px; }

/* contact */
.contact { margin-top: clamp(96px, 11vw, 144px); border-top: 1px solid var(--line); }
.contact-in { padding-block: clamp(80px, 10vw, 128px); display: grid; gap: 18px; justify-items: start; }
.contact .lead { color: var(--muted); }
.mail { margin-top: 10px; font-size: var(--t-l); font-weight: 500; color: var(--ai); text-decoration: none; border-bottom: 1px solid rgba(255, 210, 63, .35); padding-bottom: 3px; }
.mail:hover { border-bottom-color: var(--ai); }

/* footer */
.foot { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: var(--t-s); color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* phones: tighter rhythm, the four lanes as a compact list */
@media (max-width: 699px) {
  .lanes .lane { stroke-width: 5; }
  .lanes .pulse { stroke-width: 3; }
  .sec { padding-top: 72px; }
  .sec-h { margin-bottom: 32px; }
  .contact { margin-top: 72px; }
  .contact-in { padding-block: 64px; }
}
@media (max-width: 560px) {
  .lanes4 article, .lanes4 article + article { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 20px 0; }
  .lanes4 article > :not(svg) { grid-column: 2; }
  .lanes4 svg { grid-row: 1 / span 3; width: 36px; height: 36px; margin: 2px 0 0; }
  .agents { gap: 12px; }
  .agent { padding: 18px 20px; gap: 6px; }
  .agent-top { margin-bottom: 2px; }
}

/* reveal on scroll: only when the script runs and motion is welcome */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* legal pages */
.doc { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); max-width: 760px; }
.doc h1 { margin: 16px 0 32px; font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.035em; }
.doc h2 { margin: 36px 0 10px; font-size: var(--t-l); letter-spacing: -.02em; }
.doc p:not(.eyebrow), .doc li { color: var(--ink-2); margin-bottom: 12px; }
.doc dl { margin: 0; border-top: 1px solid var(--line); }
.doc dl div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .doc dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lanes .lane { animation: none; }
  .lanes .pulses { display: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .app .ic, .js .app .res, .js .app .finding, .js .app.in .ic, .js .app.in .res, .js .app.in .finding { opacity: 1; animation: none; }
  .btn, .agent { transition: none; }
}
