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

:root {
  --black:   #080c0a;
  --dark:    #0e1510;
  --card:    #121a14;
  --card2:   #162019;
  --border:  #1c2b1f;
  --border2: #243528;
  --yellow:  #d4ff00;
  --yellow-dim: rgba(212,255,0,0.08);
  --yellow-glow: rgba(212,255,0,0.15);
  --white:   #eef4ee;
  --muted:   #5a7060;
  --muted2:  #3d5244;
  --coke:    #e8001c;
  --coke-dim: rgba(232,0,28,0.12);
}

html { scroll-behavior: smooth; }

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

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,12,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .nav-left { display: flex; align-items: center; gap: 24px; }
nav img.logo-nav { width: 210px; height: 260px; }

nav .nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border2);
}

nav .nav-report {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

nav .nav-right { display: flex; align-items: center; gap: 12px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-coke {
  background: var(--coke-dim);
  color: #ff4d5a;
  border: 1px solid rgba(232,0,28,0.2);
}

.pill-yellow {
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid rgba(212,255,0,0.2);
}

.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── COVER ─── */
.cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 48px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.cover-bg-symbol {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 680px;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.cover-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,255,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,255,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.cover-glow {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,255,0,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.cover-inner { position: relative; max-width: 860px; }

.cover-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.cover-eyebrow img { height: 120px; width: 120px; opacity: 0.7; }

.cover-eyebrow-line {
  width: 1px; height: 16px;
  background: var(--border2);
}

.cover-eyebrow-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover h1 {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cover h1 .accent { color: var(--yellow); }

.cover-location {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.cover-location strong {
  color: var(--white);
  font-weight: 600;
}

.cover-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.cover-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.cover-meta-item .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.6;
}

.cover-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  width: fit-content;
}

.cover-stat {
  padding: 24px 40px 24px 0;
  border-right: 1px solid var(--border);
  margin-right: 40px;
}

.cover-stat:last-child {
  border-right: none;
  margin-right: 0;
}

.cover-stat .val {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}

.cover-stat .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}

.cover-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ─── MAIN LAYOUT ─── */
main { max-width: 1440px; margin: 0 auto; padding: 72px 48px 100px; }

section { margin-bottom: 72px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-header img.s-logo {
  height: 18px;
  opacity: 0.35;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.section-header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.section-sub {
  font-size: 13px;
  color: var(--muted);
}

/* ─── KPI GRID ─── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.kpi-card {
  background: var(--card);
  padding: 28px 24px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.kpi-card:hover { background: var(--card2); }
.kpi-card:hover::after { transform: scaleX(1); }

.kpi-icon { font-size: 20px; margin-bottom: 16px; }

.kpi-val {
  font-size: 34px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.03em;
}

.kpi-unit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* ─── AREAS ─── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.area-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.area-card:hover {
  border-color: rgba(212,255,0,0.25);
  transform: translateY(-2px);
}

.area-card-bg {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 100px;
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}

.area-label-top {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.area-val {
  font-size: 52px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  letter-spacing: -0.03em;
}

.area-val-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.area-bar {
  height: 3px;
  background: var(--border2);
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
}

.area-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
}

/* ─── CHART CARDS ─── */
.chart-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.chart-card-header .title { font-size: 15px; font-weight: 700; }
.chart-card-header .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.chart-card-header img {
  height: 16px;
  opacity: 0.2;
  flex-shrink: 0;
  margin-top: 2px;
}

.chart-wrap { position: relative; }
.chart-wrap-240 { height: 240px; }
.chart-wrap-280 { height: 280px; }
.chart-wrap-200 { height: 200px; }

/* ─── SAT BANDS ─── */
.sat-bands { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

.sat-band { display: flex; align-items: center; gap: 12px; }
.sat-band-label { font-size: 12px; color: var(--muted); width: 120px; flex-shrink: 0; }
.sat-band-bar-wrap { flex: 1; height: 6px; background: var(--border2); border-radius: 3px; overflow: hidden; }
.sat-band-bar { height: 100%; border-radius: 3px; }
.sat-band-pct { font-size: 12px; font-weight: 700; width: 42px; text-align: right; flex-shrink: 0; }

/* ─── CLUSTERS ─── */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cluster-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s;
}

.cluster-card:hover { border-color: rgba(212,255,0,0.2); }

.cluster-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.cluster-watermark {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.04;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.cluster-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cluster-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cluster-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid rgba(212,255,0,0.15);
}

.cluster-pct-big {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cluster-count {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.cluster-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.cluster-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.cm-item { display: flex; flex-direction: column; gap: 3px; }
.cm-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cm-val { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }

.cluster-eng-row {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cluster-eng-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.cluster-eng-label span:first-child { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.cluster-eng-label span:last-child { font-weight: 700; }

.cluster-eng-bar-wrap {
  height: 6px;
  background: var(--border2);
  border-radius: 3px;
  overflow: hidden;
}

.cluster-eng-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cluster-sections {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.section-chip {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.section-chip strong { color: var(--white); }

/* ─── COMPARE TABLE ─── */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.compare { width: 100%; border-collapse: collapse; }

table.compare thead tr {
  background: var(--card2);
}

table.compare th {
  padding: 14px 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.compare tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

table.compare tbody tr:last-child { border-bottom: none; }
table.compare tbody tr:hover { background: var(--card2); }

table.compare td {
  padding: 14px 20px;
  font-size: 13px;
  vertical-align: middle;
}

table.compare td:first-child { color: var(--muted); font-weight: 500; }
table.compare td.hl { color: var(--yellow); font-weight: 700; }
table.compare td.win { color: #4ade80; font-weight: 700; font-size: 12px; }
table.compare td.warn { color: #fb923c; font-weight: 700; font-size: 12px; }

/* ─── INSIGHTS ─── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.insight-card:hover {
  border-color: rgba(212,255,0,0.2);
  transform: translateY(-2px);
}

.insight-num-wrap {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(212,255,0,0.2);
  background: var(--yellow-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--yellow);
  margin-bottom: 14px;
}

.insight-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.insight-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.insight-card p strong { color: var(--white); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  background: var(--dark);
}

.footer-top {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 48px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.footer-brand img.flogo { width: 280px; height: 28px; object-fit: contain; object-position: left center; }
.footer-brand p { font-size: 12px; color: var(--muted); max-width: 280px; line-height: 1.7; }

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 40px;
  align-self: stretch;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.footer-center img { height: 64px; opacity: 0.7; }
.footer-center p { font-size: 10px; color: var(--muted2); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }

.footer-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

.footer-info-item { font-size: 12px; color: var(--muted); }
.footer-info-item strong { color: var(--white); }

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 11px; color: var(--muted2); }
.footer-bottom img { height: 32px; opacity: 0.7; }

/* ─── COUNTER ANIMATION ─── */
.count-up { display: inline; }

/* ─── TRADE-X LOGO ─── */
img[src="assets/logos/Trade-X-Logo-removebg-preview.png"] {
  filter: invert(1);
  mix-blend-mode: screen;
}

img[src="assets/logos/Simbolo_Trade-X.png"] {
  filter: invert(1);
  mix-blend-mode: screen;
}

/* ─── RESPONSIVE: Tablet largo (≤1200px) ─── */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ─── RESPONSIVE: Tablet (≤900px) ─── */
@media (max-width: 900px) {
  nav { padding: 0 24px; height: 56px; }
  nav .nav-report { display: none; }
  nav .nav-divider { display: none; }

  .cover { padding: 80px 24px 72px; min-height: auto; }
  .cover-bg-symbol { width: 360px; right: -80px; opacity: 0.03; }
  .cover-stats { grid-template-columns: 1fr 1fr; width: 100%; }
  .cover-stat {
    padding: 20px 20px 20px 0;
    border-right: none;
    margin-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 0;
  }
  .cover-stat:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 20px; margin-right: 0; }
  .cover-stat:nth-child(3),
  .cover-stat:nth-child(4) { border-bottom: none; }
  .cover-scroll-hint { left: 24px; }

  main { padding: 48px 24px 72px; }
  section { margin-bottom: 52px; }

  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .cluster-grid { grid-template-columns: 1fr; }
  .chart-grid-2 { grid-template-columns: 1fr; }
  .chart-grid-3 { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 36px 24px 28px; }
  .footer-center { flex-direction: row; border: none; padding: 0; gap: 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
  .footer-center p { text-align: left; }
  .footer-info { align-items: flex-start; }
  .footer-bottom { padding: 16px 24px; }
}

/* ─── RESPONSIVE: Mobile (≤600px) ─── */
@media (max-width: 600px) {
  nav { padding: 0 16px; height: 52px; }
  nav img.logo-nav { height: 22px; }
  .pill { padding: 4px 10px; font-size: 10px; }
  .pill-yellow { display: none; }

  .cover { padding: 72px 16px 64px; }
  .cover-eyebrow { display: none; }
  .cover h1 { font-size: 38px; }
  .cover-location { font-size: 16px; margin-bottom: 28px; }
  .cover-meta { gap: 10px; margin-bottom: 40px; }
  .cover-meta-item { font-size: 12px; }
  .cover-stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .cover-stat .val { font-size: 32px; }
  .cover-scroll-hint { display: none; }
  .cover-bg-symbol { display: none; }

  main { padding: 32px 16px 56px; }
  section { margin-bottom: 40px; }

  .section-header img.s-logo { display: none; }

  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-val { font-size: 26px; }
  .kpi-card { padding: 20px 16px; }

  .areas-grid { grid-template-columns: 1fr; }
  .area-val { font-size: 40px; }
  .area-card { padding: 24px 20px; }

  .chart-card { padding: 20px 16px; }
  .chart-wrap-240 { height: 200px; }
  .chart-wrap-200 { height: 180px; }

  .cluster-card { padding: 20px 16px; }
  .cluster-pct-big { font-size: 36px; }
  .cluster-metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px 12px; }

  .insight-grid { grid-template-columns: 1fr; }

  table.compare th,
  table.compare td { padding: 10px 12px; font-size: 12px; }
  table.compare th { font-size: 9px; }

  .footer-top { padding: 28px 16px 20px; }
  .footer-bottom { padding: 14px 16px; flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-bottom img { display: none; }
  .footer-brand p { display: none; }
  .footer-center img:last-child { display: none; }
}

/* ─── RESPONSIVE: Mobile pequeno (≤380px) ─── */
@media (max-width: 380px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .cover-stats { grid-template-columns: 1fr; }
  .cover-stat { border-right: none !important; padding-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .cover-stat:last-child { border-bottom: none !important; }
}

/* ─── Remove hover transforms em touch ─── */
@media (hover: none) {
  .area-card:hover,
  .insight-card:hover { transform: none; }
  .kpi-card:hover::after { transform: scaleX(0); }
}
