/* ============================================
   HHPOKER - Custom Styles
   Color Scheme: Indigo-600 (#4F46E5) + White Space
   ============================================ */

/* ---------- Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --primary-50: #EEF2FF;
  --primary-100: #E0E7FF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-700: #374151;
  --gray-900: #111827;
  --transition-base: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-base);
  padding: 0;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  position: relative;
}

.nav-links-left,
.nav-links-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links-left {
  margin-right: auto;
}

.nav-links-right {
  margin-left: auto;
}

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  z-index: 10;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}

.nav-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

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

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-50) 100%);
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-100);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge i {
  font-size: 0.75rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Phone Mockup */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  perspective: 1200px;
  perspective-origin: center center;
}

.phone-mockup {
  width: 270px;
  height: 540px;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 12px;
  position: relative;
  transform-style: preserve-3d;
  animation: phoneSwing 10s ease-in-out infinite;
  box-shadow: 0 25px 60px rgba(79, 70, 229, 0.2);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-screen-inner {
  text-align: center;
  padding: 2rem;
}

.phone-screen-inner .app-logo {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 18px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.phone-screen-inner .app-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
}

.phone-screen-inner .app-version {
  font-size: 0.8rem;
  color: #9CA3AF;
  margin: 0.25rem 0 1rem;
}

.phone-screen-inner .download-btn-phone {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 14px 20px 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
}

@keyframes phoneSwing {
  0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
  12.5% { transform: rotateY(8deg) rotateX(1deg); }
  25% { transform: rotateY(0deg) rotateX(0deg); }
  37.5% { transform: rotateY(-7deg) rotateX(-1deg); }
  50% { transform: rotateY(0deg) rotateX(0deg); }
  62.5% { transform: rotateY(5deg) rotateX(0.5deg); }
  75% { transform: rotateY(0deg) rotateX(0deg); }
  87.5% { transform: rotateY(-4deg) rotateX(-0.5deg); }
}

/* ---------- Section Common ---------- */
.section {
  padding: 100px 0;
}

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

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6B7280;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Features (Ghost Cards) ---------- */
.features {
  background: white;
}

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

.feature-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 16px;
  background: white;
  border: 2px solid transparent;
  box-shadow: none;
  transition: all 0.4s ease;
  cursor: default;
}

.feature-card:hover {
  border-color: #E0E7FF;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.08);
  transform: translateY(-4px);
}

.feature-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--primary-50);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-card-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.7;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--gray-50);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-size: 3.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 0.95rem;
  color: #6B7280;
  font-weight: 500;
}

/* ---------- Testimonials Carousel ---------- */
.testimonials {
  background: white;
}

.carousel-wrapper {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background: var(--gray-50);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
}

.testimonial-card .quote-icon {
  font-size: 2.5rem;
  color: var(--primary-100);
  margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card .testimonial-author {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 1rem;
}

.testimonial-card .testimonial-role {
  color: #9CA3AF;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.testimonial-card .testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  overflow: hidden;
}

.testimonial-card .testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  width: 32px;
  border-radius: 5px;
}

/* ---------- FAQ Accordion ---------- */
.faq {
  background: var(--gray-50);
}

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

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  font-family: inherit;
  gap: 1rem;
}

.faq-question i {
  font-size: 0.85rem;
  color: #9CA3AF;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.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.25rem;
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0% 100%);
  padding: 120px 0 140px;
  position: relative;
  color: white;
  text-align: center;
}

.cta .container {
  /* content stays normal - no skew/transform on the text */
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.cta-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta .btn-white {
  background: white;
  color: var(--primary);
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Footer ---------- */
.footer {
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #9CA3AF;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-divider {
  width: 3px;
  height: 3px;
  background: #D1D5DB;
  border-radius: 50%;
}

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

  .hero-left {
    max-width: 100%;
    order: 2;
  }

  .hero-right {
    order: 1;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

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

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

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

  .phone-mockup {
    width: 220px;
    height: 440px;
    border-radius: 26px;
    padding: 10px;
  }

  .phone-mockup::before {
    width: 100px;
    height: 24px;
    border-radius: 0 0 12px 12px;
  }

  .phone-screen {
    border-radius: 18px;
  }

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

  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links-left,
  .nav-links-right {
    display: none;
  }

  .nav-logo {
    position: static;
    transform: none;
  }

  .nav-container {
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

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

  .hero-desc {
    font-size: 1rem;
  }

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

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

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

  .section {
    padding: 60px 0;
  }

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

  .cta {
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0% 100%);
    padding: 80px 0 100px;
  }

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

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
    border-radius: 24px;
    padding: 8px;
  }

  .phone-screen {
    border-radius: 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-divider {
    display: none;
  }
}

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

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

  .phone-mockup {
    width: 170px;
    height: 340px;
    border-radius: 22px;
    padding: 7px;
  }

  .phone-screen {
    border-radius: 16px;
  }

  .phone-mockup::before {
    width: 80px;
    height: 20px;
    border-radius: 0 0 10px 10px;
  }
}
