:root {
  --bg:#070b16; --bg-2:#0b1224; --ink:#eef4ff; --muted:#9db0cc; --line:rgba(148,190,255,.14);
  --blue:#1e7bff; --cyan:#27d9ff; --teal:#14e0c0;
  --grad:linear-gradient(100deg,var(--blue),var(--cyan) 55%,var(--teal));
  --head:71px; /* height of the sticky header */
}
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; scroll-padding-top:var(--head); }
body { font-family:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif; color:var(--ink); background:var(--bg); line-height:1.65; overflow-x:hidden; }
img { display:block; max-width:100%; height:auto; }
.wrap { max-width:1140px; margin:0 auto; padding-left:24px; padding-right:24px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

.progress { position:fixed; inset:0 0 auto 0; height:3px; background:var(--grad); transform-origin:left; transform:scaleX(0); z-index:30; }

/* header */
header { position:sticky; top:0; z-index:20; background:rgba(7,11,22,.65); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 24px; min-height:70px; padding-top:8px; padding-bottom:8px; }
.logo { display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; }
.logo img { width:45px; }
.word { font-weight:800; letter-spacing:.16em; line-height:1.1; font-size:1.05rem; }
.word small { display:block; font-size:.54rem; letter-spacing:.34em; color:var(--cyan); font-weight:600; }
nav { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
nav a { color:var(--muted); text-decoration:none; font-size:.92rem; padding:6px 14px; border-radius:999px; transition:color .2s, background .2s; }
nav a:hover { color:var(--ink); background:rgba(148,190,255,.1); }
nav a.nav-cta { color:var(--ink); border:1px solid rgba(39,217,255,.45); }

/* hero */
.hero { position:relative; min-height:calc(100svh - 70px); display:flex; align-items:center; padding:64px 0; overflow:hidden; isolation:isolate; }
.hero::before { content:""; position:absolute; inset:0; z-index:-3; background:radial-gradient(90% 80% at 70% 30%,#12254a 0%,transparent 60%); }
#network { position:absolute; inset:0; width:100%; height:100%; z-index:-1; }
.aurora { position:absolute; inset:0; z-index:-2; filter:blur(90px); opacity:.45; }
.aurora i { position:absolute; width:40vmax; height:40vmax; border-radius:50%; animation:drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background:var(--blue); top:-20%; left:-10%; }
.aurora i:nth-child(2) { background:var(--teal); bottom:-30%; right:-8%; animation-delay:-6s; opacity:.7; }
.aurora i:nth-child(3) { background:#3b2fd0; top:20%; left:45%; width:24vmax; height:24vmax; animation-delay:-11s; }
@keyframes drift { to { transform:translate(8vw,6vh) scale(1.2); } }

.hero-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:56px; align-items:center; width:100%; }
.hero-grid > * { min-width:0; }
.hero-copy > * { animation:rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay:.1s; }
.hero-copy > :nth-child(3) { animation-delay:.2s; }
.hero-copy > :nth-child(4) { animation-delay:.3s; }
.hero-copy > :nth-child(5) { animation-delay:.4s; }
@keyframes rise { from { opacity:0; transform:translateY(24px); } }

.pill { display:inline-flex; align-items:center; gap:10px; border:1px solid var(--line); background:rgba(148,190,255,.07); border-radius:999px; padding:6px 16px; font-size:.82rem; color:var(--muted); }
.pill span { width:8px; height:8px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 0 rgba(20,224,192,.7); animation:pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow:0 0 0 9px rgba(20,224,192,0); } 100% { box-shadow:0 0 0 0 rgba(20,224,192,0); } }
h1 { font-family:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif; font-size:clamp(2.5rem,6.2vw,4.5rem); line-height:1.06; letter-spacing:-.035em; margin-top:22px; font-weight:800; }
h1 em { font-style:normal; background:linear-gradient(100deg,var(--blue),var(--cyan),var(--teal),var(--cyan),var(--blue)); background-size:200% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:shine 6s linear infinite; }
@keyframes shine { to { background-position:-200% 0; } }
.rotator { margin-top:18px; font-size:clamp(1.1rem,2.2vw,1.45rem); font-weight:600; min-height:1.65em; }
#rotate { color:var(--cyan); border-right:2px solid var(--cyan); padding-right:3px; animation:caret .9s steps(1) infinite; }
@keyframes caret { 50% { border-color:transparent; } }
.lead { margin-top:10px; max-width:50ch; color:var(--muted); font-size:1.08rem; }
.actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.btn { display:inline-flex; align-items:center; gap:10px; border:1px solid transparent; border-radius:999px; padding:13px 26px; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; color:#03101f; background:var(--grad); box-shadow:0 8px 30px -8px rgba(39,217,255,.6); transition:transform .2s, box-shadow .2s; }
.btn:hover { transform:translateY(-2px); box-shadow:0 14px 38px -8px rgba(39,217,255,.8); }
.btn span { transition:transform .2s; }
.btn:hover span { transform:translateX(4px); }
.btn.ghost { color:var(--ink); background:rgba(148,190,255,.06); border-color:var(--line); box-shadow:none; }
.btn.ghost:hover { border-color:var(--cyan); }
.btn:disabled { opacity:.6; cursor:default; }
a:focus-visible, button:focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }

/* floating logo */
.emblem { position:relative; aspect-ratio:1; max-width:500px; width:100%; margin:0 auto; display:grid; place-items:center; transform:translate3d(var(--px,0),var(--py,0),0); transition:transform .3s ease-out; }
.emblem img { position:relative; width:76%; filter:drop-shadow(0 20px 40px rgba(30,123,255,.55)); animation:float 6s ease-in-out infinite; }
@keyframes float { 50% { transform:translateY(-16px); } }
.halo { position:absolute; inset:16%; border-radius:50%; background:radial-gradient(circle,rgba(39,217,255,.35),transparent 68%); animation:breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform:scale(1.18); opacity:.6; } }
.orbit { position:absolute; border:1px solid var(--line); border-radius:50%; animation:spin 22s linear infinite; }
.orbit.o1 { inset:5%; }
.orbit.o2 { inset:-3%; border-style:dashed; animation-duration:40s; animation-direction:reverse; }
.orbit i { position:absolute; top:50%; left:-5px; width:10px; height:10px; border-radius:50%; background:var(--cyan); box-shadow:0 0 18px 4px rgba(39,217,255,.7); }
@keyframes spin { to { transform:rotate(360deg); } }
.chip { position:absolute; font:600 .82rem ui-monospace,"Cascadia Code",Consolas,monospace; padding:8px 14px; border-radius:12px; border:1px solid var(--line); background:rgba(11,18,36,.7); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); color:var(--cyan); animation:float 5s ease-in-out infinite; }
.c1 { top:12%; left:2%; }
.c2 { top:18%; right:0; animation-delay:-1.4s; }
.c3 { bottom:14%; left:6%; animation-delay:-2.6s; color:var(--teal); }
.c4 { bottom:18%; right:8%; animation-delay:-3.8s; }

/* marquee */
.marquee { overflow:hidden; border-block:1px solid var(--line); background:var(--bg-2); padding:18px 0; -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }
.track { display:flex; width:max-content; animation:slide 36s linear infinite; }
.marquee:hover .track { animation-play-state:paused; }
.track span { display:flex; align-items:center; white-space:nowrap; font-weight:600; color:var(--muted); font-size:1.05rem; }
.track span::after { content:"\25C6"; color:var(--cyan); font-size:.55rem; margin:0 28px; }
@keyframes slide { to { transform:translateX(-50%); } }

/* sections */
section { position:relative; padding:104px 0; }
.eyebrow { color:var(--cyan); font-weight:700; font-size:.76rem; letter-spacing:.22em; text-transform:uppercase; margin-bottom:10px; }
h2 { font-size:clamp(1.8rem,3.8vw,2.7rem); letter-spacing:-.025em; line-height:1.15; margin-bottom:36px; }
h3 { font-size:1.1rem; margin-bottom:6px; }
.muted { color:var(--muted); }

.bento { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.card { position:relative; border:1px solid var(--line); border-radius:20px; padding:26px; background:linear-gradient(180deg,rgba(148,190,255,.07),rgba(148,190,255,.02)); overflow:hidden; }
.card::before { content:""; position:absolute; inset:0; background:radial-gradient(320px circle at var(--mx,50%) var(--my,0%),rgba(39,217,255,.18),transparent 60%); opacity:0; transition:opacity .3s; pointer-events:none; }
.card:hover::before { opacity:1; }
.card svg { width:42px; height:42px; padding:9px; margin-bottom:22px; border-radius:12px; background:rgba(39,217,255,.1); fill:none; stroke:var(--cyan); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; transition:transform .3s; }
.card:hover svg { transform:scale(1.1) rotate(-5deg); }
.card p, .steps p { color:var(--muted); font-size:.95rem; }
.more { margin-top:28px; color:var(--muted); }
.more a { color:var(--cyan); font-weight:700; }

/* Services: heading and all eight cards fit in one screen */
#services { display:flex; align-items:center; min-height:calc(100vh - var(--head)); min-height:calc(100svh - var(--head)); padding:clamp(14px,3vh,48px) 0; }
#services .wrap { width:100%; }
#services h2 { font-size:clamp(1.5rem,min(3.8vw,6vh),2.7rem); margin-bottom:clamp(12px,3vh,32px); }
#services .card { padding:clamp(14px,2.6vh,26px) clamp(16px,1.8vw,24px); }
#services .card svg { margin-bottom:clamp(8px,1.8vh,20px); }
#services .card p { line-height:1.55; }
#services .more { margin-top:clamp(10px,2.4vh,26px); }

#how { background:var(--bg-2); }
.steps { list-style:none; counter-reset:s; }
.steps li { position:relative; counter-increment:s; padding:0 0 28px 62px; }
.steps li::before { content:"0" counter(s); position:absolute; left:0; top:0; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(39,217,255,.5); color:var(--cyan); font-weight:700; font-size:.85rem; background:var(--bg-2); }
.steps li:not(:last-child)::after { content:""; position:absolute; left:20px; top:46px; bottom:4px; width:2px; background:linear-gradient(var(--cyan),transparent); }
.window { border:1px solid var(--line); background:#050914; border-radius:18px; padding:18px 22px 24px; box-shadow:0 40px 80px -30px rgba(30,123,255,.5); }
.dots { display:flex; align-items:center; gap:7px; margin-bottom:18px; }
.dots i { width:11px; height:11px; border-radius:50%; background:#26334f; }
.dots b { margin-left:auto; font:400 .75rem ui-monospace,Consolas,monospace; color:var(--muted); }
pre { font:.86rem/1.85 ui-monospace,"Cascadia Code",Consolas,monospace; white-space:pre-wrap; color:#dbe7ff; min-height:16.7em; }
.k { color:#6cb2ff; }
.s { color:#4ef0c8; }

.center { text-align:center; }
.clients { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; }
.client { min-width:270px; padding:34px 36px; font-size:1.2rem; font-weight:700; border-radius:20px; border:1px solid transparent; background:linear-gradient(var(--bg),var(--bg)) padding-box, linear-gradient(120deg,rgba(30,123,255,.8),rgba(20,224,192,.25)) border-box; }

.panel { border:1px solid var(--line); border-radius:28px; padding:48px; background:radial-gradient(90% 120% at 0% 0%,rgba(30,123,255,.22),transparent 60%),radial-gradient(70% 90% at 100% 100%,rgba(20,224,192,.14),transparent 60%),var(--bg-2); }
.split { display:grid; grid-template-columns:1fr 1.1fr; gap:48px; align-items:start; }
.split > * { min-width:0; }
.split h2 { margin-bottom:18px; }
form { display:grid; gap:14px; }
label { display:grid; gap:5px; font-size:.88rem; font-weight:600; min-width:0; }
label em { font-style:normal; font-weight:400; color:var(--muted); }
input, textarea { width:100%; font:inherit; font-weight:400; color:var(--ink); background:rgba(5,9,20,.75); border:1px solid var(--line); border-radius:12px; padding:11px 14px; transition:border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(39,217,255,.22); }
textarea { resize:vertical; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.hp { position:absolute; left:-9999px; }
.note { font-size:.82rem; color:var(--muted); }
form .btn { justify-self:start; }
#form-status { font-weight:600; min-height:1.65em; }
#form-status.ok { color:var(--teal); }
#form-status.error { color:#ff8f87; }

footer { border-top:1px solid var(--line); padding:28px 0; color:var(--muted); font-size:.9rem; }
.foot { display:flex; align-items:center; gap:12px; }
.foot img { width:34px; }

/* scroll reveal (only when scripts run) */
.js .reveal { opacity:0; transform:translateY(32px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay:var(--d,0s); }
.js .reveal.in { opacity:1; transform:none; }

@media (max-width:900px) {
  .hero-grid, .split { grid-template-columns:1fr; gap:36px; }
  .bento { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .emblem { max-width:360px; }
}
@media (max-width:560px) {
  :root { --head:89px; }
  /* one compact row per service: icon on the left, text on the right */
  .bento { grid-template-columns:1fr; gap:6px; }
  #services { padding:10px 0; }
  #services .eyebrow { margin-bottom:2px; }
  #services h2 { margin-bottom:8px; }
  #services .card { display:grid; grid-template-columns:32px minmax(0,1fr); column-gap:12px; align-content:center; padding:7px 12px; border-radius:14px; }
  #services .card svg { grid-row:span 2; align-self:center; width:32px; height:32px; padding:6px; margin:0; border-radius:9px; }
  #services .card h3 { font-size:.92rem; margin:0; line-height:1.3; }
  #services .card p { font-size:.74rem; line-height:1.35; }
  #services .more { margin-top:8px; font-size:.85rem; }
  .two { grid-template-columns:1fr; }
  section { padding:68px 0; }
  .hero { padding:36px 0 56px; }
  .panel { padding:24px 18px; }
  .client { width:100%; min-width:0; }
  nav a { padding:5px 9px; font-size:.85rem; }
  pre { font-size:.76rem; }
}
/* tablets and short laptop screens: icon beside the title to save height */
@media (min-width:561px) and (max-width:900px), (min-width:561px) and (max-height:720px) {
  .bento { gap:10px; }
  #services { padding:10px 0; }
  #services .eyebrow { margin-bottom:4px; }
  #services h2 { margin-bottom:12px; }
  #services .card { display:grid; grid-template-columns:34px minmax(0,1fr); gap:8px 12px; align-content:start; padding:14px 16px; }
  #services .card svg { width:34px; height:34px; padding:7px; margin:0; }
  #services .card h3 { align-self:center; margin:0; font-size:1rem; line-height:1.3; }
  #services .card p { grid-column:1 / -1; font-size:.86rem; line-height:1.45; }
  #services .more { margin-top:10px; }
}
/* short phones: titles only, so all eight still fit */
@media (max-width:560px) and (max-height:760px) {
  #services .card p { display:none; }
  #services .card svg { grid-row:auto; }
  #services .card h3 { align-self:center; }
}
/* every section fits the screen, so sizes follow the window height too */
.hero { padding:clamp(16px,4vh,64px) 0; }
h1 { font-size:clamp(2.2rem,min(6.2vw,9.5vh),4.5rem); margin-top:clamp(10px,2.4vh,22px); }
.rotator { margin-top:clamp(8px,2vh,18px); }
.actions { margin-top:clamp(14px,3.6vh,34px); }
@media (min-width:901px) {
  .emblem { max-width:min(500px,calc((100vh - var(--head)) * .88)); }
  #how, #clients, #contact { display:flex; align-items:center; min-height:calc(100vh - var(--head)); min-height:calc(100svh - var(--head)); padding:clamp(14px,4vh,72px) 0; }
  #how > .wrap, #clients > .wrap, #contact > .wrap { width:100%; }
}
@media (min-width:901px) and (max-height:760px) {
  .lead { font-size:1rem; line-height:1.55; }
  .btn { padding:10px 22px; }
  h2 { font-size:clamp(1.6rem,6vh,2.4rem); margin-bottom:16px; }
  .steps li { padding-bottom:12px; }
  .steps li::before { width:36px; height:36px; }
  .steps li:not(:last-child)::after { left:17px; top:40px; }
  .steps h3 { margin-bottom:0; }
  .steps p { line-height:1.5; }
  pre { font-size:.8rem; line-height:1.65; }
  .panel { padding:22px 32px; }
  .split h2 { margin-bottom:10px; }
  form { gap:8px; }
  label { gap:2px; font-size:.82rem; }
  input, textarea { padding:6px 12px; border-radius:10px; line-height:1.5; }
  textarea { height:62px; }
  #form-status { min-height:1.3em; line-height:1.3; font-size:.9rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .js .reveal { opacity:1; transform:none; }
}
