/* MAR AI LLC — house stylesheet.
 *
 * Palette is not invented. Every colour below sits on the hue axis measured
 * out of the LUMAI app icon itself (H 214–226 across the whole artwork, near-
 * black ground, electric blue structure). The accent is that same hue pushed
 * to full chroma. Nothing here is warm; nothing here is decorative.
 *
 * Constraints that are deliberate, not laziness:
 *   - Fonts are self-hosted (fonts/). A company that tells people it does not
 *     track them cannot pull a stylesheet from someone else's CDN on load.
 *   - No build step, no script, no cookie, no third-party request of any kind.
 *   - One stylesheet for every page and every company in the family. Change a
 *     token here and the whole house moves.
 */

/* ---------- faces ---------- */
/* Both files are true variable fonts, so one request covers every weight the
 * page uses. Do not swap in static cuts — that is four requests for less range.
 */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrainsmono-latin.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --void:      #04060d;
  --plate:     #070b16;
  --plate-2:   #0a1020;
  --sunk:      #02040a;
  --hair:      #141d33;
  --hair-soft: #0e1526;
  --ink:       #e8ecf7;
  --ink-2:     #9aa7c4;
  --dim:       #5d6a89;
  --volt:      #2f7bff;
  --volt-lit:  #6ea8ff;
  --volt-deep: #0c3f83;
  --glow:      rgba(47,123,255,.30);

  --display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
             Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
             Consolas, monospace;

  --measure: 60ch;
  --edge:    1px solid var(--hair);
}

/* This page commits to the dark. A blue seal on a near-black ground is a
 * deliberate single statement; following the visitor's system preference
 * would hand half of them a different company. Every colour is painted
 * explicitly so the page holds on any host background.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 26px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--volt); color: #fff;
  padding: 12px 18px; z-index: 100;
  font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 0; }

/* ---------- micro-label ---------- */
.kicker, .facts dt, .status, .brand .entity, .hero h1 .suffix, .prose .updated {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: var(--edge);
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  position: relative;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 26px;
  flex-wrap: wrap; padding-top: 17px; padding-bottom: 17px;
}
.brand {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--display); font-weight: 500;
  font-size: 19px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand svg { width: 32px; height: 32px; display: block; flex: none; color: var(--volt); }
.brand .entity {
  font-size: 9.5px; color: var(--dim);
  letter-spacing: .26em; margin-left: 3px;
}
.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  font-weight: 400; letter-spacing: .04em;
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--ink); border-bottom-color: var(--volt);
}

/* LUPAI support/privacy navigation, including both language controls. */
.lupai-page .site-nav a,
.lupai-page .footer-nav a,
.lupai-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- hero ---------- */
.hero {
  border-bottom: var(--edge);
  background: var(--sunk);
  padding: 124px 0 108px;
  position: relative; overflow: hidden;
}
/* A single cold light source behind the seal. This is the only "effect" on
 * the page; everything else is structure. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58ch 44ch at 14% 32%, rgba(47,123,255,.14), transparent 68%),
    radial-gradient(40ch 30ch at 82% 78%, rgba(12,63,131,.16), transparent 70%);
}
/* Hairline field. 1px lines at 3% read as precision, not as a pattern. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(110,168,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110,168,255,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 60% at 30% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000 20%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .seal {
  width: 96px; height: 96px; display: block; margin-bottom: 34px;
  color: var(--volt);
  filter: drop-shadow(0 0 22px var(--glow));
}
.hero h1 {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(44px, 7vw, 74px);
  line-height: 1.02; margin: 0 0 10px;
  letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 .suffix {
  font-size: .19em; color: var(--dim);
  vertical-align: .72em; margin-left: 14px;
}
.tagline {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(13px, 1.5vw, 15px);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--volt-lit);
  margin: 0 0 30px;
}
.lede { max-width: var(--measure); color: var(--ink-2); font-size: 18px; margin: 0; }

/* ---------- sections ---------- */
main section { padding: 82px 0; border-bottom: 1px solid var(--hair-soft); }
main section:last-of-type { border-bottom: none; }
h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2;
  margin: 0 0 30px; letter-spacing: .16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 18px;
}
/* The rule that runs off the heading to the right edge. Cheap, and it makes
 * every section read as a plate rather than a paragraph. */
