:root {
  color-scheme: dark;
  --night: #030719;
  --surface: #0b1128;
  --surface-raised: #101934;
  --white: #f5f6ff;
  --muted: #b4bed5;
  --blue: #86b5ff;
  --violet: #b49aff;
  --lemon: #e5df55;
  --border: #28314c;
  --radius: 16px;
  --max: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.25em; }
a:hover { color: var(--white); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--night);
}
.skip:focus { left: 1rem; top: 1rem; }

/* The same centered wordmark and night-sky palette as the X banner. */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 7, 25, 0.96);
  backdrop-filter: blur(16px);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding-block: 0.9rem;
}
.brand { color: var(--white); text-decoration: none; flex-shrink: 0; }
.brand-text { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.09em; }
.brand-accent { color: var(--violet); }
nav ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; padding: 0; margin: 0; }
nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}
nav a:hover { background: var(--surface-raised); color: var(--white); }
.nav-cta { border: 1px solid #4b5679; color: var(--white); margin-left: 0.8rem; }
.menu-toggle {
  display: none;
  padding: 0.55rem 0.8rem;
  border: 1px solid #4b5679;
  border-radius: 6px;
  color: var(--white);
  background: var(--surface);
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 620px;
  padding: 5.5rem 0 7rem;
  text-align: center;
  overflow: hidden;
  background: var(--night);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 7, 25, 0.3), rgba(3, 7, 25, 0.55) 52%, var(--night));
}
.hero-content { max-width: 1000px; }
.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7.8vw, 6.5rem);
  line-height: 1.08;
  font-weight: 550;
  letter-spacing: 0.025em;
}
.hero-title-accent {
  color: var(--violet);
  background: linear-gradient(100deg, #81b9ff 5%, #927bff 65%, #b681f4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  margin: 1.35rem auto 0;
  color: var(--white);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  font-weight: 400;
  text-wrap: balance;
}
.hero-lead { max-width: 40rem; margin: 1.25rem auto 0; color: var(--muted); font-size: 1.0625rem; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.hero-contact { margin: 1.25rem 0 0; font-size: 0.9375rem; }
.hero-contact a { color: var(--muted); }
.hero-contact a:hover { color: var(--white); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.btn-primary { background: #a4bdff; color: #080d24; }
.btn-primary:hover { background: #c2d2ff; color: #080d24; }
.btn-ghost { background: rgba(11, 17, 40, 0.8); border-color: #596584; color: var(--white); }
.btn-ghost:hover { background: var(--surface-raised); border-color: var(--blue); color: var(--white); }

section { padding: 5.5rem 0; }
.section-head { max-width: 43rem; margin-bottom: 2.25rem; }
.section-head h2, .about h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 550;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.0625rem; }
#products { padding-top: 3rem; border-bottom: 1px solid var(--border); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.product {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease;
}
.product:hover { border-color: #5c6b96; }
#products .product { border-top: 2px solid var(--violet); }
#products .product:nth-child(2) { border-top-color: var(--lemon); }
#products .product-formpal { border-top-color: #8ac6b5; }
#products .product-appiteyes { border-top-color: var(--blue); }
.product-mark { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; margin-bottom: 0.5rem; }
.product-heading-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.product-heading-row .product-mark { margin-bottom: 0; }
.product-status { color: var(--muted); font-size: 0.875rem; }
.product h3, .product h4 { margin: 0; font-size: 1.5rem; font-weight: 550; letter-spacing: -0.015em; line-height: 1.3; }
.product p { flex: 1; margin: 0; color: var(--muted); }
.product-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-block; border: 1px solid #303a58; border-radius: 5px; padding: 0.25rem 0.65rem; color: #c4cee6; font-size: 0.875rem; }
.product-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 1rem; margin-top: 0.5rem; border-top: 1px solid var(--border); text-decoration: none; font-weight: 600; }
.product-link span[aria-hidden] { font-size: 1.25rem; }
.development-title { margin: 3.25rem 0 1.25rem; color: var(--muted); font-size: 1.125rem; font-weight: 500; }
.development-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#products .development-products .product { border: 1px solid var(--border); padding: 1.5rem; background: transparent; }
.development-products .product h4 { font-size: 1.25rem; }
.product-initial { display: grid; place-items: center; background: var(--surface-raised); border: 1px solid #3c4d77; color: var(--blue); font-size: 1.75rem; font-weight: 500; }
.offerings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offerings .product { padding: 1.75rem 0; border: 0; border-top: 1px solid #536795; border-radius: 0; background: transparent; }
.offerings .product h3 { font-size: 1.25rem; }
.split-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
#collaborate { background: var(--surface); border-block: 1px solid var(--border); }
.offer-list { color: var(--muted); margin: 0 0 1.5rem; padding-left: 1.2rem; }
.offer-list li { margin-block: 0.55rem; padding-left: 0.3rem; }
.offer-list li::marker { color: var(--violet); }
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
.about p { color: var(--muted); margin: 0 0 1rem; }
.about p:last-child { margin-bottom: 0; }
.facts { padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.facts h3 { margin: 0 0 1.5rem; color: var(--violet); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.facts dl { display: grid; gap: 1rem; margin: 0; }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; }
.cta { padding: 3.5rem 2rem; border: 1px solid #3e4772; border-radius: var(--radius); background: linear-gradient(120deg, #101d3d, #17112e); text-align: center; }
.cta h2 { margin: 0 0 0.75rem; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 550; letter-spacing: -0.025em; }
.cta p { max-width: 34rem; margin: 0 auto 1.5rem; color: var(--muted); }
footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.875rem; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand > .brand-text { color: var(--white); font-size: 0.875rem; }

@media (max-width: 899px) {
  .nav-bar { min-height: 76px; flex-wrap: wrap; gap: 1rem; }
  nav { width: 100%; }
  nav ul { flex-wrap: wrap; }
  .offerings { grid-template-columns: 1fr; gap: 0.75rem; }
  .development-products { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 719px) {
  html { scroll-padding-top: 6rem; }
  .wrap { width: min(100% - 2rem, var(--max)); }
  .brand-text { font-size: 1rem; }
  .menu-toggle { display: inline-flex; }
  .nav-bar { min-height: 76px; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0.5rem 1rem 1rem; border-bottom: 1px solid var(--border); background: var(--night); max-height: 70vh; overflow-y: auto; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  nav a { padding: 0.75rem; }
  .nav-cta { margin: 0.25rem 0 0; text-align: center; }
  .hero { min-height: 560px; padding: 4.5rem 0 5rem; }
  .hero-art { object-position: 64% center; }
  .hero::after { background: linear-gradient(180deg, rgba(3, 7, 25, 0.55), rgba(3, 7, 25, 0.7) 60%, var(--night)); }
  .eyebrow { font-size: 0.875rem; letter-spacing: 0.1em; }
  .hero-tagline { max-width: 28rem; }
  .hero-lead { font-size: 1rem; }
  section { padding: 3.5rem 0; }
  .products { grid-template-columns: 1fr; }
  .product { padding: 1.5rem; }
  .facts { padding: 1.5rem; }
  .cta { padding: 2.5rem 1.25rem; }
}
@media (max-width: 380px) {
  h1 { font-size: 2.3rem; }
  .hero-actions .btn { width: 100%; }
  .cta .btn { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .hero-title-accent { background: none; -webkit-text-fill-color: currentColor; }
}
