/* Codemenschen KI landing page, dark design after mockups/landing-desktop.png and landing-mobile.png.
   Self-contained: system fonts, no external requests. */
:root {
  --bg: #09090b;
  --panel: rgba(255, 255, 255, .035);
  --panel-border: rgba(255, 255, 255, .09);
  --text: #f2f4f7;
  --muted: #a6adbb;
  --teal: #56bfc9;
  --teal-bright: #6fe3ee;
  --green: #22c58b;
  --orange: #ff9f5a;
  --radius: 14px;
  --max: 1200px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(40rem 30rem at -5% 0%, rgba(0, 87, 255, .35), transparent 60%),
    radial-gradient(36rem 28rem at 105% 8%, rgba(236, 48, 57, .22), transparent 60%),
    radial-gradient(30rem 26rem at -8% 38%, rgba(255, 164, 103, .18), transparent 62%),
    radial-gradient(34rem 30rem at 108% 40%, rgba(0, 237, 151, .14), transparent 62%),
    radial-gradient(40rem 30rem at 50% 105%, rgba(0, 255, 255, .10), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-bright); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 10px; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #031417; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); background: rgba(9, 9, 11, .55); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.nav { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0; }
.brand img { width: 120px; height: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--teal-bright); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  color: #031417; font-weight: 700; text-decoration: none;
  padding: 13px 22px; border-radius: 10px;
  box-shadow: 0 0 24px rgba(86, 191, 201, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(111, 227, 238, .5); }
.button-small { padding: 10px 18px; font-size: 15px; }
.button-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--teal); box-shadow: none; }
.button-ghost:hover { box-shadow: 0 0 20px rgba(86, 191, 201, .25); }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--teal-bright); margin: 0 0 12px; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; }
h1 .accent { color: var(--teal-bright); text-shadow: 0 0 28px rgba(111, 227, 238, .35); }
.hero-copy { font-size: 1.2rem; color: #d6dae2; max-width: 34ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { width: 100%; max-width: 520px; justify-self: end; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }

/* Generic sections */
.section { padding: 56px 0; }
.section-heading { margin-bottom: 26px; }
.section-heading h2, .dsgvo h2, .note-box h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
.section-heading > p:not(.eyebrow) { color: var(--muted); max-width: 60ch; margin: 0; }

/* Intro band */
.intro { padding: 8px 0 24px; }
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 22px 26px; border: 1px solid var(--panel-border); background: var(--panel); border-radius: var(--radius); }
.intro .lead { font-size: 1.15rem; font-weight: 600; margin: 0; }
.intro p { margin: 0; color: var(--muted); }

/* Feature cards */
.feature-group { margin-top: 26px; }
.feature-group h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(86, 191, 201, .45); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h4 { font-size: 1.08rem; margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .benefit { color: #dfe4ea; font-size: .92rem; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .06); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.tested { background: rgba(34, 197, 139, .14); color: #5ef0b4; border: 1px solid rgba(34, 197, 139, .5); }
.badge:not(.tested) { background: rgba(255, 159, 90, .12); color: #ffc08f; border: 1px solid rgba(255, 159, 90, .45); }
.run-mode { font-size: 12px; color: var(--muted); border: 1px solid var(--panel-border); padding: 2px 9px; border-radius: 999px; }

/* Process steps with glowing circles and connectors */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps li { position: relative; text-align: center; padding: 0 6px; }
.steps li span {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px;
  border-radius: 50%; border: 2px solid var(--teal); color: var(--teal-bright); font-weight: 800; font-size: 1.1rem;
  background: rgba(86, 191, 201, .08); box-shadow: 0 0 22px rgba(86, 191, 201, .35);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; left: calc(50% + 46px); right: calc(-50% + 46px);
  height: 2px; background: linear-gradient(90deg, var(--teal), rgba(86, 191, 201, .2));
}
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* DSGVO */
.dsgvo .container.dsgvo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; padding: 30px; border: 1px solid var(--panel-border); background: var(--panel); border-radius: 18px; }
.dsgvo-grid > div:first-child p:not(.eyebrow) { color: var(--muted); }
.checklist { display: grid; gap: 8px; }
.checklist div { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.checklist span { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #04130d; font-weight: 900; font-size: 13px; }
.checklist p { margin: 0; font-size: .95rem; }
.documents { margin-top: 18px; padding: 22px 30px; border: 1px solid var(--panel-border); background: var(--panel); border-radius: 18px; }
.documents h3 { margin: 0 0 12px; font-size: 1.05rem; }
.documents ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; }
.documents li { color: #dfe4ea; font-size: .95rem; padding-left: 26px; position: relative; }
.documents li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 17px; border: 1.5px solid var(--teal); border-radius: 3px; }

/* Demo note */
.note-box { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: center; padding: 24px 28px; border-radius: 18px; border: 1px solid rgba(86, 191, 201, .4); background: rgba(86, 191, 201, .07); }
.note-box p { margin: 0; color: #dfe4ea; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); padding: 24px 0 34px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text); text-decoration: none; margin-left: 18px; }
.site-footer p a { margin-left: 0; }
.site-footer a:hover { color: var(--teal-bright); }

/* Tablet */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; justify-self: center; margin-top: -10px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dsgvo .container.dsgvo-grid, .intro-grid { grid-template-columns: 1fr; }
  .documents ul { grid-template-columns: repeat(2, 1fr); }
  .note-box { grid-template-columns: 1fr; }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand img { width: 96px; }
  .hero { padding: 28px 0 8px; }
  .hero-copy { font-size: 1.05rem; }
  .hero-art { max-width: 260px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li:not(:last-child)::after { display: none; }
  .documents ul { grid-template-columns: 1fr; }
  .dsgvo .container.dsgvo-grid, .documents { padding: 20px; }
  .site-footer a { margin-left: 0; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card { transition: none; }
}
