:root {
  --bg: #0a1628;
  --bg-soft: #0d1f35;
  --bg-card: rgba(13, 31, 53, 0.58);
  --text: #ffffff;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --green: #22c55e;
  --teal: #14b8a6;
  --blue: #3b82f6;
  --yellow: #eab308;
  --border: rgba(34, 211, 238, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--cyan);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 4.4vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

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

strong {
  color: var(--cyan);
}

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

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.16);
  text-align: left;
}

th {
  color: #ffffff;
  background: rgba(10, 22, 40, 0.8);
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header .container {
  width: min(1224px, calc(100% - 32px));
}

.narrow {
  width: min(900px, calc(100% - 32px));
}

.center {
  text-align: center;
}

.left {
  text-align: left;
}

.lead {
  max-width: 920px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.lead.small {
  font-size: 1.08rem;
  margin-top: 1.5rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  background: rgba(10, 22, 40, 0.94);
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
}

.brand img {
  height: 48px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.desktop-nav a,
.mobile-nav a {
  color: #d1d5db;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease;
}

.desktop-nav a {
  padding: 0.5rem 0.55rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

.header-side {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-pill {
  color: var(--cyan);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.ctfc-logo {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.06);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #d1d5db;
}

.mobile-nav {
  display: none;
  padding: 0.75rem 1rem 1rem;
  background: var(--bg);
  border-top: 1px solid rgba(34, 211, 238, 0.2);
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 1rem;
}

.section {
  padding: 5rem 0;
}

.gradient-section {
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.solid-section {
  background: var(--bg-soft);
}

.solid-dark {
  background: var(--bg);
}

.section-with-image {
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-x {
  transform: scaleX(-1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.72);
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.38), rgba(10, 22, 40, 0.62) 58%, var(--bg));
}

.hero {
  min-height: 670px;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(820px, calc(100% - 44px));
  margin-left: clamp(1rem, 1.2vw, 1.5rem);
  margin-right: auto;
}

.hero-content p,
.page-hero-content p {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.data-flow {
  background: var(--bg);
  padding: 4.5rem 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
  position: relative;
}

.flow-node {
  position: relative;
  text-align: center;
}

.flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 74px;
  left: calc(50% + 82px);
  width: calc(100% - 92px);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-strong), var(--cyan), var(--cyan-strong));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

.hex-icon {
  display: grid;
  place-items: center;
  width: 150px;
  height: 132px;
  margin: 0 auto 1rem;
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.55rem;
  background: rgba(6, 182, 212, 0.15);
  border: 2px solid var(--cyan);
  clip-path: polygon(30% 0, 70% 0, 100% 50%, 70% 100%, 30% 100%, 0 50%);
  filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.35));
}

.flow-node h3 {
  margin-bottom: 0.15rem;
}

.flow-node p {
  color: var(--soft);
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.feature-card,
.value-card,
.plain-card,
.service-card,
.compact-card,
.contact-form,
.contact-info,
.logo-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}

.feature-card,
.value-card,
.plain-card,
.service-card,
.compact-card {
  padding: 1.55rem;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.value-card:hover,
.service-card:hover,
.compact-card:hover {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 18px 50px rgba(6, 182, 212, 0.14);
  transform: translateY(-2px);
}

.feature-card h3,
.plain-card h3,
.service-card h3,
.compact-card h3 {
  color: #ffffff;
  margin-bottom: 0.55rem;
}

.feature-card p,
.plain-card p,
.service-card p,
.compact-card p,
.value-card p {
  color: var(--soft);
  margin-bottom: 0;
}

.value-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(34, 197, 94, 0.09));
}

.value-card h3,
.value-card h2 {
  color: var(--cyan);
}

.green-border {
  border-color: rgba(34, 197, 94, 0.35);
}

.teal-border {
  border-color: rgba(20, 184, 166, 0.35);
}

.check {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.8rem;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 999px;
  font-weight: 900;
}

.note-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.08);
}

.note-box p {
  margin: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.profile-card {
  min-height: 168px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 22, 40, 0.5);
}

.profile-card .profile-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 999px;
}

.profile-card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-blue {
  background: #2563eb;
}

.icon-blue-dark {
  background: #1d4ed8;
}

.icon-green {
  background: #00c853;
}

.icon-green-dark {
  background: #00a64a;
}

.icon-cyan {
  background: #06aeca;
}

.profile-card h3 {
  font-size: 1rem;
  line-height: 1.18;
  margin: 0;
}

.audience-section {
  padding: 4rem 0 4.5rem;
}

.audience-section h2 {
  font-size: clamp(2rem, 3vw, 2.55rem);
  margin-bottom: 1rem;
}

