/*
 * platform.css
 * The Biz Hub — Platform Website Design
 * Dark, professional, SaaS product feel
 * Completely separate from agency page design
 */

/* ── Platform uses its own variables, NOT theme variables ── */
.platform-page {
  --p-bg:          #080c10;
  --p-bg-card:     #0e1419;
  --p-bg-elevated: #141c24;
  --p-border:      #1e2d3d;
  --p-border-light:#243447;
  --p-primary:     #00c896;
  --p-primary-dark:#009e78;
  --p-accent:      #ff6b35;
  --p-accent2:     #7c3aed;
  --p-blue:        #3b82f6;
  --p-text:        #e8f0f8;
  --p-text-mid:    #8899aa;
  --p-text-light:  #556070;
  --p-heading:     'Plus Jakarta Sans', 'Inter', sans-serif;
  --p-body:        'Inter', sans-serif;
  --p-radius:      12px;
  --p-radius-lg:   20px;
  background: var(--p-bg);
  color: var(--p-text);
  font-family: var(--p-body);
  overflow-x: hidden;
}

/* ── RESET for platform ── */
.platform-page * { box-sizing: border-box; margin: 0; padding: 0; }
.platform-page a { text-decoration: none; color: inherit; }
.platform-page ul { list-style: none; }
.platform-page img { max-width: 100%; display: block; }

/* ── PLATFORM NAV ── */
.p-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,12,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--p-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.p-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.p-nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--p-primary), #00a07a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #000;
  font-family: var(--p-heading);
}
.p-nav-logo-text {
  font-family: var(--p-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--p-text);
  letter-spacing: -0.3px;
}
.p-nav-logo-text span { color: var(--p-primary); }
.p-nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}
.p-nav-links a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--p-text-mid);
  transition: all 0.2s;
}
.p-nav-links a:hover { color: var(--p-text); background: var(--p-bg-elevated); }
.p-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.p-btn-ghost {
  padding: 8px 18px;
  border: 1px solid var(--p-border-light);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-text-mid);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--p-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.p-btn-ghost:hover { border-color: var(--p-primary); color: var(--p-primary); }
.p-btn-primary {
  padding: 9px 20px;
  background: var(--p-primary);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--p-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.p-btn-primary:hover {
  background: #00e6ad;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,200,150,0.35);
}
.p-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.p-hamburger span {
  width: 22px; height: 2px;
  background: var(--p-text);
  border-radius: 2px;
  display: block;
}
.p-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--p-bg-card);
  border-bottom: 1px solid var(--p-border);
  padding: 16px;
  z-index: 999;
}
.p-mobile-menu.open { display: block; }
.p-mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--p-text-mid);
  border-bottom: 1px solid var(--p-border);
  font-size: 15px;
  font-weight: 500;
}

/* ── HERO ── */
.p-hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.p-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,150,0.08) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.p-hero::after {
  content: '';
  position: absolute;
  width: 800px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--p-primary), transparent);
  bottom: 0; left: 50%;
  transform: translateX(-50%);
}
.p-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,200,150,0.10);
  border: 1px solid rgba(0,200,150,0.25);
  color: var(--p-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.p-hero-title {
  font-family: var(--p-heading);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--p-text);
}
.p-hero-title .highlight {
  background: linear-gradient(135deg, var(--p-primary), #00a0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.p-hero-sub {
  font-size: 18px;
  color: var(--p-text-mid);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}
.p-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.p-btn-hero {
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--p-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.p-btn-hero-primary {
  background: var(--p-primary);
  color: #000;
  border: none;
}
.p-btn-hero-primary:hover {
  background: #00e6ad;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,200,150,0.35);
}
.p-btn-hero-outline {
  background: transparent;
  color: var(--p-text);
  border: 1px solid var(--p-border-light);
}
.p-btn-hero-outline:hover {
  border-color: var(--p-primary);
  color: var(--p-primary);
}

/* Stats bar */
.p-stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 28px 0 0;
  border-top: 1px solid var(--p-border);
}
.p-stat { text-align: center; }
.p-stat-num {
  font-family: var(--p-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--p-text);
  letter-spacing: -0.5px;
}
.p-stat-num span { color: var(--p-primary); }
.p-stat-lbl { font-size: 12px; color: var(--p-text-light); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── THEME SHOWCASE ── */
.p-section { padding: 80px 24px; }
.p-section-center { text-align: center; }
.p-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--p-primary);
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.20);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.p-title {
  font-family: var(--p-heading);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--p-text);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.p-subtitle { font-size: 16px; color: var(--p-text-mid); max-width: 520px; margin: 0 auto 48px; line-height: 1.7; }

