/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #1a1e23;
  --bg-secondary: #21262d;
  --bg-card: #262c35;
  --bg-dark: #0f1419;
  --text-primary: #e4e7eb;
  --text-secondary: #8b949d;
  --accent: #1d9bf0;
  --accent-hover: #4db5f5;
  --accent-dim: rgba(29, 155, 240, 0.15);
  --border: #2d333b;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glow: 0 0 40px rgba(29, 155, 240, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      linear-gradient(rgba(29, 155, 240, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(29, 155, 240, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -200px;
  animation: glowFloat1 15s ease-in-out infinite;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: #0d6eb9;
  bottom: -150px;
  left: -150px;
  animation: glowFloat2 18s ease-in-out infinite;
}

@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-100px, 100px); }
}

@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(100px, -100px); }
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 30, 35, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s;
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(26, 30, 35, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.4rem;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text .accent {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(29, 155, 240, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29, 155, 240, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: inline;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease 0.5s both;
}

.hero-svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(29, 155, 240, 0.2));
}

.pulse-ring {
  animation: pulseRing 3s ease-out infinite;
  transform-origin: center;
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.connections line {
  animation: dashFlow 2s linear infinite;
}

@keyframes dashFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -20; }
}

.particle-1 {
  animation: particleFlow1 4s linear infinite;
}

.particle-2 {
  animation: particleFlow2 5s linear infinite;
}

.particle-3 {
  animation: particleFlow3 6s linear infinite;
}

@keyframes particleFlow1 {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
  offset-path: path('M260,230 L100,120');
}

@keyframes particleFlow2 {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
  offset-path: path('M260,230 L420,120');
}

@keyframes particleFlow3 {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
  offset-path: path('M260,230 L80,320');
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-text h3 {
  color: var(--accent);
  margin: 28px 0 12px;
  font-size: 1.4rem;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-placeholder {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  aspect-ratio: 16/10;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-svg {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(29, 155, 240, 0.15);
}

.feature-icon {
  margin-bottom: 24px;
  display: inline-block;
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Guide Timeline */
.guide-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.guide-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  z-index: 1;
  transition: all 0.3s;
}

.timeline-item:hover .timeline-marker {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.timeline-content {
  flex: 1;
  background: var(--bg-card);
  padding: 24px 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.timeline-content:hover {
  border-color: var(--accent);
  transform: translateX(8px);
}

.timeline-content h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.timeline-content p {
  color: var(--text-secondary);
}

/* Comparison Section */
.comparison-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.comparison-card:hover {
  transform: translateY(-5px);
}

.shadow-x-header {
  background: linear-gradient(135deg, var(--accent), #0d6eb9);
  padding: 24px;
  text-align: center;
  position: relative;
}

.other-header {
  background: var(--bg-dark);
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.shadow-x-header h3,
.other-header h3 {
  color: white;
  font-size: 1.4rem;
  margin: 0;
}

.other-header h3 {
  color: var(--text-secondary);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.comparison-list {
  list-style: none;
  padding: 24px;
}

.comparison-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.comparison-list li:last-child {
  border-bottom: none;
}

.check {
  color: #4ade80;
  font-weight: bold;
  font-size: 1.2rem;
}

.cross {
  color: #f87171;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Security Section */
.security-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.security-text h3 {
  color: var(--accent);
  margin: 28px 0 12px;
  font-size: 1.4rem;
}

.security-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.security-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-svg {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-question {
  color: var(--accent);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(29, 155, 240, 0.1);
}

.contact-icon {
  margin-bottom: 20px;
  display: inline-block;
}

.contact-card h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 400px;
}

.footer-links h4 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Scroll Animations */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-anim="slide-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim="slide-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container,
  .about-grid,
  .security-grid {
      grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .footer-container {
      grid-template-columns: 1fr;
  }
  
  .comparison-wrapper {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
      display: none;
      position: fixed;
      top: 70px;
      left: 0;
      width: 100%;
      background: var(--bg-secondary);
      padding: 20px;
      border-bottom: 1px solid var(--border);
  }
  
  .nav.active {
      display: block;
  }
  
  .nav-list {
      flex-direction: column;
      gap: 12px;
  }
  
  .menu-toggle {
      display: flex;
  }
  
  .section h2 {
      font-size: 2rem;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .hero-actions {
      flex-direction: column;
  }
  
  .hero-stats {
      flex-wrap: wrap;
      gap: 24px;
  }
  
  .timeline-item {
      flex-direction: column;
      gap: 16px;
  }
  
  .guide-timeline::before {
      left: 30px;
      top: 30px;
      bottom: 30px;
  }
}