:root {
  --bg: #f4f6f9;
  --ink: #0f1f2d;
  --muted: #516072;
  --panel: #ffffff;
  --line: #d9e1ea;
  --brand: #0d6e8c;
  --brand-2: #0b4f66;
  --accent: #f6a12f;
  --shadow: 0 16px 40px rgba(9, 36, 55, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Manrope', sans-serif;
  background: radial-gradient(circle at 12% 6%, #e0ecf5 0%, transparent 35%), radial-gradient(circle at 94% 8%, #fee9c9 0%, transparent 28%), var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1150px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(13, 55, 82, 0.12);
  background: rgba(244, 246, 249, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f6fbff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #123146;
  transition: 0.2s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  background: #dbeaf1;
  color: var(--brand-2);
}

.page-main {
  padding: 2.1rem 0 3.7rem;
}

.hero {
  background:
    linear-gradient(130deg, rgba(7, 40, 58, 0.9) 0%, rgba(11, 66, 87, 0.86) 52%, rgba(12, 95, 122, 0.8) 100%),
    url('/assets/img/hero.png') center/cover no-repeat;
  border-radius: 24px;
  padding: clamp(1.2rem, 3vw, 2.3rem);
  box-shadow: var(--shadow);
  color: #f3f8fb;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 161, 47, 0.35), transparent 70%);
  top: -70px;
  right: -45px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  margin: 0 0 0.6rem;
  color: #a9d7ea;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  font-family: 'Sora', sans-serif;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: #d8e8f0;
}

.hero-stats {
  display: grid;
  gap: 0.75rem;
  align-content: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(218, 235, 245, 0.25);
  border-radius: 14px;
  padding: 0.85rem;
}

.stat-card strong {
  display: block;
  font-size: 1.4rem;
}

.section {
  margin-top: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fafc);
  border-radius: 14px;
  padding: 0.95rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 140, 0.45);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--brand-2);
  font-weight: 700;
}

.research-card {
  position: relative;
  overflow: hidden;
}

.research-card::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: -62px;
  top: -62px;
  background: radial-gradient(circle, rgba(13, 110, 140, 0.12), transparent 72%);
}

.research-head {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 0.35rem;
}

.research-head h3 {
  margin: 0;
}

.research-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  font-size: 1.06rem;
  color: #fff;
  box-shadow: 0 12px 25px rgba(13, 60, 84, 0.25);
}

.icon-probability {
  background: linear-gradient(145deg, #0d6e8c, #075a75);
}

.icon-analytics {
  background: linear-gradient(145deg, #0e7f7a, #0a5f6f);
}

.icon-decision {
  background: linear-gradient(145deg, #f6a12f, #cb7f12);
}

.kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kpi .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.8rem;
  color: #194b62;
  background: #e8f2f7;
  border: 1px solid #cde0ea;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
}

.stats-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #f4f8fb);
  padding: 0.85rem;
}

.stat-tile .label {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a6075;
  font-weight: 700;
}

.stat-tile .value {
  margin-top: 0.2rem;
  font-size: 1.38rem;
  font-family: 'Sora', sans-serif;
  color: #0d2f42;
  font-weight: 800;
}

.stat-tile p {
  margin-top: 0.3rem;
  font-size: 0.88rem;
}

.viz-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  background: #fbfdff;
}

.chart-wrap {
  position: relative;
  height: 270px;
}

.chart-card .hint {
  margin-top: 0.65rem;
  font-size: 0.84rem;
  color: #5a6b7c;
}

.lesson-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lesson-step {
  border: 1px dashed #b8cfdb;
  border-radius: 14px;
  background: #f8fcff;
  padding: 0.9rem;
}

.lesson-step .num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(145deg, #0d6e8c, #0b4f66);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.progress-list {
  display: grid;
  gap: 0.65rem;
}

.progress-item {
  display: grid;
  gap: 0.35rem;
}

.progress-item .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #24475e;
}

.progress-item .bar {
  height: 9px;
  border-radius: 999px;
  background: #dbe8f0;
  overflow: hidden;
}

.progress-item .bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d6e8c, #0c8a74);
}

.note-box {
  border-left: 4px solid #0d6e8c;
  background: #f3fbff;
}

.media-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1.2fr 1fr;
}

.media-image {
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  position: relative;
}

.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-image .caption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: rgba(5, 21, 31, 0.74);
  color: #dbeaf2;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
}

.photo-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 290px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.photo-card:hover img {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 0.9rem 0.9rem;
  background: linear-gradient(to top, rgba(6, 23, 34, 0.82), rgba(6, 23, 34, 0.15));
}

.photo-overlay h3 {
  margin: 0 0 0.25rem;
  color: #f5fbff;
}

.photo-overlay p {
  margin: 0;
  color: #d7e8f2;
}

.highlight {
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, #fffaf3, #fff);
}

.table-wrap {
  overflow-x: auto;
}

.section-stack > * + * {
  margin-top: 0.95rem;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.58rem;
  font-size: 0.92rem;
}

th {
  color: #1c4257;
  font-family: 'Sora', sans-serif;
}

.site-footer {
  background: #000;
  color: #e9f1f7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.4rem;
}

.footer-inner {
  padding: 1.8rem 0 1rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.2fr 1fr;
}

.footer-inner p {
  margin: 0;
  color: #b8c8d4;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0d6e8c;
  padding: 4px;
}

.footer-disclaimer {
  margin-top: 0.35rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer-disclaimer a {
  color: #f7c96a;
  text-decoration: underline;
  font-weight: 700;
}

.footer-disclaimer a:hover {
  color: #ffd986;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
  font-size: 0.9rem;
  color: #e9f3fb;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.7rem 0 1rem;
  color: #a8bccb;
  font-size: 0.78rem;
}

.cookie-settings-row {
  padding-bottom: 0.65rem;
}

.cookie-settings-link {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #f2f7fb;
  padding: 0.44rem 0.78rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.86rem;
}

.cookie-settings-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
}

.cookie-banner-inner {
  background: #08131d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  color: #e5f0f8;
  padding: 0.95rem 1rem;
}

.cookie-banner-inner h3 {
  margin-bottom: 0.35rem;
}

.cookie-banner-inner p {
  margin: 0 0 0.6rem;
  color: #c2d2df;
}

.cookie-banner-inner a {
  color: #f7c96a;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-cookie {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.42rem 0.76rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-accept {
  background: #0d6e8c;
  color: #eef8ff;
}

.btn-reject {
  background: #2d3a46;
  color: #dce8f2;
}

.btn-manage {
  background: transparent;
  color: #dce8f2;
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 10, 16, 0.68);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-panel {
  width: min(560px, 96vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cookie-panel p {
  margin-bottom: 0.8rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.58rem 0.7rem;
  margin-bottom: 0.45rem;
}

.cookie-option input {
  width: 18px;
  height: 18px;
}

.is-hidden {
  display: none !important;
}

.disclaimer {
  margin-top: 0.7rem;
  font-size: 0.88rem;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.muted {
  color: var(--muted);
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-title i {
  color: var(--brand);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .stats-grid,
  .viz-grid,
  .lesson-grid,
  .media-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 4vw;
    right: 4vw;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.55rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    border-radius: 10px;
  }
}
