:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-accent: #0f0f23;
  --text-primary: #ffffff;
  --text-secondary: #b8bcc8;
  --text-muted: #8892b0;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-accent) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* Animated background elements */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(139, 92, 246, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Flowing lines effect */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      45deg,
      transparent 40%,
      rgba(139, 92, 246, 0.03) 50%,
      transparent 60%
    ),
    linear-gradient(
      -45deg,
      transparent 40%,
      rgba(59, 130, 246, 0.03) 50%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 10;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Main container */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero section */
.hero-section {
  text-align: center;
  padding: 120px 0 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section .container {
  width: 100%;
}

.announcement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.announcement:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2),
    0 0 0 1px rgba(139, 92, 246, 0.15);
}

.announcement .badge {
  background: var(--accent-gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  box-shadow: 0 32px 64px -12px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Stats section */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 80px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
}

.section {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

pre {
  margin: 10px 0 0;
  background: #0e1430;
  border: 1px solid #202752;
  color: #cfe3ff;
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.45;
}

footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

a.link {
  color: #cfd4ff;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--accent-2);
}

.feature h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.demo-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 40px 0;
  text-align: center;
  backdrop-filter: blur(10px);
}

.demo-gif {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}

h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Modern styles */
.content-section {
  padding: 100px 0;
  position: relative;
}

.content-section.alt-bg {
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.content-section.alt-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(139, 92, 246, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.content-section.alt-bg > .container {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15),
    0 0 0 1px rgba(139, 92, 246, 0.1);
}

.new-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--accent-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.feature-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Download section three columns */
.download-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

/* Code blocks */
.code-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--card-border);
  text-align: center;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer a {
  color: var(--accent-purple);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 80px 0 80px;
    min-height: 100vh;
  }

  .hero-title {
    font-size: 48px;
  }

  .stats {
    flex-direction: column;
    gap: 32px;
  }

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

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

  .content-section {
    padding: 80px 0;
  }

  .demo-section {
    padding: 40px 24px;
    margin: 32px 0;
  }

  .demo-gif {
    margin-top: 32px;
  }

  .section-title {
    margin-bottom: 60px;
  }
}
