
:root {
  /* One visual world: dark AI lab. Pink is the signal, violet only as glow. */
  --void: #07060b;
  --panel: #110f18;
  --ink: #f3eff8;
  --muted: #9a93ad;
  --pink: #ff2d95;
  --violet: #8a6bff;
  --line: rgba(243, 239, 248, 0.10);
  --font-display: 'Syne', 'Arial Black', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* Layout: full-bleed canvas hero, then a 1200px column of sections with hairline rules. */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#about, section { scroll-margin-top: 72px; }
body {
  margin: 0; background: var(--void); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }

/* grid backdrop */
.grid-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 64px 64px, 64px 64px; } }

/* nav */
nav.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 6, 11, 0.6); border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-family: var(--font-mono); font-weight: 700; letter-spacing: -.01em; text-decoration: none; font-size: 17px; display: inline-flex; align-items: center; white-space: nowrap; }
.logo .pr { color: var(--pink); margin-right: 9px; }
.logo .cur { display: inline-block; width: 9px; height: 18px; margin-left: 4px; background: var(--pink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.navlinks { display: flex; gap: 28px; }
.navlinks a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.navlinks a:hover { color: var(--ink); }
@media (max-width: 760px) { .navlinks { display: none; } }

/* buttons */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transform: translate(var(--mx), var(--my)); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s;
  font-family: var(--font-body);
}
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 0 0 0 rgba(255,45,149,.0); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(255,45,149,.7); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,45,149,.5); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
#orb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .wrap { display: grid; gap: 28px; }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3be38a; box-shadow: 0 0 12px #3be38a; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  font-size: clamp(46px, 9vw, 128px); line-height: .92; font-weight: 800; letter-spacing: -0.03em;
  max-width: 11ch;
}
.hero h1 .glow {
  color: transparent; background: linear-gradient(100deg, var(--pink) 10%, #ff8ac6 45%, var(--violet) 95%);
  -webkit-background-clip: text; background-clip: text;
}
.hero .lead { max-width: 58ch; color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 0; }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.about { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 56px; align-items: center; padding: 72px 0 8px; }
.portrait { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5;
  box-shadow: 0 40px 100px -40px rgba(255,45,149,.55); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.portrait:hover img { transform: scale(1.1); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,6,11,.85)); }
.portrait .tag { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: var(--ink); }
.portrait .scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 1; background: linear-gradient(90deg, transparent, var(--pink), transparent); box-shadow: 0 0 18px var(--pink); animation: scan 4.5s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 4%; opacity: 0; } 15%,85% { opacity: .9; } 50% { top: 92%; } }
.about h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.02em; font-weight: 800; margin: 12px 0 18px; }
.about p { color: var(--muted); max-width: 56ch; margin: 0 0 14px; }
.about p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } .portrait { max-width: 420px; } }

/* roles strip */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; }
.role { padding: 22px 20px; border-right: 1px solid var(--line); }
.role:last-child { border-right: 0; }
.role .t { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.role .s { color: var(--muted); font-size: 14px; }
.role .mono { color: var(--pink); }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } .role { border-right: 0; border-bottom: 1px solid var(--line); } .role:last-child { border-bottom: 0; } }

/* marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: transparent; -webkit-text-stroke: 1px rgba(243,239,248,.35); white-space: nowrap; }
.marquee span i { font-style: normal; color: var(--pink); -webkit-text-stroke: 0; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* sections */
section { padding: 96px 0; }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 48px; align-items: end; }
.sec-head .mono { color: var(--pink); }
.sec-head h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em; font-weight: 800; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } section { padding: 72px 0; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .n sup { font-size: .45em; color: var(--pink); }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* tilt cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; perspective: 1200px; }
.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; padding: 30px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(400px circle at var(--gx) var(--gy), rgba(255,45,149,.13), transparent 60%), var(--panel);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .3s;
}
.card:hover { border-color: rgba(255,45,149,.45); }
.card .ix { color: var(--muted); }
.card h3 { font-size: 26px; margin: 18px 0 10px; letter-spacing: -0.01em; transform: translateZ(30px); }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* agent console */
.console-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.console-grid p { color: var(--muted); max-width: 46ch; }
.console {
  border: 1px solid var(--line); border-radius: 18px; background: #0b0a10; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(138,107,255,.35);
}
.console .bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.console .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2734; }
.console .bar .mono { margin-left: 10px; color: var(--muted); font-size: 12px; }
.log { padding: 18px 18px 22px; height: 300px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.log div { font-family: var(--font-mono); font-size: 13px; color: #cfc8de; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: in .35s ease-out; }
.log .k { color: var(--pink); }
.log .ok { color: #3be38a; }
.log .t { color: #5d5870; }
@keyframes in { from { transform: translateY(8px); opacity: .2; } }
@media (max-width: 860px) { .console-grid { grid-template-columns: 1fr; } }

/* products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform .3s, border-color .3s;
}
.prod::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--pink) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.prod:hover { transform: translateY(-6px); }
.prod:hover::before { opacity: 1; animation: spin 2.4s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.prod .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,45,149,.12); color: var(--pink); }
.prod h3 { font-size: 21px; }
.prod p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.pill { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(138,107,255,.14); color: #c4b5ff; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* contact */
.contact { border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 6vw, 72px); position: relative; overflow: hidden;
  background: radial-gradient(800px circle at 100% 0%, rgba(255,45,149,.18), transparent 50%), radial-gradient(600px circle at 0% 100%, rgba(138,107,255,.14), transparent 55%), var(--panel); }
.contact h2 { font-size: clamp(36px, 6vw, 84px); line-height: .95; letter-spacing: -0.03em; font-weight: 800; max-width: 14ch; }
.contact p { color: var(--muted); max-width: 52ch; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 96px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* policy views */
.policy { padding: 64px 0 24px; }
.policy .wrap { max-width: 760px; }
.policy h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; }
.policy h2 { font-size: 22px; margin: 32px 0 8px; }
.policy p, .policy li { color: #cfc8de; }
.policy .back { margin-bottom: 28px; }

/* cursor glow */
#cursor { position: fixed; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255,45,149,.12), transparent 65%); transform: translate(-500px,-500px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- multi-page additions ---- */
.navlinks a[aria-current="page"] { color: var(--ink); }
.navlinks a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 4px; background: var(--pink); border-radius: 2px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; place-items: center; }
  nav.top .btn-primary { display: none; }
  .navlinks.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7,6,11,.97); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .navlinks.open a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .navlinks.open a[aria-current="page"]::after { display: none; }
}
.page-hero { position: relative; padding: 80px 0 40px; }
.page-hero .mono { color: var(--pink); }
.page-hero h1 { font-size: clamp(40px, 7vw, 92px); line-height: .95; letter-spacing: -0.03em; font-weight: 800; margin-top: 14px; max-width: 16ch; }
.page-hero p { color: var(--muted); max-width: 60ch; font-size: clamp(17px, 2vw, 20px); margin: 22px 0 0; }
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.teaser { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: transform .3s, border-color .3s; }
.teaser:hover { transform: translateY(-6px); border-color: rgba(255,45,149,.45); }
.teaser h3 { font-size: 26px; }
.teaser p { color: var(--muted); margin: 0; flex: 1; }
.teaser .go { color: var(--pink); font-weight: 600; }
@media (max-width: 860px) { .teasers { grid-template-columns: 1fr; } }
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 8px; }
.tl { position: relative; padding: 0 0 36px 32px; }
.tl::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 14px var(--pink); }
.tl .when { color: var(--muted); }
.tl h3 { font-size: 24px; margin: 4px 0 6px; }
.tl p { color: var(--muted); margin: 0; max-width: 62ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.step .n { font-family: var(--font-mono); color: var(--pink); font-size: 13px; }
.step h3 { font-size: 21px; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--pink); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info { display: grid; gap: 18px; }
.info div { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.info .mono { color: var(--pink); display: block; margin-bottom: 6px; }
.info a { text-decoration: none; }
.info a:hover { color: var(--pink); }
form.cf { display: grid; gap: 16px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); }
form.cf label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
form.cf input, form.cf textarea, form.cf select { font: inherit; color: var(--ink); background: #0b0a10; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
form.cf input:focus, form.cf textarea:focus, form.cf select:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
form.cf textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.wordmark-hero svg { height: clamp(48px, 8vw, 84px); width: auto; max-width: 100%; display: block; }
.mission { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.01em; max-width: 26ch; }
.mission em { font-style: normal; color: var(--pink); }
.prod .price { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.contact-grid > * { min-width: 0; }
form.cf input, form.cf textarea, form.cf select { width: 100%; min-width: 0; box-sizing: border-box; }
.info div { overflow-wrap: anywhere; }
