:root {
  --bg: #f3f8ff;
  --ink: #10211d;
  --muted: #4d6460;
  --panel: #ffffff;
  --line: #d6e2df;
  --accent: #0f8b8d;
  --accent-dark: #0b5f68;
  --accent-soft: #e8f8f8;
  --amber: #d48b00;
  --blue: #1f6feb;
  --shadow: 0 16px 34px rgba(9, 23, 20, 0.1);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Sora", "Plus Jakarta Sans", "Avenir Next", "Noto Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(700px 300px at 5% -5%, rgba(127, 222, 214, 0.34), transparent 62%),
    radial-gradient(560px 280px at 100% 8%, rgba(143, 177, 255, 0.26), transparent 65%),
    linear-gradient(180deg, #f8fbff 0%, #eef5f3 48%, #f8fbff 100%);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(45px);
  opacity: 0.3;
  z-index: -1;
}

.orb-a {
  width: 300px;
  height: 300px;
  background: #6ddac8;
  top: -84px;
  right: -48px;
}

.orb-b {
  width: 250px;
  height: 250px;
  background: #bad3ff;
  bottom: -70px;
  left: -20px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 16px 44px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #0e8d7c 0%, #0f5f88 56%, #203f92 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 240px;
  height: 240px;
  right: -84px;
  top: -90px;
  background: rgba(255, 255, 255, 0.15);
}

.hero::after {
  width: 180px;
  height: 180px;
  right: 170px;
  bottom: -100px;
  background: rgba(255, 255, 255, 0.1);
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.intro {
  font-size: 16px;
  line-height: 1.65;
  max-width: 860px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.chips span {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
}

.home-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: #0f4f62;
}

.btn-primary:hover {
  background: #f3fdff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.26);
}

.home-stats {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.stat-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #526a66;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.kpi p { margin: 0; color: var(--muted); font-size: 12px; }
.kpi h2 { margin: 8px 0 0; font-size: 26px; line-height: 1; }

.panel,
.table-panel,
.link-grid article,
.faq,
.home-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.table-panel,
.faq {
  margin-top: 14px;
  padding: 14px;
}

.table-wrap {
  overflow: auto;
  max-height: 70vh;
  position: relative;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1540px;
  font-size: 13px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #f2faf8;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px;
  box-shadow: inset 0 -1px 0 var(--line);
}

td {
  background: #fff;
  border-bottom: 1px solid #edf1ef;
  padding: 10px;
  vertical-align: top;
  line-height: 1.45;
}

.company-row {
  cursor: pointer;
}

.company-row:hover {
  background: #f7fcfb;
}

.company-row.active td {
  background: #eef9f6;
}

.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiny { font-size: 11px; color: var(--muted); }

.company-cell {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.company-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dce6e2;
  background: #f9fcfb;
  object-fit: cover;
}

.company-snippet {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #476260;
}

.type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
}

.type.public { background: #deecff; color: #214f96; border-color: #c3dafb; }
.type.private { background: #fff2dc; color: #8f5d00; border-color: #f3d9a8; }
.type.subsidiary { background: #e8f4ea; color: #21643c; border-color: #cbe5d1; }
.estimate { color: var(--amber); font-weight: 700; }

.link-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.link-grid article {
  padding: 14px;
}

.link-grid h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.link-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.rel-item {
  margin: 0;
}

.rel-link {
  display: block;
  border-radius: 12px;
  border: 1px solid #dce8e4;
  background: #f8fcfb;
  padding: 9px 10px;
  color: #0b5566;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.rel-link:hover {
  transform: translateY(-1px);
  border-color: #b7d8cf;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 35, 30, 0.08);
  text-decoration: none;
}

.rel-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.rel-path {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #6f8480;
}

.company-detail {
  background: #f8fcfb;
  border: 1px solid #dbe8e4;
  border-radius: 14px;
  padding: 14px;
}

.company-detail-head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.company-detail-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid #d8e3de;
  background: #fff;
  object-fit: cover;
}

.company-detail h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.detail-signals {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.detail-signal {
  border: 1px solid #dbe8e4;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.detail-signal-label {
  font-size: 11px;
  color: #62807a;
}

.detail-signal-value {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1e3834;
}

#detailIntro {
  margin: 10px 0 0;
  color: #243a37;
  line-height: 1.55;
}

.home-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-card {
  padding: 16px;
}

.home-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.home-card h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.home-card .mini {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.home-note {
  margin: 0 0 12px;
  color: #3c5552;
  font-size: 14px;
  line-height: 1.5;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.link-list li {
  background: #f8fbff;
  border: 1px solid #e2ebff;
  border-radius: 12px;
  padding: 8px 10px;
}

.link-list a {
  color: #0a5266;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}

.link-list a:hover {
  text-decoration: underline;
}

.list-index {
  color: #7d8f8b;
  font-size: 12px;
  margin-right: 7px;
}

.list-path {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #6a7f7b;
}

.list-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mini-logo {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #d7e3e0;
  background: #fff;
  object-fit: cover;
}

.mini-logo-empty {
  font-size: 11px;
  color: #6d8480;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul { margin: 0; padding-left: 18px; }

.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: 1fr; }
  .table-wrap { max-height: none; }
  .hero { padding: 22px; }
  h1 { font-size: clamp(28px, 8vw, 40px); }
}

@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .home-stats { grid-template-columns: 1fr; }
  .home-card h2 { font-size: 28px; }
  .detail-signals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}