/* ============================================
   Bastille Security - bastillesecurity.ai
   Global Stylesheet
   ============================================ */

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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --bg-card-hover: #1f2b42;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --white: #ffffff;
  --border: #1f2937;
  --success: #10b981;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }

img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--white); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
strong { color: var(--white); }
em { color: var(--accent-light); font-style: italic; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--bg-secondary); }

/* --- Navigation --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: var(--bg-primary);
}

.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent-light); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); color: var(--white) !important; }

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--bg-primary);
    border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; gap: 1rem;
  }
  .nav-links.open { display: flex; }
}

/* --- Hero --- */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero .trust-bar {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,0.3); }

.btn-secondary {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: rgba(59,130,246,0.1); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--bg-primary);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,158,11,0.3); }

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.25s;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-2px); }

.card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1rem; }
.card .card-price { color: var(--gold); font-weight: 600; font-size: 0.9rem; }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header p { color: var(--text-secondary); margin-top: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

/* --- Service Blocks --- */
.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.service-block:hover { border-color: rgba(59,130,246,0.3); }

.service-block .service-meta {
  display: flex; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.service-block .service-meta span {
  font-size: 0.85rem; color: var(--text-muted);
}
.service-block .service-meta .price { color: var(--gold); font-weight: 600; }

.service-block h3 { margin-bottom: 0.75rem; font-size: 1.3rem; }
.service-block .service-desc { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.05rem; }

.service-block ul {
  list-style: none; margin-bottom: 1.5rem;
}
.service-block ul li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.service-block ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
}

.service-block .deliverable {
  background: rgba(59,130,246,0.08);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.service-block .best-for {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(59,130,246,0.15);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card h3 { margin-bottom: 1rem; }
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.pricing-card .price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-card ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.pricing-card ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--success);
  font-weight: 700;
}

/* --- Credential / Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.stat-card h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.stat-card p { color: var(--text-secondary); font-size: 0.85rem; }

/* --- Steps / Process --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  text-align: center;
  position: relative;
}

.step .step-number {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.step h4 { margin-bottom: 0.5rem; }
.step p { color: var(--text-secondary); font-size: 0.9rem; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 2.5rem auto 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item .faq-q {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.faq-item .faq-a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(245,158,11,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 2rem; }

/* --- Free Tool / Highlight Banner --- */
.highlight-banner {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.highlight-banner h2 { margin-bottom: 1rem; }
.highlight-banner ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.highlight-banner ul li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
}
.highlight-banner ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.highlight-banner .muted { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }

/* --- Approach / Values Grid --- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.approach-item h4 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.approach-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Bio Section --- */
.bio-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .bio-section { grid-template-columns: 1fr; }
}

.bio-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.bio-sidebar h3 { margin-bottom: 1.5rem; }
.bio-sidebar .bio-list { list-style: none; }
.bio-sidebar .bio-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.bio-sidebar .bio-list li:last-child { border-bottom: none; }
.bio-sidebar .bio-list li strong { color: var(--white); }

/* --- Contact Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

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

.contact-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-sidebar .contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.contact-sidebar .contact-item h4 { margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-sidebar .contact-item p { color: var(--text-primary); font-size: 1rem; margin: 0; }

/* --- Course Modules --- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  counter-increment: module;
}
.module-card:hover { border-color: var(--accent); }

.module-card .module-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}
.module-card h4 { margin-bottom: 0.5rem; }
.module-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* --- Audience Cards --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.audience-card h4 { margin-bottom: 0.5rem; }
.audience-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* --- vCISO Tiers --- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.tier-card h4 { margin-bottom: 0.25rem; }
.tier-card .tier-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.tier-card .tier-price { color: var(--gold); font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.tier-card ul { list-style: none; }
.tier-card ul li { padding: 0.25rem 0 0.25rem 1.2rem; position: relative; color: var(--text-secondary); font-size: 0.9rem; }
.tier-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* --- Newsletter Banner --- */
.newsletter-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) { .newsletter-banner { flex-direction: column; text-align: center; } }
.newsletter-banner h3 { margin-bottom: 0.5rem; }
.newsletter-banner ul { list-style: none; color: var(--text-secondary); font-size: 0.9rem; }
.newsletter-banner ul li { padding: 0.15rem 0; }

/* --- Instructor Section --- */
.instructor-section {
  display: flex;
  gap: 2.5rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}
@media (max-width: 768px) { .instructor-section { flex-direction: column; } }

.instructor-avatar {
  width: 120px; height: 120px; min-width: 120px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 900; color: var(--bg-primary);
}

.instructor-info h3 { margin-bottom: 0.5rem; }
.instructor-info .instructor-tagline { color: var(--accent-light); font-weight: 600; margin-bottom: 1rem; }
.instructor-info ul { list-style: none; }
.instructor-info ul li { padding: 0.2rem 0 0.2rem 1.2rem; position: relative; color: var(--text-secondary); font-size: 0.9rem; }
.instructor-info ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.instructor-info blockquote {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--gold);
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.95rem;
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  list-style: none; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

.footer-tagline {
  color: var(--text-muted); font-size: 0.85rem; font-style: italic; margin-bottom: 0.5rem;
}
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.max-w-prose { max-width: 700px; margin-left: auto; margin-right: auto; }
