/* ═══════════════════════════════════════════════════════════════
   ECM Commander Website – site.css
   Design: dark "command center" tech with blue/cyan accent
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:          #0a0f16;
  --bg2:         #11171f;
  --bg3:         #161d27;
  --border:      #212a36;
  --border2:     #2b3645;
  --text:        #eaf0f7;
  --text-muted:  #8f9bb0;
  --text-light:  #57617a;
  --accent:      #2f8fff;
  --accent2:     #7ec4ff;
  --accent-glow: rgba(47,143,255,.25);
  --gold:        #34d399;
  --gold2:       #7eeec0;
  --success:     #34d399;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:   0 8px 48px rgba(0,0,0,.7);
  --font:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --nav-h:       68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent2);
  background: rgba(47,143,255,.12); border: 1px solid rgba(47,143,255,.3);
  border-radius: 20px; padding: 4px 14px; margin-bottom: 18px;
}
.section-title { color: var(--text); margin-bottom: 14px; }
.section-sub   { color: var(--text-muted); font-size: 1.05rem; max-width: 620px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }

/* ── Nav ───────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: rgba(10,15,22,.85);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.site-nav.scrolled { background: rgba(10,15,22,.97); }

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
}
.logo-text  { font-weight: 800; font-size: 17px; color: var(--text); white-space: nowrap; }

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link  { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: all .2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.nav-link-cta { background: var(--accent); color: #fff !important; padding: 7px 16px; }
.nav-link-cta:hover { background: var(--accent2); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-size: 13px; font-weight: 500; color: var(--text-muted); padding: 5px 10px;
  border-radius: 6px; border: 1px solid var(--border2); transition: all .2s;
  display: flex; align-items: center; gap: 4px;
}
.lang-switch:hover { color: var(--text); border-color: var(--accent); }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; }

.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: var(--bg2); border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile-link { padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text-muted); }
.nav-mobile-link:hover { color: var(--text); background: var(--bg3); }
.nav-mobile-cta { background: var(--accent); color: #fff !important; text-align: center; margin-top: 6px; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: var(--nav-h); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(47,143,255,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(52,211,153,.08) 0%, transparent 50%),
    var(--bg);
  z-index: 0;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .04;
  background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.hero-label-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
.hero-title { margin-bottom: 22px; }
.hero-accent { color: var(--accent2); }
.hero-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 36px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5fa8ff); color: #fff; padding: 14px 28px;
  border-radius: var(--radius); font-weight: 600; font-size: 15px; border: none; cursor: pointer;
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 24px var(--accent-glow); text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 32px var(--accent-glow); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--text); padding: 13px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; border: 1px solid var(--border2); cursor: pointer;
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent2); transform: translateY(-2px); }

.hero-visual { position: relative; display: flex; flex-direction: column; gap: 16px; }
.hero-screen { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-screen-bar { background: var(--bg3); padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.screen-dot { width: 10px; height: 10px; border-radius: 50%; }
.screen-dot.red { background: #ff5f57; } .screen-dot.yellow { background: #ffbd2e; } .screen-dot.green { background: #28c840; }
.screen-url { flex: 1; background: var(--bg); border-radius: 5px; padding: 4px 10px; font-family: var(--mono); font-size: 11px; color: var(--text-light); margin-left: 8px; }
.hero-screen-placeholder {
  aspect-ratio: 16/10; background: linear-gradient(135deg, #11171f, #161d27);
  display: flex; align-items: center; justify-content: center; color: var(--text-light);
  font-size: 13px; font-family: var(--mono); text-align: center; padding: 20px;
}
.hero-badge {
  position: absolute; background: var(--bg2); border: 1px solid var(--border2); border-radius: 10px;
  padding: 10px 16px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); font-size: 13px;
}
.hero-badge.badge-ai { bottom: -20px; left: -30px; } .hero-badge.badge-vibe { top: -20px; right: -20px; }
.badge-icon { font-size: 22px; }

/* ── Stats ─────────────────────────────────────────────────────── */
.stats-bar { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.stats-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num  { font-size: 2.2rem; font-weight: 800; color: var(--accent2); font-family: var(--mono); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ── Feature cards ─────────────────────────────────────────────── */
.features-section { background: var(--bg2); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.feat-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: all .3s; position: relative; overflow: hidden;
}
.feat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--gold)); opacity: 0; transition: opacity .3s; }
.feat-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-card:hover::before { opacity: 1; }
.feat-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.feat-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feat-text  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Systems grid ──────────────────────────────────────────────── */
.integrations-section { background: var(--bg); }
.integrations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.integ-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: all .25s; }
.integ-card:hover { border-color: var(--accent); }
.integ-icon  { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.integ-name  { font-weight: 700; font-size: 15px; }
.integ-cat   { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── CTA ───────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(47,143,255,.15), rgba(52,211,153,.08));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 80px 0;
}
.cta-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-sub   { color: var(--text-muted); margin-bottom: 36px; }

/* ── Page header (Impressum / Downloads) ──────────────────────── */
.page-header {
  padding: 140px 0 64px;
  background: linear-gradient(180deg, rgba(47,143,255,.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 14px; }
.page-header p  { color: var(--text-muted); font-size: 1.1rem; }

/* ── Downloads area ────────────────────────────────────────────── */
.downloads-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 28px;
}
.downloads-note { color: var(--text-muted); font-size: 14px; margin: 8px 0 24px; }
.downloads-tools { display: grid; grid-template-columns: 1fr 220px; gap: 16px; margin-bottom: 18px; }
.downloads-tools label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.downloads-tools input, .downloads-tools select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border2); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; color: var(--text); font-family: var(--font);
}
.downloads-tools input:focus, .downloads-tools select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.downloads-summary { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.downloads-empty { color: var(--text-muted); font-size: 14px; }

.download-tree { list-style: none; }
.download-tree.level-1, .download-tree.level-2, .download-tree.level-3 { margin-left: 20px; border-left: 1px solid var(--border); padding-left: 16px; }
.download-node + .download-node { margin-top: 6px; }
.download-node.is-hidden-by-filter { display: none; }

.folder-row { padding: 8px 0; font-weight: 600; color: var(--text); font-size: 14px; }
.file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--border);
  font-size: 14px; color: var(--text); transition: all .2s; margin: 4px 0;
}
.file-row:hover { border-color: var(--accent); color: var(--text); }
.file-name { font-weight: 600; }
.file-meta { font-size: 12px; color: var(--text-muted); font-family: var(--mono); white-space: nowrap; }

.external-link { font-size: 13px; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.footer-ai-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border2); color: var(--text-muted); background: var(--bg3); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 4px; }
.footer-link { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-link:hover { color: var(--text); }
.footer-link-button { background: none; border: none; padding: 0; text-align: left; font-family: var(--font); cursor: pointer; text-decoration: underline; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 20px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-light); gap: 16px; flex-wrap: wrap; }
.footer-vibe { color: var(--text-muted); }

/* ── Cookie consent banner ─────────────────────────────────────── */
.cookie-overlay { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.7); align-items: center; justify-content: center; padding: 20px; }
.cookie-dialog { width: min(560px, 100%); background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.cookie-dialog h2 { font-size: 1.3rem; margin-bottom: 12px; }
.cookie-dialog p  { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions button { border-radius: 999px; border: 1px solid var(--border2); padding: 10px 20px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--bg3); color: var(--text); }
.cookie-actions button.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent; }
body.no-scroll { overflow: hidden; }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: float 4s ease-in-out infinite; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .downloads-tools { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .file-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
