/* Layout and colours from the "Home — desktop" mockup; type and hover effects from the nerine-brain draft. */
:root{color-scheme:dark;--bg:#0A0A0A;--panel:#121212;--text:#F2F2F2;--text-2:#B5B5B5;--dim:#9A9A9A;--dim-2:#6E6E6E;--line:#262626;--line-2:#3A3A3A;--accent:#E0559C;--mono:'JetBrains Mono',Consolas,'Courier New',monospace}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--mono);font-weight:400;-webkit-font-smoothing:antialiased}
a{color:var(--text);text-decoration:none}
p,h1,h2{margin:0}
h1,h2{font:inherit}
::selection{background:var(--accent);color:var(--bg)}
a:focus-visible,.item:focus-visible{outline:1px dashed var(--text);outline-offset:5px}
.accent{color:var(--accent)}
.page{max-width:1320px;margin:0 auto;padding:0 48px}

/* Square cursor while a line types itself (as in the draft) */
.typing:after{content:'';display:inline-block;width:.62em;height:1em;margin-left:1px;background:currentColor;vertical-align:-.12em}

.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:32px 0}
.brand{display:flex;align-items:center;gap:12px}
/* The wordmark keeps the logo's own typeface and colour */
.brand-name{font-family:'Poppins',sans-serif;font-size:24px;font-weight:500;letter-spacing:-.01em;color:#E0559C}
.nav nav{display:flex;gap:36px;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.nav nav a:hover{color:var(--accent)}

.label{font-size:13px;font-weight:400;letter-spacing:.18em;text-transform:uppercase;color:var(--dim)}
.dim{font-size:13px;color:var(--dim-2);text-transform:uppercase;letter-spacing:.08em}
.dim-link{font-size:13px;color:var(--text-2);text-transform:uppercase;letter-spacing:.08em}
.dim-link:hover{color:var(--accent)}
.head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:40px}

.hero{padding:130px 0 110px;border-bottom:1px solid var(--line)}
.eyebrow{margin:0 0 28px;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--dim)}
.hero h1{font-size:68px;line-height:1.08;font-weight:300;letter-spacing:-.04em;max-width:1100px}
.lead{margin-top:40px;font-size:17px;line-height:1.75;color:var(--text-2);max-width:680px}

