/* ============================================
   BONC – AI-Powered Performance Marketing
   Ultra-modern dark theme, glassmorphism
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --accent: #0066FF;
  --cyan: #00D4FF;
  --purple: #7B2FFF;
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 16px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

section { padding: 120px 0; position: relative; }

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background .3s;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.4rem; font-weight: 800; letter-spacing: 4px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
  letter-spacing: .5px; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 10px 24px;
  border-radius: 8px; font-weight: 600; font-size: .85rem;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: #0055dd; transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; width: 100%; flex-direction: column;
    background: rgba(10,10,10,0.95); backdrop-filter: blur(20px);
    padding: 32px 24px; gap: 24px;
    transform: translateY(-120%); transition: transform .35s ease;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding-top: 72px;
}

/* Animated grid background */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 40%, transparent 100%);
}

/* Gradient blobs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.hero-blob--1 { width: 500px; height: 500px; background: var(--accent); top: -10%; left: -10%; }
.hero-blob--2 { width: 400px; height: 400px; background: var(--purple); bottom: -10%; right: -5%; animation-delay: 2s; }
.hero-blob--3 { width: 300px; height: 300px; background: var(--cyan); top: 30%; right: 20%; animation-delay: 4s; opacity: .2; }

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.08); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-wordmark {
  font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; letter-spacing: 12px;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600;
  color: var(--cyan); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-muted);
  max-width: 600px; margin: 0 auto 40px;
}

.btn-primary {
  display: inline-block; padding: 16px 40px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff; font-size: 1rem; font-weight: 700; border-radius: 12px;
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 30px rgba(0,102,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,102,255,0.45);
  color: #fff;
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 1; animation: bounce 2s infinite;
}
.scroll-hint span {
  display: block; width: 24px; height: 24px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  font-size: .8rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--cyan); font-weight: 600; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 20px;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-muted); max-width: 600px;
}
.section-header { margin-bottom: 64px; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 20px 60px rgba(0,102,255,0.1);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(0,212,255,0.1));
  border: 1px solid rgba(0,212,255,0.15);
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================
   WHY AI
   ============================================ */
.why-ai { background: linear-gradient(180deg, var(--bg-dark), #0d0d1a, var(--bg-dark)); }

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

.ai-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color .3s;
}
.ai-item:hover { border-color: rgba(0,212,255,0.2); }

.ai-item-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(123,47,255,0.15), rgba(0,102,255,0.15));
  border: 1px solid rgba(123,47,255,0.15);
}
.ai-item-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }

.ai-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.ai-item p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

@media (max-width: 768px) { .ai-grid { grid-template-columns: 1fr; } }

/* ============================================
   PROCESS
   ============================================ */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
/* Connecting line */
.process-steps::before {
  content: ''; position: absolute; top: 40px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);
  opacity: .3;
}
.step {
  text-align: center; position: relative;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff; position: relative; z-index: 1;
}
.step h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .process-steps::before { display: none; }
}

/* ============================================
   STATS
   ============================================ */
.stats {
  background: linear-gradient(135deg, rgba(0,102,255,0.06), rgba(123,47,255,0.06));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 80px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center;
}
.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.1; margin-bottom: 8px;
}
.stat-label { color: var(--text-muted); font-size: .95rem; }

@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: linear-gradient(180deg, var(--bg-dark), #0d0d1a); }

.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}

.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

.contact-detail {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  color: var(--text-muted); font-size: .95rem;
}
.contact-detail svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.5; flex-shrink: 0; }

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(12px);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text);
  font-family: var(--font); font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff; font-size: 1rem; font-weight: 700;
  border: none; border-radius: 12px; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,102,255,0.3);
}

.form-notice { font-size: .8rem; color: var(--text-muted); margin-top: 16px; line-height: 1.5; }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.active { display: block; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
}
.footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-size: 1.1rem; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-copy { color: var(--text-muted); font-size: .85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 600px) {
  .footer .container { flex-direction: column; text-align: center; }
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-page {
  padding-top: 120px; padding-bottom: 80px; min-height: 100vh;
}
.legal-page h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.3rem; font-weight: 700; margin-top: 32px; margin-bottom: 12px; }
.legal-page p, .legal-page li {
  color: var(--text-muted); line-height: 1.8; margin-bottom: 12px;
}
.legal-page ul { padding-left: 24px; }
.legal-page a { color: var(--cyan); }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: .9rem; margin-bottom: 32px;
  transition: color .2s;
}
.legal-back:hover { color: var(--text); }
