/* ============================================================
   HHPOKER — Acid Graphics Design (酸性设计风)
   Y2K / Gen Z Acid Aesthetic
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
  --acid-lime: #a3e635;
  --acid-lime2: #84cc16;
  --acid-purple: #9333ea;
  --acid-purple2: #7e22ce;
  --acid-pink: #ff1493;
  --acid-pink2: #ec4899;
  --acid-dark: #0a0a0a;
  --acid-darker: #050505;
  --acid-metal: #1a1a2e;
  --font-mono: 'Courier New', monospace;
}

/* ===== Global Reset & Base ===== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--acid-darker);
  position: relative;
}

/* Selection */
::selection {
  background: var(--acid-lime);
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--acid-darker); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--acid-lime), var(--acid-purple));
  border-radius: 3px;
}

/* ===== NAVIGATION ===== */
#navbar {
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(5, 5, 5, 0.98);
  border-bottom-color: rgba(163, 230, 53, 0.5);
  box-shadow: 0 4px 30px rgba(163, 230, 53, 0.08);
}

.nav-logo {
  transition: transform 0.3s;
}
.nav-logo:hover {
  transform: skewX(-4deg);
}

.unskew {
  display: inline-block;
  transform: skewX(6deg);
}

.nav-cta-btn {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.nav-cta-btn:hover {
  transform: scale(1.05) rotate(-0.5deg);
}

/* Mobile menu */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: radial-gradient(ellipse at 50% 0%, #1a1a2e 0%, #0a0a0a 50%, #050505 100%);
}

/* Acid Blobs */
.acid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.acid-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(163,230,53,0.5) 0%, transparent 70%);
  top: -15%; left: -10%;
  animation: blobFloat1 8s ease-in-out infinite;
}
.acid-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(147,51,234,0.5) 0%, transparent 70%);
  top: 30%; right: -15%;
  animation: blobFloat2 10s ease-in-out infinite;
}
.acid-blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,20,147,0.4) 0%, transparent 70%);
  bottom: -10%; left: 20%;
  animation: blobFloat3 9s ease-in-out infinite;
}
.acid-blob-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(163,230,53,0.3) 0%, transparent 70%);
  top: 60%; right: 5%;
  animation: blobFloat1 11s ease-in-out infinite reverse;
}
.acid-blob-5 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(147,51,234,0.35) 0%, transparent 70%);
  top: 10%; left: 30%;
  animation: blobFloat2 7s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(25px, -25px) scale(0.93); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, 35px) scale(1.12); }
  66% { transform: translate(-20px, -30px) scale(0.9); }
}

/* Hero Grid Overlay */
.hero-grid {
  background-image:
    linear-gradient(rgba(163,230,53,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,230,53,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Noise overlay */
.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Chrome Title */
.chrome-title {
  position: relative;
  font-family: var(--font-mono), monospace;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  background: linear-gradient(
    180deg,
    #e5e5e5 0%,
    #a3a3a3 15%,
    #ffffff 30%,
    #737373 45%,
    #e5e5e5 55%,
    #ffffff 70%,
    #a3a3a3 85%,
    #525252 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(163,230,53,0.4)) drop-shadow(0 0 40px rgba(163,230,53,0.2));
  text-shadow: none;
}
/* Chrome reflection */
.chrome-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(255,255,255,0.15) 50%,
    transparent 70%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

/* Hero Visual */
.hero-visual {
  perspective: 800px;
}
.spade-metal {
  width: 280px;
  height: 320px;
  background: conic-gradient(
    from 0deg,
    #a3e635, #84cc16, #4d7c0f, #a3e635,
    #9333ea, #7e22ce, #581c87, #9333ea,
    #ff1493, #be185d, #831843, #ff1493,
    #a3e635
  );
  clip-path: polygon(50% 0%, 100% 60%, 80% 100%, 50% 80%, 20% 100%, 0% 60%);
  filter: brightness(1.1) saturate(1.2);
  animation: spadePulse 4s ease-in-out infinite;
  box-shadow:
    0 0 60px rgba(163,230,53,0.3),
    0 0 120px rgba(147,51,234,0.2),
    inset 0 0 80px rgba(255,255,255,0.05);
}
@keyframes spadePulse {
  0%, 100% { transform: rotateY(0deg) scale(1); filter: brightness(1.1) saturate(1.2); }
  50% { transform: rotateY(5deg) scale(1.03); filter: brightness(1.2) saturate(1.3); }
}

/* Floating cards in hero */
.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}
.hero-floating-1 { animation-delay: 0s; }
.hero-floating-2 { animation-delay: 1.5s; }
.hero-floating-3 { animation-delay: 3s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-15px) rotate(8deg); }
}

.hero-cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(163,230,53,0.5);
}
.hero-cta-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(163,230,53,0.3);
}

