@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #03070b;
  --text: #f3f7f8;
  --muted: #71848d;
  --line: rgba(145, 188, 206, .13);
  --cyan: #71daf6;
  --gold: #d7b777;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; overflow-x: clip; background: var(--ink); }
body { min-width: 320px; min-height: 100svh; margin: 0; display: grid; grid-template-rows: auto 1fr auto; overflow-x: hidden; background: var(--ink); color: var(--text); font-family: var(--body); line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, textarea, a { font: inherit; -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 18px; z-index: 100; padding: 10px 15px; background: var(--cyan); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 18px; }
.ambient { position: fixed; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(140px); }
.ambient-one { top: -320px; left: 50%; width: 860px; height: 620px; translate: -50% 0; background: rgba(30, 134, 179, .1); }
.ambient-two { right: -320px; bottom: -320px; width: 620px; height: 620px; background: rgba(177, 132, 64, .028); }
.page-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .1; background-image: linear-gradient(rgba(113, 218, 246, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(113, 218, 246, .018) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.site-header, main, footer { position: relative; z-index: 1; }

.site-header { width: min(1380px, calc(100% - 64px)); height: 74px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 28px rgba(113, 218, 246, .11); }
.brand span { display: grid; gap: 5px; }
.brand strong { font: 700 15px/1 var(--display); letter-spacing: .19em; }
.brand small { color: var(--muted); font: 500 8px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.header-cta { color: #a9bac1; font-size: 11px; text-decoration: none; transition: color .2s; }
.header-cta i { margin-left: 7px; color: var(--cyan); font-style: normal; }
.header-cta:hover, .header-cta:focus-visible { color: var(--text); }

main { min-height: 0; }
.hero { width: min(1180px, calc(100% - 64px)); min-width: 0; min-height: calc(100svh - 122px); margin: 0 auto; padding: clamp(30px, 4vh, 48px) 0 30px; display: grid; justify-items: center; align-content: center; overflow-x: clip; text-align: center; }
.hero-copy { position: relative; z-index: 5; width: 100%; min-width: 0; max-width: 1040px; }
h1 { max-width: 100%; margin: 0 auto; font: 700 clamp(56px, 6.3vw, 92px)/.94 var(--display); letter-spacing: -.068em; text-wrap: balance; }
.hero-statement { margin: 18px 0 0; color: #dfe8eb; font: 500 clamp(18px, 1.7vw, 25px)/1.3 var(--display); letter-spacing: -.03em; }

.cognitive-interface { position: relative; width: 100%; min-width: 0; max-width: 900px; margin-top: 8px; display: grid; justify-items: center; }
.cortex-stage { position: relative; width: 100%; height: clamp(230px, 22vw, 274px); overflow: visible; }
.cortex-stage::before { content: ''; position: absolute; left: 50%; top: 46%; width: min(56vw, 570px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(113, 218, 246, .075), rgba(33, 131, 171, .025) 42%, transparent 70%); filter: blur(10px); }
.cortex-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cortex-halo { position: absolute; left: 50%; top: 46%; translate: -50% -50%; border: 1px solid rgba(113, 218, 246, .075); border-radius: 50%; pointer-events: none; }
.halo-a { width: min(38vw, 420px); aspect-ratio: 1; animation: halo-turn 28s linear infinite; }
.halo-b { width: min(49vw, 530px); aspect-ratio: 1; border-style: dashed; border-color: rgba(215, 183, 119, .05); animation: halo-turn 44s linear infinite reverse; }
.cortex-core { position: absolute; z-index: 4; left: 50%; top: 46%; width: 52px; height: 52px; translate: -50% -50%; border: 1px solid rgba(113, 218, 246, .44); border-radius: 50%; background: radial-gradient(circle, rgba(238, 252, 255, .48), rgba(50, 170, 211, .19) 24%, rgba(3, 13, 21, .94) 66%); box-shadow: 0 0 42px rgba(113, 218, 246, .25), inset 0 0 24px rgba(113, 218, 246, .15); transition: box-shadow .3s, scale .3s; }
.cortex-core::before, .cortex-core::after { content: ''; position: absolute; inset: -16px; border: 1px solid rgba(113, 218, 246, .14); border-radius: 50%; animation: core-orbit 9s linear infinite; }
.cortex-core::after { inset: -32px; border-style: dashed; animation-duration: 17s; animation-direction: reverse; }
.cortex-core i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; translate: -50% -50%; border-radius: 50%; background: #effdff; box-shadow: 0 0 10px #fff, 0 0 28px var(--cyan), 0 0 52px var(--cyan); animation: core-pulse 2.7s ease-in-out infinite; }
.cognitive-interface.engaged .cortex-core { scale: 1.08; box-shadow: 0 0 68px rgba(113, 218, 246, .38), inset 0 0 28px rgba(113, 218, 246, .2); }
.cognitive-interface.engaged .cortex-core i { animation-duration: .9s; }
.cortex-state { position: absolute; z-index: 4; left: 50%; bottom: 24px; translate: -50% 0; color: #83bdcd; font: 500 8px var(--display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.cortex-state::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.neural-stem { position: absolute; z-index: 3; left: 50%; top: 46%; bottom: 0; width: 1px; background: linear-gradient(transparent 0 12%, rgba(113, 218, 246, .08) 35%, rgba(113, 218, 246, .7) 100%); }
.neural-stem i { position: absolute; left: -2px; bottom: 8%; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); animation: signal-drop 2.8s ease-in-out infinite; }

.mission-composer { position: relative; z-index: 6; width: min(720px, calc(100% - 32px)); margin: 0; text-align: left; }
.composer-port { position: absolute; z-index: 8; left: 50%; top: 0; width: 20px; height: 20px; translate: -50% -50%; display: grid; place-items: center; border: 1px solid rgba(113, 218, 246, .27); border-radius: 50%; background: #07131b; box-shadow: 0 0 24px rgba(113, 218, 246, .2), 0 0 0 5px rgba(3, 9, 14, .88); pointer-events: none; }
.composer-port::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 16px; translate: -50% 0; background: linear-gradient(transparent, rgba(113, 218, 246, .7)); }
.composer-port::after { content: ''; position: absolute; inset: -6px; border: 1px dashed rgba(113, 218, 246, .14); border-radius: 50%; animation: core-orbit 11s linear infinite; }
.composer-port i { width: 4px; height: 4px; border-radius: 50%; background: #effdff; box-shadow: 0 0 8px #fff, 0 0 16px var(--cyan); animation: core-pulse 2.4s ease-in-out infinite; }
.mission-composer:focus-within .composer-port i, .cognitive-interface.engaged .composer-port i { animation-duration: .8s; }
.composer-surface { position: relative; isolation: isolate; min-height: 72px; padding: 1px; overflow: hidden; border-radius: 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, .4), 0 0 0 1px rgba(113, 218, 246, .045); }
.composer-surface::before { content: ''; position: absolute; z-index: -2; width: 190%; aspect-ratio: 1; left: -45%; top: 50%; translate: 0 -50%; background: conic-gradient(from 0deg, transparent 0 68%, rgba(113, 218, 246, .05) 74%, var(--cyan) 79%, var(--gold) 81%, transparent 87%); animation: composer-light 8s linear infinite; }
.composer-surface::after { content: ''; position: absolute; z-index: -1; inset: 1px; border-radius: 23px; background: linear-gradient(120deg, rgba(10, 25, 35, .99), rgba(6, 14, 21, .995)); }
.mission-composer:focus-within .composer-surface::before { animation-duration: 3.2s; }
.mission-composer textarea { position: relative; z-index: 1; display: block; width: 100%; min-height: 72px; max-height: 160px; padding: 23px 76px 21px 23px; resize: none; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 14px; line-height: 1.55; }
.mission-composer textarea::placeholder { color: #788b93; }
.composer-surface button { position: absolute; z-index: 4; right: 10px; top: 50%; width: 44px; height: 44px; translate: 0 -50%; display: grid; place-items: center; border: 0; border-radius: 15px; color: #031017; background: linear-gradient(135deg, #9ae8fa, #60c9e6); cursor: pointer; box-shadow: 0 0 28px rgba(113, 218, 246, .1); transition: transform .2s, box-shadow .2s; }
.composer-surface button b { font-size: 17px; }
.composer-surface button:hover, .composer-surface button:focus-visible { transform: translateY(-1px); box-shadow: 0 0 34px rgba(113, 218, 246, .24); }

footer { width: min(1380px, calc(100% - 64px)); min-height: 48px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid var(--line); color: #52646c; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
footer p { margin: 0; }
footer i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: .7; }

.entrance { animation: entrance .8s cubic-bezier(.2,.7,.2,1) both; }
.cognitive-interface.entrance { animation-delay: .1s; }
@keyframes entrance { from { opacity: 0; transform: translateY(12px); } }
@keyframes halo-turn { to { rotate: 360deg; } }
@keyframes core-orbit { to { rotate: 360deg; } }
@keyframes core-pulse { 50% { scale: 1.55; opacity: .72; } }
@keyframes composer-light { to { rotate: 360deg; } }
@keyframes signal-drop { 0% { translate: 0 -105px; opacity: 0; } 22%, 72% { opacity: 1; } 100% { translate: 0 8px; opacity: 0; } }

@media (max-width: 720px) {
  .site-header, .hero, footer { width: min(calc(100% - 30px), 1180px); }
  .site-header { height: 68px; }
  .brand small { display: none; }
  .header-cta { font-size: 10px; }
  .hero { min-height: calc(100svh - 112px); padding: 40px 0 28px; align-content: start; }
  h1 { max-width: 100%; font-size: clamp(38px, 10.5vw, 48px); line-height: .98; letter-spacing: -.055em; text-wrap: pretty; }
  h1 br { display: none; }
  .hero-statement { margin-top: 16px; font-size: 18px; }
  .cognitive-interface { margin-top: 8px; }
  .cortex-stage { height: 238px; }
  .halo-a { width: min(88vw, 390px); }
  .halo-b { width: min(104vw, 470px); }
  .cortex-state { bottom: 22px; }
  .mission-composer { width: 100%; }
  .composer-surface { min-height: 68px; border-radius: 22px; }
  .composer-surface::after { border-radius: 21px; }
  .mission-composer textarea { min-height: 68px; padding: 21px 70px 19px 18px; font-size: 14px; }
  .composer-surface button { right: 8px; width: 42px; height: 42px; border-radius: 14px; }
  footer { min-height: 44px; }
}

@media (min-width: 721px) and (max-height: 760px) {
  .site-header { height: 64px; }
  .hero { min-height: calc(100svh - 100px); padding: 20px 0 16px; }
  h1 { font-size: clamp(52px, 5.7vw, 76px); }
  .hero-statement { margin-top: 14px; font-size: clamp(17px, 1.45vw, 21px); }
  .cortex-stage { height: 220px; }
  .mission-composer textarea { min-height: 66px; }
  .composer-surface { min-height: 66px; }
  footer { min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