.work{padding:96px 0 48px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.card{display:flex;flex-direction:column;gap:20px}
.card-wide{margin-top:48px}
.panel{height:480px;background:var(--panel);border:1px solid var(--line);position:relative;overflow:hidden;transition:border-color .25s}
.panel-wide{height:560px}
.card:hover .panel,.card:focus-visible .panel{border-color:var(--accent)}
.panel-art{position:absolute;inset:0;width:100%;height:100%}
.product-logo{position:absolute;left:50%;top:42%;width:160px;height:160px;transform:translate(-50%,-50%)}
.panel-title{position:absolute;left:40px;bottom:32px;font-size:48px;font-weight:300;letter-spacing:-.04em}
.panel-title-xl{left:48px;bottom:40px;font-size:72px}
.bar-values,.bar-names{font-family:var(--mono);fill:var(--dim)}
.bar-values{font-size:13px}.bar-names{font-size:10px}
.card-text{display:flex;justify-content:space-between;gap:24px}
.card-name{font-size:17px;font-weight:500}
.card-desc{margin-top:8px;font-size:14px;line-height:1.65;color:var(--text-2);max-width:470px;min-height:4.95em}
.card-desc.wide{max-width:640px;min-height:3.3em}
.card-meta{font-size:12px;color:var(--dim);white-space:nowrap;text-transform:uppercase;letter-spacing:.04em}

.split{display:flex;gap:96px;padding:120px 0;border-bottom:1px solid var(--line)}
.confederation{align-items:center;border-top:1px solid var(--line)}
.split-text{flex:0 0 420px}
.split-text .label{margin-bottom:28px}
.statement{font-size:30px;line-height:1.3;font-weight:300;letter-spacing:-.03em}
.body{margin-top:28px;font-size:14px;line-height:1.75;color:var(--text-2)}
.body.narrow{max-width:640px}
.split-art{flex:1;min-width:0}
.split-art svg{width:100%;height:auto;display:block}
.svg-text{font-family:var(--mono)}
.about-label{flex:0 0 280px}

.dev{padding:96px 0;border-bottom:1px solid var(--line)}
.dev .label{margin-bottom:32px}
.item{display:flex;flex-direction:column;gap:20px;outline:0}
.tile{height:220px;background:var(--panel);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;transition:border-color .25s}
.item:hover .tile,.item:focus-visible .tile{border-color:var(--accent)}
.item-text{position:relative;isolation:isolate;padding:10px 0}
/* Inverted band on hover, as on the draft's list rows */
.item-text:before,.post:before{content:'';position:absolute;inset:0 -8px;background:var(--text);z-index:-1;opacity:0}
.item:hover .item-text,.item:focus-visible .item-text{color:var(--bg)}
.item:hover .item-text:before,.item:focus-visible .item-text:before{opacity:1}
.item-name{font-size:17px;font-weight:500}
.item-desc{margin-top:8px;font-size:14px;line-height:1.6;color:var(--text-2);min-height:3.2em}
.item:hover .item-desc,.item:focus-visible .item-desc{color:#3A3A3A}

.blog{padding:96px 0;border-bottom:1px solid var(--line)}
.post{display:flex;flex-direction:column;gap:16px;border-top:1px solid var(--line-2);padding:24px 0 20px;position:relative;isolation:isolate}
.post:hover,.post:focus-visible{color:var(--bg)}
.post:hover:before,.post:focus-visible:before{opacity:1}
.post-meta{font-size:12px;color:#8A8A8A}
.post-title{font-size:19px;line-height:1.4}
.post-sum{font-size:14px;line-height:1.55;color:var(--text-2)}
.post:hover .post-meta,.post:hover .post-sum,.post:focus-visible .post-meta,.post:focus-visible .post-sum{color:#3A3A3A}

.contact{padding:120px 0}
.contact .label{margin-bottom:24px}
.mail{font-size:56px;font-weight:300;letter-spacing:-.04em;color:var(--accent)}
.mail:hover{color:var(--text)}

footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;padding:32px 0 48px;border-top:1px solid var(--line);font-size:12px;color:#8A8A8A}
footer nav{display:flex;gap:28px}
footer a{color:#8A8A8A}footer a:hover{color:var(--accent)}

@media (max-width:1024px){.hero h1{font-size:54px}.panel-title-xl{font-size:56px}.split{gap:56px}.split-text{flex-basis:340px}}
@media (max-width:820px){
 .page{padding:0 16px}
 .nav{flex-wrap:wrap;padding:24px 0}.nav nav{gap:18px;font-size:11px;flex-wrap:wrap}
 .hero{padding:72px 0 64px}.hero h1{font-size:34px}.lead{font-size:15px;margin-top:28px}
 .work,.dev,.blog{padding:64px 0}
 .grid2,.grid3{grid-template-columns:1fr}
 .panel{height:340px}.panel-wide{height:360px}
 .panel-title{left:20px;bottom:20px;font-size:34px}.panel-title-xl{left:20px;bottom:20px;font-size:40px}
 .product-logo{width:120px;height:120px}
 .card-text{flex-direction:column;gap:10px}.card-desc,.card-desc.wide,.item-desc{min-height:0}
 .split{flex-direction:column;gap:40px;padding:72px 0}.split-text,.about-label{flex-basis:auto}
 .statement{font-size:22px}
 .contact{padding:72px 0}.mail{font-size:28px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Confederation graph from the nerine-confederate-brain draft */
.graph-stage{position:relative;height:520px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background-image:radial-gradient(#ffffff14 .7px,transparent .7px);background-size:22px 22px}
#confederation-canvas{display:block;width:100%;height:100%;touch-action:pan-y}
.replay{position:absolute;right:0;bottom:-34px;font:inherit;font-size:12px;color:var(--dim);background:none;border:0;padding:4px 0;cursor:pointer;text-transform:uppercase;letter-spacing:.06em}
.replay:hover{color:var(--accent)}
.graph-note{margin-top:44px;font-size:12px;line-height:1.7;color:var(--dim);max-width:520px}
@media (max-width:820px){.graph-stage{height:460px}}
/* The graph needs the full width, as in the draft: text above, graph below */
.confederation{flex-direction:column;align-items:stretch;gap:56px}
.confederation .split-text{flex-basis:auto;max-width:760px}
.confederation .graph-stage{height:600px}
@media (max-width:820px){.confederation .graph-stage{height:520px}}

/* In-development tiles: canvas scenes drawn by dev-tiles.js */
.dev .tile{height:330px;display:block;background-color:var(--panel);background-image:radial-gradient(#ffffff10 .7px,transparent .7px);background-size:18px 18px}
.dev .tile canvas{display:block;width:100%;height:100%}
@media (max-width:820px){.dev .tile{height:300px}}

/* Agent messaging tile: a group chat of people and agents, messages only */
.dev .tile-chat{position:relative;overflow:hidden;font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
.chat{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:9px;width:min(100%,340px);margin:0 auto;padding:16px 18px 20px;overflow:hidden;transition:opacity .4s;-webkit-mask-image:linear-gradient(transparent,#000 26%);mask-image:linear-gradient(transparent,#000 26%)}
.chat.fading{opacity:0}
.msg{display:flex;align-items:flex-end;gap:6px;max-width:88%;animation:msg-in .3s cubic-bezier(.2,.9,.3,1.2) both;transform-origin:0 100%}
.msg.out{align-self:flex-end;transform-origin:100% 100%}
.msg-body{display:flex;flex-direction:column;min-width:0}
.who{margin:0 0 3px 6px;font-size:9.5px;color:var(--dim)}
.who.agent{color:var(--accent)}
.bubble{padding:8px 12px;border-radius:14px 14px 14px 4px;background:#1E1E1E;color:var(--text);font-size:12.5px;line-height:1.35}
.msg.out .bubble{border-radius:14px 14px 4px 14px;background:var(--accent);color:#0A0A0A;font-weight:500}
.ava{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#2E2E2E;color:var(--text);font-size:9.5px;font-weight:700}
.ava.agent{border-radius:5px;background:#E0559C22;border:1.2px solid var(--accent);color:var(--accent)}
.dots{display:flex;gap:3px;padding:3px 1px}
.dots i{width:4px;height:4px;border-radius:50%;background:var(--text-2);animation:dot 1s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes msg-in{from{opacity:0;transform:scale(.7) translateY(8px)}}
@keyframes dot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){.msg,.dots i{animation:none}}

/* "ADE Brain" logo: drawn lettering, chrome with a pink rim */
.brain-mark{left:30px;bottom:22px;line-height:0}
.brain-logo{display:block;width:620px;max-width:calc(100vw - 80px);height:auto}
@media (max-width:1024px){.brain-logo{width:480px}}
@media (max-width:820px){.brain-mark{left:8px;bottom:8px}.brain-logo{width:300px}}

/* "adebench" wordmark as on adebench.dev: Jersey 10, capitals, orange */
.bench-mark{font-family:'Jersey 10',Impact,'Arial Narrow',sans-serif;font-size:92px;line-height:.82;letter-spacing:.01em;text-transform:uppercase;color:#ff4f00;bottom:28px}
@media (max-width:820px){.bench-mark{font-size:64px;bottom:18px}}

/* "GigaMail" wordmark as on gigamail.ai: Poppins bold, "Mail" in the logo's magenta ("Giga" is light here, on the dark panel) */
.giga-mark{font-family:'Poppins',sans-serif;font-size:56px;font-weight:700;letter-spacing:-.02em;color:var(--text)}
.giga-mark b{font-weight:700;color:#C2297A}
@media (max-width:820px){.giga-mark{font-size:40px}}

/* Privacy and cookie pages */
.legal{max-width:760px;padding:96px 0 120px}
.legal h1{font-size:54px;line-height:1.08;font-weight:300;letter-spacing:-.04em}
.legal .lead{margin-top:32px}
.legal h2{margin:56px 0 16px;font-size:13px;font-weight:400;letter-spacing:.18em;text-transform:uppercase;color:var(--dim)}
.legal p,.legal li{font-size:15px;line-height:1.75;color:var(--text-2)}
.legal p+p{margin-top:16px}
.legal ul{margin:0;padding-left:20px}
.legal li{margin-top:8px}
.legal li::marker{color:var(--accent)}
.legal a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.legal a:hover{color:var(--text)}
@media (max-width:820px){.legal{padding:56px 0 72px}.legal h1{font-size:34px}.legal h2{margin-top:40px}}