.audience-section .lead {
  margin-bottom: 2.8rem;
}

.cta-band {
  padding: 5rem 0;
  background: linear-gradient(135deg, #164e63, #14532d);
}

.cta-band h2 {
  margin-bottom: 1rem;
}

.cta-band p {
  color: #cffafe;
  font-size: 1.25rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.8rem;
}

.home-secondary-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  color: #67e8f9;
  font-size: 1rem;
}

.home-secondary-links a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-secondary-links a:hover {
  color: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-light {
  color: #0a1628;
  background: #ffffff;
}

.button-light:hover {
  color: #0a1628;
  background: #e2e8f0;
}

.button-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.button-outline:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.button-primary {
  width: 100%;
  color: #ffffff;
  background: var(--cyan-strong);
}

.button-primary:hover {
  color: #ffffff;
  background: #0891b2;
}

.page-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.page-hero h2 {
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
}

.catalog-route {
  overflow: hidden;
}

#page-content:focus {
  outline: none;
}

.catalog-page {
  min-height: 100vh;
  padding-top: 78px;
  background: var(--bg);
}

.catalog-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 78px);
  border: 0;
  background: #ffffff;
}

.simple-hero {
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.prose {
  max-width: 1080px;
}

.prose p,
.prose li {
  font-size: 1.08rem;
  color: var(--muted);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.title-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 900;
}

.title-icon.cyan {
  background: linear-gradient(135deg, var(--cyan-strong), var(--cyan));
}

.title-icon.green {
  background: linear-gradient(135deg, #16a34a, var(--green));
}

.title-icon.yellow {
  background: linear-gradient(135deg, #ca8a04, var(--yellow));
}

.title-icon.blue {
  background: linear-gradient(135deg, #2563eb, var(--blue));
}

.title-icon.teal {
  background: linear-gradient(135deg, #0d9488, var(--teal));
}

.check-list,
.panel-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.check-list li,
.panel-list li {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 3rem;
  margin-bottom: 1rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.08);
}

.check-list li::before,
.panel-list li::before {
  content: "✓";
  position: absolute;
  left: 1.2rem;
  top: 1.15rem;
  color: var(--cyan);
  font-weight: 900;
}

.blue-list li {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
}

.plain-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.service-card {
  padding: 2rem;
  min-height: 200px;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.8), rgba(10, 22, 40, 0.4));
  border-color: rgba(6, 182, 212, 0.3);
}

.service-card-grid {
  margin-bottom: 4rem;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-card-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.service-card-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #22d3ee;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.service-card p {
  padding-left: 2.75rem;
}

.service-card:hover {
  border-color: #22d3ee;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.protocol-title {
  margin: 2.5rem 0 2rem;
  text-align: center;
  font-size: 1.65rem;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.protocol-item {
  text-align: center;
}

.protocol-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.protocol-item:hover .protocol-icon {
  transform: scale(1.1);
}

.protocol-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.protocol-icon-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(8, 145, 178, 0.2));
  border-color: rgba(6, 182, 212, 0.5);
}

.protocol-icon-cyan svg {
  stroke: #22d3ee;
}

.protocol-item:hover .protocol-icon-cyan {
  border-color: #22d3ee;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.protocol-icon-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
  border-color: rgba(34, 197, 94, 0.5);
}

.protocol-icon-green svg {
  stroke: #4ade80;
}

.protocol-item:hover .protocol-icon-green {
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.protocol-icon-teal {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(13, 148, 136, 0.2));
  border-color: rgba(20, 184, 166, 0.5);
}

.protocol-icon-teal svg {
  stroke: #2dd4bf;
}

.protocol-item:hover .protocol-icon-teal {
  border-color: #2dd4bf;
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
}

.protocol-grid h4 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
}

.protocol-grid p {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0;
}

.catalog-summary-section {
  background: var(--bg);
  padding-top: 4.25rem;
}

.catalog-intro {
  max-width: 1180px;
}

.catalog-intro p {
  max-width: 1120px;
  color: #dbeafe;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  margin-bottom: 1.6rem;
}

.catalog-summary-title {
  margin: 7rem 0 2.8rem;
  text-align: center;
  font-size: clamp(1.8rem, 2.8vw, 2.25rem);
}

.catalog-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.catalog-category-card {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.35rem;
  text-align: center;
  border: 1px solid rgba(6, 182, 212, 0.38);
  border-radius: 8px;
  background: rgba(13, 31, 53, 0.68);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.catalog-category-card:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.82);
  background: rgba(13, 31, 53, 0.92);
  transform: translateY(-2px);
}

.catalog-category-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.15);
}

