/* ============================================
   PeopleOps Manifesto - Shared Styles
   ============================================ */

/* VARIABLES */
:root {
  --navy: #0f1729;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --purple: #8b5cf6;
  --text: #e2e8f0;
  --text-muted: #b0bec5;
  --bg-dark: #0b1120;
  --bg-card: rgba(15, 23, 41, 0.6);
  --border: rgba(255, 255, 255, 0.06);
  --white: #ffffff;
  --navy-light: #1a2744;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --purple-glow: rgba(139, 92, 246, 0.15);
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --gradient-1: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-2: linear-gradient(135deg, #0f1729, #1e293b);
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
nav.scrolled { padding: 0.6rem 2rem; }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

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

.nav-links > li > a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links > li > a:hover { color: var(--white); }
.nav-links > li > a.active { color: var(--accent-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-glow) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--white);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--gradient-1);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* SECTIONS */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-wide { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.dark-section { background: var(--bg-dark); color: var(--text); }
.dark-section .section-title { color: var(--white); }

/* CARDS / BLOCKS */
.problem-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.problem-block {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.problem-block:hover { border-color: var(--accent); }
.problem-block h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.problem-block p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* QUOTE BLOCK */
.quote-block {
  max-width: 750px;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--purple);
  background: rgba(139, 92, 246, 0.06);
  border-radius: 0 12px 12px 0;
}
.quote-block p {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
}

/* SIGN / NEWSLETTER CTA */
.sign-section {
  text-align: center;
  padding: 6rem 2rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.sign-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 50% 50%, var(--purple-glow) 0%, transparent 50%);
}
.sign-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.sign-content h2 {
  font-family: 'Lora', serif;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.sign-content p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.8; }
.email-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; }
.email-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.email-form input:focus { border-color: var(--accent); }
.email-form input::placeholder { color: var(--text-muted); }
.email-form button {
  padding: 0.9rem 1.8rem;
  background: var(--gradient-1);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.email-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}

/* FOOTER */
footer {
  padding: 3rem 2rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
footer p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; }
footer a { color: var(--accent-light); text-decoration: none; }

/* BACK TO TOP */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* PERFORMANCE: no fade-in delay for above-fold LCP content */
.hero .fade-in {
  opacity: 1;
  transform: none;
}
/* Reduce CLS from font swap */
.hero h1, .section-title {
  font-synthesis: none;
  font-size-adjust: from-font;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(11, 17, 32, 0.98);
    padding: 1rem 2rem 2rem;
    gap: 0.5rem;
  }
  .hero { padding: 7rem 1.5rem 3rem; }
  .section { padding: 4rem 1.5rem; }
  .email-form { flex-direction: column; }
  .problem-blocks { grid-template-columns: 1fr; }
}
