:root {
  --primary-bg: #fafafa;
  --card-bg: #ffffff;
  --text-primary: #111111;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: #e5e5e5;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-indigo: #6366f1;
  --accent-teal: #14b8a6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

.container {
  background: var(--primary-bg);
  padding: 0;
  overflow-x: hidden;
}

.doc-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.doc-hero {
  position: relative;
  padding: 60px 0 50px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(60px);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -100px;
  right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  bottom: 0;
  left: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.featured-card {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 40px;
  height: 200px;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}

.featured-card:hover .featured-bg {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.featured-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.featured-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 24px;
  color: var(--text-primary);
}

.featured-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.featured-icon svg {
  width: 28px;
  height: 28px;
}

.featured-text {
  flex: 1;
}

.featured-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.featured-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.featured-arrow {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.featured-card:hover .featured-arrow {
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.6);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.doc-card {
  position: relative;
  display: block;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.doc-card:hover .card-glow {
  opacity: 1;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.card-content {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  margin: 1px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.icon-purple { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); }
.icon-blue { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); }
.icon-green { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.icon-red { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }
.icon-orange { background: linear-gradient(135deg, #f97316 0%, #fb923c 100%); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%); }
.icon-pink { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }
.icon-indigo { background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.icon-teal { background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%); }

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tag {
  padding: 4px 10px;
  background: #f3f4f6;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.doc-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.doc-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-purple);
  transition: color 0.2s ease;
}

.doc-card:hover .read-more {
  color: #7c3aed;
}

.arrow-icon {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.doc-card:hover .arrow-icon {
  color: var(--accent-purple);
  transform: translateX(4px);
}

.doc-footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.doc-footer p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 12px;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-purple);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.support-link:hover {
  color: #7c3aed;
  gap: 12px;
}

@media (max-width: 768px) {
  .doc-wrapper {
    padding: 20px 16px 60px;
  }

  .doc-hero {
    padding: 40px 0 30px;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

  .featured-card {
    height: auto;
    min-height: 160px;
  }

  .featured-content {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 16px;
  }

  .featured-text h2 {
    font-size: 22px;
  }

  .featured-arrow {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .doc-card h3 {
    font-size: 16px;
  }
}

html[data-theme="dark"] {
  --primary-bg: #0a0a0a;
  --card-bg: #111111;
  --text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --border-color: #262626;
}


html[data-theme="dark"] .doc-card {
  border-color: #262626;
}


html[data-theme="dark"] .card-tag {
  background: #1f1f1f;
  border-color: #333;
}


html[data-theme="dark"] .hero-badge {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}


html[data-theme="dark"] .featured-overlay {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}


html[data-theme="dark"] .featured-overlay::after {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}


html[data-theme="dark"] .featured-content {
  color: #fafafa;
}


html[data-theme="dark"] .featured-text h2 {
  color: #fafafa;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


html[data-theme="dark"] .featured-text p {
  color: #a3a3a3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


html[data-theme="dark"] .featured-icon,
html[data-theme="dark"] .featured-arrow {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fafafa;
}





.doc-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.doc-card:nth-child(1) { animation-delay: 0.1s; }
.doc-card:nth-child(2) { animation-delay: 0.15s; }
.doc-card:nth-child(3) { animation-delay: 0.2s; }
.doc-card:nth-child(4) { animation-delay: 0.25s; }
.doc-card:nth-child(5) { animation-delay: 0.3s; }
.doc-card:nth-child(6) { animation-delay: 0.35s; }
.doc-card:nth-child(7) { animation-delay: 0.4s; }
.doc-card:nth-child(8) { animation-delay: 0.45s; }
.doc-card:nth-child(9) { animation-delay: 0.5s; }

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

.featured-card {
  opacity: 0;
  animation: fadeInScale 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


