/* ============================================================
   德扑之家 - Dark Tech Theme
   主样式表
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --bg-deep: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.8);
  --bg-card-hover: rgba(51, 65, 85, 0.85);
  --border-dark: rgba(99, 102, 241, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --nav-bg: rgba(15, 23, 42, 0.85);
  --neon-glow: 0 0 20px rgba(79, 70, 229, 0.5), 0 0 60px rgba(79, 70, 229, 0.2);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(79, 70, 229, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-top: 0;
  color: var(--text-secondary);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #818cf8;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-padding {
  padding: 5rem 0;
}

/* ---- Section Title ---- */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #818cf8, #4f46e5, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(99, 102, 241, 0.3);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), var(--primary), transparent);
  opacity: 0.6;
  z-index: -1;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(79, 70, 229, 0.15);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 1px;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

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

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

/* ---- Hero / Particles ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(79, 70, 229, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #0c1322 50%, #0f172a 100%);
}

#particlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #e0e7ff, #a5b4fc, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: var(--neon-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.6), 0 0 80px rgba(79, 70, 229, 0.25);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(99, 102, 241, 0.5);
}

.btn-outline:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  color: #fff;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ---- Glass Cards (Features / Values / Download) ---- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-slow);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 40px rgba(79, 70, 229, 0.2), 0 2px 10px rgba(0, 0, 0, 0.5);
  background: var(--bg-card-hover);
}

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

.glass-card .icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all var(--transition-base);
}

.glass-card:hover .icon-wrap {
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
  border-color: var(--primary-light);
}

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

.glass-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---- Stats Counter Cards ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #818cf8, #4f46e5, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-slow);
  box-shadow: var(--card-shadow);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.15);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.3);
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  font-size: 0.95rem;
}

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

.faq-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.faq-item.active {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 41, 59, 0.7);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-question i {
  transition: transform var(--transition-base);
  color: var(--primary-light);
  font-size: 0.9rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
}

/* ---- Footer ---- */
.footer {
  background: #020617;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  padding: 3rem 0 1.5rem;
}

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

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Timeline (About Page) ---- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--primary), var(--primary-light), var(--primary), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 50%;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
  z-index: 1;
}

.timeline-content {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1.5rem;
}

.timeline-content h4 {
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- Team Cards ---- */
.team-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-slow);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.15);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.team-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.team-role {
  color: var(--primary-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Platform Cards (Download Page) ---- */
.platform-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.platform-card.recommended {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.2);
}

.platform-card.recommended::after {
  content: '推荐';
  position: absolute;
  top: 12px;
  right: -30px;
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 700;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 40px rgba(79, 70, 229, 0.2);
}

.platform-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.platform-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.platform-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.platform-version {
  display: inline-block;
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

/* ---- System Requirements Table ---- */
.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
}

.req-table thead {
  background: rgba(79, 70, 229, 0.2);
}

.req-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.req-table td {
  padding: 0.85rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.req-table tr:hover td {
  background: rgba(79, 70, 229, 0.05);
}

/* ---- Page Hero (Inner Pages) ---- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 1rem 4rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #0c1322 100%);
}

.page-hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e0e7ff, #a5b4fc, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Back to Top ---- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--primary-light);
  box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
  transform: translateY(-3px);
}

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

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4), 0 0 60px rgba(79, 70, 229, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(79, 70, 229, 0.6), 0 0 90px rgba(79, 70, 229, 0.25);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 300px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition-base);
    border-left: 1px solid rgba(99, 102, 241, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 0;
    text-align: left;
  }

  .timeline-dot {
    left: 20px;
  }

  .req-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

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

  .page-hero h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
