/* Runv.Club - estilos partilhados */
:root {
  --bg-deep: #050608;
  --bg-veil: rgba(8, 9, 12, 0.78);
  --bg-panel: rgba(10, 13, 18, 0.76);
  --bg-panel-soft: rgba(15, 19, 27, 0.58);
  --text: #c4c9d4;
  --text-soft: rgba(200, 208, 220, 0.85);
  --text-faint: rgba(186, 195, 208, 0.58);
  --accent: #9eb8d4;
  --accent-strong: #d7e7f8;
  --accent-dim: rgba(158, 184, 212, 0.35);
  --card: rgba(18, 22, 30, 0.72);
  --card-edge: rgba(158, 184, 212, 0.18);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.44);
  --radius: 14px;
  --radius-lg: 26px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(158, 184, 212, 0.14), transparent 34%),
    radial-gradient(circle at 20% 20%, rgba(91, 115, 140, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%);
}

img {
  max-width: 100%;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #071019;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep) url("bg.webp") center / cover no-repeat;
  pointer-events: none;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, transparent 0%, rgba(5, 6, 8, 0.45) 55%, rgba(5, 6, 8, 0.9) 100%);
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-veil);
}

.page-index {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: clamp(1.25rem, 4vw, 3rem) 1.25rem 3rem;
}

.index-hero {
  width: min(100%, 64rem);
  margin-bottom: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid rgba(158, 184, 212, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top center, rgba(215, 231, 248, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(14, 18, 26, 0.88), rgba(8, 10, 14, 0.68));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  overflow: hidden;
}

.index-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 231, 248, 0.4), transparent);
  opacity: 0.65;
}

.index-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.index-kicker,
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.index-title {
  margin: 0 0 0.75rem;
  color: #e8ecf2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(120, 150, 190, 0.12);
}

.index-sub {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.08rem;
  color: var(--text-soft);
  font-style: italic;
}

.index-cat {
  width: min(88vw, 480px);
  height: auto;
  margin: 1.75rem 0 0;
  opacity: 0.88;
  filter: drop-shadow(0 0 22px rgba(0, 0, 0, 0.55));
}

.index-main {
  width: min(100%, 64rem);
}

.index-intro {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(158, 184, 212, 0.12);
  background:
    radial-gradient(circle at top right, rgba(215, 231, 248, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.8), rgba(7, 9, 13, 0.72));
  box-shadow: var(--shadow-soft);
}

.index-intro-copy {
  position: relative;
}

.index-intro-copy::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  margin-top: 1.2rem;
  background: linear-gradient(90deg, rgba(215, 231, 248, 0.55), transparent);
}

.index-intro h2 {
  margin: 0 0 0.7rem;
  color: #eef1f6;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.12;
}

.index-intro p {
  margin: 0;
  color: var(--text-soft);
}

.index-highlights {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-highlights li {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(158, 184, 212, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.index-grid {
  width: 100%;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.35rem;
}

.index-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.45rem 1.45rem 1.55rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(215, 231, 248, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(20, 25, 34, 0.9), rgba(13, 16, 23, 0.74));
  border: 1px solid var(--card-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--shadow-soft);
}

.index-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 231, 248, 0.25);
  box-shadow: var(--shadow-card);
}

.index-card:focus-visible,
.back-link:focus-visible,
.sub-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-num {
  margin-bottom: 0.35rem;
  color: rgba(215, 231, 248, 0.3);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.card-title {
  margin: 0 0 0.5rem;
  color: #eef1f6;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.08;
}

.card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.card-cta {
  margin-top: 1.1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.index-foot {
  margin-top: 2.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(180, 190, 205, 0.62);
}

.index-foot strong {
  color: rgba(200, 210, 225, 0.75);
}

.page-sub {
  position: relative;
  z-index: 1;
  padding: 0 1rem 3rem;
}

.sub-main {
  width: min(100%, 54rem);
  margin: 0 auto;
}

.sub-cat-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1.25rem 0.6rem;
}

.sub-cat-wrap .index-cat {
  margin-top: 0;
}

.sub-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(158, 184, 212, 0.12);
}

.back-link {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 184, 212, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.back-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.sub-nav a {
  padding: 0.42rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
}

.sub-nav a:hover {
  color: #e8ecf2;
  border-color: rgba(158, 184, 212, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.sub-nav a.is-active {
  color: #eef1f6;
  border-color: rgba(158, 184, 212, 0.24);
  background: rgba(158, 184, 212, 0.08);
}

.prose {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.9rem) clamp(1.15rem, 4vw, 2.2rem);
  border: 1px solid rgba(158, 184, 212, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(215, 231, 248, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(12, 15, 21, 0.9), rgba(8, 10, 15, 0.78));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}

.prose::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(215, 231, 248, 0.04);
  border-radius: 22px;
  pointer-events: none;
}

.prose h1 {
  margin: 0 0 0.4rem;
  color: #eef1f6;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 2.9rem);
  line-height: 1.08;
  max-width: 18ch;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  color: rgba(230, 235, 245, 0.95);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.28rem, 2.8vw, 1.52rem);
  line-height: 1.16;
}

.prose h1 + h2 {
  margin-top: 0;
  margin-bottom: 1.6rem;
  color: var(--text-faint);
  font-style: italic;
}

.prose h3 {
  margin: 1.35rem 0 0.5rem;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
}

.prose h4 {
  margin: 1.1rem 0 0.4rem;
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 600;
}

.prose p {
  margin: 0 0 0.9rem;
  color: var(--text-soft);
  max-width: 68ch;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--text-soft);
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose ul li::marker,
.prose ol li::marker {
  color: rgba(215, 231, 248, 0.7);
}

.prose hr {
  border: none;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, rgba(158, 184, 212, 0.25), transparent);
}

.prose strong {
  color: #e2e8f0;
  font-weight: 600;
}

.page-foot {
  text-align: center;
  padding: 2rem 1rem 0;
  font-size: 0.88rem;
  color: rgba(170, 182, 200, 0.55);
}

.page-foot strong {
  color: rgba(200, 210, 225, 0.8);
}

@media (min-width: 720px) {
  .index-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .index-intro {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr);
  }

  .sub-main {
    width: min(100%, 58rem);
  }
}

@media (max-width: 719px) {
  .page-index {
    padding-inline: 0.95rem;
  }

  .index-hero,
  .index-intro,
  .prose {
    border-radius: 22px;
  }

  .sub-head,
  .sub-nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .index-card {
    transition: none;
  }
}
