/* ================================================
   BEVERON COMMON DESIGN SYSTEM
   Shared stylesheet for all new Beveron pages.

   Design tokens, typography, hero, cards, forms,
   buttons, dark sections, CTA, GEO, responsive
   breakpoints, and scroll reveal animations.

   Usage: Link this BEFORE any page-specific CSS.
   All styles scoped under .bv-page to prevent
   leakage into legacy Bootstrap styles.
   ================================================ */

/* --- DESIGN TOKENS --- */
.bv-page {
  --bg-main: #ffffff;
  --bg-hero: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-alt: #f1f5f9;
  --bg-dark: #212f3c;
  --bg-dark-surface: #1e293b;
  --bg-prompt-box: #f8f9fa;

  --border-subtle: #e2e8f0;
  --border-focus: #cbd5e1;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-on-dark: #f1f5f9;
  --text-on-dark-muted: #94a3b8;

  --accent-cyan: #0084c8;
  --accent-cyan-dark: #006b9f;
  --accent-cyan-light: #e0f2fe;
  --accent-warm: #fae251;
  --badge-bg: #ffffff;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- LAYOUT UTILITIES --- */
.bv-page .sec-pad {
  padding: 90px 24px;
}
.bv-page .sec-pad-lg {
  padding: 120px 24px;
}
.bv-page .wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.bv-page .wrap-narrow {
  max-width: 800px;
  margin: 0 auto;
}
.bv-page .wrap-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.bv-page .text-center {
  text-align: center;
}

/* --- BADGE LABEL --- */
.bv-page .badge-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bv-page .badge-label i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

/* Dot-badge variant (used in comparison/prompt pages) */
.bv-page .badge-top {
  background: var(--badge-bg);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.bv-page .badge-top::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* --- TYPOGRAPHY --- */
.bv-page .sec-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.bv-page .sec-heading-sm {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.bv-page .body-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.bv-page .body-text + .body-text {
  margin-top: 1rem;
}

/* --- HERO SECTION --- */
.bv-page .hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.bv-page .hero-deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}
.bv-page .hero-deco--1 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan-dark);
  top: -120px;
  left: -100px;
}
.bv-page .hero-deco--2 {
  width: 350px;
  height: 350px;
  background: var(--accent-cyan-dark);
  bottom: -80px;
  right: -60px;
}
.bv-page .hero-deco--3 {
  width: 200px;
  height: 200px;
  background: var(--accent-cyan-dark);
  top: 30%;
  right: 10%;
  opacity: 0.04;
}
.bv-page .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.bv-page .hero-inner h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--text-primary);
}
.bv-page .hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 40px;
}
.bv-page .hero-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bv-page .hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.bv-page .hero-trust-chip i {
  color: var(--accent-cyan);
}
.bv-page .hero-trust-chip .star {
  color: var(--accent-warm);
}

/* --- STATS BAR --- */
.bv-page .stats-bar {
  background: var(--bg-dark);
  padding: 50px 24px;
}
.bv-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.bv-page .stat-item {
  position: relative;
}
.bv-page .stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -16px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.bv-page .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(0, 132, 200, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.bv-page .stat-icon i {
  font-size: 1.3rem;
  color: var(--accent-cyan);
}
.bv-page .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.bv-page .stat-label {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* --- CARD SYSTEM --- */
.bv-page .card-grid {
  display: grid;
  gap: 28px;
}
.bv-page .card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.bv-page .card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.bv-page .card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.bv-page .card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bv-page .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bv-page .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -8px rgba(0, 132, 200, 0.12);
  border-color: var(--border-focus);
}
.bv-page .card:hover::before {
  opacity: 1;
}
.bv-page .card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.bv-page .card-icon i {
  font-size: 1.6rem;
  color: var(--accent-cyan);
}
.bv-page .card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.bv-page .card p,
.bv-page .card .card-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Pillar list inside cards */
.bv-page .pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bv-page .pillar-list li {
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 22px;
}
.bv-page .pillar-list li i {
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--accent-cyan);
  font-size: 1rem;
}
.bv-page .pillar-list li strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* Icon mural grid (about page) */
.bv-page .icon-mural {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bv-page .mural-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  transition: all 0.3s ease;
}
.bv-page .mural-tile:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px -4px rgba(0, 132, 200, 0.1);
  transform: translateY(-3px);
}
.bv-page .mural-tile i {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.bv-page .mural-tile span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
}
.bv-page .mural-tile--highlight {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.bv-page .mural-tile--highlight i,
.bv-page .mural-tile--highlight span {
  color: #ffffff;
}

/* --- DARK / ECOSYSTEM SECTION --- */
.bv-page .dark-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.bv-page .dark-deco {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.04;
  pointer-events: none;
}
.bv-page .dark-deco--1 {
  top: -200px;
  right: -100px;
}
.bv-page .dark-deco--2 {
  bottom: -200px;
  left: -100px;
}
.bv-page .dark-section .sec-heading {
  color: #ffffff;
}
.bv-page .dark-section .body-text {
  color: var(--text-on-dark-muted);
}
.bv-page .dark-section .badge-label {
  background: var(--bg-dark-surface);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark-muted);
}
.bv-page .dark-section .badge-label i {
  color: var(--accent-cyan);
}