.catalog-category-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.catalog-category-card h3 {
  max-width: 230px;
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.25;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.use-case-card {
  min-height: 510px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.card-overlay {
  background: linear-gradient(0deg, rgba(10, 22, 40, 0.94), rgba(10, 22, 40, 0.58) 62%, rgba(10, 22, 40, 0.28));
}

.use-case-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.use-case-content .subtitle {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
}

.use-case-content .button {
  width: 100%;
  margin-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 2rem;
  align-items: start;
}

.stack-list {
  display: grid;
  gap: 1.2rem;
}

.stack-list article {
  position: relative;
  padding-left: 1.1rem;
}

.stack-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
}

.stack-list h3 {
  margin-bottom: 0.25rem;
}

.stack-list p {
  margin-bottom: 0;
  color: var(--soft);
}

.logo-panel {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(34, 197, 94, 0.1));
}

.logo-panel img {
  width: min(240px, 80%);
  margin: 0 auto 1.5rem;
}

.mission-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.mission-image {
  min-height: 610px;
}

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

.mission-cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem);
}

.compact-card {
  text-align: center;
  min-height: 150px;
}

.compact-card h3 {
  color: var(--cyan);
}

.contact-form,
.contact-info {
  padding: 2rem;
}

.contact-form label {
  display: block;
  margin: 1rem 0 0.35rem;
  color: #ffffff;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-form button {
  margin-top: 1.4rem;
  font: inherit;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--cyan);
}

.contact-info article {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
}

.contact-info a {
  color: var(--cyan);
}

.legal-section {
  background: var(--bg);
  border-top: 1px solid rgba(34, 211, 238, 0.15);
}

.legal-section article {
  margin-top: 2rem;
}

.legal-section h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  color: var(--muted);
}

.legal-box,
.table-wrap {
  padding: 1.2rem;
  border-radius: 8px;
  background: var(--bg-soft);
}

.legal-box p {
  margin-bottom: 0.35rem;
}

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

.site-footer {
  padding: 4rem 0 1.5rem;
  background: var(--bg);
  border-top: 1px solid rgba(34, 211, 238, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-grid h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-grid a {
  display: block;
  color: var(--soft);
  margin-bottom: 0.55rem;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-logo {
  width: 160px;
  margin-bottom: 1rem;
}

.funders {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 211, 238, 0.2);
  text-align: center;
}

.funder-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.4rem;
}

.funder-logos img {
  max-width: 220px;
  max-height: 88px;
  object-fit: contain;
}

.funder-logos img:nth-child(3) {
  max-height: 128px;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 211, 238, 0.16);
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-side {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: block;
  }

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

  .flow-grid,
  .protocol-grid,
  .catalog-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-node:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 4rem 0;
  }

  .hero,
  .page-hero {
    min-height: 520px;
    padding-top: 7rem;
  }

  .two-cols,
  .three-cols,
  .use-case-grid,
  .split,
  .mission-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mission-image {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .brand img {
    height: 38px;
  }

  .header-inner {
    min-height: 68px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .catalog-page {
    padding-top: 68px;
  }

  .catalog-frame {
    height: calc(100vh - 68px);
  }

  .hero {
    min-height: 600px;
  }

  .profile-grid,
  .flow-grid,
  .protocol-grid,
  .catalog-category-grid,
  .four-cols {
    grid-template-columns: 1fr;
  }

  .catalog-summary-title {
    margin-top: 4rem;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .use-case-content,
  .contact-form,
  .contact-info,
  .logo-panel {
    padding: 1.3rem;
  }

  .funder-logos {
    gap: 1.5rem;
  }
}

/* Governance UNE 0087 */
.governance-section {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  background: var(--bg-soft);
}

.governance-shell {
  max-width: 1180px;
}

.governance-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 22, 40, 0.72);
  scrollbar-width: thin;
}

.governance-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.governance-tab svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.governance-tab:hover {
  color: #ffffff;
  background: rgba(34, 211, 238, 0.08);
}

.governance-tab.is-active {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.16);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.18);
}

.governance-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.governance-panels {
  min-height: 320px;
}

.governance-panel {
  animation: governanceFadeIn 220ms ease;
}

.governance-panel.is-active {
  display: block;
}

@keyframes governanceFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.governance-panel-intro h3,
.governance-panel-header h3 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
}

.governance-panel-intro p,
.governance-panel > p {
  color: var(--soft);
  max-width: 900px;
}

.governance-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.governance-subtitle {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.governance-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.governance-stepper li {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.governance-stepper strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.governance-stepper span {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
}

.governance-stepper p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
}

.governance-contact-card {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.08);
}