/* Scroll indicator */
.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ===== SECTION TITLES (skewed) ===== */
.section-title-skew {
  display: inline-block;
  transform: skewX(-6deg);
}
.section-title-skew span {
  display: inline-block;
  transform: skewX(6deg);
}

/* ===== DOWNLOAD SECTION BLOBS ===== */
.acid-blob-dl1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(163,230,53,0.25) 0%, transparent 70%);
  top: -20%; right: -10%;
  filter: blur(100px);
  border-radius: 50%;
  animation: blobFloat2 10s ease-in-out infinite;
}
.acid-blob-dl2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,20,147,0.22) 0%, transparent 70%);
  bottom: -15%; left: -5%;
  filter: blur(100px);
  border-radius: 50%;
  animation: blobFloat1 9s ease-in-out infinite;
}

/* Download cards */
.download-card {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.download-card:hover {
  transform: translateY(-8px) rotate(0deg) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ===== FEATURES SECTION BLOBS ===== */
.acid-blob-ft1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,20,147,0.18) 0%, transparent 70%);
  top: 10%; left: -15%;
  filter: blur(100px);
  border-radius: 50%;
  animation: blobFloat3 12s ease-in-out infinite;
}
.acid-blob-ft2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(163,230,53,0.15) 0%, transparent 70%);
  bottom: -10%; right: -10%;
  filter: blur(100px);
  border-radius: 50%;
  animation: blobFloat1 13s ease-in-out infinite reverse;
}

/* Feature Cards */
.feature-card {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  position: relative;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: -1;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card:nth-child(1):hover { box-shadow: 0 0 40px rgba(163,230,53,0.2); }
.feature-card:nth-child(2):hover { box-shadow: 0 0 40px rgba(255,20,147,0.2); }
.feature-card:nth-child(3):hover { box-shadow: 0 0 40px rgba(147,51,234,0.2); }
.feature-card:nth-child(4):hover { box-shadow: 0 0 40px rgba(163,230,53,0.2); }
.feature-card:nth-child(5):hover { box-shadow: 0 0 40px rgba(255,20,147,0.2); }
.feature-card:nth-child(6):hover { box-shadow: 0 0 40px rgba(147,51,234,0.2); }

/* Card inner skew correction */
.feature-card-inner {
  /* Stabilizes content against rotation */
}

/* ===== STATS SECTION BLOBS ===== */
.acid-blob-st1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(147,51,234,0.2) 0%, transparent 70%);
  top: -50%; left: 50%;
  transform: translateX(-50%);
  filter: blur(120px);
  border-radius: 50%;
  animation: blobFloat3 8s ease-in-out infinite;
}

/* Stat Cards */
.stat-card {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.stat-card:hover {
  transform: translateY(-8px) rotate(0deg) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Acid Gradient Numbers */
.stat-number {
  background: linear-gradient(135deg, var(--acid-lime) 0%, var(--acid-purple) 50%, var(--acid-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(163,230,53,0.3));
}

/* ===== TESTIMONIALS BLOBS ===== */
.acid-blob-tm1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(163,230,53,0.18) 0%, transparent 70%);
  top: -20%; right: -10%;
  filter: blur(100px);
  border-radius: 50%;
  animation: blobFloat2 9s ease-in-out infinite;
}
.acid-blob-tm2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(255,20,147,0.16) 0%, transparent 70%);
  bottom: -10%; left: -5%;
  filter: blur(100px);
  border-radius: 50%;
  animation: blobFloat1 11s ease-in-out infinite;
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.testimonial-card:nth-child(1):hover {
  box-shadow: 0 20px 60px rgba(163,230,53,0.15);
}
.testimonial-card:nth-child(2):hover {
  box-shadow: 0 20px 60px rgba(255,20,147,0.15);
}
.testimonial-card:nth-child(3):hover {
  box-shadow: 0 20px 60px rgba(147,51,234,0.15);
}

/* ===== FAQ BLOBS ===== */
.acid-blob-faq1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,20,147,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(100px);
  border-radius: 50%;
  animation: blobFloat3 8s ease-in-out infinite;
}

