:root {
  --bg: #06080F;
  --glass: rgba(255,255,255,0.04);
  --glass-strong: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.10);
  --accent: #22d3ee;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: #e5e7eb;
}
.font-display { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.font-mono, code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

#cursor-glow {
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 20%), rgba(34,211,238,0.12), transparent 40%);
  opacity: 0.9;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.glass-nav {
  background: rgba(6,8,15,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
#site-header.scrolled .glass-nav { background: rgba(6,8,15,0.78); }

.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(34,211,238,0.25), rgba(167,139,250,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.hero-canvas-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-canvas-wrap canvas { width: 100% !important; height: 100% !important; display: block; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.tilt-card { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; }
.tilt-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(34,211,238,0.15); }

.magnetic-btn { transition: transform .2s ease, box-shadow .2s ease; }

.bento-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.bento-card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,0.25); background: rgba(255,255,255,0.06); }

.progress-bar { height: 3px; background: linear-gradient(90deg, #22d3ee, #a78bfa); transform-origin: left; }

.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.timeline::before {
  content: ''; position: absolute; left: 1rem; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, rgba(34,211,238,0.6), rgba(167,139,250,0.2));
}
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-1px); } }

input, textarea, select {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.12);
  color: #e5e7eb;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(34,211,238,0.5); box-shadow: 0 0 0 3px rgba(34,211,238,0.15); }
label { color: #cbd5e1; }

.badge-mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em; }

.product-canvas { width: 100%; height: 320px; border-radius: 1rem; overflow: hidden; background: radial-gradient(ellipse at center, rgba(34,211,238,0.08), rgba(0,0,0,0.2)); }
@media (min-width: 1024px) { .product-canvas { height: 420px; } }

.toast-show { display: block !important; animation: toast-in .25s ease; }
@keyframes toast-in { from { opacity:0; transform: translateY(8px);} to {opacity:1; transform:none;} }

.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }

.type-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: currentColor;
  opacity: 0.8;
  animation: type-blink 1s steps(1) infinite;
}
.hero-slide:not(.active) .type-cursor { opacity: 0; animation: none; }
@keyframes type-blink { 50% { opacity: 0; } }

.btn-primary { background: linear-gradient(135deg, #22d3ee, #14b8a6); color: #020617; font-weight: 600; }
.btn-secondary { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: #e5e7eb; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.prose-dark p { color: #cbd5e1; margin-bottom: 1rem; line-height: 1.75; }
.prose-dark ul { list-style: disc; padding-left: 1.25rem; color: #cbd5e1; margin-bottom: 1rem; }
.prose-dark li { margin: .35rem 0; }
.prose-dark h2, .prose-dark h3 { font-family:'Plus Jakarta Sans',sans-serif; color:#fff; margin:1.5rem 0 .75rem; font-weight:700; }
.prose-dark a { color: #67e8f9; }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-item.open .accordion-content { max-height: 300px; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.filter-btn.active { background: rgba(34,211,238,0.15); color: #67e8f9; border-color: rgba(34,211,238,0.4); }

/* Admin helpers */
.admin-sidebar a.active { background: rgba(34,211,238,0.12); color: #67e8f9; border-color: rgba(34,211,238,0.25); }
.table-wrap { overflow-x: auto; }