/* ===========================================
   Maverick AI Consulting — Shared Stylesheet
   Used by all product pages (not index.html
   yet — kept self-contained for compatibility)
   =========================================== */

:root {
  --bg-deep: #050B1A;
  --bg-dark: #0A1428;
  --bg-card: #0F1E3A;
  --bg-card-hover: #142847;
  --primary: #1B6FDB;
  --primary-bright: #2E8AF5;
  --primary-deep: #003B8C;
  --accent-cyan: #7DF9FF;
  --accent-silver: #E8F0F8;
  --text-bright: #FFFFFF;
  --text-body: #C8D4E6;
  --text-muted: #7A8BA8;
  --border: rgba(125, 249, 255, 0.15);
  --border-strong: rgba(125, 249, 255, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.65;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 111, 219, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 111, 219, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-cyan); bottom: -100px; right: -100px; opacity: 0.12; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(5, 11, 26, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-bright);
  letter-spacing: 2px;
  text-decoration: none;
}
.nav-brand svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-cyan); }
.nav-links a.active { color: var(--accent-cyan); }
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: white !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 20px rgba(46, 138, 245, 0.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(46, 138, 245, 0.5); }

/* ===== HERO ===== */
.page-hero {
  padding: 160px 40px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero .tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-bright);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.page-hero h1 .accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  font-size: 19px;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
section { position: relative; z-index: 1; padding: 80px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 920px; margin: 0 auto; }
.container-wide { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: rgba(125, 249, 255, 0.05);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 48px;
}
.section-header { margin-bottom: 56px; text-align: center; }
.section-header .section-subtitle { max-width: 700px; margin-left: auto; margin-right: auto; }

.section-shaded { background: linear-gradient(180deg, transparent, rgba(15, 30, 58, 0.3), transparent); }

/* ===== WHY/BENEFIT CARDS (3-column reusable) ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: all 0.3s;
}
.why-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.why-card .why-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(27, 111, 219, 0.2), rgba(125, 249, 255, 0.1));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}
.why-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: var(--text-bright);
  margin-bottom: 10px;
  font-weight: 600;
}
.why-card p { font-size: 15px; line-height: 1.65; }

/* ===== TIER / PRICING CARDS ===== */
.tier-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}
.tier-grid.two-col { grid-template-columns: 1fr 1fr; }
.tier-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
.tier-card {
  background: linear-gradient(180deg, var(--bg-card), rgba(15, 30, 58, 0.5));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.tier-card.featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 50px rgba(125, 249, 255, 0.15);
}
.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-bright));
  color: var(--bg-deep);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 6px 14px;
  border-radius: 100px;
}
.tier-card .tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--accent-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.tier-card .tier-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  color: var(--text-bright);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}
.tier-card .tier-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 40px;
}
.tier-card .tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.tier-card .tier-price .amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
}
.tier-card .tier-price .currency { font-size: 22px; color: var(--text-muted); font-weight: 500; }
.tier-card .tier-price .suffix { font-size: 16px; color: var(--text-muted); }
.tier-card .tier-period { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.tier-card .tier-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s;
  margin-bottom: 28px;
  display: block;
}
.tier-card .tier-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(46, 138, 245, 0.4); }
.tier-card.featured .tier-cta {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-bright));
  color: var(--bg-deep);
}
.tier-card .tier-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.tier-card .tier-list li {
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text-body);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(125, 249, 255, 0.06);
}
.tier-card .tier-list li:last-child { border-bottom: none; }
.tier-card .tier-list li::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.tier-card .tier-list .section-divider {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}
.tier-card .tier-list .section-divider::before { content: ''; }

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}
.process-step .step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.process-step h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  color: var(--text-bright);
  margin-bottom: 8px;
  font-weight: 600;
}
.process-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== USE CASE CARDS (for Build page) ===== */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.usecase-card {
  background: linear-gradient(180deg, var(--bg-card), rgba(15, 30, 58, 0.5));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.usecase-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.usecase-card .usecase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.usecase-card .usecase-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(27, 111, 219, 0.25), rgba(125, 249, 255, 0.15));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.usecase-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: var(--text-bright);
  font-weight: 600;
  line-height: 1.2;
}
.usecase-card .usecase-tag {
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}
.usecase-card > p {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 18px;
  line-height: 1.65;
}
.usecase-card .impact {
  margin-top: auto;
  padding: 14px 16px;
  background: rgba(125, 249, 255, 0.05);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--text-body);
}
.usecase-card .impact strong {
  color: var(--accent-cyan);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

/* ===== FAQ ===== */
.audit-faq { display: flex; flex-direction: column; gap: 14px; }
.audit-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
}
.audit-faq-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-bright);
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 600;
}
.audit-faq-item p { font-size: 15px; line-height: 1.7; }

