:root {
  --bg: #000000;
  --bg-2: #0a0e11;
  --bg-3: #121820;
  --fg: #eef7fb;
  --fg-dim: #9fb2bb;
  --fg-mute: #5f727b;
  --line: rgba(160, 225, 245, 0.14);
  --line-2: rgba(160, 225, 245, 0.24);
  --accent: #8fe6ff;
  --accent-soft: rgba(143, 230, 255, 0.12);
  --ok: #8fe6ff;
  --live: #e0453a;
  --radius: 14px;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --vt: 'VT323', ui-monospace, monospace;
}

@keyframes mei-pulse { 0%, to { opacity: 1; } 50% { opacity: .35; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; }
.mute { color: var(--fg-mute); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.14em; font-size: 14px; text-decoration: none; }
.logo-mark {
  width: 20px; height: 20px; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(143, 230, 255, 0.55));
}

/* atmosphere */
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.atmo-glow { position: absolute; inset: 0; background: radial-gradient(1100px 650px at 50% -8%, rgba(143, 230, 255, 0.14), transparent 60%); }
.atmo-waves { position: absolute; bottom: 0; left: 0; width: 100%; height: 55vh; opacity: .4; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--fg-dim); font-size: 15px; transition: color .15s ease; }
.nav-links a:hover { color: var(--fg); }

/* mobile nav */
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0;
}
.menu-toggle span { width: 20px; height: 1.5px; background: var(--fg); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column; gap: 2px; padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { text-decoration: none; color: var(--fg-dim); font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav-mobile .btn { margin-top: 14px; justify-self: start; width: fit-content; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fg); color: var(--bg);
  border: 1px solid var(--fg); border-radius: 999px;
  padding: 13px 24px; font: 600 15px var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-3); }

/* hero */
.hero { padding: 110px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 72px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.glow { position: absolute; filter: blur(70px); pointer-events: none; z-index: 0; }
.glow-a {
  width: 150px; height: 640px; top: -140px; right: 16%; border-radius: 120px; transform: rotate(7deg);
  background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(143,230,255,.14) 42%, transparent 80%);
}
.glow-b {
  width: 120px; height: 540px; top: -100px; right: 25%; border-radius: 120px; transform: rotate(-6deg);
  background: linear-gradient(180deg, rgba(143,230,255,.3), rgba(255,255,255,.08) 46%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.eyebrow { font: 400 16px var(--vt); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; text-shadow: 0 0 10px rgba(143,230,255,.4); }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), #eef7fb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 28px; font-size: 20px; color: var(--fg-dim); max-width: 34em; }
.trust-line { margin-top: 16px; font-size: 15px; color: var(--fg-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust-line::before { content: '✓'; color: var(--ok); font-weight: 700; }
.trust-line a { color: var(--accent); text-decoration: none; }
.trust-line a:hover { text-decoration: underline; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 6px; color: var(--fg-mute); font-family: var(--vt); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-stats .n { font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); text-transform: none; }

.log {
  position: relative;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(143,230,255,.06);
}
.log::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px);
}
.corner { position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--accent); opacity: .7; pointer-events: none; z-index: 2; }
.corner.tl { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.corner.tr { top: 8px; right: 8px; border-width: 1.5px 1.5px 0 0; }
.corner.bl { bottom: 8px; left: 8px; border-width: 0 0 1.5px 1.5px; }
.corner.br { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }
.log-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--vt); font-size: 15px; }
.log-head .mute { margin-left: auto; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); animation: mei-pulse 1.4s infinite; }
.log-body { list-style: none; padding: 10px 0; }
.log-body li {
  display: flex; gap: 16px; padding: 9px 18px; color: var(--fg-dim); font-family: var(--vt); font-size: 15px;
  opacity: 0; transform: translateY(4px); animation: in .5s ease forwards;
}
.log-body li:nth-child(1) { animation-delay: .2s } .log-body li:nth-child(2) { animation-delay: .6s }
.log-body li:nth-child(3) { animation-delay: 1s }  .log-body li:nth-child(4) { animation-delay: 1.4s }
.log-body li:nth-child(5) { animation-delay: 1.8s } .log-body li:nth-child(6) { animation-delay: 2.2s }
.log-body .t { color: var(--accent); min-width: 44px; }
.log-body li.ok { color: var(--fg); }
.log-body li.ok .t { color: var(--ok); }
@keyframes in { to { opacity: 1; transform: none; } }

/* strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.strip .wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.strip-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }
.strip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--fg-dim); }

/* sections */
.section { padding: 120px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
h3 { font-size: 20px; letter-spacing: -0.015em; font-weight: 600; margin-bottom: 10px; }
.sub { margin-top: 18px; color: var(--fg-dim); font-size: 18px; }
.grid { display: grid; gap: 16px; }

/* work */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  background: transparent; color: var(--fg-dim); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 7px 14px; font: inherit; cursor: pointer;
}
.chip:hover { color: var(--fg); }
.chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.work-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card p { color: var(--fg-dim); font-size: 15.5px; }
.card.feature { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px 40px; padding: 34px; }
.card.feature .card-top { grid-column: 1 / -1; }
.card.feature h3 { font-size: 28px; }
.card.feature .facts { grid-column: 2; }
.card-top { display: flex; justify-content: space-between; color: var(--fg-mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.status { color: var(--fg-mute); }
.status.live { color: var(--live); }
.status.live::before { content: '● '; display: inline-block; animation: mei-pulse 1.4s infinite; }
.facts { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.facts li { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; color: var(--fg-dim); }
.facts b { color: var(--fg); font-weight: 500; }
.card.inhouse { background: linear-gradient(160deg, var(--accent-soft), var(--bg-2) 60%); border-color: rgba(143, 230, 255, 0.28); }
.link { margin-top: auto; padding-top: 16px; color: var(--accent); text-decoration: none; }
.card.hide { display: none; }
@media (min-width: 901px) {
  .work-grid .feature + .feature { grid-column: span 3; }
}
.cta-row {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: 28px 32px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.cta-row p { color: var(--fg-dim); font-size: 16px; max-width: 42em; }

/* capabilities */
.cap-grid { grid-template-columns: repeat(4, 1fr); }
.cap { padding: 28px; border-top: 1px solid var(--line-2); }
.cap-n { color: var(--accent); display: block; margin-bottom: 26px; }
.cap p { color: var(--fg-dim); font-size: 15.5px; }

/* mei model */
.why-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.why { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s ease, transform .2s ease; }
.why:hover { border-color: var(--line-2); transform: translateY(-2px); }
.why .cap-n { margin-bottom: 18px; }
.why p { color: var(--fg-dim); font-size: 15.5px; }
.callout {
  margin-top: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; max-width: 46em;
  padding-left: 20px; border-left: 2px solid var(--accent);
}

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 36px; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 16px 22px; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.compare thead th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-mute); background: var(--bg); }
.compare tbody th { color: var(--fg-dim); font-weight: 500; width: 160px; }
.compare td { color: var(--fg-dim); }
.compare th.hl, .compare td.hl { color: var(--fg); background: var(--accent-soft); font-weight: 500; }
.compare thead th.hl { color: var(--accent); background: var(--accent-soft); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }

/* process */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.steps li { padding: 24px 24px 0 0; position: relative; }
.steps li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.steps .mono { color: var(--fg); display: block; margin-bottom: 8px; }
.steps p { color: var(--fg-dim); font-size: 15px; }

/* engagements */
.eng-grid { grid-template-columns: repeat(3, 1fr); }
.eng { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; }
.eng.hl { border-color: rgba(143, 230, 255, 0.45); box-shadow: 0 0 0 1px rgba(143, 230, 255, 0.15), 0 30px 60px rgba(0,0,0,.35); }
.badge {
  position: absolute; top: -12px; right: 28px; background: var(--accent); color: var(--bg);
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 12px; border-radius: 999px;
}
.eng .mono { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; margin-bottom: 18px; }
.eng h3 { font-size: 28px; color: var(--accent); }
.eng-time { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11.5px; color: var(--fg-mute); margin-top: 6px; margin-bottom: 18px; }
.eng > p { color: var(--fg-dim); font-size: 15.5px; }
.eng-for { margin-top: 20px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.eng-foot { margin-top: 22px; color: var(--fg-dim); font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 16px; }
.ticks { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.ticks li { font-size: 15px; padding-left: 22px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }

/* trust */
.checklist {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
  margin-bottom: 32px;
}
.checklist li {
  font-size: 15.5px; padding: 16px 18px 16px 44px; position: relative;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}

/* contact */
.contact { background: radial-gradient(800px 400px at 15% 0%, rgba(143, 230, 255, 0.08), transparent 70%); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.sub.small { font-size: 15px; margin-top: 24px; }
.mini-steps { list-style: none; margin-top: 28px; display: grid; gap: 10px; counter-reset: step; }
.mini-steps li { padding-left: 34px; position: relative; font-size: 15px; color: var(--fg-dim); counter-increment: step; }
.mini-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; color: var(--accent); font-size: 13px;
}
.form { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px; display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13px; color: var(--fg-dim); }
.form input, .form select, .form textarea {
  background: var(--bg); color: var(--fg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; font: 15px var(--sans); resize: vertical; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { justify-self: start; }
.form-note { font-size: 11.5px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.footer p { font-size: 14px; margin-top: 10px; }
.footer-links { display: flex; gap: 10px; align-items: center; color: var(--fg-dim); flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-links span { color: var(--fg-mute); }

/* responsive */
@media (max-width: 900px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .work-grid, .why-grid, .eng-grid, .trust-grid { grid-template-columns: 1fr; }
  .cap-grid, .steps { grid-template-columns: 1fr 1fr; }
  .card.feature { grid-column: auto; grid-template-columns: 1fr; }
  .card.feature .facts { grid-column: auto; }
  .section { padding: 80px 0; }
  .footer-row { align-items: start; }
  .footer-links { width: 100%; order: 3; }
}
@media (min-width: 901px) {
  .nav-mobile { display: none !important; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .cap-grid, .steps, .row2, .checklist { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
}
