@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --accent: #06b6d4;
  --secondary: #10b981;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Light Mode */
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,0.85);
  --bg-section: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.12);
}

[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-card: #111827;
  --bg-nav: rgba(10,15,30,0.9);
  --bg-section: #0f172a;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #1e293b;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

/* ========== RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ========== NAVBAR ========== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-text span { color: var(--primary); }

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

.nav-center a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: var(--transition);
}

/* ========== SVG ICON HELPERS ========== */
.icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Theme toggle SVG */
.theme-toggle svg { pointer-events: none; }

/* ========== MOON / SUN ICON (theme toggle) ========== */
.icon-moon, .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"]  .icon-sun  { display: block; }

/* ========== HERO BADGE ========== */
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ========== NAV SVG ICON ========== */
.nav-wa-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ========== FOOTER COL LINKS ========== */
.footer-col ul li a svg { flex-shrink: 0; color: var(--text-light); }
.footer-col ul li a:hover svg { color: var(--primary); }

/* ========== HERO ========== */
.hero {
  padding: 7rem 5% 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--primary-glow), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

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

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 5%;
}

.section-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

/* ========== FEATURES ========== */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

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

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-glow);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: hue-rotate(10deg) saturate(1.5);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

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

/* ========== PRICING ========== */
.pricing {
  background: var(--bg-section);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.3rem 1.1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  margin: 0.75rem 0 0.25rem;
}

.price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-features li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ========== FAQ ========== */
.faq {
  background: var(--bg);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
}

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

.faq-question .icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-question .icon {
  background: var(--primary);
  color: white;
  transform: rotate(45deg);
}

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

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

/* ========== CTA ========== */
.cta-final {
  background: var(--bg-section);
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 60% 60% at 70% 0%, rgba(255,255,255,0.18), transparent 60%),
              radial-gradient(ellipse 50% 50% at 10% 100%, rgba(255,255,255,0.12), transparent 65%);
  animation: ctaGlow 12s ease-in-out infinite alternate;
}
@keyframes ctaGlow {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-4%, 3%) scale(1.12); }
  100% { transform: translate(3%, -2%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-box::before { animation: none !important; }
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  position: relative;
  font-size: 0.975rem;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-about .logo-box {
  margin-bottom: 1rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-section);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-wa-btn { display: none !important; }
  .nav-center { z-index: 999; }
  .hamburger { display: flex; }
  
  .nav-center {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    pointer-events: none;
  }

  .nav-center.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-center a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
  }

  .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); }

  .hero { padding: 5rem 5% 4rem; }
  .hero-stats { gap: 2rem; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .hero-btns .btn { width: 100%; max-width: 300px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-item { min-width: 80px; }
}

@media (max-width: 380px) {
  nav { padding: 0 4%; gap: 0.75rem; }
  .logo-text { font-size: 1.05rem; }
  .logo-img { width: 32px; height: 32px; }
  .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .section-title { font-size: clamp(1.4rem, 7vw, 1.8rem); }
  .faq-question { padding: 1rem 1.1rem; font-size: 0.88rem; }
  .faq-answer p { padding: 0 1.1rem 1.1rem; font-size: 0.85rem; }
  .cta-box { padding: 2rem 1.25rem; }
  .cta-box h2 { font-size: 1.5rem; }
  .cta-box p { font-size: 0.875rem; }
}

/* Prevent horizontal overflow on any device */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