/* ===== DELIVERY NOTE (callout box) ===== */
.delivery-note {
  text-align: center;
  margin-top: 16px;
  padding: 18px 24px;
  background: rgba(125, 249, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-body);
}
.delivery-note strong { color: var(--accent-cyan); }

/* ===== CHECKLIST (for what-to-expect) ===== */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  max-width: 760px;
  margin: 0 auto;
}
.checklist .check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text-body);
}
.checklist .check-item::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
}

/* ===== CTA SECTION ===== */
.cta-section { padding: 100px 40px; }
.cta-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-card), rgba(15, 30, 58, 0.6));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-wrap::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  background: radial-gradient(circle, rgba(125, 249, 255, 0.08) 0%, transparent 50%);
  animation: slowRotate 30s linear infinite;
  z-index: 0;
}
.cta-content { position: relative; z-index: 1; }
.cta-wrap h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  color: var(--text-bright);
  margin-bottom: 16px;
  font-weight: 700;
}
.cta-wrap p { font-size: 17px; margin-bottom: 32px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(46, 138, 245, 0.4);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(46, 138, 245, 0.6); }

.btn-secondary {
  background: transparent;
  color: var(--text-bright);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--accent-cyan); }

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== CTA → Star morph animation ===== */
/* When a Book-a-Call CTA is clicked, JS adds .cta-animating then .cta-morphing.
   The button's text fades out, the branded star fades in and spins rapidly.
   At 1.7s the .cta-burst class adds a radial flash before navigation. */
.cta-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}
.cta-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(125, 249, 255, 0.6));
}
.cta-star svg { width: 100%; height: 100%; display: block; transform-origin: center; }

.btn-primary.cta-animating,
.nav-cta.cta-animating,
.tier-cta.cta-animating {
  position: relative;
  overflow: visible;
}
.cta-morphing {
  background: rgba(15, 30, 58, 0.0) !important;
  box-shadow: none !important;
  color: transparent !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.2s ease !important;
}
.cta-morphing .cta-text { opacity: 0; }
.cta-morphing .cta-star {
  opacity: 1;
  transition: opacity 0.3s ease 0.25s;
}
.cta-morphing .cta-star svg {
  animation: ctaStarSpin 1.6s cubic-bezier(0.55, 0.06, 0.68, 0.19) 0.3s forwards;
}

@keyframes ctaStarSpin {
  0%   { transform: rotate(0deg)   scale(0.4); opacity: 0.7; }
  10%  { transform: rotate(60deg)  scale(1.05); opacity: 1; }
  100% { transform: rotate(2520deg) scale(1.3); }
}

.cta-burst {
  animation: ctaBurstFlash 0.4s ease-out forwards !important;
}
.cta-burst .cta-star {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95))
          drop-shadow(0 0 32px rgba(125, 249, 255, 0.85));
}
@keyframes ctaBurstFlash {
  0%   { box-shadow: 0 0 0 0 rgba(125, 249, 255, 0.9),
                     0 0 0 0 rgba(125, 249, 255, 0.5); }
  60%  { box-shadow: 0 0 80px 30px rgba(125, 249, 255, 0.85),
                     0 0 160px 60px rgba(125, 249, 255, 0.4); }
  100% { box-shadow: 0 0 240px 100px rgba(125, 249, 255, 0),
                     0 0 320px 140px rgba(125, 249, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-animating, .cta-morphing, .cta-burst,
  .cta-morphing .cta-star svg, .cta-text {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== FOOTER ===== */
footer {
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
footer .footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-size: 15px;
}
footer .footer-tag {
  color: var(--accent-cyan);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links a:not(.nav-cta):not(.active) { display: none; }
  .page-hero { padding: 120px 20px 40px; }
  section { padding: 60px 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .tier-grid.two-col, .tier-grid.three-col { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .cta-wrap { padding: 36px 24px; }
  .cta-wrap h2 { font-size: 26px; }
}