/* Theme cards grid */
.p-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.p-theme-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
}
.p-theme-card:hover {
  border-color: var(--p-primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,200,150,0.10);
}
.p-theme-preview {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.p-theme-nav-bar {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
  flex-shrink: 0;
}
.p-theme-nav-dot { width: 5px; height: 5px; border-radius: 50%; opacity: 0.5; }
.p-theme-hero-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}
.p-theme-hero-line { border-radius: 3px; opacity: 0.7; }
.p-theme-cards-row {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  flex-shrink: 0;
}
.p-theme-mini-card { flex: 1; height: 24px; border-radius: 5px; opacity: 0.5; }
.p-theme-info { padding: 16px 18px; }
.p-theme-name { font-weight: 700; font-size: 15px; color: var(--p-text); margin-bottom: 4px; }
.p-theme-desc { font-size: 12px; color: var(--p-text-light); margin-bottom: 12px; }
.p-theme-colors { display: flex; gap: 6px; margin-bottom: 12px; }
.p-theme-color { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.p-theme-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--p-border-light);
  background: var(--p-bg-elevated);
  color: var(--p-text-mid);
  transition: all 0.2s;
  font-family: var(--p-body);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.p-theme-btn:hover { background: var(--p-primary); border-color: var(--p-primary); color: #000; }

/* ── HOW IT WORKS ── */
.p-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
.p-step-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s;
}
.p-step-card:hover { border-color: var(--p-primary); }
.p-step-num {
  width: 36px; height: 36px;
  background: var(--p-primary);
  color: #000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
  font-family: var(--p-heading);
}
.p-step-icon { font-size: 28px; margin-bottom: 10px; }
.p-step-title { font-weight: 700; font-size: 15px; color: var(--p-text); margin-bottom: 7px; }
.p-step-desc { font-size: 13px; color: var(--p-text-mid); line-height: 1.65; }

/* ── FEATURES ── */
.p-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.p-feature-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 22px;
  transition: all 0.2s;
}
.p-feature-card:hover { border-color: var(--p-border-light); background: var(--p-bg-elevated); }
.p-feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.p-feature-title { font-weight: 700; font-size: 14px; color: var(--p-text); margin-bottom: 7px; }
.p-feature-desc  { font-size: 13px; color: var(--p-text-mid); line-height: 1.65; }

