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

:root {
  --blue: #3a86ff;
  --purple: #9d4edd;
  --bg: #020817;
  --surface: #0b1225;
  --border: rgba(255,255,255,0.07);
  --muted: #64748b;
  --grad: linear-gradient(135deg, #3a86ff, #9d4edd);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: white;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(58,134,255,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(157,78,221,0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: rgba(2,8,23,0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  height: 38px;
  width: auto;
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: .2s;
}

.nav-back:hover { color: white; background: rgba(255,255,255,0.06); }

.nav-cta {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 8px;
  background: var(--grad);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
  box-shadow: 0 0 20px rgba(58,134,255,0.22);
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.viewer img {
  max-width: 94%;
  max-height: 94%;
  border-radius: 10px;
}

.footer {
  margin-top: 80px;
  padding: 30px 20px;
  border-top: 1px solid #1e293b;
  background: #020617;
}

.footer-content {
  max-width: 1200px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #64748b;
  font-size: 14px;
}

.footer a {
  color: #64748b;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  color: #3b82f6;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  nav { padding: 0 4%; }
  .nav-brand img { height: 32px; }
  .nav-cta { padding: 7px 14px; font-size: 12px; }
  .nav-back { padding: 5px 10px; font-size: 12px; }
}

@media (max-width: 480px) {
  nav { padding: 0 4%; height: 54px; }
  .nav-brand img { height: 26px; }
  .nav-cta { padding: 6px 12px; font-size: 11px; }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 18px;
    bottom: 12px;
  }
  .cookie-banner button { width: 100%; }
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px 24px;
  max-width: 680px;
  width: calc(100% - 40px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 8000;
  animation: slideUp 0.4s ease;
}

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

.cookie-banner button {
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  color: white;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity .2s;
}

.cookie-banner button:hover { opacity: 0.85; }

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* === POPUP PREVIEW FIX === */
.preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #1e293b;
  background: radial-gradient(circle, rgba(59,130,246,0.08), transparent);
  overflow: hidden;
}

.preview img {
  max-height: 720px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.06) saturate(1.05);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  transition: transform 0.25s ease;
}

.preview img:hover {
  transform: scale(1.05);
}
