:root {
  --bg: #0b0f1a;
  --bg-elev: #121829;
  --bg-alt: #0e1422;
  --text: #e5e7eb;
  --muted: #a6adbb;
  --primary: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --outline: #1f2a44;
  --card: #121627;
  --success: #34d399;
  --header-offset: 120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

/* Smooth gradient overlay for entire page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 1000px 600px at 70% 0%, rgba(139, 92, 246, .08), transparent 40%),
    radial-gradient(ellipse 800px 500px at 30% 100%, rgba(99, 102, 241, .06), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

main { position: relative; z-index: 2; }

/* Desktop-specific smoothing */
@media (min-width: 1024px) {
  .card::after { display: none; }
}

/* Reveal base states */
[data-reveal] { opacity: 0; transform: translateY(18px) scale(.98); will-change: transform, opacity; }
[data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }

/* Variants */
[data-reveal="fade-up"] { transform: translateY(18px); }
[data-reveal="fade-up"].is-visible { transform: translateY(0); }

[data-reveal="scale-fade"] { transform: translateY(8px) scale(.94); }
[data-reveal="scale-fade"].is-visible { transform: none; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  width: 100%;
  z-index: 120;
  background: transparent;
  border-bottom: 0;
  padding: 8px 0; /* top gap for floating look */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(18, 24, 41, 0.58); /* glass */
  border: 1px solid var(--outline);
  border-radius: 16px;
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: 0.2px; }
.logo span { position: relative; top: 1px; }

.site-nav ul { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 12px; transition: color .25s ease, background-color .25s ease; }
.site-nav a:hover { color: var(--text); background: rgba(139,92,246,.12); }
/* Brighten "Kontakt" button text in header nav */
.site-header .site-nav .btn-primary { color: #ffffff; text-shadow: 0 0 6px rgba(255,255,255,.28); }

.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--outline); border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 3px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.hero { padding: 128px 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.highlight { color: var(--primary); text-shadow: 0 0 24px rgba(139,92,246,.3); }
.lead { color: var(--muted); font-size: 18px; }
.notice-badge { display: inline-block; margin: 10px 0 4px; padding: 6px 10px; border: 1px solid rgba(34,197,94,.6); color: #bbf7d0; background: rgba(34,197,94,.08); border-radius: 999px; font-size: 13px; letter-spacing: .2px; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; }
.badge { display: inline-block; padding: 6px 10px; background: rgba(255,255,255,.06); border: 1px solid var(--outline); color: var(--muted); border-radius: 999px; font-size: 12px; margin-top: 14px; margin-right: 8px; }

.hero-visual { position: relative; height: 340px; }
.orb { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(40px); opacity: .6; }
.orb-1 { top: -20px; right: 20px; background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.8), rgba(99,102,241,.2)); }
.orb-2 { bottom: -10px; left: 10px; background: radial-gradient(circle at 30% 30%, rgba(34,197,94,.6), rgba(34,197,94,.05)); }

.grid-card { position: absolute; right: 10%; top: 20%; background: var(--card); border: 1px solid var(--outline); border-radius: 16px; width: min(360px, 90%); box-shadow: 0 10px 30px rgba(0,0,0,.35); overflow: hidden; }
.grid-card .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px dashed rgba(255,255,255,.06); }
.grid-card .row:last-child { border-bottom: 0; }
.grid-card .tag { background: rgba(139,92,246,.18); color: #dcd7fe; padding: 4px 10px; border-radius: 999px; font-size: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--outline); border-radius: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .2px; transition: transform .08s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-600)); border-color: rgba(139,92,246,.5); box-shadow: 0 8px 24px rgba(139,92,246,.28); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(139,92,246,.38); }
.btn-secondary { background: rgba(255,255,255,.04); }

/* Hero stats */
.hero-stats { display: flex; gap: 40px; margin-top: 32px; }
.stat { text-align: center; }
.stat-value { display: block; font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Sections */
.section { 
  padding: 96px 0; 
  position: relative;
  overflow: hidden;
}

/* Ensure anchors are not hidden under fixed header */
.section, .hero { scroll-margin-top: var(--header-offset); }

/* Smooth section transitions with subtle separators */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(139, 92, 246, .15) 20%,
    rgba(139, 92, 246, .15) 80%,
    transparent
  );
  opacity: 0.5;
}

.section:first-of-type::before { display: none; }

/* Alternate subtle background */
.section:nth-child(even) {
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, .02), transparent 70%);
}
.section h2 { font-size: 28px; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin-bottom: 24px; max-width: 80ch; }

