:root {
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-900: #7f1d1d;
  --red-50: #fef2f2;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-900: #581c87;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-900: #14532d;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --discord-color: #5865f2;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--gray-950);
  color: var(--gray-100);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-800);
  transition: all 0.3s ease;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  justify-self: start;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--emerald-400);
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-300);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--emerald-400);
}

.nav-link.active {
  color: var(--emerald-400);
}

/* User Profile in Header */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.user-avatar-round {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid var(--emerald-400);
  object-fit: cover;
}

.user-name-text {
  font-weight: 600;
  color: var(--gray-100);
  font-size: 0.875rem;
}

.user-chevron {
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: transform 0.3s ease;
}

.user-profile:hover .user-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  min-width: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.dropdown-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dropdown-card {
  background: var(--gray-50);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.dropdown-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.dropdown-card-blue {
  background: #dbeafe;
  border-color: #bfdbfe;
}

.dropdown-card-blue:hover {
  border-color: var(--blue-500);
}

.dropdown-card-red {
  background: #fee2e2;
  border-color: #fecaca;
}

.dropdown-card-red:hover {
  border-color: var(--red-500);
}

.dropdown-card-purple {
  background: #f3e8ff;
  border-color: #e9d5ff;
}

.dropdown-card-purple:hover {
  border-color: var(--purple-500);
}

.dropdown-card-green {
  background: #dcfce7;
  border-color: #bbf7d0;
}

.dropdown-card-green:hover {
  border-color: var(--green-500);
}

.dropdown-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dropdown-card-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-card-icon.blue {
  color: var(--blue-600);
}
.dropdown-card-icon.red {
  color: var(--red-600);
}
.dropdown-card-icon.purple {
  color: var(--purple-600);
}
.dropdown-card-icon.green {
  color: var(--green-600);
}

.dropdown-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
}

.dropdown-card-title.blue {
  color: var(--blue-900);
}
.dropdown-card-title.red {
  color: var(--red-900);
}
.dropdown-card-title.purple {
  color: var(--purple-900);
}
.dropdown-card-title.green {
  color: var(--green-900);
}

.dropdown-card-description {
  font-size: 0.875rem;
  line-height: 1.4;
}

.dropdown-card-description.blue {
  color: var(--blue-700);
}
.dropdown-card-description.red {
  color: var(--red-700);
}
.dropdown-card-description.purple {
  color: var(--purple-700);
}
.dropdown-card-description.green {
  color: var(--green-700);
}

.dropdown-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.dropdown-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.dropdown-footer-link:hover {
  color: var(--gray-900);
}

/* User Dropdown */
.user-dropdown {
  min-width: 250px;
  padding: 1rem;
}

.user-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s ease;
  font-weight: 500;
}

.user-dropdown-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  text-decoration: none;
}

.user-dropdown-link.logout {
  color: var(--red-600);
}

.user-dropdown-link.logout:hover {
  background: var(--red-50);
  color: var(--red-700);
}

.user-dropdown-link i {
  width: 1rem;
  text-align: center;
  font-size: 0.875rem;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  justify-content: end;
  gap: 1rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--emerald-500);
  color: white;
}

.btn-primary:hover {
  background-color: var(--emerald-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--emerald-500);
  color: var(--emerald-400);
}

.btn-outline:hover {
  background-color: var(--emerald-500);
  color: white;
  transform: translateY(-1px);
}

.btn-discord {
  background-color: var(--discord-color);
  color: white;
}

.btn-discord:hover {
  background-color: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-discord-large {
  background-color: var(--discord-color);
  color: white;
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.btn-discord-large:hover {
  background-color: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--gray-300);
  font-size: 1.5rem;
  cursor: pointer;
  justify-self: end;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-logo-text {
  font-weight: 700;
  color: var(--emerald-600);
  text-transform: uppercase;
  font-size: 1.125rem;
}

.mobile-logo-subtitle {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-600);
  cursor: pointer;
}

.mobile-menu-content {
  padding: 1.5rem;
}

.mobile-menu-section {
  margin-bottom: 2rem;
}

.mobile-menu-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.mobile-menu-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Mobile User Section */
.mobile-user-section {
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-user-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 3px solid var(--emerald-400);
  object-fit: cover;
}

.mobile-user-info {
  flex: 1;
}

.mobile-user-name {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1.125rem;
}

.mobile-user-status {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.mobile-user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-user-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s ease;
  font-weight: 500;
}

.mobile-user-link:hover {
  background: white;
  color: var(--gray-900);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-user-link.logout {
  color: var(--red-600);
  border-top: 1px solid var(--gray-200);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.mobile-user-link.logout:hover {
  background: var(--red-50);
  color: var(--red-700);
}

.mobile-user-link i {
  width: 1.25rem;
  text-align: center;
  font-size: 1rem;
}

.mobile-auth-section {
  margin-top: 2rem;
}

.mobile-auth-btn {
  width: 100%;
  justify-content: center;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-950), #000);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1), transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--emerald-400);
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--emerald-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, white, var(--gray-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

/* Code Editor */
.code-editor {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-800);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.window-control {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.control-red {
  background: #ef4444;
}
.control-yellow {
  background: #f59e0b;
}
.control-green {
  background: #10b981;
}

.code-filename {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.code-content {
  padding: 1.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.8;
}

.code-line {
  display: flex;
  align-items: center;
}

.line-number {
  color: var(--gray-500);
  width: 2rem;
  text-align: right;
  margin-right: 1rem;
}

.keyword {
  color: #a855f7;
}
.variable {
  color: #3b82f6;
}
.property {
  color: var(--emerald-400);
}
.string {
  color: #f97316;
}
.comment {
  color: var(--gray-500);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: rgba(17, 24, 39, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-400);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.features-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature {
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-400);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.feature-description {
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--emerald-400);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.card-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.card-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}
.card-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-500);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.card-description {
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Offers Showcase */
.offers-showcase {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.offers-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-400);
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.offers-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.offers-description {
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.offers-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Community CTA */
.community-cta {
  text-align: center;
}

/* Footer */
.footer {
  background: var(--gray-900);
  border-top: 1px solid var(--gray-800);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand-section {
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-title {
  color: var(--emerald-400);
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-brand-subtitle {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-description {
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-section {
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
}

/* Responsive */
@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .section-title {
    font-size: 3rem;
  }

  .offers-buttons {
    flex-wrap: nowrap;
  }
}

@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-content {
    grid-template-columns: 1fr auto;
  }

  .user-menu {
    display: none;
  }

  .offers-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .mobile-user-section {
    display: none;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-delay-1 {
  animation-delay: 0.2s;
}
.animate-delay-2 {
  animation-delay: 0.4s;
}
.animate-delay-3 {
  animation-delay: 0.6s;
}
