:root {
  --bg-color: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.7);

  /* Smooth Scroll */
  scroll-behavior: smooth;
  --border-color: rgba(0, 0, 0, 0.1);
  --primary-glow: conic-gradient(
    from 180deg at 50% 50%,
    #16abff33 0deg,
    #0885ff33 55deg,
    #54d6ff33 120deg,
    #0071ff33 160deg,
    transparent 360deg
  );
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --text-primary: #0f172a;
  --text-secondary: #475569;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: linear-gradient(to bottom, #ffffff 0%, #eff6ff 100%);
}

.glow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(168, 85, 247, 0.1) 0%,
    transparent 50%
  );
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  z-index: 10;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-blue));
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.logo-icon::after {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Hero */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}

h1 {
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  color: white;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Glass Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: left;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.glass-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.glass-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  font-family: "Space Grotesk", sans-serif;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

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

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 1.5rem 2rem;
  }
  .markdown-content {
    padding: 1rem;
  }
}

/* Markdown Content Styling */
.markdown-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.markdown-content {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  color: var(--text-secondary);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
}

.markdown-content h1 {
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-top: 0;
}

.markdown-content h2 {
  font-size: 1.8rem;
}

.markdown-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: none;
  line-height: 1.7;
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content code {
  background: #e2e8f0;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: #0f172a;
  font-family: monospace;
  font-weight: 600;
}

.markdown-content pre {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.markdown-content pre code {
  background: transparent;
  padding: 0;
  color: #f8fafc;
  font-weight: 400;
}

.markdown-content blockquote {
  border-left: 4px solid var(--accent-purple);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #e2e8f0;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid var(--border-color);
  padding: 1rem;
  text-align: left;
}

.markdown-content th {
  background: rgba(255, 255, 255, 0.05);
}

/* Age Verification Modal */
#age-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex; /* Visible by default (fail-safe) */
  justify-content: center;
  align-items: center;
  background: rgba(3, 0, 20, 0.85); /* Dark semi-transparent background */
  backdrop-filter: blur(15px); /* Blurs everything behind it */
}

.age-modal {
  background: rgba(30, 30, 40, 0.6);
  border: 1px solid var(--accent-purple);
  box-shadow:
    0 0 50px rgba(168, 85, 247, 0.2),
    inset 0 0 20px rgba(168, 85, 247, 0.05);
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.age-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% -20%,
    rgba(168, 85, 247, 0.15),
    transparent 70%
  );
  pointer-events: none;
}

.age-modal h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
  color: #fff;
}

.age-modal p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.age-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-danger-outline {
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* Scroll to Top Button */
#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  ); /* Gradient background */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 50%; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
}

#scrollTopBtn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}
