/* Landing-Page für Merge Conflict Mayhem.
   Terminal/IDE/Pipeline-Ästhetik. Theme-Tokens spiegeln das Game (styles.css). */

:root {
  --bg: #0d1020;
  --bg-elevated: #14182a;
  --panel: #1f253d;
  --panel-soft: #181d33;
  --border: #2e3656;
  --text: #e6ecff;
  --muted: #8892b0;
  --accent: #4ade80;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px rgba(74, 222, 128, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100vh;
  background-image: radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(74, 222, 128, 0.08),
      transparent 60%
    ),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(96, 165, 250, 0.05), transparent 60%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  background: var(--panel-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-prompt {
  color: var(--accent);
}

.brand-name {
  color: var(--text);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.topbar-nav a {
  color: var(--muted);
  transition: color 0.15s;
}

.topbar-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.topbar-cta {
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--accent) !important;
}

.topbar-cta:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 6px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.kicker-text {
  margin-left: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #fbbf24;
}

.dot-green {
  background: #22c55e;
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  color: var(--accent);
}

.caret {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s steps(2, end) infinite;
  margin-left: 4px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.1s,
    filter 0.15s,
    background 0.15s,
    border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-prompt {
  color: rgba(15, 23, 42, 0.6);
  font-weight: 700;
}

.btn-ghost .btn-prompt {
  color: var(--accent);
}

.hero-meta {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--text);
  font-size: 1.4rem;
  display: block;
  font-weight: 700;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-characters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 20px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.character {
  width: 56px;
  height: 56px;
  background-image: url("/images/figuren.png");
  background-size: 500% 200%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  animation: bob 1.6s ease-in-out infinite;
}

.character[data-char="0"] {
  background-position: 0% 0%;
}
.character[data-char="1"] {
  background-position: 25% 0%;
  animation-delay: 0.2s;
}
.character[data-char="2"] {
  background-position: 50% 0%;
  animation-delay: 0.4s;
}
.character[data-char="3"] {
  background-position: 75% 0%;
  animation-delay: 0.6s;
}
.character[data-char="4"] {
  background-position: 100% 0%;
  animation-delay: 0.8s;
}
.character[data-char="5"] {
  background-position: 0% 100%;
  animation-delay: 1s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- Sections ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(31, 37, 61, 0.3), transparent);
  max-width: none;
  margin-top: 32px;
  margin-bottom: 32px;
}

.section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 48px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.section h2 {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Prose (Was ist das) ---------- */
.prose {
  max-width: 760px;
  font-size: 1.1rem;
}

.prose p {
  margin: 0 0 20px;
}

.prose strong {
  color: var(--accent);
}

.prose-quote {
  font-family: var(--mono);
  font-size: 0.95rem !important;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: var(--panel-soft);
  border-radius: 4px;
  display: flex;
  gap: 12px;
}

.prose-quote-mark {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Steps (How to play) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.window-title {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.window-body {
  padding: 18px 18px 22px;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.cmd {
  margin: 0 0 8px;
  color: var(--text);
}

.prompt {
  color: var(--accent);
  user-select: none;
  margin-right: 6px;
}

.output {
  margin: 8px 0 0;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.6;
}

.role-tag {
  font-family: var(--mono);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
}

.role-tag.role-developer {
  background: rgba(96, 165, 250, 0.18);
  color: var(--info);
}

.role-tag.role-chaos {
  background: rgba(248, 113, 113, 0.18);
  color: var(--danger);
}

.step-caption {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.step-caption strong {
  color: var(--text);
}

/* ---------- Rollen ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.role-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.4;
}

.role-card-dev::before {
  background: radial-gradient(ellipse at top right, rgba(96, 165, 250, 0.15), transparent 60%);
}

.role-card-chaos::before {
  background: radial-gradient(ellipse at top right, rgba(248, 113, 113, 0.15), transparent 60%);
}

.role-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}

.role-card-head h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.4rem;
}

.role-team {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
}

.role-card-dev .role-team {
  color: var(--info);
}

.role-card-chaos .role-team {
  color: var(--danger);
}

.role-badge {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-image: url("/images/role_badges.png");
  background-size: 500% 200%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  border: 2px solid var(--border);
  background-color: var(--panel-soft);
  flex-shrink: 0;
}

.role-badge-dev {
  background-position: 0% 0%;
}

.role-badge-chaos {
  background-position: 100% 0%;
}

.role-desc {
  color: var(--muted);
  margin: 0 0 18px;
  position: relative;
}

.role-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.role-bullets .check {
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

.role-bullets .cross {
  color: var(--danger);
  font-weight: 700;
  margin-right: 8px;
}

.role-note {
  text-align: center;
  margin: 32px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.role-note strong {
  color: var(--accent);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-glyph {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Pipeline (Roadmap) ---------- */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.pipeline-stage {
  flex: 1 1 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  min-width: 200px;
  position: relative;
}

.pipeline-stage.stage-done {
  border-color: rgba(74, 222, 128, 0.5);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.06), transparent);
}

.pipeline-stage.stage-running {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.06), transparent);
  animation: pulse-border 2.5s ease-in-out infinite;
}

@keyframes pulse-border {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0);
  }
}

.pipeline-stage.stage-pending {
  opacity: 0.65;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
}

.stage-icon {
  font-size: 0.85rem;
  font-weight: 700;
}

.stage-done .stage-icon {
  color: var(--accent);
}

.stage-running .stage-icon {
  color: var(--warn);
}

.stage-pending .stage-icon {
  color: var(--muted);
}

.stage-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.stage-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pipeline-arrow {
  align-self: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.4rem;
  user-select: none;
}

.roadmap-link {
  margin: 32px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--mono);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item summary:hover {
  background: var(--panel-soft);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.cta-final {
  max-width: 760px;
  margin: 64px auto 96px;
  padding: 0 24px;
}

.cta-window {
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-soft);
}

.cta-window .window-body {
  padding: 28px 28px 32px;
  font-size: 0.98rem;
}

.btn-cta {
  margin-top: 22px;
  font-size: 1.05rem;
  padding: 14px 28px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--panel-soft);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-rausch-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-rausch-prefix {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.footer-rausch {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.footer-rausch:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-rausch img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-links a {
  color: var(--muted);
}

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

.footer-sep {
  margin: 0 8px;
  color: var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    max-width: 220px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .pipeline {
    flex-direction: column;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    align-self: flex-start;
    margin-left: 24px;
  }

  .topbar-nav a:not(.topbar-cta) {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 20px 64px;
  }

  .section {
    padding: 56px 20px;
  }

  .hero-meta {
    gap: 18px;
  }

  .hero-meta strong {
    font-size: 1.1rem;
  }

  .topbar-inner {
    padding: 10px 16px;
  }
}
