/* ============================================================
   PB-LEADS Website – Shared Stylesheet
   Colors: Gold #FFB800 | Dark #05050A | White #FFFFFF
   ============================================================ */

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

:root {
  --gold:        #FFB800;
  --gold-dim:    #CC9400;
  --gold-glow:   rgba(255, 184, 0, 0.12);
  --gold-border: rgba(255, 184, 0, 0.25);
  --bg:          #05050A;
  --bg2:         #0D0D1A;
  --bg3:         #12121F;
  --text:        #FFFFFF;
  --text-muted:  #8888A8;
  --border:      rgba(255, 255, 255, 0.08);
  --radius:      10px;
  --radius-lg:   12px;
  --transition:  0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ----- Typography ----- */
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; line-height: 1.2; }
p  { color: var(--text-muted); line-height: 1.75; }

.gold { color: var(--gold); }
.white { color: var(--text); }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 120px 0; position: relative; }

/* ----- Navigation ----- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 20px 0;
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(5, 5, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.nav-logo .globe {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #000;
}
.btn-primary:hover {
  background: #FFC933;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 184, 0, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--gold-border);
  background: var(--gold-glow);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; border-radius: 8px; }

/* Nav CTA */
.nav-cta {
  background: var(--gold);
  color: #000;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s;
}
.nav-cta:hover { background: #FFC933; box-shadow: 0 4px 20px rgba(255,184,0,0.3); }

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,10,0.97);
  z-index: 850;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.8rem; font-weight: 700; }
.nav-mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ----- Tag Labels ----- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Sometype Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.tag::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ----- Glow Orbs ----- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-gold {
  background: radial-gradient(circle, rgba(255,184,0,0.18) 0%, transparent 70%);
}
.glow-blue {
  background: radial-gradient(circle, rgba(50,50,200,0.12) 0%, transparent 70%);
}

/* ----- Cards ----- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--gold-border);
  background: var(--bg3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--gold-glow);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ----- Stats ----- */
.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat-number span { color: var(--gold); }
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ----- Section Titles ----- */
.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}
.section-title p {
  margin-top: 16px;
  font-size: 1.1rem;
}

/* ----- Grid Layouts ----- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ----- Divider ----- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ----- Footer ----- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.875rem;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----- Modal ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(40px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 80px var(--gold-glow);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  background: var(--border);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,184,0,0.15); color: var(--gold); }

.modal-box h3 { margin-bottom: 8px; }
.modal-box p { margin-bottom: 28px; font-size: 0.95rem; }

/* ----- Forms ----- */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 100px; resize: vertical; }

.form-group select option { background: var(--bg2); }

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}
.form-success .checkmark {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}
.form-success h3 { color: var(--gold); }

/* ----- Page Hero (subpages) ----- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(1deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,184,0,0.2); }
  50%       { box-shadow: 0 0 40px rgba(255,184,0,0.5); }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal animations — clean fade-up */
.fly-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fly-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fly-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fly-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fly-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fly-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ----- Progress Bar (hero mockup) ----- */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gold);
}

/* ----- Badge / Status ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}
.badge-gold {
  background: rgba(255,184,0,0.15);
  color: var(--gold);
  border: 1px solid rgba(255,184,0,0.3);
}
.badge-green {
  background: rgba(0,200,100,0.12);
  color: #00C864;
  border: 1px solid rgba(0,200,100,0.25);
}

/* ----- Testimonials ----- */
.testimonial {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 2px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
}
.testimonial-name { font-size: 0.9rem; font-weight: 600; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }
.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 16px; }

/* ----- Process Steps ----- */
.step-number {
  width: 48px; height: 48px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.step-connector {
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-border), transparent);
  margin: 8px auto;
  height: 40px;
}

/* ----- Legal pages ----- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.legal-content h1 { margin-bottom: 40px; }
.legal-content h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal-content p { margin-bottom: 16px; }
.legal-content a { color: var(--gold); text-decoration: underline; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta  { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .modal-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
