/* NextStack 统一首页样式系统 - Unified Homepage Theme */
/* 全局颜色变量 - Global Color Variables */
:root {
  /* 优化的渐变色彩方案 - 简化为统一的紫色调 */
  --hero-gradient-start: #7c3aed;
  --hero-gradient-mid: #8b5cf6;
  --hero-gradient-end: #9333ea;
  --accent-color: #7c3aed;
  --accent-secondary: #9333ea;
  
  /* 语义化颜色 - Semantic Colors */
  --primary-color: #7c3aed;
  --secondary-color: #9333ea;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  
  /* 布局 - Layout */
  --responsive-grid-min: 300px;
  --full-width-margin: calc(-50vw + 50%);
  
  /* 阴影层次 - Shadow Levels */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
}

/* 全局重置 - Global Reset */
.md-content {
  overflow-x: hidden;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

.md-content__inner {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

html,
body {
  overflow-x: hidden;
}

/* Hero Section - 英雄区域 */
.homepage-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: var(--full-width-margin);
  margin-right: var(--full-width-margin);
  margin-top: -2rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    var(--hero-gradient-start) 0%, 
    var(--hero-gradient-mid) 50%,
    var(--hero-gradient-end) 100%);
  z-index: 0;
  overflow: hidden;
}

/* 动态网格背景 - Dynamic Grid Background */
.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(147, 51, 234, 0.20) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 35%);
  animation: gradientShift 20s ease infinite;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 50%, white, transparent),
    radial-gradient(1px 1px at 66% 33%, white, transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  opacity: 0.4;
  animation: particleFloat 40s ease infinite;
}

@keyframes particleFloat {
  0%, 100% { 
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%, 90% 60%, 33% 50%, 66% 33%;
    opacity: 0.4;
  }
  25% {
    background-position: 100% 0%, 0% 100%, 40% 60%, 70% 20%, 80% 50%, 43% 60%, 56% 43%;
    opacity: 0.5;
  }
  50% { 
    background-position: 100% 100%, 0% 0%, 60% 40%, 90% 30%, 70% 70%, 53% 40%, 46% 53%;
    opacity: 0.4;
  }
  75% {
    background-position: 0% 100%, 100% 0%, 50% 50%, 85% 15%, 85% 55%, 38% 55%, 61% 38%;
    opacity: 0.5;
  }
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gradient,
  .hero-particles {
    animation: none;
    opacity: 0.6;
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.8rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

@supports (backdrop-filter: blur(10px)) {
  .hero-badge {
    backdrop-filter: blur(15px);
  }
}

.badge-icon {
  font-size: 1.1rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.1) rotate(10deg);
  }
}

.badge-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

.title-text {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.title-underline {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, 
    rgba(124, 58, 237, 0.8) 0%, 
    rgba(147, 51, 234, 1) 50%,
    rgba(124, 58, 237, 0.8) 100%);
  border-radius: 3px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  animation: underlineExpand 2s ease-in-out infinite;
}

@keyframes underlineExpand {
  0%, 100% {
    transform: scaleX(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero-tagline {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem 0;
  font-weight: 600;
  opacity: 0.98;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.4rem;
  margin: 0 0 3.5rem 0;
  opacity: 0.95;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 2.8rem;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .btn-icon {
  transform: scale(1.2) rotate(10deg);
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.cta-button:hover .btn-shine {
  transform: translateX(100%);
}

.cta-primary {
  background: var(--bg-white);
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.5);
  background: #f8f9fa;
  border-color: #6d28d9;
  color: #6d28d9;
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@supports (backdrop-filter: blur(10px)) {
  .cta-secondary {
    backdrop-filter: blur(15px);
  }
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.3);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

@supports (backdrop-filter: blur(10px)) {
  .stat-item {
    backdrop-filter: blur(15px);
  }
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.stat-content {
  text-align: left;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Section 通用样式 - Common Section Styles */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 3rem;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 5rem;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, 
    var(--hero-gradient-start), 
    var(--hero-gradient-mid),
    var(--hero-gradient-end));
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* 为所有section添加全屏效果 */
section {
  width: 100%;
  position: relative;
  margin-left: var(--full-width-margin);
  margin-right: var(--full-width-margin);
  overflow-x: hidden;
}

/* Value Section */
.section-value {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--bg-light) 100%);
  width: 100%;
  position: relative;
  margin-left: var(--full-width-margin);
  margin-right: var(--full-width-margin);
  overflow-x: hidden;
}

.section-value::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--responsive-grid-min), 1fr));
  gap: 3rem;
}

