.label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  font-size: var(--fs-s);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { border-color: var(--c-accent); box-shadow: 0 0 24px var(--c-accent-glow); }
.btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg); }
.btn--primary:hover { background: #19CBD6; }
.btn--lg { padding: 14px 26px; font-size: var(--fs-m); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(5, 8, 15, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}
.site-nav__logo img { height: 32px; width: auto; }
.site-nav__links { display: none; gap: var(--space-5); font-size: var(--fs-s); color: var(--c-muted); }
.site-nav__links a:hover { color: var(--c-text); }
@media (min-width: 900px) { .site-nav__links { display: flex; } }

.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: var(--space-7);
  color: var(--c-muted);
  font-size: var(--fs-s);
}
.site-footer .container { display: grid; gap: var(--space-4); }
.site-footer a { color: var(--c-text); }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-5); }

/* ---------- Shared content components (Task 7) ---------- */
.section-head { display: grid; gap: var(--space-4); max-width: 860px; margin-bottom: var(--space-7); }
.section-head .section__title { margin-top: 0; }
.section-head--row { max-width: none; }
@media (min-width: 900px) {
  .section-head--row { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: var(--space-7); }
}
.section-head__lede { max-width: 56ch; color: var(--c-muted); font-size: clamp(1rem, 0.96rem + 0.25vw, 1.15rem); }

/* Glass panel with thin teal gradient edge (same language as the market widgets). */
.panel {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0, 184, 196, 0.45), transparent 35%, transparent 70%, rgba(0, 184, 196, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  transition: opacity 0.3s;
}

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  padding: 6px 14px;
  border: 1px solid rgba(0, 184, 196, 0.35);
  border-radius: 999px;
  background: rgba(0, 184, 196, 0.08);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--c-text);
}

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.source-link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  text-decoration: underline;
  text-decoration-color: rgba(0, 184, 196, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.source-link::before { content: "Source"; color: var(--c-accent); text-decoration: none; display: inline-block; margin-right: 0.6em; }
.source-link::after { content: "\2197"; text-decoration: none; display: inline-block; margin-left: 0.4em; }
.source-link:hover { color: var(--c-text); text-decoration-color: var(--c-accent); }
.text-link { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #7FF4FA; }

/* Status dot with tone (wait / live / done) */
.dot { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
[data-tone="wait"] { color: var(--c-warn); }
[data-tone="live"] { color: var(--c-accent); }
[data-tone="done"] { color: var(--c-up); }

/* ---------- Interaction effects (effects.js) ---------- */
/* gsap drives transform on tilt cards; a CSS transform transition would lag behind it. */
.bento__card[data-tilt], .vault-card[data-tilt], [data-tilt] { transition-property: border-color, box-shadow, background-color; }

.tilt-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.tilt-glare i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  aspect-ratio: 1;
  margin: -70% 0 0 -70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(0, 184, 196, 0.05) 32%, transparent 62%);
  will-change: transform;
}

.cursor-glow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 196, 0.13), rgba(0, 184, 196, 0.04) 45%, transparent 70%);
  pointer-events: none;
  will-change: transform;
}

/* Behind section content (hero content is z-index 1; #markets creates its own stacking context). */
#markets .cursor-glow { z-index: -1; }

.btn[data-magnetic] { will-change: transform; }

/* Animated conic edge, teal only. Static unless hovered; static under reduced motion. */
@property --glow-angle { syntax: "<angle>"; inherits: false; initial-value: 140deg; }
.card--glow::before {
  background: conic-gradient(from var(--glow-angle), rgba(0, 184, 196, 0.12), rgba(0, 184, 196, 0.9) 18%, rgba(0, 184, 196, 0.12) 40%, rgba(0, 184, 196, 0.12) 70%, rgba(0, 184, 196, 0.5) 85%, rgba(0, 184, 196, 0.12));
}
@media (hover: hover) and (pointer: fine) {
  html:not([data-motion="reduced"]) .card--glow:hover::before { animation: glow-spin 4s linear infinite; }
}
@keyframes glow-spin { to { --glow-angle: 500deg; } }
@media (prefers-reduced-motion: reduce) {
  .card--glow:hover::before { animation: none; }
}

/* ---------- Mobile menu (< 900px) ---------- */
.site-nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color 0.2s;
}
.menu-toggle:hover { border-color: var(--c-accent); }
.js .menu-toggle { display: grid; }
@media (min-width: 900px) { .js .menu-toggle { display: none; } }
.menu-toggle__bars { position: relative; display: block; width: 18px; height: 10px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: calc(100% - 1.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }
@media (max-width: 379px) { .site-nav__cta { padding-inline: var(--space-4); } }

.mnav {
  position: fixed;
  inset: 0;
  z-index: 49; /* under the sticky nav (50), so its close button stays on top */
  padding-top: var(--nav-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(5, 8, 15, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: mnav-in 0.25s ease-out;
}
.mnav[hidden] { display: none; }
.mnav__inner { display: grid; gap: var(--space-7); padding-block: var(--space-6) var(--space-8); }
.mnav__links { display: grid; }
.mnav__links a {
  display: block;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mnav__links a:hover { color: var(--c-accent); }
.mnav__cta { justify-self: start; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } }
html.is-menu-open, html.is-menu-open body { overflow: hidden; }
@media (min-width: 900px) { .mnav { display: none !important; } }

/* Programmatic focus targets (skip link, in-page anchors) need no ring. */
main:focus, section[tabindex="-1"]:focus { outline: none; }

/* ---------- Pause / play toggle for moving content (WCAG 2.2.2) ---------- */
.motion-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: var(--c-accent); color: var(--c-accent); }
.motion-toggle__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle__play { fill: currentColor; stroke-width: 1.5; }
.motion-toggle[data-paused="true"] .motion-toggle__pause,
.motion-toggle:not([data-paused="true"]) .motion-toggle__play { display: none; }
