/* ─── BUTTONS ──────────────────────────────────────────────── */
/* Pill + attached circular arrow, as in the reference. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn__label {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding-inline: 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.btn__circle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--btn-circle);
  color: var(--btn-circle-fg);
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__circle { transform: rotate(-45deg); }
.btn--sm .btn__label { height: 2.5rem; padding-inline: 1.25rem; }
.btn--sm .btn__circle { width: 2.5rem; height: 2.5rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: gap var(--dur-base) var(--ease-out), color var(--dur-fast), border-color var(--dur-fast);
}
.link-arrow:hover { gap: 0.8rem; color: var(--accent); border-color: var(--accent); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--accent); }

/* Theme toggle shows the icon of the theme you would switch to */
.theme-toggle .icon-moon { display: none; }
:root[data-theme='light'] .theme-toggle .icon-sun { display: none; }
:root[data-theme='light'] .theme-toggle .icon-moon { display: block; }

/* ─── LANGUAGE SWITCH ──────────────────────────────────────── */
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.lang button {
  min-width: 2.25rem;
  height: 2rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed='true'] { background: var(--btn-bg); color: var(--btn-fg); }

/* ─── CHIPS & TAGS ─────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 450;
  color: var(--ink);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.chip:hover { border-color: var(--line-strong); color: var(--accent); }

.tag {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 10, 26, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f2f6ff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink);
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2.4s ease-in-out infinite;
}
:root[data-theme='light'] .status__dot { background: #00a878; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(0, 200, 150, 0); }
}

/* Floating labels around the portrait */
.pill {
  position: absolute;
  z-index: 2;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 14px 28px -14px rgba(0, 10, 60, 0.45);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* ─── GLASS STAT CARD ──────────────────────────────────────── */
.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-l);
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.stat__label { max-width: 10rem; font-size: var(--fs-sm); line-height: 1.35; color: var(--ink-2); }
.stat__value {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

/* ─── SECTION HEAD ─────────────────────────────────────────── */
.section { padding-block: var(--space-section); }
/* Sections stack with a single rhythm: the previous section owns the gap */
.section + .section,
.nz + .section { padding-top: 0; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(1.5rem, 4vw, 5rem);
}
.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); align-items: end; }
.section__title {
  font-size: var(--fs-xl);
  letter-spacing: -0.035em;
}
.section__lead {
  max-width: 46ch;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* ─── CARDS ────────────────────────────────────────────────── */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
}
.card__title { font-size: var(--fs-lg); letter-spacing: -0.03em; }
.card__text { margin-top: 0.75rem; max-width: 62ch; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.card .chips { margin-top: 1.5rem; }
.card--wide .card__text { font-size: var(--fs-base); }

.card--glass {
  background: var(--glass);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

/* Image slot (Nazario logo): the <img> covers the placeholder as soon as the file exists */
.slot { position: relative; overflow: hidden; }
.slot__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot__img[hidden] { display: none; }
.slot.has-img .slot__ph { display: none; }
.nz__logo {
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.nz__logo .slot__ph { width: 3rem; height: 3rem; }
.nz__logo .slot__img { object-fit: contain; }

/* Chips that float slightly out of line, like the reference tags */
.chips--float .chip:nth-child(4n + 2) { rotate: -3deg; }
.chips--float .chip:nth-child(5n + 4) { rotate: 2.5deg; translate: 0 2px; }

/* ─── BENTO CARDS (Stack panel) ────────────────────────────── */
.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-l);
}
.bcard__title { font-size: var(--fs-lg); letter-spacing: -0.03em; }
.bcard--glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(160deg, rgba(120, 160, 255, 0.32) 0%, rgba(70, 110, 255, 0.14) 60%, rgba(255, 255, 255, 0.05) 100%);
}
.bcard--paper { color: #0b1020; background: #f4f6fd; }
.bcard--glass .chip { border-color: transparent; background: rgba(255, 255, 255, 0.92); color: #0b1020; }
.bcard--paper .chip { border-color: transparent; background: #e3e8f7; color: #0b1020; }
.bcard .chip:hover { color: #0a3fe0; }

/* Big watermark word, echoing the hero ghost word (desktop only, where the card is tall) */
.bcard__mark { display: none; }
@media (min-width: 960px) {
  .bcard__mark {
    display: block;
    position: absolute;
    left: 1.25rem;
    bottom: -0.05em;
    font-size: clamp(7rem, 13vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.09);
    pointer-events: none;
    user-select: none;
  }
  .bcard__mark-1 {
    rotate: -90deg;
    font-size: clamp(5rem, 13vw, 10rem);
    right: -0.8em;
    bottom: 0.5em;
  }
  .bcard__mark-2 {
    font-size: clamp(5rem, 13vw, 8rem);
  }
}