/* agentSoft24x7 — landing page
   Palette: near-black canvas w/ blue-cast surfaces, single brand blue accent,
   matching the logo's dark/circuit-board identity. Deliberately single-theme —
   the brand mark itself only exists on black. */

/* Self-hosted fonts (no third-party requests / no visitor IPs sent to
   Google on page load — see /datenschutz.html). */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/chakra-petch-500.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/chakra-petch-600.woff2") format("woff2");
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/chakra-petch-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-variable.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --bg: #030406;
  --bg-soft: #06080d;
  --surface: #0a0e16;
  --surface-2: #10141f;
  --border: #1b2130;
  --border-bright: #26314a;
  --blue: #2f7dfb;
  --blue-bright: #5aa9ff;
  --blue-dim: #163061;
  --white: #f3f6fb;
  --muted: #8b93a8;
  --muted-2: #5c6478;
  --ok: #3ddc97;
  --warn: #ffb84d;

  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-w: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--blue); color: #051225; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* faint film-grain / noise overlay for texture, purely decorative */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(3, 4, 6, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { border-radius: 50%; }
.brand-word {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em;
  font-size: 1.05rem; color: var(--white); text-transform: lowercase;
}
.brand-word .accent { color: var(--blue-bright); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  margin-right: 28px;
  transition: color 0.15s ease;
}
.nav-links a:last-child { margin-right: 0; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-cta {
  color: var(--bg) !important; background: var(--blue); padding: 9px 18px; border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--blue-bright); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 72px 24px 0; text-align: center; overflow: hidden;
}
.circuit-field {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(47,125,251,0.16), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(47,125,251,0.14), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%231b2b4d' stroke-width='1'%3E%3Cpath d='M0 40h60v40h60'/%3E%3Cpath d='M240 80h-70v50h-50v60'/%3E%3Cpath d='M20 240v-70h80v-40'/%3E%3Ccircle cx='60' cy='80' r='2.5' fill='%232f7dfb' stroke='none'/%3E%3Ccircle cx='120' cy='120' r='2.5' fill='%232f7dfb' stroke='none'/%3E%3Ccircle cx='100' cy='170' r='2.5' fill='%232f7dfb' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat, repeat, repeat;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 28px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.hero-lockup { max-width: 640px; margin: 0 auto; width: 100%; }

.hero-sub {
  max-width: 620px; margin: 28px auto 0; color: var(--muted); font-size: 1.05rem;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; margin: 36px 0 56px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #051225; box-shadow: 0 0 0 1px var(--blue-dim), 0 8px 24px -8px rgba(47,125,251,0.7); }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { color: var(--white); border-color: var(--border-bright); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-bright); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.chev { display: inline-block; }

.pillars {
  position: relative; z-index: 1;
  list-style: none; margin: 0; padding: 22px 24px;
  max-width: var(--max-w); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.pillars li {
  background: var(--surface); display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 12px; color: var(--muted); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; font-family: var(--font-mono);
}
.pillars svg { width: 20px; height: 20px; color: var(--blue-bright); flex-shrink: 0; }

/* ---------- sections ---------- */
.section { padding: 96px 24px; max-width: var(--max-w); margin: 0 auto; }
.section-alt { background: var(--bg-soft); max-width: none; padding-left: 0; padding-right: 0; }
.section-alt > * { max-width: var(--max-w); margin-inline: auto; padding-inline: 24px; }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.kicker {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue-bright); font-size: 0.8rem; font-weight: 500; margin: 0 0 12px;
}
.section-head h2, .cta-inner h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 16px; text-wrap: balance; letter-spacing: -0.01em;
}
.lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- demo panel ---------- */
.demo-panel {
  max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px -30px rgba(0,0,0,0.8);
}
.demo-panel-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.demo-dot { width: 9px; height: 9px; border-radius: 50%; }
.demo-dot-r { background: #ff5f57; } .demo-dot-y { background: #febc2e; } .demo-dot-g { background: #28c840; }
.demo-panel-title { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-left: 8px; }
.demo-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ok); letter-spacing: 0.05em;
}
.live-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.demo-steps { list-style: none; margin: 0; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.demo-step {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid transparent;
  opacity: 0.35; transform: translateY(4px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}
.demo-step.is-active { opacity: 1; transform: translateY(0); border-color: var(--border-bright); }
.demo-step-alt.is-active { border-color: var(--warn); }
.step-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--blue-bright);
}
.demo-step-alt .step-icon { color: var(--warn); }
.step-title { margin: 0; font-weight: 700; font-size: 0.92rem; }
.step-detail { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }
.step-tag {
  margin-left: auto; flex-shrink: 0; font-family: var(--font-mono); font-size: 0.7rem;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.tag-muted { background: rgba(255,255,255,0.06); color: var(--muted); }
.tag-ok { background: rgba(61,220,151,0.14); color: var(--ok); }
.tag-review { background: rgba(255,184,77,0.14); color: var(--warn); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--blue-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--blue-bright); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- branchen ---------- */
.branchen-grid {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.branchen-grid li {
  background: var(--surface); padding: 26px 20px; font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; display: flex; flex-direction: column; gap: 6px;
}
.branchen-num { font-family: var(--font-mono); color: var(--blue-bright); font-size: 0.8rem; font-weight: 500; }
.branchen-grid small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 0.82rem; }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); max-width: none; padding: 100px 24px; }
.cta-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-inner .btn { margin-top: 24px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--white); }
.footer-copy { color: var(--muted-2); font-size: 0.82rem; margin: 0; }

/* ---------- legal pages (Impressum / Datenschutz) ---------- */
.legal-head { margin-bottom: 36px; }
.legal-body { max-width: 680px; margin: 0 auto; }
.legal-body h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  margin: 36px 0 10px;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--muted); margin: 0 0 14px; }
.legal-body a { color: var(--blue-bright); }
.legal-meta { color: var(--muted-2); font-size: 0.82rem; margin-top: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .branchen-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* .nav-wrap's backdrop-filter makes it the containing block for any
     position:fixed descendant, so the flyout anchors as position:absolute
     against it (it's already position:sticky) instead of fighting that. */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 20px 24px 28px;
    gap: 18px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; margin-right: 0; }
  .nav-toggle { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .hero { padding-top: 48px; }
  .demo-step { flex-wrap: wrap; }
  .step-tag { margin-left: 48px; }
}
