* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --border-color: #1f1f1f;
  --glow-color: rgba(59, 130, 246, 0.5);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Navigation */
.nav {
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s ease all;
}

a:hover {
  opacity: 0.7;
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links .actions {
  display: flex;
  gap: 1em;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn-primary {
  background: var(--text-primary) !important;
  color: var(--bg-primary) !important;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--text-primary) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-primary-large {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-secondary-large {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary-large:hover {
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.btn-large {
  text-decoration: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #c58422;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Stats */
.stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  animation: fadeInUp 0.8s ease-out 1s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Background Grid */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.card-1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
}

.card-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 30%;
  left: 15%;
  animation-delay: 4s;
}

.code-snippet {
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.code-line {
  display: block;
}

.keyword {
  color: var(--accent-blue);
}

.string {
  color: var(--accent-cyan);
}

.method {
  color: #a855f7;
}

.metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.metric-icon {
  font-size: 1.5rem;
}

.metric-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.pulse {
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

/* Features Section */
.features {
  position: relative;
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.features .content {
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -1px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--text-secondary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* TXT IMG Section */
.txt-img-section {
  position: relative;
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.txt-img-section .txt-img-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.txt-img-section .txt-img-content {
  margin: 0 auto;
  text-align: center;
}

.txt-img-section .txt-img-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 2rem;
  background: var(--bg-primary);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.waitlist-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.email-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.email-input:focus {
  border-color: var(--text-secondary);
}

.email-input::placeholder {
  color: var(--text-secondary);
}

.btn-submit {
  padding: 1rem 2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.cta-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  padding: 4rem 2rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 5rem;
  margin-bottom: 2rem;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-links {
  display: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    display: none;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .stats {
    gap: 2rem;
  }

  .floating-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary-large,
  .btn-secondary-large {
    width: 100%;
  }
}

/* ====================================== */
/* LOGIN PAGE - ENHANCED ANIMATIONS */
/* ====================================== */

#login-page .bg-grid {
  background-image: linear-gradient(#3f3f3f 1px, transparent 1px), linear-gradient(90deg, #3f3f3f 1px, transparent 1px);
}

/* Added animated gradient orbs for depth */
#login-page::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -250px;
  left: -250px;
  border-radius: 50%;
  animation: floatOrb1 15s ease-in-out infinite;
  z-index: 1;
}

#login-page::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  border-radius: 50%;
  animation: floatOrb2 18s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatOrb1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

@keyframes floatOrb2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-100px, -80px) scale(1.15);
  }
}

/* LOGIN SECTION CENTERED */
.login-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-primary);
  padding: 1rem;
  position: relative;
}

/* Enhanced glass card with staggered animations */
.glass-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  z-index: 10;
  animation: cardSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animated title with gradient effect */
.glass-card h1 {
  animation: titleFadeIn 0.8s ease-out 0.2s both;
  background: linear-gradient(135deg, #ffffff, var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtitle animation */
.glass-card h2 {
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.glass-card > span {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.login-section .button {
  cursor: pointer;
}

/* Enhanced Discord button with hover glow */
.discord-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865f2 !important;
  color: #fff !important;
  width: 100%;
  padding: 0.9rem 0;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.discord-button:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.discord-button:active {
  transform: translateY(0);
}

/* Spacer animation */
.spacer {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  margin: 1rem 0;
  animation: fadeIn 0.8s ease-out 0.6s both;
  background-color: rgba(17, 17, 17, 0.85);
}

.spacer span {
  padding: 0 1rem;
  z-index: 1;
  color: var(--text-secondary);
  position: relative;
  backdrop-filter: blur(12px);
}

.spacer::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--border-color);
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 0;
}

/* Email form with staggered input animations */
.email-login {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.email-login input {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out both;
}

.email-login input:nth-child(1) {
  animation-delay: 0.7s;
}

.email-login input:nth-child(2) {
  animation-delay: 0.8s;
}

/* Enhanced input focus effects */
.email-login input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.email-login input::placeholder {
  color: var(--text-secondary);
  transition: opacity 0.3s ease;
}

.email-login input:focus::placeholder {
  opacity: 0.5;
}

/* Enhanced button with shine effect */
.email-login button {
  background: var(--accent-blue);
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.email-login button::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotateZ(60deg) translate(-5em, 7.5em);
  animation: shineButton 3s ease-in-out infinite;
}

@keyframes shineButton {
  0%,
  100% {
    transform: rotateZ(60deg) translate(-5em, 7.5em);
  }
  50% {
    transform: rotateZ(60deg) translate(1em, -10em);
  }
}

.email-login button:hover {
  transform: translateY(-2px);
}

.email-login button:active {
  transform: translateY(0);
}

/* Terms text animation */
.login-section .terms {
  font-size: 13px;
  padding: 1rem 0;
  animation: fadeIn 0.8s ease-out 1s both;
}

/* Help text with arrow bounce */
.help-text {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.8s ease-out 1.1s both;
}

.help-text svg {
  transition: transform 0.3s ease;
}

.help-text:hover svg {
  transform: translateX(5px);
  animation: arrowBounce 0.6s ease-in-out;
}

@keyframes arrowBounce {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

.help-text a {
  text-decoration: none;
  position: relative;
}

.help-text a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: #fff;
  transition: width 0.3s ease;
}

.help-text a:hover::after {
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .glass-card {
    margin: 2rem;
    padding: 2rem 1.5rem;
  }
}
