/* BlueWavePixel — 2AP Pecas e Lubrificantes — Dark Theme Proposal */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0D1B2A;
  --card: #112240;
  --border: #1E3A5F;
  --primary: #1565C0;
  --blue: #039BE5;
  --cyan: #00E5FF;
  --white: #F5F7FA;
  --grey: #8892A0;
  --client: #AAFF00;
  --danger: #FF1744;
  --warning: #FF6D00;
  --medium: #FFD600;
  --success: #00E676;
  --radius: 10px;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--client); }

/* Header */
.header {
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.header .brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}
.header .brand:hover { color: var(--client); }
.header nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.header nav a {
  color: var(--grey);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.header nav a:hover,
.header nav a.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #112240 50%, #1E3A5F 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0,229,255,0.04) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(170,255,0,0.03) 0%, transparent 40%);
  pointer-events: none;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.3rem; position: relative; }
.hero .segments { color: var(--client); font-size: 1.3rem; font-weight: 700; letter-spacing: 4px; margin-bottom: 0.5rem; position: relative; }
.hero .location { color: var(--grey); font-size: 1rem; margin-bottom: 0.5rem; position: relative; }
.hero .subtitle { color: var(--cyan); font-size: 1.1rem; font-weight: 600; position: relative; }
.hero .meta { color: var(--grey); margin-top: 0.8rem; font-size: 0.85rem; position: relative; }

