/* Mai Lab — single dark brand look (neon on deep violet-navy).
   Layout: narrow reading column, full-bleed bands; one hero moment (the ring mark), everything else quiet. */
@font-face { font-family: "Comfortaa"; font-weight: 700; font-display: swap;
  src: url("fonts/comfortaa-700-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Comfortaa"; font-weight: 700; font-display: swap;
  src: url("fonts/comfortaa-700-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0B0920;
  --band: #110E29;
  --line: #262150;
  --fg: #ECEAFB;
  --muted: #A6A2CC;
  --violet: #8B5CF6;
  --violet-hi: #B07CFF;
  --cyan: #22D3EE;
  --cyan-hi: #67E8F9;
  --display: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1080px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan-hi); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 60ch; }
.human { color: var(--violet-hi); } .ai { color: var(--cyan-hi); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(11, 9, 32, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.top img { height: 34px; width: auto; display: block; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--fg); }
@media (max-width: 640px) { .top nav { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before { /* faint lab grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-block: 88px 96px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.mark { width: 100%; max-width: 300px; justify-self: center; aspect-ratio: 1; }
.mark .ring { fill: none; stroke: url(#hp); stroke-width: 18; filter: drop-shadow(0 0 22px rgba(139, 92, 246, .55)); }
.mark .core { fill: url(#hc); filter: drop-shadow(0 0 26px rgba(34, 211, 238, .75)); transform-origin: 100px 100px; animation: pulse 4.5s ease-in-out infinite; }
.mark .orbit { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 8; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .mark .core { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 64px; } .mark { max-width: 200px; order: -1; justify-self: start; } }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--body);
  padding: 15px 22px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--fg);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--cyan); }
.btn-primary { background: linear-gradient(135deg, var(--violet), #7444E8); border-color: transparent; color: #fff; box-shadow: 0 0 24px rgba(139, 92, 246, .45); }
.btn-primary:hover { box-shadow: 0 0 32px rgba(139, 92, 246, .7); border-color: transparent; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; box-shadow: none; }

/* sections */
section { padding-block: 84px; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 720px; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 26px 26px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.service p { color: var(--muted); }
.service .tag { font: 500 13px/1.4 var(--mono); color: var(--cyan); }

.principle { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.principle div { display: grid; gap: 8px; align-content: start; }
.principle p { color: var(--muted); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--violet); position: relative; }
.dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--cyan); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--violet); }
.steps li::before { content: "0" counter(s); font: 600 14px/1 var(--mono); color: var(--cyan); }
.steps p { color: var(--muted); }

.contact .wrap { display: grid; gap: 22px; justify-items: start; }
.contact p { color: var(--muted); max-width: 60ch; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.notfound { display: grid; gap: 20px; justify-items: start; }

/* language switch: stays visible on phones, where the section nav is hidden */
.top .lang { color: var(--muted); text-decoration: none; font: 700 13px/1 var(--body); letter-spacing: .08em;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; }
.top .lang:hover { color: var(--fg); border-color: var(--violet); }
