/* Fortify Brief – Bootstrap 5 Themed Styles
   Uses Bootstrap CSS variables so colors follow the active BS theme.
   Requires Bootstrap 5.3+ to be loaded before this file.
*/

/* Base reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;           /* plain white background */
  color: var(--bs-body-color);   /* default Bootstrap body text color (#212529) */
  line-height: 1.2;
  overflow-x: hidden;
}

/* Containers */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animated background particles */
.bg-animation {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  background: rgba(0, 255, 255, 0.12);
  border-radius: 50%;
  animation: float 20s infinite linear;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}
.particle:nth-child(1) { left: 10%; width: 4px; height: 4px; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; width: 6px; height: 6px; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; width: 3px; height: 3px; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; width: 5px; height: 5px; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; width: 4px; height: 4px; animation-delay: 8s; }

/* Header / Nav (Bootstrap variables) */
header {
  position: relative;
  z-index: 10;
  padding: 20px 0;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bs-border-color, rgba(255,255,255,.1));
}

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

.logo {
  font-size: 1.5rem; font-weight: 700;
  color: var(--bs-primary, #0d6efd);
  text-shadow: 0 0 20px rgba(13, 110, 253, 0.35);
}

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--bs-body-color, #fff);
  text-decoration: none;
  transition: color .2s ease-in-out;
}
.nav-links a:hover { color: var(--bs-primary, #0d6efd); }

/* Hero */
.hero {
  position: relative; z-index: 10;
  padding: 120px 0; text-align: center;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--bs-primary, #0d6efd);  /* solid bootstrap primary color */
}
.hero h2 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--bs-primary, #000000);  /* solid bootstrap primary color */
}
.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--bs-secondary-color, #b0b0b0);
  margin-bottom: 40px; max-width: 1000px; margin-inline: auto;
}

/* Buttons – map your CTA classes to Bootstrap look/feel */
.cta-container { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-bottom: 60px; 
}

