/* ===== Design Tokens (matched from protocolcrm-website) ===== */
:root {
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-primary: #1B1AFF;
  --color-primary-light: #1B1AFF;
  --color-primary-soft: rgba(27, 58, 92, 0.07);
  --color-accent: #3B82C4;
  --color-text: #272929;
  --color-text-muted: #494b4e;
  --color-border: #DFE6E9;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.header-brand span { color: var(--color-primary); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.nav-link:hover { color: var(--color-primary); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
}
.nav-cta:hover { filter: brightness(1.1); }

/* ===== Sections ===== */
.section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-alt {
  padding: 80px 32px;
  background: #FAFBFC;
}
.section-alt > .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 32px;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero-title em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-description {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.hero-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.hero-trust {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.hero-built-by {
  margin-top: 40px;
  font-size: 14px;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 32px 80px;
  max-width: 800px;
  margin: -40px auto 0;
}
.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ===== Problem Cards ===== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.problem-card {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.problem-card:hover {
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.08);
  transform: translateY(-2px);
}
.problem-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Solution Visual ===== */
.solution-visual {
  max-width: 900px;
  margin: 0 auto;
}
.solution-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.tool-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
}
.automation-layer {
  text-align: center;
  padding: 20px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.outcome-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.outcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(27, 26, 255, 0.06);
  border: 1px solid rgba(27, 26, 255, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}
.arrow-down {
  text-align: center;
  font-size: 24px;
  color: var(--color-border);
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.step-card:hover {
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.08);
  transform: translateY(-2px);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  text-align: center;
}
.pricing-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.pricing-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check {
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.pricing-cta:hover { filter: brightness(1.1); }
.pricing-guarantee {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.faq-question:hover { color: var(--color-primary); }
.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after {
  content: '-';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Final CTA ===== */
.final-cta {
  text-align: center;
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.final-cta h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
}
.final-cta p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
.final-cta .hero-cta { margin-bottom: 24px; }
.contact-line {
  font-size: 14px;
  color: var(--color-text-muted);
}
.contact-line a {
  color: var(--color-primary);
  transition: var(--transition);
}
.contact-line a:hover { opacity: 0.8; }

/* ===== Footer ===== */
.site-footer {
  padding: 32px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--color-text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--color-primary); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-nav .nav-link { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-title { font-size: clamp(28px, 7vw, 42px); }
  .stats { grid-template-columns: 1fr; gap: 12px; padding: 0 20px 60px; }
  .section { padding: 56px 20px; }
  .section-alt { padding: 56px 20px; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-card { padding: 28px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .final-cta { padding: 56px 20px; }
}
