/* ============================================================
   pixcept KG — style.css
   Dark theme · brand: lime #BDDF00 / azure #0089DF
   ============================================================ */

:root {
  --bg: #0a0e16;
  --bg-soft: #0d1320;
  --surface: #101827;
  --surface-2: #151f30;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #e8edf5;
  --text-muted: #9aa7ba;
  --text-faint: #64748b;
  --lime: #bddf00;
  --lime-dim: rgba(189, 223, 0, 0.12);
  --blue: #0089df;
  --blue-bright: #55b5f2;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 72px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: #0a0e16;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Language switching ---------- */

html[lang='de'] [lang='en'] {
  display: none !important;
}

html[lang='en'] [lang='de'] {
  display: none !important;
}

/* ---------- Layout ---------- */

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

.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--lime);
  color: #0a0e16;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 14, 22, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  height: 34px;
  width: 117px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  color: var(--text-faint);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-switch button + button {
  border-left: 1px solid var(--border);
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button.active {
  background: var(--lime-dim);
  color: var(--lime);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 28px 24px;
  background: rgba(10, 14, 22, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
  margin-top: 12px;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--lime);
  color: #0a0e16;
  box-shadow: 0 0 0 0 rgba(189, 223, 0, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -8px rgba(189, 223, 0, 0.45);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(148, 163, 184, 0.04);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--text-faint);
  background: rgba(148, 163, 184, 0.08);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 19px 40px;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero-bg.png') center / cover no-repeat;
  opacity: 0.9;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 22, 0.92) 0%, rgba(10, 14, 22, 0.55) 45%, rgba(10, 14, 22, 0.1) 75%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.5) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-bottom: 28px;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(189, 223, 0, 0.8);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 24ch;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(16, 24, 39, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ---------- Section headings ---------- */

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.section-num {
  color: var(--lime);
}

.section-label-center {
  justify-content: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 237, 245, 0.12), transparent);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card-featured {
  border-color: rgba(189, 223, 0, 0.3);
}

.card-featured:hover {
  border-color: rgba(189, 223, 0, 0.55);
}

.card-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(189, 223, 0, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid rgba(189, 223, 0, 0.25);
  border-radius: 11px;
}

.card:not(.card-featured) .card-icon {
  color: var(--blue-bright);
  background: rgba(0, 137, 223, 0.12);
  border-color: rgba(0, 137, 223, 0.3);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.card-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
}

.card-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--lime);
  flex-shrink: 0;
  transform: translateY(-1px);
}

.card:not(.card-featured) .card-list li::before {
  background: var(--blue-bright);
}

.card-list-label {
  font-weight: 600;
}

.card-list-tech {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ---------- About ---------- */

.about-deco {
  position: absolute;
  right: -60px;
  top: 50%;
  width: 420px;
  transform: translateY(-50%);
  opacity: 0.35;
  pointer-events: none;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-copy .section-title {
  margin-bottom: 24px;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy p {
  color: var(--text-muted);
}

.values {
  display: flex;
  flex-direction: column;
}

.values li {
  display: flex;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.values li:first-child {
  padding-top: 0;
}

.values li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.values-dot {
  width: 10px;
  height: 10px;
  background: var(--lime);
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(189, 223, 0, 0.5);
}

.values li:nth-child(2) .values-dot {
  background: var(--blue-bright);
  box-shadow: 0 0 10px rgba(0, 137, 223, 0.5);
}

.values li:nth-child(3) .values-dot {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(189, 223, 0, 0.5);
}

.values h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.values p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* ---------- Contact ---------- */

.contact-box {
  position: relative;
  text-align: center;
  padding: 88px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: url('../assets/img/glow-orb.png') center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

.contact-box > *:not(.contact-glow) {
  position: relative;
  z-index: 1;
}

.contact-box .section-title {
  margin-bottom: 16px;
}

.contact-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.contact-cta {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.contact-address {
  margin-top: 32px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-faint);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--lime);
}

/* ---------- Overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay[hidden] {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.overlay.open .overlay-backdrop {
  opacity: 1;
}

.overlay-panel {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 85vh;
  max-height: min(85vh, 85svh);
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 32px 80px -16px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}

.overlay.open .overlay-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.overlay-panel::-webkit-scrollbar {
  width: 8px;
}

.overlay-panel::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
}

.overlay-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  background: var(--surface);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  z-index: 2;
}

.overlay-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.overlay-close svg {
  width: 18px;
  height: 18px;
}

.overlay-content {
  padding: 8px 48px 48px;
  clear: both;
}

.overlay-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  padding-right: 48px;
}

.overlay-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lime);
  margin: 32px 0 10px;
}

.overlay-content h3:first-of-type {
  margin-top: 0;
}

.legal-row {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

.legal-row strong {
  color: var(--text);
}

.legal-row a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-row a:hover {
  color: var(--text);
}

.legal-address {
  font-style: normal;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-list {
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--blue-bright);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }
.reveal[data-delay='4'] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */

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

  .card-featured {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-deco {
    opacity: 0.2;
    right: -140px;
  }
}

@media (max-width: 760px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 72px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 30px 26px;
  }

  .contact-box {
    padding: 64px 24px;
  }

  .contact-cta {
    width: 100%;
  }

  .overlay-content {
    padding: 8px 28px 36px;
  }

  .overlay-content h2 {
    padding-right: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}