/* HaiOS — public teaser. Hero + "Coming soon." + footer. Self-contained.
   Brand v0.1 (LOCKED): warm cream on near-black, HAI cyan #22d3ee / os #c8742e. */

:root {
  --bg:    #07090d;
  --cream: #f3eede;
  --text:  #d5dde6;
  --muted: #8595a6;
  --faint: #55647a;
  --line:  #1b2632;
  --cyan:  #22d3ee;
  --os:    #c8742e;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
@font-face {
  font-family: "HAIos Glyph";
  src: url("assets/logos/haios-glyph.ttf") format("truetype");
  font-display: block;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}

/* ---------- hero ---------- */
.hero {
  position: relative; flex: 1 0 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 80px 24px 40px; overflow: hidden;
}
.hero::before {
  content:""; position: absolute; inset: 0;
  background: url("assets/wallpapers/2-hai-arch.webp") center/cover no-repeat;
  opacity: 0.38;
}
.hero::after {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(120% 85% at 50% 8%, transparent 34%, var(--bg) 92%),
              linear-gradient(180deg, rgba(7,9,13,0.5), rgba(7,9,13,0.15) 44%, var(--bg));
}
.hero > * { position: relative; z-index: 2; }

/* two-tone wordmark: HAI brand-blue, "os" hue-rotated to brownish-orange */
.wm { display: inline-flex; align-items: flex-start; line-height: 0; }
.wm img { display: block; height: auto; }
.wm .wm-hai { width: 57.375%; filter: drop-shadow(0 8px 30px rgba(34,211,238,0.38)); }
.wm .wm-os  { width: 42.625%; filter: hue-rotate(214deg) saturate(1.18) drop-shadow(0 8px 30px rgba(200,116,46,0.4)); }
.hero .wm.wordmark { width: min(600px, 84vw); margin-bottom: 28px; }

/* tagline: fixed-in-place "A(n) {arch|omarchy|…} based distro." */
.hero .tagline {
  position: relative; width: min(25em, 96vw); height: 1.5em;
  font-size: clamp(1.5rem, 4.2vw, 2.6rem); color: var(--cream); font-weight: 620;
  letter-spacing: 0.005em; line-height: 1.25; margin: 0 0 30px; white-space: nowrap;
}
.hero .tagline-copy {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  display: inline-flex; align-items: baseline;
}
.hero .tagline .article { display: inline-flex; align-items: baseline; margin-right: 0.28em; }
.hero .tagline .artn {
  display: inline-block; max-width: 0; opacity: 0; overflow: hidden;
  font: inherit; line-height: inherit; vertical-align: baseline;
  transition: max-width .45s ease, opacity .32s ease;
}
.hero .tagline .word-shell {
  display: inline-flex; align-items: baseline; max-width: 0; margin-right: 0;
  opacity: 0; overflow: hidden; color: var(--cream); text-shadow: none;
  transition: max-width .5s ease, margin-right .5s ease, opacity .35s ease, color .45s ease, text-shadow .45s ease;
}
.hero .tagline .word-edge {
  display: inline-block; overflow: hidden; opacity: 1; max-width: 2.4em;
  transition: max-width .5s ease, opacity .32s ease;
}
.hero .tagline .word-core { display: inline-block; color: inherit; }
.hero .tagline-copy[data-article="an"] .artn { max-width: 0.72em; opacity: 1; }
.hero .tagline-copy:not([data-state="plain"]) .word-shell { max-width: 7.2em; margin-right: 0.28em; opacity: 1; }
.hero .tagline-copy[data-state="omarchy"] .word-shell {
  color: #5ec46b; text-shadow: 0 0 20px rgba(94,196,107,0.5);
}
.hero .tagline-copy[data-state="arch"] .word-shell {
  max-width: 4.15em; color: #49a6ff; text-shadow: 0 0 20px rgba(73,166,255,0.5);
}
.hero .tagline-copy[data-state="arch"] .word-edge { max-width: 0; opacity: 0; }
.hero .tagline-copy.is-changing .word-shell { opacity: 0; }
.hero .tagline .based { display: inline-block; }

/* lineage chain — logos, text on hover only */
.hero .lineage-block { display: flex; flex-direction: column; align-items: center; min-height: 60px; }
.hero .lineage-stage { min-height: 54px; display: flex; align-items: center; justify-content: center; }
.hero .lineage {
  display: inline-flex; align-items: center; gap: 18px; flex-wrap: nowrap; justify-content: center;
  font-family: var(--mono);
}
.hero .lineage-logos .logo-node {
  position: relative; display: inline-flex; min-width: 48px; height: 34px;
  align-items: center; justify-content: center; color: #4b586a; border-radius: 5px;
  transition: color .25s ease, filter .25s ease;
}
.hero .lineage-logos .logo-node.arch { color: #66748a; }
.hero .lineage-logos .logo-node.omarchy { color: #8b99ac; }
.hero .lineage-logos .logo-node.haios { color: var(--cyan); }
.hero .lineage-logos .logo-node:not(.haios):hover,
.hero .lineage-logos .logo-node:not(.haios):focus-visible { color: var(--cream); }
.hero .lineage-logos .logo-node.haios:hover,
.hero .lineage-logos .logo-node.haios:focus-visible { filter: brightness(1.2); }
.hero .lineage-logos .logo-node:focus-visible { outline: 1px solid color-mix(in srgb, currentColor 55%, transparent); outline-offset: 3px; }
.hero .lineage-logos .nerd-glyph {
  font-family: "JetBrainsMono Nerd Font", "JetBrainsMono NF", sans-serif;
  font-size: 1.55rem; font-weight: 400; line-height: 1;
}
.hero .lineage-logos .omarchy-glyph {
  display: block; width: 25px; height: 25px; background-color: currentColor;
  -webkit-mask: url("assets/logos/omarchy-symbol.png") center/contain no-repeat;
  mask: url("assets/logos/omarchy-symbol.png") center/contain no-repeat;
}
.hero .lineage-logos .hai-glyph {
  font-family: "HAIos Glyph"; font-size: 1.75rem; font-weight: 400; line-height: 1;
  text-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 48%, transparent);
}
.hero .lineage-logos i {
  font-style: normal; font-size: 0.74rem; opacity: 0.8;
  color: color-mix(in srgb, var(--cyan) 42%, var(--faint));
}
.hero .lineage-logos small {
  position: absolute; top: calc(100% + 5px); left: 50%; transform: translate(-50%, -3px);
  opacity: 0; pointer-events: none; white-space: nowrap;
  font: 500 0.46rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: currentColor;
  transition: opacity .2s ease, transform .2s ease;
}
.hero .lineage-logos .logo-node:hover small,
.hero .lineage-logos .logo-node:focus-visible small { opacity: 1; transform: translate(-50%, 0); }
.hero .lineage-logos .haios small { display: inline-flex; gap: 0; }
.hero .lineage-logos .haios small em { color: var(--cyan); font-style: normal; }
.hero .lineage-logos .haios small u { color: var(--os); text-decoration: none; }
@media (max-width: 560px) {
  .hero .lineage-logos { gap: 8px; }
  .hero .lineage-logos .logo-node { min-width: 38px; }
}

/* coming soon */
.coming {
  margin-top: 46px; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.coming::before, .coming::after {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cyan) 55%, transparent), transparent);
}

/* ---------- footer ---------- */
footer {
  flex: none; border-top: 1px solid var(--line); padding: 26px;
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--faint);
}
footer .co { color: var(--muted); }
footer a { color: var(--faint); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--cyan); }
footer .sep { opacity: 0.4; }
@media (max-width: 480px){ footer { gap: 12px; font-size: 0.68rem; } footer .sep { display: none; } }