/* Features */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--outline); border-radius: 14px; padding: 18px; transition: transform .15s ease, border-color .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.5); box-shadow: 0 10px 30px rgba(0,0,0,.24); }
.feature h3 { margin: 4px 0 8px; font-size: 18px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--card); border: 1px solid var(--outline); border-radius: 16px; padding: 22px; transition: transform .15s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.5); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card .tags span { background: rgba(255,255,255,.05); border: 1px solid var(--outline); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--muted); }
.metrics { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; color: #c7d2fe; font-weight: 600; }
.cta-inline { text-align: center; margin-top: 28px; }

/* Facebook button */
.social-buttons { margin-top: 16px; }
.btn-facebook { display: inline-flex; align-items: center; gap: 10px; background: #1877F2; border-color: rgba(255,255,255,.18); color: #fff; }
.btn-facebook:hover { box-shadow: 0 10px 28px rgba(24,119,242,.35); }
.btn-facebook .icon { display: inline-flex; }

/* Soften bottom edges of cards to avoid hard bands overlapping gradients */
.card { position: relative; }
.card::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 24px; border-radius: 14px; filter: blur(10px); background: radial-gradient(40% 60% at 50% 20%, rgba(139,92,246,.18), rgba(0,0,0,0)); opacity: .28; pointer-events: none; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process li { background: var(--card); border: 1px solid var(--outline); border-radius: 14px; padding: 18px; position: relative; }
.process li::before { counter-increment: step; content: counter(step); position: absolute; top: -12px; left: -12px; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(180deg, var(--primary), var(--primary-600)); display: grid; place-items: center; font-weight: 800; box-shadow: 0 8px 24px rgba(139,92,246,.3); }
.process h4 { margin: 6px 0 6px; font-size: 16px; }
.process p { color: var(--muted); margin: 0; }

/* Stack */
.stack { display: flex; gap: 10px; flex-wrap: wrap; }
.stack-badge { background: rgba(255,255,255,.05); border: 1px solid var(--outline); color: var(--muted); border-radius: 999px; padding: 8px 12px; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.testimonial { background: var(--card); border: 1px solid var(--outline); border-radius: 16px; padding: 24px; }
.testimonial blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.testimonial cite { display: flex; flex-direction: column; margin-top: 16px; font-style: normal; }
.testimonial cite strong { color: var(--text); font-weight: 600; }
.testimonial cite span { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* FAQ */
.faq-list { max-width: 720px; margin: 32px auto 0; }
.faq-item { background: var(--card); border: 1px solid var(--outline); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 24px; cursor: pointer; font-weight: 600; list-style: none; position: relative; transition: color .2s ease; }
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; transition: transform .3s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 18px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 14px 0 0; color: var(--muted); }
.contact-list a { color: #c7d2fe; text-decoration: none; }
.contact-form { background: var(--card); border: 1px solid var(--outline); border-radius: 16px; padding: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
label { color: var(--muted); font-size: 14px; }
input, textarea { background: #0b1120; border: 1px solid var(--outline); color: var(--text); border-radius: 12px; padding: 12px 12px; font-size: 15px; outline: none; }
input:focus, textarea:focus { border-color: rgba(139,92,246,.6); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0; background: rgba(11,15,26,.9); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-nav a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.footer-nav a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 980px) {
  .hero { padding: 100px 0 40px; }
  .hero-inner { display: flex; flex-direction: column; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; height: auto; margin-top: 10px; }
  .orb { display: none; }
  /* Make the grid card flow under the intro on mobile/tablet */
  .grid-card { position: static; right: auto; top: auto; width: min(560px, 100%); margin: 8px auto 0; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features .feature:nth-child(5) { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; }
  .projects { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; gap: 16px; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 680px) {
  .hero { padding: 112px 0 36px; }
  :root { --header-offset: 96px; }
  .site-nav { position: absolute; inset: 64px 4% auto; background: rgba(18,24,41,.92); border: 1px solid var(--outline); border-radius: 14px; padding: 10px; display: none; backdrop-filter: blur(10px); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { display: block; }
  .nav-toggle { display: inline-flex; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .features .feature:nth-child(5) { grid-column: auto; max-width: none; margin: 0; }
  .projects { grid-template-columns: 1fr; gap: 16px; }
  .process { grid-template-columns: 1fr; gap: 14px; }
  .hero-stats { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
  .stat { text-align: center; min-width: 84px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 12px; }
}


