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

:root {
  --bg: #09090b;
  --bg-alt: #0f0f12;
  --bg-card: #141418;
  --bg-card-hover: #1a1a20;
  --border: rgba(255, 255, 255, 0.07);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #25d366;
  --accent-hover: #1fb855;
  --gold: #d4a853;
  --silver: #9ca3af;
  --bronze: #c17f59;
  --up: #34d399;
  --down: #f87171;
  --radius: 14px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, sans-serif;
  --container: 1120px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(5rem + var(--safe-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 20% -10%, rgba(212, 168, 83, 0.09), transparent),
    radial-gradient(ellipse 50% 35% at 90% 30%, rgba(37, 211, 102, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.topbar-logo {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.22);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  max-width: 52ch;
}

.hero-lead--secondary {
  margin-bottom: 1.75rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.stat-card--accent {
  border-color: rgba(37, 211, 102, 0.25);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), var(--bg-card));
}

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 640px;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-desc strong {
  color: var(--text);
}

/* Overview */
.overview-grid {
  display: grid;
  gap: 1rem;
}

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.overview-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.overview-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.overview-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.overview-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.rank-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rank-table th,
.rank-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.rank-table th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.rank-table tbody tr:last-child td {
  border-bottom: none;
}

.rank-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.cell-highlight {
  font-weight: 700;
  color: var(--text);
}

.rank-badge {
  font-weight: 600;
  white-space: nowrap;
}

.rank-badge--gold { color: var(--gold); }
.rank-badge--silver { color: var(--silver); }
.rank-badge--bronze { color: var(--bronze); }

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pill--warn {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.pill--up {
  color: var(--up);
  background: rgba(52, 211, 153, 0.12);
}

/* Volume bars */
.volume-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 56px;
  align-items: center;
  gap: 0.75rem;
}

.bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s ease;
}

.bar-fill--gold { background: linear-gradient(90deg, var(--gold), #e8c878); }
.bar-fill--silver { background: linear-gradient(90deg, #6b7280, var(--silver)); }
.bar-fill--up { background: linear-gradient(90deg, #059669, var(--up)); }

.bar-num {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-muted);
}

/* MSCI */
.msci-grid {
  display: grid;
  gap: 1rem;
}

.msci-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.msci-num {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.msci-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.msci-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Stock cards */
.stocks-grid {
  display: grid;
  gap: 1.25rem;
}

.stock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, background 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stock-card:hover {
  background: var(--bg-card-hover);
}

.stock-card--gold { border-color: rgba(212, 168, 83, 0.18); }
.stock-card--silver { border-color: rgba(156, 163, 175, 0.15); }
.stock-card--bronze { border-color: rgba(193, 127, 89, 0.18); }

.stock-card--highlight {
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.07) 0%, var(--bg-card) 55%);
  border-color: rgba(52, 211, 153, 0.22);
}

.stock-rank {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.stock-card--gold .stock-rank { color: var(--gold); }
.stock-card--silver .stock-rank { color: var(--silver); }
.stock-card--bronze .stock-rank { color: var(--bronze); }

.stock-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
}

.stock-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stock-code,
.stock-sector {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.stock-sector {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
}

.stock-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.stock-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  align-self: flex-start;
}

.metric-tag--up {
  color: var(--up);
  background: rgba(52, 211, 153, 0.12);
}

.stock-story h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stock-story p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stock-highlight {
  color: var(--text) !important;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.5rem !important;
}

.stock-card--highlight .stock-highlight {
  border-left-color: var(--up);
}

.stock-points {
  list-style: none;
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stock-points li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.stock-points li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.stock-points strong {
  color: var(--text);
}

/* Compare */
.compare-grid {
  display: grid;
  gap: 1.25rem;
}

.compare-col {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.compare-col--down {
  background: linear-gradient(160deg, rgba(248, 113, 113, 0.06), var(--bg-card));
  border-color: rgba(248, 113, 113, 0.15);
}

.compare-col--up {
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.08), var(--bg-card));
  border-color: rgba(52, 211, 153, 0.2);
}

.compare-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.compare-stocks {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.compare-col li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.compare-col--up li::before {
  background: var(--up);
}

/* Insights */
.insights-list {
  list-style: none;
  counter-reset: insight;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.insights-list li {
  counter-increment: insight;
  display: grid;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.15rem 3.25rem;
  position: relative;
}

.insights-list li::before {
  content: counter(insight);
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.15);
  border-radius: 8px;
}

.insights-list strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.insights-list span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Service */
.service-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.service-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.65rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cta-block {
  text-align: center;
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.08), transparent);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
}

.cta-headline {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 720px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Buttons */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.32);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-whatsapp:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
  transform: translateY(0) scale(0.98);
}

.btn-whatsapp--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-whatsapp--hero {
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.btn-whatsapp--lg {
  width: 100%;
  max-width: 420px;
  min-height: 64px;
  padding: 1.15rem 2rem;
  font-size: 1.15rem;
}

.btn-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

/* Sticky CTA — mobile & tablet */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem calc(0.75rem + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 75%, transparent);
  pointer-events: none;
}

.sticky-cta .btn-whatsapp {
  pointer-events: auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  min-height: 56px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.75rem;
  color: rgba(161, 161, 170, 0.65);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 0.5rem;
}

.footer-copy {
  font-size: 0.68rem !important;
  opacity: 0.7;
}

/* ========== Responsive: Tablet ========== */
@media (min-width: 600px) {
  body {
    padding-bottom: 0;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .msci-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .btn-whatsapp--hero {
    width: auto;
    min-width: 280px;
  }

  .bar-row {
    grid-template-columns: 120px 1fr 64px;
  }
}

/* ========== Responsive: Desktop ========== */
@media (min-width: 900px) {
  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.35rem 1.5rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .stocks-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .msci-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .sticky-cta {
    display: none;
  }

  .topbar .btn-whatsapp--sm {
    min-height: 44px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 1100px) {
  .container {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }
}
