/* Luxury finish for mcube — type and rhythm only. Colors stay native. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body { font-family: "Work Sans", sans-serif; }

#main-nav .nav-logo-name,
.hero__brand,
.hero h1,
.section-title,
.step__n,
.step h3,
.opendata-panel__stat,
.brand-shell__wordmark,
.tb-footer .footer-brand-name,
.tb-footer .footer-col h4,
.tb-footer .footer-mark {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

#main-nav .nav-logo-by,
#main-nav .nav-links a,
#main-nav .btn-nav-ghost,
#main-nav .btn-nav,
#main-nav .nav-mobile-panel a,
.tb-footer .footer-brand-by {
  font-family: "Work Sans", sans-serif;
}

#main-nav .nav-logo-name,
.hero__brand,
.step__n,
.opendata-panel__stat,
.tb-footer .footer-brand-name,
.tb-footer .footer-mark {
  font-weight: 700;
}

#main-nav .nav-links a:hover {
  background: transparent;
  color: var(--ink);
}
#main-nav .nav-links a.active,
#main-nav .nav-links a[aria-current="true"] {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
  border-radius: 0;
}
#main-nav .btn-nav { font-weight: 550; }
#main-nav .btn-nav-ghost { font-weight: 500; }
#main-nav .lang-switch a:hover,
#main-nav .lang-switch a.is-active {
  background: transparent;
  color: var(--ink);
}
#main-nav .lang-switch a.is-active {
  box-shadow: inset 0 -1px 0 var(--ink);
  border-radius: 0;
}

.hero__brand { letter-spacing: -0.055em; }
.hero h1,
.section-title { letter-spacing: -0.04em; }
.hero__lead,
.section-lead { font-weight: 400; }
.section-kicker { letter-spacing: 0.14em; }

.btn {
  border-radius: 10px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.band--copilote {
  overflow: visible;
  border-bottom: 0;
}
.band--copilote[data-reveal]:not(.is-in) .copilote-card {
  opacity: 0;
  transform: translateY(14px);
}
.band--copilote.is-in .copilote-card {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.copilote-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 300px;
  margin-right: 0;
  padding: 2.85rem min(42%, 16rem) 2.7rem 2.85rem;
  background: #e8edf3;
  border-radius: 28px;
  box-shadow: 0 10px 36px rgba(20, 24, 31, 0.05);
}
.copilote-card .band__text { position: relative; z-index: 1; }
.copilote-card .section-title { max-width: 16ch; }
.copilote-stage {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(380px, 48vw);
  aspect-ratio: 1;
  margin: 0;
  transform: translate(22%, -50%);
  filter: drop-shadow(0 16px 32px rgba(0, 123, 255, 0.2));
  pointer-events: none;
}
.copilote-avatar {
  width: 100%;
  height: 100%;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10%;
  perspective: 420px;
  animation: copiloteApproach 16s ease-in-out infinite;
}
.copilote-bot {
  width: 54%;
  height: 54%;
  color: #fff;
  overflow: visible;
  transform-origin: center;
  transform-style: preserve-3d;
  animation: copiloteLook 9s ease-in-out infinite;
}
.copilote-bot__eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: copiloteBlink 4.8s ease-in-out infinite;
}
.copilote-bot__eye--r { animation-delay: 0.06s; }
@keyframes copiloteBlink {
  0%, 40%, 48%, 100% { transform: scaleY(1); }
  44% { transform: scaleY(0.12); }
}
@keyframes copiloteApproach {
  0%, 42%, 100% { transform: translate3d(0, 0, 0); }
  50%, 60% { transform: translate3d(-16px, 0, 0); }
}
@keyframes copiloteLook {
  0%, 22% { transform: rotateY(0deg); }
  28%, 36% { transform: rotateY(-38deg); }
  42%, 58% { transform: rotateY(0deg); }
  64%, 72% { transform: rotateY(38deg); }
  78%, 100% { transform: rotateY(0deg); }
}

@media (max-width: 900px) {
  .hero__brand {
    font-size: clamp(2.55rem, 13vw, 3.5rem);
    letter-spacing: -0.06em;
  }
  .hero__copy { padding: 18px 0 32px; }
  .hero__ctas .btn {
    border-radius: 12px;
    padding: 0.95rem 1.15rem;
  }
  .hero__visual {
    height: min(58vw, 360px);
    margin-left: 12px;
  }
  .section-kicker { margin-bottom: 10px; }
  .band { padding: 48px 0 28px; }
  .copilote-card {
    min-height: 240px;
    margin-right: 0;
    padding: 1.85rem 38% 1.85rem 1.4rem;
    border-radius: 22px;
  }
  .copilote-card .section-title { max-width: none; }
  .copilote-stage {
    width: 220px;
    transform: translate(26%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .copilote-avatar,
  .copilote-bot,
  .copilote-bot__eye { animation: none; }
}
