:root {
  --bg: #030407;
  --bg-card: #0a0c14;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);
  --accent: #00f2ff;
  --accent-soft: rgba(0, 242, 255, 0.1);
  --purple: #b163ff;
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #475569;
  --sans: 'Plus Jakarta Sans', sans-serif;
  --mono: 'Space Mono', monospace;
  --shadow-glow: 0 0 40px rgba(0, 242, 255, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 242, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(177, 99, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
  opacity: 0.15;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at top left, rgba(0, 242, 255, 0.04) 0%, transparent 35%),
    radial-gradient(circle at bottom right, rgba(177, 99, 255, 0.04) 0%, transparent 35%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: rgba(3, 4, 7, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.nav-btn {
  background: var(--accent);
  color: #000 !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700 !important;
  font-size: 0.875rem;
  text-decoration: none;
  margin-left: 12px;
}

.nav-btn:hover { box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); }

main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.panel {
  background: linear-gradient(180deg, rgba(10,12,20,0.96), rgba(7,9,15,0.98));
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 18px;
}

.lead {
  color: var(--text-dim);
  max-width: 72ch;
  margin-bottom: 8px;
}

.section {
  margin-top: 18px;
  background: rgba(11,14,21,0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 24px 18px;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 12px;
}

p { margin-bottom: 12px; }
ul { padding-left: 20px; }
li { margin-bottom: 8px; color: var(--text-main); }

.rule {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(0, 242, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 12px;
}

.note {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--text-dim);
  font-size: 14px;
}

footer {
  padding: 100px 6% 60px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(3, 4, 7, 0.8);
  backdrop-filter: blur(24px);
}

.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-dim); }
.footer-action {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.footer-action:hover { color: var(--text-dim); }
.copy { font-size: 0.85rem; color: var(--text-muted); font-family: var(--mono); opacity: 0.6; }

/* Cookie consent */
.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2200;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent.active { display: flex; }

.cookie-consent__panel {
  pointer-events: auto;
  width: min(100%, 920px);
  background: rgba(10, 12, 20, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent__copy {
  max-width: 62ch;
}

.cookie-consent__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-consent__text {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-consent__btn {
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__btn.primary {
  background: var(--accent);
  color: #000;
  border-color: transparent;
}

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

@media (max-width: 720px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cookie-consent__panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-consent__actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-logo img { height: 36px; }
}

@media (max-width: 720px) {
  nav {
    height: auto;
    min-height: 80px;
    padding: 12px 16px 14px;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 10px 14px;
  }
  .nav-btn { margin-left: auto; }
  main { padding-top: 150px; padding-left: 16px; padding-right: 16px; }
  .panel { padding: 22px; }
  footer {
    padding: 72px 16px 40px;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
  }
  .footer-links a,
  .footer-action {
    width: min(100%, 280px);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }
  .footer-links a:hover,
  .footer-action:hover { background: rgba(255, 255, 255, 0.08); }
}