h2::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--hair), transparent);
}
h3 { font-size: 17px; margin: 0 0 8px; font-weight: 500; letter-spacing: .04em; }
p { max-width: var(--measure); }
a { color: var(--volt-lit); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* ---------- product ---------- */
.product {
  display: grid; grid-template-columns: 116px 1fr; gap: 32px;
  align-items: start;
  background: linear-gradient(180deg, var(--plate-2), var(--plate));
  border: var(--edge); padding: 30px;
  position: relative;
}
/* One lit edge on the left. Reads as a powered device, not a card. */
.product::before {
  content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px;
  width: 2px; background: linear-gradient(180deg, transparent, var(--volt), transparent);
}
@media (max-width: 640px) { .product { grid-template-columns: 1fr; gap: 22px; } }
.product-icon {
  width: 116px; height: 116px; display: block;
  border: 1px solid var(--hair); border-radius: 22%;
  background: var(--sunk);
}
.kicker { font-size: 10px; color: var(--dim); margin: 0 0 8px; }
.status {
  display: inline-block; font-size: 9.5px;
  color: var(--volt-lit); border: 1px solid var(--volt-deep);
  padding: 4px 10px; margin-left: 10px; vertical-align: 2px;
  background: rgba(47,123,255,.07);
}
.links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.links a { font-size: 14px; font-family: var(--mono); font-weight: 400; letter-spacing: .03em; }

/* ---------- company record ---------- */
/* Deliberately a ledger, not prose. These are the facts a registrar or a
 * storefront reviewer comes here to confirm. */
.facts { margin: 0; display: grid; gap: 0; border-top: var(--edge); }
.facts > div {
  display: grid; grid-template-columns: 210px 1fr; gap: 26px;
  padding: 15px 0; border-bottom: 1px solid var(--hair-soft);
}
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }
.facts dt { font-size: 10px; color: var(--dim); padding-top: 4px; }
.facts dd {
  margin: 0; color: var(--ink);
  font-family: var(--mono); font-weight: 400;
  font-size: 14.5px; letter-spacing: .01em; line-height: 1.65;
}
.facts dd a { color: var(--volt-lit); text-decoration: none; }
.facts dd a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  border-top: var(--edge); background: var(--sunk);
  padding: 48px 0 60px; color: var(--dim); font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand svg { width: 24px; height: 24px; flex: none; color: var(--volt-deep); }
.footer-brand span {
  font-family: var(--display); font-size: 14px; color: var(--ink-2);
  letter-spacing: .18em; text-transform: uppercase; font-weight: 400;
}
.footer-nav { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--ink-2); text-decoration: none;
  font-family: var(--mono); font-size: 13px; font-weight: 400;
}
.footer-nav a:hover { color: var(--volt-lit); }
.site-footer p { margin: 0 0 9px; max-width: 76ch; }
.disclaimer { font-size: 12.5px; color: #4b566f; }

/* ---------- long-form prose (privacy, support) ---------- */
.prose { padding: 66px 0 82px; }
.prose h1 {
  font-family: var(--display); font-weight: 200;
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12;
  margin: 0 0 12px; letter-spacing: .04em; text-transform: uppercase;
}
.prose .updated { font-size: 10px; color: var(--dim); margin: 0 0 38px; }
.prose h2 { margin-top: 46px; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 20px; color: var(--ink-2); }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--volt); }
.prose p { color: var(--ink-2); }

/* ---------- utilities ---------- */
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  a, .site-nav a { transition: color .16s ease, border-color .16s ease; }
}
