:root {
  /* Apple Dark Mode Palette */
  --bg-color: #000000;
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-main: #f5f5f7;
  --text-muted: #a1a1a6;
  --accent-color: #ffffff;
  --accent-hover: #e0e0e0;

  /* Utilities */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  /* Faint grid pattern */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Ambient Glowing Background Orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.15;
}

body::before {
  top: -100px;
  left: -200px;
  background: radial-gradient(circle, #ffffff, transparent);
}

body::after {
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, #a1a1a6, transparent);
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* =========================================
   Navbar (Glassmorphism)
   ========================================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.nav-content {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  cursor: pointer;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 28px;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-nav {
  color: var(--bg-color) !important;
  background: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
}

.btn-nav:hover {
  background: var(--accent-hover);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

/* Subtle glow behind the hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0) 60%);
  z-index: -1;
  pointer-events: none;
}

.badge {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  max-width: 650px;
  letter-spacing: -0.015em;
  margin-bottom: 45px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-color);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--surface-color);
}

/* =========================================
   Realistic Discord Mockup
   ========================================= */
.hero-mockup {
  margin-top: 80px;
  width: 100%;
  max-width: 700px;
  perspective: 1000px;
}

.discord-window {
  background: #313338;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #dbdee1;
  text-align: left;
}

.discord-titlebar {
  background: #313338;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1e1f22;
}

.discord-window-controls {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.discord-header-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #f2f3f5;
  font-size: 1rem;
}

.discord-header-text i {
  color: #80848e;
  font-size: 1.2rem;
}

.discord-chat {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.discord-message {
  display: flex;
  padding: 4px 16px 4px 72px;
  position: relative;
  animation: fadeInMsg 0.4s ease forwards;
}

.discord-message:hover {
  background: #2e3035;
}

@keyframes fadeInMsg {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.discord-avatar {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-msg-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.discord-msg-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.discord-username {
  font-weight: 500;
  color: #f2f3f5;
  font-size: 1rem;
  letter-spacing: 0;
}

.discord-bot-tag {
  background: #5865F2;
  color: white;
  font-size: 0.65rem;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  vertical-align: middle;
}

.discord-timestamp {
  font-size: 0.75rem;
  color: #949ba4;
  margin-left: 2px;
}

.discord-text {
  color: #dbdee1;
  font-size: 1rem;
  line-height: 1.375rem;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.discord-embed {
  margin-top: 4px;
  background: #2b2d31;
  border-left: 4px solid #1e1f22;
  border-radius: 4px;
  padding: 12px 16px 16px 16px;
  max-width: 432px;
}

.embed-title {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.embed-desc {
  color: #dbdee1;
  font-size: 0.875rem;
  line-height: 1.125rem;
}

.embed-desc p {
  margin-bottom: 8px;
}

.embed-desc p:last-child {
  margin-bottom: 0;
}

.embed-footer {
  color: #dbdee1;
  font-size: 0.75rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
}

/* Discord Reply Styling */
.discord-reply-spine {
  position: absolute;
  top: 14px;
  left: 36px;
  width: 33px;
  height: 12px;
  border-left: 2px solid #4f545c;
  border-top: 2px solid #4f545c;
  border-top-left-radius: 6px;
  opacity: 0.5;
}

.discord-reply-content {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: #b5bac1;
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
  z-index: 10;
}

.discord-reply-content:hover {
  color: #dbdee1;
}

.discord-reply-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-reply-username {
  font-weight: 500;
  opacity: 0.8;
}

.discord-reply-username:hover {
  text-decoration: underline;
  opacity: 1;
}

.discord-reply-text {
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* Discord Nickname / PC icon */
.discord-nickname {
  color: #b5bac1;
  font-size: 1rem;
  margin-left: 4px;
}

/* Discord Reactions */
.discord-reactions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.discord-reaction {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s;
}

.discord-reaction-inner {
  display: flex;
  align-items: center;
  gap: 4px;
}

.discord-reaction:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.discord-reaction-emoji {
  font-size: 1rem;
}

.discord-reaction-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: #b5bac1;
}

.discord-reaction-user {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 2px;
}

.discord-reaction-add {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.1s;
}

.discord-reaction-add:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.discord-reaction-add i {
  color: #b5bac1;
  font-size: 1.1rem;
}

.discord-mention {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.discord-mention:hover {
  background: #5865f2;
  color: #ffffff;
}

.hidden {
  display: none !important;
}

/* =========================================
   Features Section
   ========================================= */
.features {
  padding: 120px 20px;
  max-width: 1050px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 70px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--surface-hover);
}

.card i {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================================
   Banner Section
   ========================================= */
.banner {
  margin: 80px 20px 120px;
  display: flex;
  justify-content: center;
}

.banner-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 60px 40px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.banner-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.banner-content p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* =========================================
   Footer
   ========================================= */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =========================================
   Commands Section
   ========================================= */
.commands {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.commands-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.command-item {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-item:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.command-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-name {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.command-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--bg-color);
  background: var(--text-muted);
  padding: 3px 8px;
  border-radius: 20px;
}

.command-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================================
   Statistics Section
   ========================================= */
.stats {
  padding: 60px 20px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 50px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* =========================================
   Animations (Intersection Observer)
   ========================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn {
    width: 100%;
  }

  .features,
  .commands,
  .stats {
    padding: 60px 20px;
  }

  .banner {
    margin: 40px 20px 80px;
  }

  .banner-content {
    padding: 40px 20px;
  }

  .stats-container {
    gap: 30px;
    padding: 30px 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    align-items: center;
  }
}