.value-card {
  background: white;
  padding: 3.5rem;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--hero-gradient-start), 
    var(--hero-gradient-mid),
    var(--hero-gradient-end));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.value-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover::after {
  width: 300%;
  height: 300%;
}

.value-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 70px rgba(124, 58, 237, 0.2);
}

.value-icon {
  font-size: 4.5rem;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
  display: inline-block;
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotateY(10deg);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.value-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.value-card p {
  color: var(--text-muted);
  line-height: 2;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Features Section */
.section-features {
  background: white;
  position: relative;
  width: 100%;
  margin-left: var(--full-width-margin);
  margin-right: var(--full-width-margin);
  overflow-x: hidden;
}

.section-features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, 
    var(--hero-gradient-start) 0%, 
    var(--hero-gradient-mid) 50%,
    var(--hero-gradient-end) 100%);
  padding: 4rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

.feature-large::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .feature-large::before {
    animation: none;
  }
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.screenshot-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  filter: grayscale(0.3);
}

.screenshot-text {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-details {
  position: relative;
  z-index: 1;
  color: white;
}

.feature-details h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}

.feature-details p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  padding-left: 0;
  font-weight: 500;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  border: 2px solid #f0f0f0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(124, 58, 237, 0.08) 0%, 
    rgba(147, 51, 234, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--hero-gradient-start), 
    var(--hero-gradient-mid),
    var(--hero-gradient-end));
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
  transform: translateY(-12px);
}

.feature-card-icon {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: all 0.3s ease;
  display: inline-block;
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.feature-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1.08rem;
  position: relative;
  z-index: 1;
}

/* Differentiation Section */
.section-differentiation {
  background: linear-gradient(135deg, 
    var(--hero-gradient-start) 0%, 
    var(--hero-gradient-mid) 50%,
    var(--hero-gradient-end) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-left: var(--full-width-margin);
  margin-right: var(--full-width-margin);
}

.section-differentiation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(147, 51, 234, 0.12) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .section-differentiation::before {
    animation: none;
  }
}

.section-differentiation .section-container {
  position: relative;
  z-index: 1;
}

.section-differentiation .section-title {
  color: white;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--responsive-grid-min), 1fr));
  gap: 2.5rem;
}

.comparison-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@supports (backdrop-filter: blur(10px)) {
  .comparison-card {
    backdrop-filter: blur(20px);
  }
}

.comparison-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: top 0.5s ease;
}

.comparison-card:hover::before {
  top: 0;
}

.comparison-card:hover {
  transform: translateY(-15px) scale(1.03);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.comparison-header {
  background: rgba(255, 255, 255, 0.25);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

@supports (backdrop-filter: blur(10px)) {
  .comparison-header {
    backdrop-filter: blur(15px);
  }
}

.comparison-label {
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.98;
  letter-spacing: 0.5px;
}

.comparison-content {
  padding: 3rem 2.5rem;
  text-align: center;
}

.advantage-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
  transition: all 0.3s ease;
  display: inline-block;
}

.comparison-card:hover .advantage-icon {
  transform: scale(1.2) rotate(5deg);
}

.comparison-content h4 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comparison-content p {
  line-height: 2;
  opacity: 0.98;
  font-size: 1.1rem;
}

/* Download Section */
.section-download {
  background: linear-gradient(180deg, 
    #ffffff 0%, 
    #f0f4ff 50%,
    #ffffff 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-left: var(--full-width-margin);
  margin-right: var(--full-width-margin);
}

.section-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--hero-gradient-start), 
    var(--hero-gradient-mid),
    var(--hero-gradient-end),
    transparent);
}

