/* ─────────────────────────────────────────────
   AI Pirates — Shared Stylesheet
   Used by all pages (DE + EN)
───────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: #020617;
  color: #e2e8f0;
  margin: 0;
  overflow-x: hidden;
}

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 60px;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.main-wrap {
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .sidebar { display: flex; }
  .main-wrap { margin-left: 60px; }
}

/* ── Blueprint Grid Background ── */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Cards & Glass ── */
.glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.12);
  transition: border-color .3s, box-shadow .3s;
}

.glass:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1023px) {
  header.glass {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
  }
}

.holo {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(0, 240, 255, 0.15);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.holo:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08);
}

/* ── Typography ── */
.label {
  font-size: 9px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ff2a2a;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 9px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: transform .2s;
  cursor: default;
}

.pill:hover { transform: translateY(-1px); }

.grad-c {
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-c { text-shadow: 0 0 20px rgba(0, 240, 255, 0.4); }
.glow-r { text-shadow: 0 0 20px rgba(255, 42, 42, 0.4); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.25), transparent);
  margin: 24px 0;
}

/* ── Scrollbar Hide ── */
.noscroll::-webkit-scrollbar { display: none; }
.noscroll { scrollbar-width: none; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

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

/* ── Sidebar Nav Icons ── */
.nav-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .2s;
  color: #475569;
}

.nav-icon:hover {
  background: rgba(0, 240, 255, 0.08);
  color: #00f0ff;
}

.nav-icon.active-page {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
}

/* ── Desktop Top Nav ── */
#top-nav {
  position: fixed;
  top: 0;
  left: 60px;
  right: 0;
  height: 64px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(2, 6, 23, 0);
  border-bottom: 1px solid transparent;
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease, box-shadow .45s ease;
  animation: navSlideDown .9s cubic-bezier(.22, 1, .36, 1) both;
}

@media (min-width: 1024px) {
  #top-nav { display: flex; }
}

#top-nav.scrolled {
  background: rgba(2, 6, 23, 0.88);
  border-bottom-color: rgba(0, 240, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.top-nav-link {
  font-size: 10px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #475569;
  text-decoration: none;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}

.top-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 100%;
  height: 1px;
  background: #00f0ff;
  transition: right .25s ease;
}

.top-nav-link:hover { color: #00f0ff; }
.top-nav-link:hover::after { right: 0; }

.top-nav-link.active { color: #e2e8f0; }
.top-nav-link.active::after { right: 0; background: #ff2a2a; }

/* ── CTA Button ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff2a2a;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 0 0 rgba(255, 42, 42, 0);
}

.btn-cta:hover {
  background: #e01f1f;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.35);
}

/* ── Team Card ── */
.team-card {
  background: #080f1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.team-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-4px);
}

/* ── Service Cell ── */
.svc-cell {
  background: #080f1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 36px;
  transition: background .3s, transform .3s, box-shadow .3s;
}

.svc-cell:hover {
  background: #0d1526;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.svc-bullet {
  transition: color .3s, transform .3s;
  cursor: default;
  color: #94a3b8 !important;
}

.svc-bullet:hover {
  color: #00f0ff !important;
  transform: translateX(4px);
}

/* ── Mobile Overrides ── */
@media (max-width: 768px) {
  section { padding: 60px 0 !important; }
  section > div { padding: 0 20px !important; }
  section [style*="gap:80px"],
  section [style*="gap: 80px"],
  section [style*="gap:60px"],
  section [style*="gap: 60px"] { gap: 32px !important; }
  footer { padding: 24px 20px !important; }
  footer > div { padding: 0 !important; }
  .hero-orbit { display: none !important; }
  .noscroll {
    padding: 0 20px 20px !important;
    gap: 14px !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-padding-left: 20px;
  }
  .noscroll > a {
    min-width: 82vw !important;
    max-width: 82vw !important;
    scroll-snap-align: center !important;
  }
  .noscroll > a > div:first-child { height: 180px !important; }
  .noscroll > a > div:first-child > img { object-fit: cover !important; padding: 0 !important; }
}

/* ── Cookie Banner ── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  padding: 20px 24px;
  font-family: 'Space Grotesk', sans-serif;
}

#cookie-banner .cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

#cookie-banner p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  flex: 1;
  min-width: 240px;
  line-height: 1.6;
}

#cookie-banner a { color: #00f0ff; text-decoration: underline; }

#cookie-banner .cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

.btn-accept {
  background: #00f0ff;
  color: #020617;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-reject {
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
}
