:root {
  --primary: #6c5ce7;
  --primary-dark: #5649c0;
  --secondary: #00cec9;
  --dark: #2d3436;
  --light: #f5f6fa;
  --gray: #dfe6e9;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #d63031;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  color: var(--light);
  scroll-behavior: smooth;
}

/* Dragon Canvas */
#dragon-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* GitHub Corner */
.github-corner {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.github-corner:hover {
  opacity: 1;
}

.github-corner svg {
  fill: var(--primary);
  color: white;
  width: 80px;
  height: 80px;
}

.github-corner .octo-arm {
  transform-origin: 130px 106px;
}

.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(-25deg); }
  40%, 80% { transform: rotate(10deg); }
}

@media (max-width: 768px) {
  .github-corner:hover .octo-arm {
    animation: none;
  }
  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
  }
}

/* Layout */
.container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: '🐉';
  font-size: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  position: relative;
}

nav a:not(.source-code-link):hover {
  color: var(--secondary);
}

nav a:not(.source-code-link)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

nav a:not(.source-code-link):hover::after {
  width: 100%;
}

/* Source Code Link */
.source-code-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-left: 1.5rem;
  text-decoration: none;
  color: white;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.source-code-link svg {
  width: 18px;
  height: 18px;
}

.source-code-link:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}

.mobile-menu-button span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  margin: 5px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
  max-width: 800px;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.highlight {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(0, 206, 201, 0.3);
  z-index: -1;
  transform: skew(-15deg);
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
}

/* Buttons */
.cta-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.cta-button svg {
  width: 18px;
  height: 18px;
}

.primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.secondary {
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
}

.secondary:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Stats */
.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
  min-width: 150px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Features Section */
.features {
  padding: 6rem 0;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  opacity: 0.8;
  line-height: 1.6;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  background: rgba(0,0,0,0.1);
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.price span {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  color: white;
  font-family: 'Poppins', sans-serif;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.2);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 3rem 0;
  background: rgba(0,0,0,0.2);
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(30, 60, 114, 0.9);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 90;
  }
  
  nav.active {
    right: 0;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  .mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .source-code-link span {
    display: none;
  }
  
  .source-code-link {
    margin-left: 0;
    padding: 0.5rem;
  }
  
  .stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    width: 100%;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-card, .pricing-card {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }