* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #7c8bff;
  --primary-dark: #5a6bff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg-primary: #0a1628;
  --bg-secondary: #1a2332;
  --bg-tertiary: #2d3748;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e0;
  --text-muted: #94a3b8;
  --border: #2d3748;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #7c8bff, #5a6bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 100px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 139, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c8bff, #5a6bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
  text-shadow: 0 0 30px rgba(124, 139, 255, 0.3);
}

.hero-tagline {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(124, 139, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 139, 255, 0.5);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Features Section */
.features {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  color: var(--text-primary);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(124, 139, 255, 0.2);
}

.feature-icon {
  font-size: 52px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--text-primary);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

/* About Section */
.about {
  padding: 80px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* CTA Section */
.cta {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 139, 255, 0.1) 0%, transparent 100%);
}

.cta h2 {
  font-size: 40px;
  margin-bottom: 16px;
  font-weight: 700;
}

.cta p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 35px;
}

/* Page Content */
.page-content {
  flex: 1;
  padding: 60px 20px;
}

.page-title {
  font-size: 48px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(135deg, #7c8bff, #5a6bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.updated-date {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-style: italic;
  font-size: 14px;
}

/* Guide Sections */
.guide-section {
  background: var(--bg-secondary);
  padding: 35px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.guide-section:hover {
  border-color: var(--primary);
}

.guide-section h2 {
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 18px;
  font-weight: 700;
}

.guide-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
  font-size: 15px;
}

.guide-section ul,
.guide-section ol {
  margin-left: 20px;
  color: var(--text-secondary);
}

.guide-section li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.guide-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.numbered-list {
  counter-reset: item;
  list-style: none;
  margin-left: 0;
}

.numbered-list li {
  counter-increment: item;
  margin-bottom: 16px;
  position: relative;
  padding-left: 45px;
}

.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(124, 139, 255, 0.3);
}

.code-block {
  background: var(--bg-tertiary);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 18px 0;
  border-left: 4px solid var(--primary);
}

.code-block code {
  color: var(--primary);
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 600;
}

/* Legal Sections */
.legal-section {
  background: var(--bg-secondary);
  padding: 35px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.legal-section:hover {
  border-color: var(--primary);
}

.legal-section h2 {
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 18px;
  font-weight: 700;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
  font-size: 15px;
}

.legal-section ul {
  margin-left: 20px;
  color: var(--text-secondary);
}

.legal-section li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Contact Page */
.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.contact-card {
  background: var(--bg-secondary);
  padding: 35px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(124, 139, 255, 0.2);
}

.contact-icon {
  font-size: 52px;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--text-primary);
  font-weight: 700;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 15px;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-info,
.contact-note {
  background: var(--bg-secondary);
  padding: 35px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
}

.contact-info h2,
.contact-note h3 {
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 18px;
  font-weight: 700;
}

.contact-info ul,
.contact-note ul {
  margin-left: 20px;
  color: var(--text-secondary);
}

.contact-info li,
.contact-note li {
  margin-bottom: 14px;
  line-height: 1.7;
}

.contact-info strong,
.contact-note strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-weight: 700;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(124, 139, 255, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(124, 139, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--bg-secondary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 70px 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .page-title {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .features,
  .about,
  .cta,
  .page-content {
    padding: 50px 20px;
  }

  .guide-section,
  .legal-section,
  .contact-card,
  .contact-info,
  .contact-note {
    padding: 25px;
  }

  .section-title {
    font-size: 28px;
  }

  .page-title {
    font-size: 28px;
  }
}