:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-teal-dark: #0a7d6b;
  --brand-teal: #0fb39b;
  --brand-gold: #ffd166;
  --brand-coral: #f4978e;
  --brand-indigo: #3b3a7a;
  --brand-soft: #e4f5f1;
  --text-primary: #0b1f2b;
  --text-secondary: #4a5d6b;
  --muted: #70808f;
  --card-bg: rgba(255, 255, 255, 0.86);
  --border: rgba(11, 31, 43, 0.1);
  --shadow: 0 24px 60px -24px rgba(11, 31, 43, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f5fbff 0%, #f1f5f9 100%);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 7vw, 6rem);
  background-image: url("https://ptmc.pt/wp-content/uploads/2025/03/background_1920x1080_light-1-2.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(11, 31, 43, 0.75) 0%, rgba(10, 125, 107, 0.5) 60%, rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__logo {
  width: clamp(160px, 24vw, 220px);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-gold);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
}

p {
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero p {
  color: rgba(248, 251, 255, 0.86);
  max-width: 720px;
}

.content {
  flex: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 3rem);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}

.summary__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -30px rgba(11, 31, 43, 0.35);
}

.summary-card span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-card strong {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.country-pill {
  margin-top: 1.25rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: rgba(15, 179, 155, 0.12);
  border: 1px solid rgba(15, 179, 155, 0.2);
  color: var(--text-primary);
  font-size: 0.95rem;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.country-pill strong {
  color: var(--brand-teal-dark);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.table-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.table-wrapper {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(11, 31, 43, 0.08);
}

th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

td.numeric,
th.numeric {
  text-align: right;
}

tbody tr:hover {
  background: rgba(15, 179, 155, 0.08);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin: 0.15rem;
  font-size: 0.75rem;
  background: rgba(15, 179, 155, 0.16);
  color: var(--brand-teal-dark);
  white-space: nowrap;
}

.pill--subtle {
  background: rgba(59, 58, 122, 0.12);
  color: var(--brand-indigo);
}

.pill--outline {
  background: transparent;
  border: 1px solid rgba(11, 31, 43, 0.18);
  color: var(--text-secondary);
}

.input {
  background: #ffffff;
  border: 1px solid rgba(11, 31, 43, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  box-shadow: 0 4px 24px -12px rgba(11, 31, 43, 0.25);
}

.input:focus {
  outline: 3px solid rgba(15, 179, 155, 0.25);
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.top-company-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.top-company__name {
  font-weight: 600;
  color: var(--text-primary);
}

.top-company__meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.footer {
  padding: 2.5rem clamp(1.5rem, 3vw, 3rem);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 940px) {
  .hero {
    padding: clamp(2.5rem, 10vw, 4rem) clamp(1rem, 6vw, 2.5rem);
  }

  .hero__content {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .table-header {
    align-items: stretch;
  }

  .table-header input {
    width: 100%;
  }

  .country-pill {
    width: 100%;
    justify-content: space-between;
  }
}
