/* Audify — network (globe + headline numbers) and developers */

/* ---------- Network ---------- */

.network { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.network .section-head { margin-bottom: 30px; }

.ticks { display: grid; }
.ticks li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.ticks__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font-size: 1.2rem; color: var(--cherry-600);
  background: linear-gradient(180deg, var(--cherry-50), var(--cherry-100));
  border: 1px solid var(--cherry-200); box-shadow: inset 0 1px 0 #fff;
}
.ticks h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.ticks p { margin-top: 4px; font-size: 0.96rem; color: var(--text-2); }

.globe { position: relative; justify-self: center; width: 100%; max-width: 620px; aspect-ratio: 1; }
.globe canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe canvas:active { cursor: grabbing; }
.globe__readout {
  position: absolute; left: 0; bottom: 5%; display: grid; gap: 4px; justify-items: start;
  padding: 14px 18px; border-radius: 18px; pointer-events: none;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); backdrop-filter: blur(10px);
}
.globe__readout b { font-family: var(--font-mono); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.globe__readout > span:last-child { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-3); }
.globe__hint { position: absolute; right: 2%; top: 3%; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }

/* Headline numbers: the label comes first in the markup, the figure sits on top */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-strong); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 30px 24px 0; border-left: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dd { font-size: clamp(2.5rem, 4.2vw, 4.1rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stats dd small { margin: 0 0.06em; font-size: 0.52em; font-weight: 500; letter-spacing: -0.02em; color: var(--cherry-600); }
.stats dt { max-width: 16em; font-size: 0.96rem; color: var(--text-2); }

@media (max-width: 980px) {
  .network { grid-template-columns: 1fr; }
  .globe { max-width: 540px; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding-bottom: 24px; }
  .stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Developers ---------- */

.dev { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 22px; align-items: stretch; margin-bottom: 60px; }
.dev .codecard { display: flex; flex-direction: column; background: rgba(26, 7, 12, 0.66); border-color: var(--line-dark-strong); box-shadow: 0 34px 60px -34px #000; }
.dev__verb { padding: 2px 8px; border-radius: 6px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; color: #fff; background: var(--cherry-600); }
.dev__path { font-size: 0.8rem; color: var(--on-dark); }

.codetabs { position: relative; display: flex; margin-left: auto; padding: 3px; border-radius: 10px; background: rgba(255, 183, 197, 0.07); }
.codetabs::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 0;
  width: var(--ind-w, 0); transform: translateX(var(--ind-x, 0)); border-radius: 8px;
  background: rgba(255, 183, 197, 0.16);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}
.codetabs [role="tab"] { position: relative; padding: 5px 12px; border-radius: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-dark-3); transition: color 0.3s; }
.codetabs [role="tab"]:hover, .codetabs [role="tab"][aria-selected="true"] { color: var(--on-dark); }
.codecard__copy { padding: 5px 11px; border-radius: 8px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--on-dark-2); border: 1px solid var(--line-dark-strong); transition: color 0.25s, border-color 0.25s, background-color 0.25s; }
.codecard__copy:hover { color: #fff; border-color: var(--cherry-300); background: rgba(255, 183, 197, 0.08); }

/* Tall enough for the longest sample, so switching language never moves the page */
.dev__req pre[role="tabpanel"] { min-height: 314px; }
.dev__resp { margin-top: auto; border-top: 1px solid var(--line-dark); background: rgba(255, 183, 197, 0.04); }
.dev__resp p { display: flex; align-items: center; gap: 12px; padding: 14px 20px 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-dark-3); }
.dev__status { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark); }
.dev__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dev__resp pre { padding-top: 10px; }
.dev__event figcaption .tag { margin-left: auto; }
.dev__event pre { flex: 1; }

.feats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fineprint { margin-top: 26px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--text-3); }
.section--dark .fineprint { color: var(--on-dark-3); }

@media (max-width: 1020px) { .feats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .dev { grid-template-columns: 1fr; }
  .dev__req pre[role="tabpanel"] { min-height: 0; }
}
@media (max-width: 560px) {
  .feats--4 { grid-template-columns: 1fr; }
  .dev__req .codecard__dots, .dev__req .dev__path { display: none; }
  .codetabs [role="tab"] { padding-inline: 9px; }
}