/* Content */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* Sections */
section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
section:hover {
  border-color: rgba(0, 229, 255, 0.3);
}
section h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--cyan);
}
section h2 .pt {
  display: block;
  font-size: 0.8rem;
  color: var(--grey);
  font-weight: 400;
  margin-top: 0.2rem;
}
section h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin: 1.5rem 0 0.8rem;
}
p { margin-bottom: 0.8rem; }
ul, ol { margin: 0.5rem 0 0.5rem 1.5rem; }
li { margin-bottom: 0.3rem; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
th {
  background: var(--primary);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--white);
}
tr:nth-child(even) td { background: rgba(17, 34, 64, 0.5); }
tr:hover td { background: rgba(0, 229, 255, 0.05); }
tfoot td, tfoot th {
  background: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 700;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-critico { background: rgba(255,23,68,0.15); color: var(--danger); border: 1px solid rgba(255,23,68,0.3); }
.badge-alto { background: rgba(255,109,0,0.15); color: var(--warning); border: 1px solid rgba(255,109,0,0.3); }
.badge-medio { background: rgba(255,214,0,0.15); color: var(--medium); border: 1px solid rgba(255,214,0,0.3); }
.badge-success { background: rgba(0,230,118,0.15); color: var(--success); border: 1px solid rgba(0,230,118,0.3); }
.badge-danger { background: rgba(255,23,68,0.15); color: var(--danger); border: 1px solid rgba(255,23,68,0.3); }
.badge-info { background: rgba(3,155,229,0.15); color: var(--blue); border: 1px solid rgba(3,155,229,0.3); }
.badge-warning { background: rgba(255,109,0,0.15); color: var(--warning); border: 1px solid rgba(255,109,0,0.3); }
.badge-client { background: rgba(170,255,0,0.15); color: var(--client); border: 1px solid rgba(170,255,0,0.3); }

/* Phase badges */
.badge-phase1 { background: rgba(0,229,255,0.15); color: var(--cyan); border: 1px solid rgba(0,229,255,0.3); }
.badge-phase2 { background: rgba(3,155,229,0.15); color: var(--blue); border: 1px solid rgba(3,155,229,0.3); }
.badge-phase3 { background: rgba(170,255,0,0.15); color: var(--client); border: 1px solid rgba(170,255,0,0.3); }
.badge-phase4 { background: rgba(255,214,0,0.15); color: var(--medium); border: 1px solid rgba(255,214,0,0.3); }

/* Score bars */
.score {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}
.score-bar {
  display: inline-block;
  width: 100px;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}
.score-fill-red { background: linear-gradient(90deg, var(--danger), #FF5252); }
.score-fill-orange { background: linear-gradient(90deg, var(--warning), #FFA726); }
.score-fill-yellow { background: linear-gradient(90deg, #FFC107, var(--medium)); }
.score-fill-green { background: linear-gradient(90deg, #00C853, var(--success)); }
.score-fill-client { background: linear-gradient(90deg, #88CC00, var(--client)); }

/* Callout boxes */
.callout {
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  border-left: 4px solid;
}
.callout-critical { background: rgba(255,23,68,0.08); border-color: var(--danger); }
.callout-success { background: rgba(0,230,118,0.08); border-color: var(--success); }
.callout-info { background: rgba(3,155,229,0.08); border-color: var(--blue); }
.callout-warning { background: rgba(255,109,0,0.08); border-color: var(--warning); }
.callout strong { display: block; margin-bottom: 0.3rem; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-item {
  text-align: center;
  padding: 1.2rem;
  background: rgba(17, 34, 64, 0.8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.stat-item:hover { border-color: var(--cyan); transform: translateY(-2px); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--cyan); }
.stat-number.client-color { color: var(--client); }
.stat-label { font-size: 0.72rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.3rem; }

/* Service cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.service-card {
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.1);
}
.service-card .card-priority {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 0 var(--radius) 0 var(--radius);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.priority-critical { background: rgba(255,23,68,0.2); color: var(--danger); }
.priority-high { background: rgba(255,109,0,0.2); color: var(--warning); }
.service-card h4 { font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.85rem; color: var(--grey); margin: 0; }
.service-card ul { margin: 0.5rem 0 0 1rem; }
.service-card li { font-size: 0.82rem; color: var(--grey); }

/* Option boxes (investment) */
.option-box {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}
.option-box.recommended {
  border-color: var(--client);
  background: rgba(170,255,0,0.03);
}
.option-box .option-label {
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background: var(--cyan);
  color: var(--bg);
  padding: 0.15rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.option-box.recommended .option-label {
  background: var(--client);
}

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.roadmap-phase {
  background: rgba(17, 34, 64, 0.6);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.roadmap-phase:hover { border-color: var(--cyan); }
.roadmap-phase h4 {
  color: var(--bg);
  background: var(--cyan);
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.roadmap-phase ul { list-style: none; margin: 0; padding: 0; }
.roadmap-phase li { padding: 0.25rem 0; font-size: 0.85rem; color: var(--grey); }
.roadmap-phase li::before { content: "\2713  "; color: var(--success); font-weight: 700; }

/* Opportunity box */
.opportunity-box {
  background: linear-gradient(135deg, var(--card), #1E3A5F);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid var(--client);
  position: relative;
}
.opportunity-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(170,255,0,0.04));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.opportunity-box strong { color: var(--client); display: block; margin-bottom: 0.5rem; font-size: 1.1rem; }
.opportunity-box p { margin: 0; line-height: 1.8; font-size: 0.95rem; color: rgba(245,247,250,0.85); }

/* SWOT cards */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.swot-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.swot-card h4 { margin-bottom: 0.8rem; font-size: 1rem; }
.swot-card ul { margin: 0; padding-left: 1.2rem; }
.swot-card li { font-size: 0.85rem; margin-bottom: 0.3rem; }
.swot-strengths { background: rgba(0,230,118,0.06); border-color: rgba(0,230,118,0.3); }
.swot-strengths h4 { color: var(--success); }
.swot-weaknesses { background: rgba(255,23,68,0.06); border-color: rgba(255,23,68,0.3); }
.swot-weaknesses h4 { color: var(--danger); }
.swot-opportunities { background: rgba(0,229,255,0.06); border-color: rgba(0,229,255,0.3); }
.swot-opportunities h4 { color: var(--cyan); }
.swot-threats { background: rgba(255,109,0,0.06); border-color: rgba(255,109,0,0.3); }
.swot-threats h4 { color: var(--warning); }

/* Doc links */
.doc-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.doc-link {
  display: block;
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s;
}
.doc-link:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
  color: var(--white);
}
.doc-link .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.doc-link .title { font-weight: 700; color: var(--cyan); }
.doc-link .desc { font-size: 0.8rem; color: var(--grey); margin-top: 0.3rem; }

/* Competitor status */
.status-strong { color: var(--success); font-weight: 600; }
.status-weak { color: var(--warning); font-weight: 600; }
.status-none { color: var(--danger); font-weight: 600; }
.status-insolvency { color: var(--danger); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; }

/* Footer */
.footer {
  background: var(--card);
  color: var(--grey);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.footer strong { color: var(--cyan); }
.footer a { color: var(--cyan); text-decoration: none; }

/* Share buttons */
.share-section {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.share-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--client);
  color: var(--bg);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(170,255,0,0.3);
  transition: all 0.3s;
}
.share-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(170,255,0,0.4);
}
.share-options {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}
.share-options.active { display: flex; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.share-whatsapp { background: #25D366; }
.share-whatsapp:hover { background: #1da851; color: #fff; }
.share-telegram { background: #0088cc; }
.share-telegram:hover { background: #006daa; color: #fff; }

/* Hero CTA */
.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.2rem;
  background: var(--client);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  position: relative;
}
.hero-cta:hover {
  background: #c4ff33;
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(170,255,0,0.4);
}

/* Pillar bar */
.pillar-bar {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
  background: rgba(255,255,255,0.05);
}
.pillar-bar div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg);
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--grey); }
.text-small { font-size: 0.85rem; }
.text-client { color: var(--client); }
.text-cyan { color: var(--cyan); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* Print */
@media print {
  .header { position: relative; backdrop-filter: none; }
  body { background: #fff; color: #000; }
  section { box-shadow: none; border: 1px solid #ddd; background: #fff; }
  section h2 { color: #000; }
  td, th { color: #000; }
  .share-section { display: none !important; }
  .hero { background: #1a1a2e; }
}

/* Tablet */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .segments { font-size: 1rem; letter-spacing: 2px; }
  section { padding: 1.2rem; }
  .header nav { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .swot-grid { grid-template-columns: 1fr; }
  .share-section { bottom: 1rem; right: 1rem; }
  .share-toggle { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .score-bar { width: 70px; }
  table { font-size: 0.82rem; }
  th, td { padding: 0.5rem 0.6rem; }
}

/* Mobile */
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.4rem; }
  .content { padding: 1rem; }
  section { padding: 1rem; margin-bottom: 1rem; }
  .service-cards { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .doc-links { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .option-box { padding: 1rem; }
  .score-bar { width: 50px; }
}
