:root {
  --bg: #09090f;
  --surface: #111118;
  --border: rgba(124, 58, 237, 0.15);
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --text: #e4e4f0;
  --muted: #6b6b80;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery scroll */
.gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -40px;
  padding: 24px 0 24px 40px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.dragging { cursor: grabbing; }

.gallery-item {
  flex-shrink: 0;
  width: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Glow accent line */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* Nav */
.nav-links {
  display: flex;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(9,9,15,0.9), transparent);
  backdrop-filter: blur(8px);
}

/* App card */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* Tag pill */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Button */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 40px var(--accent-glow);
}

.btn-ghost {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

@media (max-width: 640px) {
  nav {
    padding: 16px 20px;
  }
  .nav-links {
    display: none !important;
  }
  .gallery-item {
    width: 200px;
  }
}