/* ── PRICING ── */
.p-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1060px;
  margin: 0 auto 24px;
}
.p-plan-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s;
}
.p-plan-card:hover { transform: translateY(-4px); border-color: var(--p-border-light); }
.p-plan-card.popular {
  border-color: var(--p-primary);
  background: linear-gradient(180deg, rgba(0,200,150,0.06) 0%, var(--p-bg-card) 100%);
}
.p-popular-tag {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--p-primary);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px 5px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.p-plan-name {
  font-family: var(--p-heading);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--p-text);
}
.p-plan-tagline { font-size: 12px; color: var(--p-text-light); margin-bottom: 18px; }
.p-plan-price {
  font-family: var(--p-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--p-text);
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.p-plan-price span { font-size: 14px; font-weight: 400; color: var(--p-text-light); letter-spacing: 0; }
.p-plan-period { font-size: 12px; color: var(--p-text-light); margin-bottom: 20px; }
.p-plan-features { flex: 1; margin-bottom: 20px; }
.p-plan-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--p-text-mid);
  padding: 4px 0;
}
.p-plan-feature::before { content: '✓'; color: var(--p-primary); font-weight: 700; flex-shrink: 0; font-size: 11px; }
.p-plan-cta {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--p-body);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-plan-cta-primary { background: var(--p-primary); color: #000; }
.p-plan-cta-primary:hover { background: #00e6ad; }
.p-plan-cta-outline { background: var(--p-bg-elevated); color: var(--p-text-mid); border: 1px solid var(--p-border-light); }
.p-plan-cta-outline:hover { border-color: var(--p-primary); color: var(--p-primary); background: rgba(0,200,150,0.06); }

/* Self-hosted special card */
.p-selfhosted-card {
  max-width: 1060px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--p-bg-elevated), var(--p-bg-card));
  border: 1px solid var(--p-border-light);
  border-radius: var(--p-radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.p-selfhosted-info h3 { font-family: var(--p-heading); font-size: 18px; font-weight: 800; color: var(--p-text); margin-bottom: 5px; }
.p-selfhosted-info p  { font-size: 13px; color: var(--p-text-mid); }

/* ── TESTIMONIALS ── */
.p-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.p-testi-card {
  background: var(--p-bg-card);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 22px;
}
.p-testi-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.p-testi-text  { font-size: 14px; color: var(--p-text-mid); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.p-testi-author { display: flex; align-items: center; gap: 10px; }
.p-testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-primary), #00a0f0);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.p-testi-name  { font-weight: 700; font-size: 13px; color: var(--p-text); }
.p-testi-agency { font-size: 11px; color: var(--p-text-light); }

/* ── CTA SECTION ── */
.p-cta-section {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--p-bg) 0%, var(--p-bg-card) 100%);
  border-top: 1px solid var(--p-border);
}

/* ── FOOTER ── */
.p-footer {
  background: var(--p-bg-card);
  border-top: 1px solid var(--p-border);
  padding: 40px 24px 30px;
}
.p-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1060px;
  margin: 0 auto 32px;
}
.p-footer-brand {}
.p-footer-brand-name { font-family: var(--p-heading); font-size: 18px; font-weight: 800; color: var(--p-text); margin-bottom: 8px; }
.p-footer-brand-name span { color: var(--p-primary); }
.p-footer-tagline { font-size: 12px; color: var(--p-text-light); line-height: 1.6; }
.p-footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--p-text-mid); margin-bottom: 14px; }
.p-footer-col a  { display: block; font-size: 13px; color: var(--p-text-light); margin-bottom: 9px; transition: color 0.2s; }
.p-footer-col a:hover { color: var(--p-primary); }
.p-footer-bottom {
  max-width: 1060px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--p-text-light);
}
.p-footer-bottom a { color: var(--p-primary); }

/* ── FAQ ── */
.p-faq-wrap { max-width: 680px; margin: 0 auto; }
.p-faq-item {
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.p-faq-q {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--p-bg-card);
  user-select: none;
  transition: background 0.2s;
}
.p-faq-q:hover { background: var(--p-bg-elevated); }
.p-faq-arrow { font-size: 12px; color: var(--p-text-light); transition: transform 0.3s; }
.p-faq-arrow.open { transform: rotate(180deg); }
.p-faq-a { max-height: 0; overflow: hidden; transition: all 0.3s; font-size: 13px; color: var(--p-text-mid); line-height: 1.7; }
.p-faq-a.open { max-height: 200px; padding: 14px 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .p-nav-links { display: none; }
  .p-nav-right .p-btn-ghost { display: none; }
  .p-hamburger { display: flex; }
  .p-hero { padding: 70px 20px 60px; }
  .p-hero-title { letter-spacing: -0.5px; }
  .p-stats-bar { gap: 24px; }
  .p-section { padding: 60px 20px; }
  .p-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .p-footer-top { grid-template-columns: 1fr; }
  .p-pricing-grid { grid-template-columns: 1fr; }
}
