/* ═══════════════════════════════════════════
   Neon Telegraph - Shared Styles
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg-primary: #060507;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --neon-blue: #00f0ff;
  --neon-pink: #ff00aa;
  --neon-yellow: #f9ff00;
  --neon-purple: #b026ff;
  --border-glass: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: 'JetBrains Mono', "Courier New", monospace;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--neon-pink);
}

img {
  max-width: 100%;
  display: block;
}

/* ── Typography ── */
.font-mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 160px 0;
}

.section-padding-sm {
  padding: 100px 0;
}

/* ── Spin Animation ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Glow Animations ── */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.6); }
}

@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Navigation ── */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.nav-main.scrolled {
  background: rgba(6, 5, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-brand svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.btn-glow {
  animation: glow-pulse 2s infinite;
}

.btn-large {
  padding: 18px 48px;
  font-size: 16px;
  border-radius: 12px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.4s ease;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08);
  transform: translateY(-4px);
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink), var(--neon-purple));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.card-glow:hover::before {
  opacity: 0.5;
}

/* ── Feature Cards Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.4s ease;
}

.feature-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-4px);
}

.feature-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card .icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--neon-blue);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  border-color: rgba(176, 38, 255, 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              linear-gradient(135deg, var(--neon-blue), var(--neon-purple)) border-box;
}

.testimonial-meta h4 {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-meta span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  color: var(--neon-yellow);
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Platform Download Grid ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s ease;
}

.platform-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.1);
}

.platform-card .platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 240, 255, 0.08);
}

.platform-card .platform-icon svg {
  width: 32px;
  height: 32px;
  color: var(--neon-blue);
}

.platform-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.platform-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Comparison Table ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  font-size: 14px;
}

.comparison-table td:first-child {
  font-weight: 500;
}

.comparison-table .check {
  color: var(--neon-blue);
}

.comparison-table .cross {
  color: var(--neon-pink);
}

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--border-glass);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  color: var(--neon-blue);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 16px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Stats Counter ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Deep Content Sections ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.content-text p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.content-visual img {
  width: 100%;
  border-radius: 16px;
}

.content-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.1);
  pointer-events: none;
}

/* ── Footer ── */
.footer-main {
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.03));
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-main::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(0, 240, 255, 0.03) 40px,
      rgba(0, 240, 255, 0.03) 41px
    );
  mask-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 24px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--neon-blue);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon-blue);
  font-size: 12px;
  font-weight: 500;
}

/* ── SEO Content Block ── */
.seo-content {
  max-width: 800px;
  margin: 0 auto;
}

.seo-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 48px 0 20px;
}

.seo-content h3:first-child {
  margin-top: 0;
}

.seo-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.seo-content ul {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 16px;
}

.seo-content li {
  margin-bottom: 8px;
}

.seo-content strong {
  color: var(--text-primary);
}

/* ── Keyword Tags ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-blue);
}

/* ── Glow Divider ── */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
  opacity: 0.4;
  margin: 0 auto;
  max-width: 600px;
}

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Glitch Text Effect ── */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text .glitch-1,
.glitch-text .glitch-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.glitch-text:hover .glitch-1 {
  animation: glitch-text-1 0.8s infinite linear alternate-reverse;
  color: var(--neon-blue);
}

.glitch-text:hover .glitch-2 {
  animation: glitch-text-2 0.8s infinite linear alternate-reverse;
  color: var(--neon-pink);
}

@keyframes glitch-text-1 {
  0%, 24%, 76%, 100% { opacity: 0; transform: translate(0,0); clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
  26% { opacity: 1; transform: translate(-2px, 2px); clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); }
  30% { opacity: 1; transform: translate(-1px, -1px); clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); }
  35% { opacity: 0; transform: translate(0,0); clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
  50% { opacity: 1; transform: translate(-3px, 1px); clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); }
  55% { opacity: 0; }
}

@keyframes glitch-text-2 {
  0%, 24%, 76%, 100% { opacity: 0; transform: translate(0,0); clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
  26% { opacity: 1; transform: translate(2px, -2px); clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); }
  30% { opacity: 1; transform: translate(1px, 1px); clip-path: polygon(0 70%, 100% 70%, 100% 90%, 0 90%); }
  35% { opacity: 0; transform: translate(0,0); clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
  50% { opacity: 1; transform: translate(3px, -1px); clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); }
  55% { opacity: 0; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .section-padding {
    padding: 100px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .feature-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-grid.reverse {
    direction: ltr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 12px;
  }
}