.bv-page .dark-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bv-page .dark-feature-item {
  background: var(--bg-dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.3s ease;
}
.bv-page .dark-feature-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 132, 200, 0.08);
  transform: translateY(-3px);
}
.bv-page .dark-feature-item i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}
.bv-page .dark-feature-item h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1.3;
}
.bv-page .dark-feature-item p {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  margin-top: 6px;
}

/* --- IMAGE FEATURE CARDS --- */
.bv-page .image-feature-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
}
.bv-page .image-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bv-page .image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.bv-page .image-caption i {
  color: var(--accent-cyan);
}

/* --- FORM ELEMENTS --- */
.bv-page .form-group-wrap {
  margin-bottom: 18px;
}
.bv-page .form-ctrl {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-focus);
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: border-color 0.3s;
}
.bv-page .form-ctrl:focus {
  outline: none;
  border-bottom-color: var(--accent-cyan);
}
.bv-page .form-ctrl::placeholder {
  color: var(--text-tertiary);
}
.bv-page .err-label {
  color: #ef4444;
  font-size: 0.78rem;
  min-height: 16px;
  display: block;
  margin-top: 4px;
}

/* --- BUTTONS --- */
.bv-page .btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--text-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bv-page .btn-primary:hover {
  background: var(--accent-cyan);
  transform: translateY(-2px);
}
.bv-page .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.bv-page .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.bv-page .btn-outline:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- CTA SECTION --- */
.bv-page .cta-section {
  background: var(--bg-alt);
}
.bv-page .cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
}
.bv-page .cta-info-panel {
  background: var(--bg-dark);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bv-page .cta-info-panel::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.06;
  bottom: -100px;
  right: -80px;
}
.bv-page .cta-info-panel h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.bv-page .cta-info-panel > p {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.bv-page .cta-contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.bv-page .cta-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bv-page .cta-contact-row i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-top: 3px;
  width: 20px;
  text-align: center;
}
.bv-page .cta-contact-row span {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}
.bv-page .cta-social-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.bv-page .cta-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
  font-size: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.bv-page .cta-social-link:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  border-color: var(--accent-cyan);
}
.bv-page .cta-form-panel {
  padding: 56px 48px;
}
.bv-page .cta-form-panel h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}

/* --- GEO SECTION --- */
.bv-page .geo-section {
  background: var(--bg-hero);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.bv-page .geo-region-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.bv-page .geo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
  text-decoration: none;
}
.bv-page .geo-chip:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.bv-page .geo-chip i {
  color: var(--accent-cyan);
  font-size: 0.7rem;
}

/* --- PRO-TIP CALLOUT --- */
.bv-page .pro-tip {
  background: #ffffff;
  border-left: 4px solid var(--accent-cyan);
  padding: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: #0369a1;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.bv-page .pro-tip i {
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- SIDEBAR CARD (for comparison/prompt pages) --- */
.bv-page .sidebar-card {
  background: var(--bg-hero);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.bv-page .sidebar-card.toc h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.bv-page .sidebar-card.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bv-page .sidebar-card.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.bv-page .sidebar-card.toc a:hover {
  color: var(--accent-cyan);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.bv-page .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.bv-page .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 991px) {
  .bv-page .card-grid--3,
  .bv-page .card-grid--2,
  .bv-page .card-grid--4 {
    grid-template-columns: 1fr;
  }
  .bv-page .cta-grid {
    grid-template-columns: 1fr;
  }
  .bv-page .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .bv-page .stat-item:not(:last-child)::after {
    display: none;
  }
  .bv-page .hero-section {
    padding: 120px 20px 70px;
    min-height: auto;
  }
  .bv-page .cta-info-panel,
  .bv-page .cta-form-panel {
    padding: 40px 28px;
  }
  .bv-page .dark-feature-grid {
    grid-template-columns: 1fr;
  }
  .bv-page .image-feature-card.interior-card {
    width: 100%;
    height: 300px;
  }
  .bv-page .image-feature-card.exterior-card {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .bv-page .sec-pad {
    padding: 60px 16px;
  }
  .bv-page .sec-pad-lg {
    padding: 80px 16px;
  }
  .bv-page .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .bv-page .icon-mural {
    grid-template-columns: repeat(2, 1fr);
  }
  .bv-page .hero-trust {
    gap: 10px;
  }
  .bv-page .hero-trust-chip {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

/* --- FOOTER MARGIN FIX --- */
.bv-page ~ #master-footer-placeholder,
.bv-page + #master-footer-placeholder {
  margin-top: -60px;
}
