/* ═══════════════════════════════════════════════════════════════
   PAKTIK Public Pages CSS — Landing, About, Contact, Blog
   ═══════════════════════════════════════════════════════════════ */

/* ─── Public Header ─────────────────────────────────────────── */
.public-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.public-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
[data-theme="dark"] .public-header {
  background: rgba(var(--surface-rgb, 20,20,25), 0.85);
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s4);
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.public-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.public-brand .logo-img {
  height: 36px;
  width: auto;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.public-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.public-link:hover,
.public-link.active {
  color: var(--primary);
  background: var(--primary-alpha, rgba(224,78,34,0.08));
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.public-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
}
.public-hamburger:hover {
  background: var(--surface-hover);
}

/* Mobile Drawer */
.public-mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--s3);
  z-index: 99;
  flex-direction: column;
  gap: var(--s1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}
.public-mobile-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.public-mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.public-mobile-link:hover {
  background: var(--surface-hover);
}
.public-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--border);
}

/* ─── Public Main ───────────────────────────────────────────── */
.public-main {
  margin-top: 64px;
  min-height: calc(100vh - 64px);
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s4);
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, var(--primary-alpha, rgba(224,78,34,0.06)) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-alpha, rgba(224,78,34,0.08));
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: var(--s4);
  border: 1px solid rgba(224,78,34,0.15);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--s3);
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  color: var(--primary);
  position: relative;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.3;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--s6);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Section ───────────────────────────────────────────────── */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--surface-alt, var(--surface));
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--s2);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s2);
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Feature Cards ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s4);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: var(--s6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent, #ff6b4a));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s3);
  background: var(--primary-alpha, rgba(224,78,34,0.08));
  color: var(--primary);
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s2);
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Category Grid (Public) ────────────────────────────────── */
.category-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s4);
}
.category-public-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: var(--s4);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.category-public-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: var(--primary);
}
.category-card-icon {
  font-size: 2rem;
  margin-bottom: var(--s2);
}
.category-card-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.category-card-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── How It Works ──────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s4);
  counter-reset: step;
}
.step-card {
  text-align: center;
  padding: var(--s4);
  position: relative;
  counter-increment: step;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s3);
}
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s1);
}
.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Pricing Table (Public) ────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s4);
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: var(--s6);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 4px 30px rgba(224,78,34,0.12);
  transform: scale(1.03);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
}
.pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s1);
  color: var(--text);
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--s1);
}
.pricing-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: var(--s4) 0;
  text-align: left;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* ─── FAQ Section ───────────────────────────────────────────── */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: var(--primary);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question::after {
  content: '−';
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #ff6b4a);
  color: white;
  text-align: center;
  padding: 64px var(--s4);
  border-radius: var(--radius-lg, 12px);
  margin: 48px auto;
  max-width: 1200px;
}
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--s2);
}
.cta-desc {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: var(--s4);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ─── Public Footer ─────────────────────────────────────────── */
.public-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s6);
  margin-bottom: 40px;
}
.footer-brand .logo-img {
  height: 32px;
  margin-bottom: var(--s2);
}
.footer-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s1);
}
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: var(--s3);
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-tagline-sm {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Blog Cards ────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s4);
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-hover);
}
.blog-card-body {
  padding: var(--s4);
}
.blog-card-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: var(--s1);
}
.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--s1);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--s2);
}
.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

/* ─── Blog Single Post ──────────────────────────────────────── */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px var(--s4);
}
.blog-post-header {
  margin-bottom: 32px;
}
.blog-post-category {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: var(--s2);
}
.blog-post-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--s3);
}
.blog-post-meta {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}
.blog-post-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 32px;
}
.blog-post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.blog-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 16px;
}
.blog-post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px;
}
.blog-post-content p {
  margin-bottom: 16px;
}
.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.blog-post-content li {
  margin-bottom: 8px;
}
.blog-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface-alt, var(--surface));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
}
.blog-post-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 16px 0;
}
.blog-post-content code {
  background: var(--surface-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.blog-post-content pre {
  background: var(--surface-hover);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 16px;
}

/* ─── About / Contact Pages ─────────────────────────────────── */
.page-section {
  padding: 48px 0;
}
.page-header {
  text-align: center;
  padding: 48px 0 32px;
}
.page-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--s2);
}
.page-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  max-width: 900px;
  margin: 0 auto;
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: var(--s4);
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-alpha, rgba(224,78,34,0.08));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .public-nav-links,
  .public-nav-actions {
    display: none;
  }
  .public-hamburger {
    display: block;
  }
  .hero-stats {
    gap: var(--s4);
    flex-wrap: wrap;
  }
  .hero-stat-value {
    font-size: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--s1);
    text-align: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .cta-section {
    margin: 32px var(--s2);
    padding: 40px var(--s3);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 48px 0 40px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ─── Btn Large ─────────────────────────────────────────────── */
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}

/* ─── Modern Bento Grid & Animation Utilities ────────────────── */

.hover-lift {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.bento-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px) !important; /* overrides any staggered transform if hovered */
  box-shadow: var(--shadow-lg) !important;
}

/* Background floating shapes */
.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-shape.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  top: -100px;
  right: -100px;
}
.hero-shape.shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(220, 38, 38, 0.05);
  bottom: -50px;
  left: -50px;
}
[data-theme="dark"] .hero-shape {
  opacity: 0.15;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .bento-card {
    grid-column: span 1 !important;
  }
}

/* Reduce motion override for accessibility */
@media (prefers-reduced-motion: reduce) {
  .gsap-float, .hover-lift, .bento-card, .gsap-stagger-item, .gsap-section {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