.cta-primary,
.btn-primary-like {
    display: inline-block; 
    cursor: pointer; 
    text-decoration: none;
    padding: .9rem 2.2rem; 
    border-radius: 50rem; 
    border: 1px solid #0d6efd; /* Explicit blue border */
    background-color: #0d6efd; /* Explicit blue background */
    color: #ffffff; /* Explicit white text */
    font-size: 1.125rem; 
    font-weight: 600; 
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
    transition: transform .15s ease, box-shadow .2s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cta-primary:hover,
.btn-primary-like:hover {
    background-color: #ffffff; /* White background on hover */
    border-color: #0d6efd; /* Blue border on hover */
    color: #0d6efd; /* Blue text on hover */
    box-shadow: 0 .75rem 2rem rgba(13,110,253,.35);
}

.cta-secondary,
.btn-outline-like {
  display: inline-block; cursor: pointer; text-decoration: none;
  padding: .9rem 2.2rem; border-radius: 50rem;
  border: 2px solid var(--bs-border-color, #fff);
  color: var(--bs-body-color, #fff); background: transparent; font-size: 1.125rem; font-weight: 600;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cta-secondary:hover,
.btn-outline-like:hover {
  transform: translateY(-2px);
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-bg-rgb) ? rgb(var(--bs-body-bg-rgb)) : #000;
  border-color: var(--bs-body-bg, #fff);
}

.price-highlight { font-size: 1.1rem; color: var(--bs-primary); margin-top: 20px; }

/* Features */
.features { position: relative; z-index: 10; padding: 100px 0; background: rgba(0,0,0,0.3); }
.features h2 { text-align: center; font-size: 2.5rem; margin-bottom: 60px; color: var(--bs-emphasis-color, #fff); }

.features-grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.feature-card {
  background: rgba(255,255,255,0.05);
  padding: 40px; border-radius: 1.25rem;
  border: 1px solid var(--bs-border-color);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--bs-primary);
}
.feature-icon { font-size: 3rem; margin-bottom: 20px; color: var(--bs-primary); }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--bs-emphasis-color, #fff); }
.feature-card p { color: var(--bs-secondary-color, #b0b0b0); }

/* Pricing */
.pricing { position: relative; z-index: 10; padding: 100px 0; text-align: center; }
.pricing h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--bs-emphasis-color, #fff); }
.pricing-subtitle { font-size: 1.2rem; color: var(--bs-secondary-color); margin-bottom: 60px; }

.pricing-card {
  max-width: 400px; margin: 0 auto; padding: 60px 40px;
  background: var(--bs-body-bg, rgba(255,255,255,.05));
  border: 1px solid var(--bs-border-color); border-radius: 1.875rem;
  backdrop-filter: blur(10px); box-shadow: var(--bs-box-shadow-lg, 0 1rem 3rem rgba(0,0,0,.175));
}
.price { font-size: 4rem; font-weight: 800; color: var(--bs-primary); margin-bottom: 10px; }
.price-period { color: var(--bs-secondary-color); font-size: 1.2rem; margin-bottom: 40px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 40px; }
.pricing-features li { padding: 10px 0; color: var(--bs-body-color); }
.pricing-features li:before { content: "✓"; color: var(--bs-success, #198754); font-weight: 700; margin-right: 10px; }

/* Footer */
footer {
  position: relative; z-index: 10; padding: 60px 0; text-align: center;
  background: rgba(0,0,0,0.5); border-top: 1px solid var(--bs-border-color, rgba(255,255,255,.1));
}
.footer-content { color: var(--bs-secondary-color); }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }
.footer-links a {
  color: var(--bs-secondary-color); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--bs-primary); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 80px 0; }
  .cta-container { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ------------------------------
   Sample Brief (Bootstrap tokens)
   ------------------------------ */

.brief-container {
  position: relative; z-index: 10;
  max-width: 1000px; margin: 60px auto; padding: 40px;
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  border-radius: 1.25rem; box-shadow: var(--bs-box-shadow-lg);
}
.brief-header { margin-bottom: 30px; text-align: center; }
.brief-header h1 {
  font-size: 2.2rem; font-weight: 800; margin-bottom: 10px;
  color: var(--bs-emphasis-color);
}
.brief-meta {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .75rem;
}
.brief-badge {
  padding: .35rem .75rem; border-radius: 50rem; font-size: .85rem; font-weight: 600;
  color: var(--bs-primary-text, #fff);
  background: var(--bs-primary); border: 1px solid var(--bs-primary);
}
.brief-badge.is-warning {
  color: var(--bs-warning-text); background: var(--bs-warning-bg-subtle); border-color: var(--bs-warning-border-subtle);
}
.brief-badge.is-danger {
  color: var(--bs-danger-text); background: var(--bs-danger-bg-subtle); border-color: var(--bs-danger-border-subtle);
}

.brief-section { margin-bottom: 1.75rem; }
.brief-section h2 { font-size: 1.25rem; margin-bottom: .5rem; color: var(--bs-primary); }
.brief-section p, .brief-section li { color: var(--bs-secondary-color); }

.brief-section ul { padding-left: 1rem; list-style: disc; }

.callout {
  border-left: 4px solid var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
  padding: .75rem 1rem; border-radius: .75rem; margin: .75rem 0;
  color: var(--bs-primary-text);
}

/* Mitigation checklist */
.mitigation-list { list-style: none; padding-left: 0; }
.mitigation-list li {
  margin: .5rem 0; padding-left: 1.6rem; position: relative; color: var(--bs-body-color);
}
.mitigation-list li:before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--bs-success); font-weight: 800;
}

/* Post previews */
.post-previews { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; }
.post {
  border: 1px dashed var(--bs-border-color); border-radius: .75rem; padding: 1rem; background: var(--bs-body-bg);
}
.post .platform {
  font-size: .85rem; font-weight: 700; color: var(--bs-secondary); margin-bottom: .5rem;
}

/* ------------------------------
   Onboarding Flow (Bootstrap)
   ------------------------------ */

.onb-steps {
  display: flex; gap: .75rem; justify-content: center; margin: 2rem auto; flex-wrap: wrap;
}
.onb-step {
  display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 50rem;
  background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); color: var(--bs-secondary-color);
  font-weight: 500;
}
.onb-step-index {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bs-secondary); color: #fff; font-weight: 700; font-size: .9rem;
}
.onb-step.is-active { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text); }
.onb-step.is-active .onb-step-index { background: var(--bs-primary); }

.onb-card {
  position: relative; z-index: 10; background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: 1.75rem;
  margin-bottom: 2rem; box-shadow: var(--bs-box-shadow-sm);
}
.onb-card.is-hidden { display: none; }

.onb-title { font-size: 1.75rem; font-weight: 800; color: var(--bs-primary); margin-bottom: .25rem; }
.onb-subtitle { color: var(--bs-secondary-color); margin-bottom: 1rem; }

.onb-chip-search { margin: .5rem 0 1rem; }
.onb-input {
  width: 100%; padding: .75rem 1rem; border-radius: .5rem;
  border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-body-color);
}

.chip-bank { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.chip {
  border-radius: 50rem; padding: .5rem 1rem;
  border: 1px solid var(--bs-border-color); background: var(--bs-light-bg-subtle);
  color: var(--bs-body-color); font-weight: 500; cursor: pointer;
  transition: all .15s ease-in-out;
}
.chip:hover { background: var(--bs-secondary-bg); }
.chip.is-selected { background: var(--bs-primary); color: #fff; border-color: var(--bs-primary); }

.onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.onb-hint { font-size: .9rem; color: var(--bs-secondary-color); }
.onb-next { min-width: 220px; }
.onb-refine { min-width: 200px; }

.onb-header-row { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; margin-bottom: 1rem; }

.onb-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.mini-tag {
  padding: .25rem .5rem; border-radius: 50rem;
  background: var(--bs-light-bg-subtle); border: 1px solid var(--bs-border-color);
  font-size: .8rem; font-weight: 500; color: var(--bs-secondary-color);
}

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.news-card {
  border: 1px solid var(--bs-border-color); border-radius: .75rem; background: var(--bs-body-bg);
  padding: 1rem; box-shadow: var(--bs-box-shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
}
.news-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; color: var(--bs-emphasis-color); }
.news-summary { color: var(--bs-secondary-color); font-size: .95rem; margin-bottom: .75rem; }
.news-card-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.news-tags { display: flex; gap: .375rem; flex-wrap: wrap; }
.news-link { font-size: .9rem; color: var(--bs-primary); text-decoration: none; }
.news-link:hover { text-decoration: underline; }

.onb-empty {
  text-align: center; padding: 1.25rem; border: 1px dashed var(--bs-border-color);
  border-radius: .75rem; background: var(--bs-body-bg); color: var(--bs-secondary-color);
}

/* Responsive tweaks for onboarding */
@media (max-width: 768px) {
  .onb-title { font-size: 1.5rem; }
  .onb-actions { flex-direction: column; align-items: stretch; }
}