/* ============================================================
   HHPOKER - Glass Morphism + Dynamic Gradient
   Color Palette: Blue-Violet to Cyan gradient system
   Glass: rgba(255,255,255,0.1-0.3) with backdrop-filter blur
   Accent: #6366f1 -> #06b6d4 -> #10b981
============================================================ */

/* === CSS Variables === */
:root {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-border-thin: rgba(255, 255, 255, 0.5);
  --accent-start: #6366f1;
  --accent-mid: #8b5cf6;
  --accent-end: #06b6d4;
  --accent-green: #10b981;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-glass-hover: 0 12px 48px rgba(0, 0, 0, 0.1);
  --font-heading: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Floating Gradient Orbs === */
.gradient-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent);
  top: -100px;
  left: -150px;
  animation-name: float1;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent);
  top: 60%;
  right: -120px;
  animation-name: float2;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent);
  top: 40%;
  left: 40%;
  animation-name: float3;
}

.orb-4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent);
  bottom: -80px;
  left: 20%;
  animation-name: float4;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, 60px) scale(1.15); }
  50% { transform: translate(40px, -30px) scale(0.9); }
  75% { transform: translate(-30px, 50px) scale(1.1); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-70px, -40px) scale(1.2); }
  50% { transform: translate(-20px, 50px) scale(0.85); }
  75% { transform: translate(50px, -20px) scale(1.05); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -50px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.9); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.2); }
}

section {
  position: relative;
  z-index: 1;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Navbar - Glass === */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 3rem);
  max-width: 1200px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.8rem 2rem;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-glass);
}

.navbar.scrolled {
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-glass-hover);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--accent-start);
}

.nav-cta {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem;
  transition: all 0.3s !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-cta:hover {
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.45) !important;
  transform: translateY(-1px);
  color: #fff !important;
}

.mobile-menu-btn {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border-thin);
  color: var(--text-primary);
  font-size: 1.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-glass-card {
  max-width: 750px;
  width: 100%;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-glass);
  transition: all 0.4s;
}

.hero-glass-card:hover {
  box-shadow: var(--shadow-glass-hover);
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-start);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

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

.btn-glass-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-glass-primary:hover {
  box-shadow: 0 8px 35px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-glass-outline {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--glass-border-thin);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-glass-outline:hover {
  border-color: var(--accent-start);
  box-shadow: var(--shadow-glass-hover);
}

/* === Features Section === */
.features {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent-start);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-thin);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glass-hover);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-start);
  margin-bottom: 1.3rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === Stats Section === */
.stats {
  padding: 5rem 2rem;
  background: rgba(99, 102, 241, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

/* === Testimonials Section === */
.testimonials {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-thin);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s;
}

.testimonial-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-glass-hover);
}

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

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* === FAQ Section === */
.faq {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-thin);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: all 0.3s;
}

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

.faq-question {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.98rem;
  user-select: none;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent-start);
}

.faq-question i {
  color: var(--accent-start);
  transition: transform 0.35s;
  font-size: 0.8rem;
}

.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.5rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* === CTA Section === */
.cta {
  padding: 6rem 2rem;
  text-align: center;
}

.cta-glass-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.cta-glass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

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

.cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
}

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

/* === Footer === */
.footer {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4rem 2rem 2rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-start);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-start);
  border-color: rgba(99, 102, 241, 0.3);
}

/* === Responsive === */
@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 1.5rem);
    padding: 0.7rem 1.2rem;
    top: 0.5rem;
    border-radius: 16px;
  }

  .nav-links {
    position: fixed;
    top: 1rem;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: auto;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass-hover);
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 1rem;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .hero {
    padding: 6rem 1.2rem 3rem;
    min-height: auto;
  }

  .hero-glass-card {
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
  }

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

  .features, .testimonials, .faq, .cta {
    padding: 4rem 1.2rem;
  }

  .features-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-glass-card {
    padding: 2.5rem 1.5rem;
  }

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