/* ══════════════════════════════════════════════
   Shade Launcher – Download Website
   Theme: Dark + White Neon Glow
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a10;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --neon-white: #ffffff;
  --neon-glow: rgba(255, 255, 255, 0.8);
  --neon-soft: rgba(255, 255, 255, 0.15);
  --neon-subtle: rgba(255, 255, 255, 0.06);
  --neon-accent: rgba(200, 210, 255, 0.9);

  --text-primary: #f0f0f5;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.3);

  --border-glow: rgba(255, 255, 255, 0.1);
  --border-glow-hover: rgba(255, 255, 255, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Canvas Background ── */
#cloth-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Page Wrapper ── */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border-glow);
  transition: background var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.9);
}

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

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.nav-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--neon-subtle);
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--neon-subtle);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-github:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

.nav-github svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ══════════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-white);
  box-shadow: 0 0 8px var(--neon-glow), 0 0 16px rgba(255,255,255,0.3);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-badge-version {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Title */
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-title .glow-text {
  background: linear-gradient(135deg, #ffffff 0%, #c8d2ff 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.2));
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  font-weight: 400;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

.btn-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--neon-white);
  color: #050508;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-main);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(255,255,255,0.15),
    0 0 60px rgba(255,255,255,0.08),
    0 4px 24px rgba(0,0,0,0.4);
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(135deg, #fff, rgba(200,210,255,0.6), #fff);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.btn-download:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 30px rgba(255,255,255,0.25),
    0 0 80px rgba(255,255,255,0.12),
    0 8px 32px rgba(0,0,0,0.5);
}

.btn-download:hover::before {
  opacity: 1;
}

.btn-download:active {
  transform: translateY(0) scale(0.98);
}

.btn-download svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-main);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-glow-hover);
  background: var(--neon-subtle);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,255,255,0.05);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero visual – the logo glow */
.hero-visual {
  position: relative;
  margin-top: 64px;
  animation: fadeInUp 1s ease-out 0.6s both;
  z-index: 2;
}

.hero-logo-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.hero-logo-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: breathe 4s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.3)) drop-shadow(0 0 80px rgba(255,255,255,0.1));
}

/* ══════════════════════════════════════════════
   Features Section
   ══════════════════════════════════════════════ */
.features {
  position: relative;
  padding: 120px 24px;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-title .glow-text {
  background: linear-gradient(135deg, #ffffff, #c8d2ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(255,255,255,0.03);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-subtle);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 1.4rem;
  transition: all var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 20px rgba(255,255,255,0.08);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   Download Section
   ══════════════════════════════════════════════ */
.download-section {
  position: relative;
  padding: 120px 24px;
  z-index: 2;
}

.download-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.download-card::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.download-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.download-desc {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.download-version-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--neon-subtle);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.download-note {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 2;
  padding: 48px 24px;
  border-top: 1px solid var(--border-glow);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════
   Animations
   ══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--neon-glow), 0 0 16px rgba(255,255,255,0.3); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--neon-glow), 0 0 8px rgba(255,255,255,0.15); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   Particles overlay
   ══════════════════════════════════════════════ */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .download-card {
    padding: 48px 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-download, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