.governance-contact-card h4 {
  margin-bottom: 0.75rem;
}

.governance-contact-card p {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.governance-chapter {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  font-weight: 800;
}

.governance-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.governance-standard-badge {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.55);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.governance-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.governance-layer-grid ul,
.governance-normativa-list ul,
.plain-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--soft);
}

.governance-normativa-list {
  display: grid;
  gap: 1.25rem;
}

.governance-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.governance-stat {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  text-align: center;
}

.governance-stat strong {
  display: block;
  color: var(--cyan);
  font-size: 2rem;
  line-height: 1.1;
}

.governance-stat span {
  display: block;
  margin-top: 0.35rem;
  color: #ffffff;
  font-weight: 600;
}

.governance-stat p {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
}

.governance-stat-highlight strong {
  font-size: 1.65rem;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-badge.status-pending {
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.14);
  color: #facc15;
}

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

.table-wrap th,
.table-wrap td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
  text-align: left;
}

.table-wrap th {
  color: #ffffff;
  font-size: 0.9rem;
  background: rgba(10, 22, 40, 0.55);
}

.table-wrap td {
  color: var(--muted);
}

.governance-faq-list {
  display: grid;
  gap: 0.75rem;
}

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

.governance-faq-item summary {
  padding: 1rem 1.15rem;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.governance-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 700;
}

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

.governance-faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--soft);
}

.button-sm {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .governance-stepper {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .governance-layer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .governance-tab {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }

  .governance-tab svg {
    width: 16px;
    height: 16px;
  }

  .governance-stepper,
  .governance-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Adhesion */
.adhesion-hero {
  background: linear-gradient(180deg, #0f3a2a 0%, #0a2a1f 100%);
}

.adhesion-steps {
  background: #e8edf4;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.adhesion-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.55rem 0;
}

.adhesion-step {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.adhesion-step:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 30px;
  height: 1px;
  margin-left: 0.35rem;
  background: rgba(148, 163, 184, 0.6);
}

.adhesion-step-index {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #b3852d;
  font-weight: 700;
  background: #f0ece2;
}

.adhesion-step h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.55rem;
}

.adhesion-step p {
  margin: 0;
  color: #475569;
  font-size: 1.15rem;
}

.adhesion-form-section {
  background: #f4f6fb;
}

.adhesion-form-card {
  border: 1px solid #d7dde7;
  border-radius: 12px;
  background: #ffffff;
  padding: 1.65rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.adhesion-form-card h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
  font-size: 2rem;
}

.adhesion-form-card h2 svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #b3852d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.adhesion-form-subtitle {
  margin-bottom: 1.15rem;
  color: #475569;
}

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

.adhesion-form-field label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  color: #111827;
  font-weight: 700;
}

.adhesion-form-field input,
.adhesion-form-field select,
.adhesion-form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c9ced8;
  border-radius: 10px;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
}

.adhesion-form-field textarea {
  resize: vertical;
}

.adhesion-form-field input::placeholder,
.adhesion-form-field textarea::placeholder {
  color: #64748b;
}

.adhesion-submit {
  margin-top: 1.2rem;
  width: 100%;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.adhesion-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.adhesion-form-status {
  color: #0f766e;
}

/* Transparencia in adhesion style */
.transparencia-card {
  color: #0f172a;
}

.transparencia-card h2 {
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.transparencia-card h3 {
  color: #0f172a;
}

.transparencia-card p,
.transparencia-card .lead,
.transparencia-card .lead.small,
.transparencia-card li {
  color: #475569;
}

.transparencia-card .plain-card {
  border-color: #d7dde7;
  background: #ffffff;
}

.transparencia-card .plain-card:hover {
  border-color: #c9ced8;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.transparencia-card .governance-standard-badge {
  color: #334155;
  border-color: #d7dde7;
  background: #f8fafc;
}

.transparencia-card .button-outline {
  color: #0f172a;
  border-color: #c9ced8;
  background: #ffffff;
}

.transparencia-card .button-outline:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.transparencia-card .table-wrap {
  border: 1px solid #d7dde7;
  border-radius: 10px;
  background: #ffffff;
}

.transparencia-card .table-wrap th {
  color: #0f172a;
  background: #f8fafc;
  border-bottom-color: #d7dde7;
}

.transparencia-card .table-wrap td {
  color: #334155;
  border-bottom-color: #e2e8f0;
}

@media (max-width: 980px) {
  .adhesion-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adhesion-step::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .adhesion-form-grid {
    grid-template-columns: 1fr;
  }

  .adhesion-step h3 {
    font-size: 1.3rem;
  }

  .adhesion-step p {
    font-size: 1rem;
  }
}