/* FAQ Accordion — Acid Style */
.faq-item {
  transition: all 0.3s ease;
  cursor: pointer;
}
.faq-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-item.active {
  border-color: var(--acid-lime) !important;
}
.faq-item.active .faq-icon {
  color: var(--acid-lime) !important;
}
.faq-content {
  animation: faqSlide 0.35s ease-out;
}
@keyframes faqSlide {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

/* ===== CTA SECTION (Maximalist Acid Blend) ===== */
.acid-cta-bg {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(163,230,53,0.03) 0px,
      rgba(163,230,53,0.03) 2px,
      transparent 2px,
      transparent 8px
    ),
    radial-gradient(ellipse at 30% 20%, rgba(147,51,234,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(255,20,147,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(163,230,53,0.1) 0%, transparent 70%);
  background-color: #050505;
}

.cta-grid-pattern {
  background-image:
    linear-gradient(rgba(163,230,53,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,230,53,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: skewY(-2deg);
}

.acid-blob-cta1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(163,230,53,0.3) 0%, transparent 70%);
  top: -10%; left: -10%;
  filter: blur(90px);
  border-radius: 50%;
  animation: blobFloat1 7s ease-in-out infinite;
}
.acid-blob-cta2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(255,20,147,0.28) 0%, transparent 70%);
  bottom: -10%; right: -5%;
  filter: blur(90px);
  border-radius: 50%;
  animation: blobFloat2 8s ease-in-out infinite reverse;
}

/* Chrome CTA Title */
.chrome-title-cta {
  position: relative;
  font-family: var(--font-mono), monospace;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d4d4d4 20%,
    #ffffff 40%,
    #a3a3a3 60%,
    #ffffff 80%,
    #737373 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255,20,147,0.4)) drop-shadow(0 0 30px rgba(147,51,234,0.3));
}

.cta-big-btn:hover {
  transform: scale(1.05) rotate(-1deg);
}
.cta-big-btn-outline:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 0 40px rgba(255,20,147,0.3);
}

/* ===== FOOTER ===== */
.acid-footer-bg {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(163,230,53,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(147,51,234,0.04) 0%, transparent 50%);
  background-color: #040404;
}

/* ===== CUSTOMER SERVICE WIDGET ===== */
.cs-toggle-btn {
  animation: csPulse 3s ease-in-out infinite;
}
@keyframes csPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(163,230,53,0.3), 0 0 30px rgba(163,230,53,0.1); }
  50% { box-shadow: 0 0 20px rgba(255,20,147,0.4), 0 0 50px rgba(147,51,234,0.2); }
}
#csPanel {
  animation: csPanelIn 0.3s ease-out;
}
@keyframes csPanelIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== BACK TO TOP ===== */
#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== ANIMATIONS: Intersection Observer ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SKEW CTA button (inline correction) ===== */
/* These are handled inline via clip-path in the HTML */

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .hero-visual {
    display: none;
  }

  .acid-blob-1 { width: 350px; height: 350px; top: -10%; left: -20%; }
  .acid-blob-2 { width: 300px; height: 300px; top: 20%; right: -25%; }
  .acid-blob-3 { width: 250px; height: 250px; }

  .chrome-title {
    font-size: 3.5rem;
  }
  .chrome-title-cta {
    font-size: 2.5rem;
  }

  .feature-card {
    rotate: 0deg !important;
  }
  .stat-card {
    rotate: 0deg !important;
  }

  .section-title-skew {
    transform: skewX(-3deg);
  }
  .section-title-skew span {
    transform: skewX(3deg);
  }
}

@media (max-width: 767px) {
  .chrome-title {
    font-size: 2.5rem;
  }
  .chrome-title-cta {
    font-size: 2rem;
  }

  .hero-section {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  #csPanel {
    width: 260px;
    right: 0;
  }

  .download-card {
    rotate: 0deg !important;
  }

  .testimonial-card {
    clip-path: none !important;
    border-radius: 12px;
  }

  .faq-item {
    clip-path: none !important;
    border-radius: 8px;
  }

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

@media (max-width: 480px) {
  .chrome-title {
    font-size: 2rem;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
    clip-path: polygon(4% 0%, 100% 0%, 96% 100%, 0% 100%) !important;
  }

  .cta-big-btn,
  .cta-big-btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  .acid-blob,
  .floating-card,
  .spade-metal,
  .cs-toggle-btn,
  .scroll-dot {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .faq-content {
    animation: none !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  #navbar,
  #csWidget,
  #backToTop,
  .acid-blob,
  .noise-overlay,
  .hero-grid,
  .cta-grid-pattern {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero-section,
  section {
    padding: 2rem 0 !important;
    page-break-inside: avoid;
  }
}
