/*
  M.E.S.S. ecosystem shared style
  Typography: Orbitron only for brand, heroes, headlines, and labels.
  Body and all running text: Inter (system-ui fallback) for readability.
*/

/* Fonts: self-hosted from mess.engineering. Lokal testen: font/ im Projekt anlegen, .ttf rein, unten relative URLs verwenden. */
@font-face {
  font-family: Orbitron;
  src: url("https://mess.engineering/font/Orbitron-VariableFont_wght.ttf") format("truetype");
  /* Lokal: url("font/Orbitron-VariableFont_wght.ttf") */
  font-weight: 100 900;
  font-display: swap;
}

/* Inter: Variable Font (Achsen opsz + wght). */
@font-face {
  font-family: Inter;
  src: url("https://mess.engineering/font/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  /* Lokal: url("font/Inter-VariableFont_opsz,wght.ttf") */
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0f14;
  --bg-soft: #111720;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);

  --text: #f4f7fb;
  --muted: #98a4b3;

  --dampf: #00fff2;
  --keim: #9ccc65;
  --wolke: #ffffff;
  --blitz: #ff5a4f;

  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 255, 242, 0.07), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 90, 79, 0.06), transparent 24%),
    linear-gradient(180deg, #0a0e13 0%, #0b0f14 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(calc(100% - 32px), var(--maxw));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Orbitron: brand only */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0,255,242,0.15), rgba(255,90,79,0.15));
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0,255,242,0.13), rgba(255,90,79,0.13));
  border-color: rgba(255, 255, 255, 0.14);
}

.hero {
  padding: 72px 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dampf), var(--blitz));
  box-shadow: 0 0 16px rgba(0,255,242,0.45);
}

.hero-grid {
  display: block;
}

/* Orbitron: hero headline only */
.hero h1 {
  margin: 0 0 18px;
  max-width: 10ch;
  font-family: Orbitron, sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
}

.hero p.lead {
  margin: 0 0 24px;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero .pipeline-catch {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Orbitron: pipeline label line + links */
.hero .pipeline-catch,
.hero .pipeline-catch a {
  font-family: Orbitron, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero .pipeline-catch a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
}

.hero .pipeline-catch a:hover {
  color: var(--dampf);
  border-bottom-color: var(--dampf);
}

.hero-pipeline-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-pipeline-row .pipeline-catch {
  margin-bottom: 0;
}

.hero-talk {
  margin: 0;
  flex-shrink: 0;
}

.hero-talk a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-talk a:hover {
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.meta-card,
.side-card,
.tool-card,
.pipeline-shell {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.meta-card {
  padding: 18px;
  border-radius: var(--radius-sm);
}

.meta-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.meta-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.side-card {
  padding: 22px;
  border-radius: var(--radius);
}

/* Orbitron: card title only */
.side-card h2 {
  margin: 0 0 12px;
  font-family: Orbitron, sans-serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 1.08rem;
}

.side-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #dce4ec;
  font-size: 0.9rem;
}

.section {
  padding: 14px 0 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

/* Orbitron: section headline only */
.section-header h2 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: 0.06em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.section-meta {
  margin: 0;
  flex-shrink: 0;
}

.section-meta a {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-meta a:hover {
  color: var(--text);
}


.pipeline-foot {
  margin-top: 24px;
  max-width: 640px;
}

.pipeline-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.pipeline-foot .tag-row {
  margin-bottom: 14px;
}

.pipeline-readme {
  margin: 0;
  font-size: 0.95rem;
}

.pipeline-readme a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pipeline-readme a:hover {
  color: var(--text);
}

.pipeline-shell {
  padding: 18px;
  border-radius: 32px;
}

.pipeline-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d1219;
}

.pipeline-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotspot {
  position: absolute;
  display: block;
  border-radius: 18px;
  background: transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.hs-dampf {
  border: 1px solid var(--dampf);
}

.hs-keim {
  border: 1px solid var(--keim);
}

.hs-wolke {
  border: 1px solid var(--wolke);
}

.hs-blitz {
  border: 1px solid var(--blitz);
}

/* Orbitron: hotspot label only */
.hotspot::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: Orbitron, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s ease;
  pointer-events: none;
  color: white;
  background: rgba(11, 15, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hotspot:hover::after,
.hotspot:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hotspot:hover,
.hotspot:focus-visible {
  outline: none;
  transform: scale(1.012);
}

.hs-dampf:hover,
.hs-dampf:focus-visible {
  background: rgba(0, 255, 242, 0.10);
  border-color: rgba(0, 255, 242, 0.80);
  box-shadow: 0 0 0 1px rgba(0,255,242,0.26), 0 0 26px rgba(0,255,242,0.18);
}

.hs-keim:hover,
.hs-keim:focus-visible {
  background: rgba(156, 204, 101, 0.10);
  border-color: rgba(156, 204, 101, 0.82);
  box-shadow: 0 0 0 1px rgba(156,204,101,0.24), 0 0 26px rgba(156,204,101,0.18);
}

.hs-wolke:hover,
.hs-wolke:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.90);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 0 26px rgba(255,255,255,0.16);
}

.hs-blitz:hover,
.hs-blitz:focus-visible {
  background: rgba(255, 90, 79, 0.10);
  border-color: rgba(255, 90, 79, 0.84);
  box-shadow: 0 0 0 1px rgba(255,90,79,0.24), 0 0 26px rgba(255,90,79,0.18);
}

.tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  padding: 20px;
  border-radius: 22px;
  transition: 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  background: var(--panel-strong);
  border-color: var(--line-strong);
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* Orbitron: module name only */
.tool-name {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
}

.tool-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.tool-card p {
  margin: 0 0 18px;
  min-height: 72px;
  color: var(--muted);
}

.accent-dampf {
  box-shadow: inset 0 1px 0 rgba(0, 255, 242, 0.12), var(--shadow);
}

.accent-keim {
  box-shadow: inset 0 1px 0 rgba(156, 204, 101, 0.12), var(--shadow);
}

.accent-wolke {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
}

.accent-blitz {
  box-shadow: inset 0 1px 0 rgba(255, 90, 79, 0.12), var(--shadow);
}

.footer {
  padding: 38px 0 56px;
  color: var(--muted);
}

.footer-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer small {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: var(--text);
}

@media (max-width: 1024px) {
  .tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .section-header,
  .footer-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .tools,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(calc(100% - 20px), var(--maxw));
  }

  .nav a,
  .btn {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .pipeline-shell {
    padding: 10px;
    border-radius: 22px;
  }

  .pipeline-stage {
    border-radius: 18px;
  }
}
