/* =========================================================================
   LABTRIX Demo · Startseite (demo.labtrix.de)
   Eigenständiges Stylesheet für die kleine Index-Landing.
   Fonts werden aus /_shared/fonts/ geladen.
   ========================================================================= */

/* --- Fonts (Pfade auf /_shared/fonts/) ----------------------------------*/
@font-face {
  font-family: 'Jost';
  src: url('/_shared/fonts/jost-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  src: url('/_shared/fonts/jost-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  src: url('/_shared/fonts/outfit-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  src: url('/_shared/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens (synchron zu pitch.css) ------------------------------------- */
:root {
  --primary: #afff03;
  --primary-fg: #111;
  --secondary: #0044cb;
  --dark: #111;
  --muted: #f4f4f4;
}

/* --- Base / Layout ------------------------------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  background: #ffffff;
  color: var(--dark);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}
main {
  max-width: 36rem;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* --- Lightbeams (CSS-Port von labtrix.de/components/ui/LightBeams.tsx) -- */
.lightbeams {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  -webkit-mask-image: radial-gradient(125% 100% at 0 0, #000 0%, rgba(0,0,0,0.22) 88.3%, transparent 100%);
          mask-image: radial-gradient(125% 100% at 0 0, #000 0%, rgba(0,0,0,0.22) 88.3%, transparent 100%);
  animation: lightbeams-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) 100ms forwards;
}
@keyframes lightbeams-in { to { opacity: 1; } }

.lightbeams > span {
  position: absolute;
  top: 0;
  height: 100%;
  max-height: 600px;
  max-width: 960px;
  transform: skewX(45deg);
  background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, transparent 100%);
  overflow: hidden;
}
.lightbeams > span:nth-child(1) {
  width: 582px; left: -5%;
  -webkit-mask-image: linear-gradient(90deg, transparent 11.4%, #000 25.6%, rgba(0,0,0,0.05) 41.7%, rgba(0,0,0,0.13) 67.1%, #000 78.2%, transparent 97.3%);
          mask-image: linear-gradient(90deg, transparent 11.4%, #000 25.6%, rgba(0,0,0,0.05) 41.7%, rgba(0,0,0,0.13) 67.1%, #000 78.2%, transparent 97.3%);
}
.lightbeams > span:nth-child(2) {
  width: 591px; left: 10%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%, transparent 36.2%, #000 55.4%, rgba(0,0,0,0.13) 67.1%, #000 78.2%, transparent 97.3%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 20%, transparent 36.2%, #000 55.4%, rgba(0,0,0,0.13) 67.1%, #000 78.2%, transparent 97.3%);
}
.lightbeams > span:nth-child(3) {
  width: 441px; left: 28%;
  -webkit-mask-image: linear-gradient(90deg, transparent 9.8%, #000 20%, rgba(0,0,0,0.05) 28.6%, rgba(0,0,0,0.05) 40.1%, #000 48.6%, rgba(0,0,0,0.27) 54.5%, rgba(0,0,0,0.13) 78.6%, #000 88.6%, transparent 97.3%);
          mask-image: linear-gradient(90deg, transparent 9.8%, #000 20%, rgba(0,0,0,0.05) 28.6%, rgba(0,0,0,0.05) 40.1%, #000 48.6%, rgba(0,0,0,0.27) 54.5%, rgba(0,0,0,0.13) 78.6%, #000 88.6%, transparent 97.3%);
}
.lightbeams > span:nth-child(4) {
  width: 520px; left: 48%;
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 18%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.13) 52%, #000 68%, transparent 90%);
          mask-image: linear-gradient(90deg, transparent 5%, #000 18%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.13) 52%, #000 68%, transparent 90%);
}
.lightbeams > span:nth-child(5) {
  width: 380px; left: 65%;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 22%, rgba(0,0,0,0.05) 45%, #000 72%, transparent 95%);
          mask-image: linear-gradient(90deg, transparent 8%, #000 22%, rgba(0,0,0,0.05) 45%, #000 72%, transparent 95%);
}
@media (prefers-reduced-motion: reduce) {
  .lightbeams { animation: none; opacity: 1; }
}

/* --- Logo + Glitch ------------------------------------------------------ */
.logo {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.75rem 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 2.5rem;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.logo:hover {
  background: var(--primary-fg);
  color: #ffffff;
}
.logo-text {
  position: relative;
  display: inline-block;
  line-height: 1;
  margin: 0 -0.25em 0 -0.325em;
  text-indent: 0.35em;
}
.logo-text .g {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  letter-spacing: inherit;
  font: inherit;
  text-transform: inherit;
  white-space: nowrap;
}
.logo-text .g-cyan  { color: #00ffff; }
.logo-text .g-red   { color: #ff0040; }
.logo-text .g-slice { color: inherit; }

/* --- Inhalte ------------------------------------------------------------ */
h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.keyword {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.15em;
}
p {
  color: rgb(17 17 17 / 0.7);
  margin: 0;
  font-size: 1rem;
}
.footer-link {
  margin-top: 2rem;
  font-size: 0.875rem;
}
.footer-link a {
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.15s;
}
.footer-link a:hover { opacity: 0.6; }
