/* ── Design Tokens ─────────────────────────────────── */
:root {
  --bg:            #0b0b0f;
  --bg-2:          #111118;
  --bg-3:          #18181f;
  --surface:       rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.07);
  --border-mid:    rgba(255,255,255,0.11);
  --border-hover:  rgba(188,163,232,0.4);
  --text:          #efefef;
  --text-2:        #8888a0;
  --text-3:        #52525f;
  --purple:        #BCA3E8;
  --purple-dark:   #A584DC;
  --purple-dim:    rgba(188,163,232,0.1);
  --green:         #C3D3B4;
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --w:     1200px;  /* single content width across all pages */
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 35% at 15% -5%, rgba(188,163,232,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 105%, rgba(195,211,180,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ────────────────────────────────────────── */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ── Nav ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(11,11,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--purple); }

.nav-tabs {
  display: flex;
  gap: 0.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.25rem;
}

.nav-tab {
  padding: 0.4rem 1.1rem;
  border-radius: calc(var(--r-md) - 2px);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-2);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-tab:hover { color: var(--text); background: var(--surface-hover); }
.nav-tab.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 1px 10px rgba(188,163,232,0.3);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface-hover);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.875rem;
  background: var(--purple-dim);
  border: 1px solid rgba(188,163,232,0.2);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: normal;
  color: var(--purple);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Pill tags ─────────────────────────────────────── */
.tag-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.tag {
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ── Section heading ───────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.section-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-count {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ── Product Grid ──────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.product-card:hover {
  border-color: rgba(188,163,232,0.3);
  transform: translateY(-2px);
}

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.375rem;
}
.product-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.15s;
}
.product-card:hover .product-card-title { color: var(--purple); }
.product-card-desc {
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: gap 0.15s;
}
.product-card-link:hover { gap: 0.5rem; }
.product-card-link::after { content: '→'; }

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.65rem 1.375rem;
  background: var(--purple);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 16px rgba(188,163,232,0.25);
  width: 100%;
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(188,163,232,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.65rem 1.375rem;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-mid);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-sm:hover { border-color: var(--border-hover); color: var(--text); background: var(--surface-hover); }

/* ── Overview page ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 4rem;
}
.feature-cell {
  background: var(--bg-2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-icon {
  width: 36px; height: 36px;
  background: var(--purple-dim);
  border: 1px solid rgba(188,163,232,0.15);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.feature-desc {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.6;
}
@media (max-width: 700px) { .features-grid { grid-template-columns: 1fr; } }

/* ── Inputs ────────────────────────────────────────── */
.input-field {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-field::placeholder { color: var(--text-3); }
.input-field:focus {
  border-color: rgba(188,163,232,0.45);
  box-shadow: 0 0 0 3px rgba(188,163,232,0.07);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-links a, .footer-links button {
  color: var(--text-3);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0;
  transition: color 0.15s;
}
.footer-links a:hover, .footer-links button:hover { color: var(--purple); }

/* ── Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; }
.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-2xl);
  max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2);
  font-size: 1.125rem; line-height: 1;
  transition: all 0.15s;
}
.modal-close:hover { color: var(--text); border-color: var(--border-hover); }

/* ── Admin ─────────────────────────────────────────── */
.admin-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color 0.15s;
}
.admin-row:hover { border-color: rgba(188,163,232,0.2); }

/* ── Misc ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.35s ease both; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
  .footer-inner { padding: 1.25rem; }
}

/* ── Cookie Banner ─────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,17,24,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#cookie-banner.show {
  transform: translateY(0);
}
.cookie-content {
  max-width: 700px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}
.cookie-content strong { color: var(--text); }
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
  }
  .cookie-actions {
    flex-direction: column;
  }
}
               