/**
 * Canvas Speed - Landing Page
 * By markizin
 */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #050505;
  color: #e5e5e5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-family: 'Inter', sans-serif;
}

/* ==== Scrollbar ==== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

/* ==== Focus ==== */
:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ==== Text gradient ==== */
.text-gradient {
  background: linear-gradient(to right, #a855f7 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==== Background blobs (ambient) ==== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blob 20s ease-in-out infinite;
}
.blob-1 {
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #5227FF 0%, transparent 70%);
  animation-delay: 0s;
}
.blob-2 {
  top: 40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #c12fd0 0%, transparent 70%);
  animation-delay: -7s;
}
.blob-3 {
  bottom: 0;
  left: 30%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.1); }
  50% { transform: translate(-20px, 30px) scale(0.9); }
  75% { transform: translate(20px, 20px) scale(1.05); }
}

/* ==== Glass card ==== */
.nav-glass {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link {
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.3s;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: all 0.3s;
}
.discord-pill:hover {
  border-color: rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  transform: translateY(-1px);
}

/* ==== Buttons ==== */
.btn-primary {
  padding: 16px 40px;
  border-radius: 9999px;
  background: #ffffff;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
  display: inline-block;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  padding: 16px 40px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}
.btn-secondary:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-secondary:active {
  transform: scale(0.98);
}

.btn-pill-outline {
  padding: 12px 28px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}
.btn-pill-outline:hover {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.05);
  color: #fff;
}

.btn-pill-disabled {
  padding: 12px 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  display: inline-block;
  cursor: not-allowed;
}

/* ==== Feature cards ==== */
.feature-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  font-weight: 300;
}

/* ==== Engine chips ==== */
.engine-chip {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: all 0.3s;
}
.engine-chip:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.engine-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.engine-version {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ==== Steps ==== */
.step-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s;
  position: relative;
}
.step-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.step-num {
  font-family: 'Syncopate', sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(to right, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-weight: 300;
}

/* ==== Install panels ==== */
.install-panel {
  padding: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: all 0.3s;
}
.install-panel:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.install-panel.featured {
  border-color: rgba(168, 85, 247, 0.25);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(6, 182, 212, 0.02));
}

.install-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 9999px;
  background: linear-gradient(to right, #a855f7, #06b6d4);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.install-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}
.install-icon-wrap.gradient-icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  color: #fff;
}

.install-panel h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.install-panel p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.6;
}

/* ==== Glass card ==== */
.glass-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.code-inline {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

/* ==== Privacy showcase ==== */
.privacy-showcase {
  padding: 56px 40px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.privacy-check {
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.privacy-check::before {
  content: '✓';
  color: #06b6d4;
  font-weight: 700;
  font-size: 14px;
}

/* ==== Footer ==== */
.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #fff;
}

/* ==== Privacy page ==== */
.privacy-page {
  max-width: 800px;
  margin: 140px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.privacy-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  margin-bottom: 40px;
}
.privacy-page .back-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.privacy-page h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.privacy-page .date {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 48px;
}

.privacy-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.privacy-page p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 300;
}

.privacy-page p strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.privacy-page ul {
  color: rgba(255, 255, 255, 0.6);
  padding-left: 20px;
  margin-bottom: 16px;
}

.privacy-page li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 14px;
  font-weight: 300;
}

.privacy-page code {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.privacy-page a {
  color: #06b6d4;
  text-decoration: none;
  transition: color 0.2s;
}
.privacy-page a:hover {
  color: #a855f7;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .blob {
    filter: blur(60px);
    opacity: 0.25;
  }
  .blob-1, .blob-2, .blob-3 {
    width: 300px;
    height: 300px;
  }

  .privacy-showcase {
    padding: 40px 24px;
  }

  .privacy-page h1 {
    font-size: 32px;
  }
}
