/* nexmill – Landingpage. Farben, Schrift und Bedienelemente aus dem CAM-Arbeitsbereich. */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400 700; font-style: normal; font-display: swap; src: url('fonts/IBMPlexSans.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/IBMPlexMono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/IBMPlexMono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/IBMPlexMono-600.woff2') format('woff2'); }

:root {
  --acc: #F2994A;
  --acc-ink: #1A1206;
  --acc-soft: color-mix(in srgb, var(--acc) 15%, transparent);
  --acc-text: color-mix(in srgb, var(--acc) 70%, #fff);
  --bg: #0F1113;
  --bg-deep: #0B0D0F;
  --panel: #15171A;
  --panel-2: #1A1D21;
  --hover: #1F2226;
  --line: #24272C;
  --line-2: #2C3036;
  --text: #E7E9EC;
  --text-2: #D5D9DE;
  --muted: #A0A7AF;
  --muted-2: #8A9199;
  --dim: #6B727A;
  --ok: #6CC08B;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 8px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--acc); display: grid; place-items: center; flex: none; }
.mark svg { width: 17px; height: 17px; fill: none; stroke: var(--acc-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--hover); color: var(--text); }

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 500 15px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: #23262B; border-color: #3B4048; }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.btn.primary:hover { background: color-mix(in srgb, var(--acc) 88%, #fff); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 0; background:
  radial-gradient(900px 420px at 72% 8%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%),
  radial-gradient(circle, #23262B 1px, transparent 1.3px) 0 0 / 22px 22px; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-text { max-width: 780px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px; border: 1px solid color-mix(in srgb, var(--acc) 45%, var(--line)); border-radius: 999px; background: var(--panel); color: var(--text-2); font-size: 13.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
h1 { margin: 22px 0 18px; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; }
h1 em { font-style: normal; color: var(--acc); }
.lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--muted); max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Werkzeugleisten-Ablauf wie im CAM */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 52px; padding: 6px; width: fit-content; max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.flow .step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 84px; padding: 9px 10px 8px; border-radius: 8px; color: #B4BAC2; font-size: 12px; font-weight: 500; }
.flow .step .ic { width: 20px; height: 20px; }
.flow .step.on { background: var(--acc-soft); color: var(--acc-text); }
.flow .arrow { color: var(--dim); }
.flow .arrow .ic { width: 14px; height: 14px; }

.shot { position: relative; z-index: 1; margin-top: 56px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02); overflow: hidden; }
.shot .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2E3238; }
.shot .bar span { margin-left: 10px; font: 500 12px var(--mono); color: var(--dim); }

/* ---------- Abschnitte ---------- */
section { padding: 110px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
h2 { margin: 16px 0 16px; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.alt { background: var(--bg-deep); border-block: 1px solid var(--line); }

/* Produktkarten */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .2s, transform .2s; }
.product:hover { border-color: var(--line-2); transform: translateY(-2px); }
.product .head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.product .tile { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.product .tile .ic { width: 22px; height: 22px; }
.product h3 { font-size: 21px; font-weight: 600; }
.product .tag { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px var(--mono); color: var(--muted); background: var(--hover); border-radius: 6px; padding: 5px 9px; }
.product .tag .dot { width: 6px; height: 6px; box-shadow: none; }
.product p { color: var(--muted); margin-bottom: 22px; }
.product ul { list-style: none; display: grid; gap: 9px; margin-bottom: 28px; color: var(--text-2); font-size: 15px; }
.product li { display: flex; gap: 10px; }
.product li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 2px; background: var(--acc); }
.product .btn { margin-top: auto; align-self: flex-start; }

/* Feature-Raster */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr 1fr; }
.split.rev > :first-child { order: 2; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.feat { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.feat .ic { color: var(--acc); margin-bottom: 10px; }
.feat h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.frame { border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.75); }

/* G-Code-Block */
.code { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-deep); overflow: hidden; }
.code .bar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--muted-2); }
.code pre { padding: 12px 0; font: 400 13.5px/1.75 var(--mono); overflow-x: auto; }
.code pre span.l { display: block; padding: 0 14px; }
.code pre span.l.on { background: color-mix(in srgb, #3B82F6 14%, transparent); box-shadow: inset 2px 0 #4EA1FF; }
.code .ln { display: inline-block; width: 26px; color: var(--dim); text-align: right; margin-right: 16px; user-select: none; }
.code .g { color: #6CB6FF; } .code .f { color: #8FD3A8; } .code .m { color: #F2C14A; } .code .c { color: var(--dim); font-style: italic; }

.codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.codes span { font: 500 12px var(--mono); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }

/* Funktionsraster und Einrichtungsschritte */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid3 > * { min-width: 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.steps .n { display: inline-block; font-size: 12px; font-weight: 600; color: var(--acc); background: var(--acc-soft); border-radius: 6px; padding: 3px 8px; margin-bottom: 14px; }
.steps h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.stat b { display: block; font: 600 24px var(--mono); color: var(--text); }
.stat span { font-size: 13px; color: var(--muted); }

/* Abschluss */
.final { text-align: center; padding: 110px 0 120px; background: radial-gradient(700px 320px at 50% 100%, color-mix(in srgb, var(--acc) 13%, transparent), transparent 70%); }
.final h2 { max-width: 760px; margin-inline: auto; }
.final p { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 auto; }
.final .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); background: var(--panel); padding: 30px 0; font-size: 14px; color: var(--muted-2); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
footer .brand { font-size: 15px; color: var(--text); margin-right: 0; }
footer .brand .mark { width: 24px; height: 24px; border-radius: 7px; }
footer .brand .mark svg { width: 14px; height: 14px; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer nav a:hover { color: var(--text); }

/* Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
}
@media (max-width: 820px) {
  .grid3, .steps { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  section { padding: 80px 0; }
  .hero { padding-top: 56px; }
  .flow .arrow { display: none; }
  .flow .step { min-width: 0; flex: 1 1 30%; }
}
@media (max-width: 560px) {
  .feats, .stats, .grid3, .steps { grid-template-columns: 1fr; }
  .product { padding: 22px; }
  .product .head { flex-wrap: wrap; }
  .shot .bar span { display: none; }
  .cta .btn { flex: 1 1 100%; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .product, .btn { transition: none; }
}

/* Grid-Spalten dürfen schmaler werden als ihr Inhalt (Code-Block, Werkzeugleiste) */
.split > *, .products > *, .feats > *, .stats > * { min-width: 0; }
@media (max-width: 980px) { .split, .split.rev { grid-template-columns: minmax(0, 1fr); } }