.section-download::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(217, 70, 239, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.download-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  background: white;
  padding: 5rem;
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.download-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, 
    var(--hero-gradient-start), 
    var(--hero-gradient-mid),
    var(--hero-gradient-end));
  border-radius: 32px 32px 0 0;
}

.download-header {
  margin-bottom: 2rem;
}

.download-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, 
    var(--hero-gradient-start) 0%, 
    var(--hero-gradient-mid) 50%,
    var(--hero-gradient-end) 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
  }
}

.download-info h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .download-info h3 {
    background: linear-gradient(135deg, 
      var(--hero-gradient-start) 0%, 
      var(--hero-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.download-info p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.download-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.download-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: #444;
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.download-feature:hover {
  transform: translateX(5px);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, 
    var(--hero-gradient-start) 0%, 
    var(--hero-gradient-end) 100%);
  color: white;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.download-widget {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem;
  border-radius: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.download-widget::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
}

#jetbrains-plugin-widget {
  width: 100%;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.download-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.download-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 2rem;
}

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

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* CTA Section */
.section-cta {
  background: linear-gradient(135deg, 
    var(--hero-gradient-start) 0%, 
    var(--hero-gradient-mid) 50%,
    var(--hero-gradient-end) 100%);
  color: white;
  text-align: center;
  width: 100%;
  position: relative;
  margin-left: var(--full-width-margin);
  margin-right: var(--full-width-margin);
  overflow-x: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(147, 51, 234, 0.10) 0%, transparent 40%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.cta-content p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  opacity: 0.98;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary-large {
  background: var(--bg-white);
  color: var(--primary-color);
  padding: 1.3rem 3.5rem;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
  position: relative;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  text-shadow: none;
}

.cta-primary-large::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-primary-large:hover::before {
  width: 300px;
  height: 300px;
}

.cta-primary-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 50px rgba(124, 58, 237, 0.6);
  background: #f8f9fa;
  color: #6d28d9;
  border-color: #6d28d9;
}

.cta-secondary-large {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 1.3rem 3.5rem;
  border-radius: 50px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@supports (backdrop-filter: blur(10px)) {
  .cta-secondary-large {
    backdrop-filter: blur(15px);
  }
}

.cta-secondary-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s;
}

.cta-secondary-large:hover::before {
  left: 100%;
}

.cta-secondary-large:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-4px);
  box-shadow: 0 12px 50px rgba(124, 58, 237, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .section-container {
    padding: 5rem 2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .feature-large {
    grid-template-columns: 1fr;
    padding: 3rem;
  }
  
  .download-container {
    grid-template-columns: 1fr;
    padding: 3rem;
  }
  
  .download-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 4rem 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  .hero-content {
    padding: 2rem 1.5rem;
  }
  
  .hero-tagline {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .cta-button {
    text-align: center;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .value-card {
    padding: 2.5rem 2rem;
  }
  
  .feature-large {
    padding: 2.5rem 2rem;
    gap: 2.5rem;
  }
  
  .feature-details h3 {
    font-size: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .download-container {
    padding: 2.5rem 2rem;
    gap: 2.5rem;
  }
  
  .download-info h3 {
    font-size: 1.8rem;
  }
  
  .download-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .download-stat {
    justify-content: center;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .homepage-hero {
    min-height: 90vh;
  }
  
  .section-container {
    padding: 3rem 1.2rem;
  }
  
  .hero-content {
    padding: 2rem 1.2rem;
  }
  
  .hero-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-tagline {
    font-size: clamp(1rem, 5vw, 1.3rem);
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .value-card,
  .feature-large,
  .download-container {
    padding: 2rem 1.5rem;
  }
  
  .value-card h3 {
    font-size: 1.4rem;
  }
  
  .value-card p {
    font-size: 1rem;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .feature-card h4 {
    font-size: 1.2rem;
  }
  
  .feature-card p {
    font-size: 1rem;
  }
  
  .download-widget {
    padding: 2rem 1.5rem;
  }
  
  .download-info h3 {
    font-size: 1.6rem;
  }
  
  .download-info p {
    font-size: 1.05rem;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
  
  .cta-primary-large,
  .cta-secondary-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }
}
